/* The VIA pirq rules are nibble-based, like ALI, but without the ugly irq number munging. However, PIRQD is in the upper instead of lower 4 bits.  */
static int pirq_via_get(struct pci_dev *router, struct pci_dev *dev, int pirq)
/* The VIA pirq rules are nibble-based, like ALI, but without the ugly irq number munging. However, PIRQD is in the upper instead of lower 4 bits.  */
static int pirq_via_get(struct pci_dev *router, struct pci_dev *dev, int pirq)
{
	return read_config_nybble(router, 0x55, pirq == 4 ? 5 : pirq);
}