Calculate routed interrupts using the slot number from the device and

not that of the bridge.

Approved by:	re (jhb)
This commit is contained in:
Bernd Walter 2003-05-22 17:45:26 +00:00
parent 386024a294
commit cdc95e1bb8

View File

@ -495,7 +495,7 @@ pcib_route_interrupt(device_t pcib, device_t dev, int pin)
*
* parent_intpin = (device + child_intpin) % 4
*/
parent_intpin = (pci_get_slot(pcib) + (pin - 1)) % 4;
parent_intpin = (pci_get_slot(dev) + (pin - 1)) % 4;
/*
* Our parent is a PCI bus. Its parent must export the pcib interface