/* The VIA pirq rules are nibble-based, like ALI, but without the ugly irq number munging. However, for 82C586, nibble map is different .  */
static int pirq_via586_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, for 82C586, nibble map is different .  */
static int pirq_via586_get(struct pci_dev *router, struct pci_dev *dev, int pirq)
{
	static const unsigned int pirqmap[5] = { 3, 2, 5, 1, 1 };
	WARN_ON_ONCE(pirq > 5);
	return read_config_nybble(router, 0x55, pirqmap[pirq-1]);
}