summaryrefslogtreecommitdiffstats
path: root/arch/mips64/sgi-ip27/ip27-irq.c
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-05-16 01:02:03 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-05-16 01:02:03 +0000
commit48a615a1c5db33db37768a475e809e4db37fd1c5 (patch)
treee02ca0b8803849c2e52cf9a4c0404e55ee4080d6 /arch/mips64/sgi-ip27/ip27-irq.c
parent04c69d60ac52d3bc4beed02e944c0036d9bb2b8a (diff)
Fix the bridge register programming to indicate a 1:1 mapping between
PCI slot number and intr pin number.
Diffstat (limited to 'arch/mips64/sgi-ip27/ip27-irq.c')
-rw-r--r--arch/mips64/sgi-ip27/ip27-irq.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips64/sgi-ip27/ip27-irq.c b/arch/mips64/sgi-ip27/ip27-irq.c
index 20dc3245d..33b2d390a 100644
--- a/arch/mips64/sgi-ip27/ip27-irq.c
+++ b/arch/mips64/sgi-ip27/ip27-irq.c
@@ -261,11 +261,12 @@ static unsigned int bridge_startup(unsigned int irq)
device |= BRIDGE_DEV_SWAP_DIR;
bridge->b_device[pin].reg = device;
/*
- * Associate interrupt pin with device
* XXX This only works if b_int_device is initialized to 0!
+ * We program the bridge to have a 1:1 mapping between devices
+ * (slots) and intr pins.
*/
device = bridge->b_int_device;
- device |= (pin << (real_irq*3));
+ device |= (pin << (pin*3));
bridge->b_int_device = device;
}
bridge->b_widget.w_tflush; /* Flush */