diff options
author | Kanoj Sarcar <kanoj@engr.sgi.com> | 2000-05-16 01:02:03 +0000 |
---|---|---|
committer | Kanoj Sarcar <kanoj@engr.sgi.com> | 2000-05-16 01:02:03 +0000 |
commit | 48a615a1c5db33db37768a475e809e4db37fd1c5 (patch) | |
tree | e02ca0b8803849c2e52cf9a4c0404e55ee4080d6 /arch/mips64/sgi-ip27/ip27-irq.c | |
parent | 04c69d60ac52d3bc4beed02e944c0036d9bb2b8a (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.c | 5 |
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 */ |