/* The 'link' value in the PIRQ table is already in the correct format for the Index register. There are some special index values: 0x00 for ACPI (SCI), 0x01 for USB, 0x02 for IDE0, 0x04 for IDE1, and 0x03 for SMBus.  */
static int pirq_serverworks_get(struct pci_dev *router, struct pci_dev *dev, int pirq)
/* The 'link' value in the PIRQ table is already in the correct format for the Index register. There are some special index values: 0x00 for ACPI (SCI), 0x01 for USB, 0x02 for IDE0, 0x04 for IDE1, and 0x03 for SMBus.  */
static int pirq_serverworks_get(struct pci_dev *router, struct pci_dev *dev, int pirq)
{
	outb(pirq, 0xc00);
	return inb(0xc01) & 0xf;
}