summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_pci.c
diff options
context:
space:
mode:
authorticso <ticso@FreeBSD.org>2003-05-22 17:45:26 +0000
committerticso <ticso@FreeBSD.org>2003-05-22 17:45:26 +0000
commitb95c3a4349b76514ae31bf32da8449674eb4d79c (patch)
tree9d46729110379dd2938a0230df4529b5e7c58c74 /sys/dev/pci/pci_pci.c
parente0eed196a754da8c13242175ded0bb8bfcfe0834 (diff)
downloadFreeBSD-src-b95c3a4349b76514ae31bf32da8449674eb4d79c.zip
FreeBSD-src-b95c3a4349b76514ae31bf32da8449674eb4d79c.tar.gz
Calculate routed interrupts using the slot number from the device and
not that of the bridge. Approved by: re (jhb)
Diffstat (limited to 'sys/dev/pci/pci_pci.c')
-rw-r--r--sys/dev/pci/pci_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
index 71d814c..cc113ab 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -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
OpenPOWER on IntegriCloud