From 22b785494767a4420de8fdb92e2738be861c7a60 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 22 May 2001 07:58:46 +0000 Subject: Some more PCI kludgeology to support the IOC3. --- arch/mips64/sgi-ip27/ip27-pci.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/mips64/sgi-ip27/ip27-pci.c b/arch/mips64/sgi-ip27/ip27-pci.c index cd7dc69cf..7b5763928 100644 --- a/arch/mips64/sgi-ip27/ip27-pci.c +++ b/arch/mips64/sgi-ip27/ip27-pci.c @@ -58,6 +58,13 @@ do { \ /*if (dev->bus->number) */ \ /* return PCIBIOS_DEVICE_NOT_FOUND; */ \ \ + if (dev->vendor == PCI_VENDOR_ID_SGI \ + && dev->device == PCI_DEVICE_ID_SGI_IOC3 \ + && ((where >= 0x14 && where < 0x40) || (where >= 0x48))) { \ + *value = 0; \ + return PCIBIOS_SUCCESSFUL; \ + } \ + \ __bit = (((where) & (bm)) << 3); \ addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; \ if (get_dbe(cf, addr)) \ @@ -100,7 +107,8 @@ do { \ /* return PCIBIOS_DEVICE_NOT_FOUND; */ \ \ if (dev->vendor == PCI_VENDOR_ID_SGI \ - && dev->device == PCI_DEVICE_ID_SGI_IOC3) \ + && dev->device == PCI_DEVICE_ID_SGI_IOC3 \ + && ((where >= 0x14 && where < 0x40) || (where >= 0x48))) \ return PCIBIOS_SUCCESSFUL; \ \ __bit = (((where) & (bm)) << 3); \ -- cgit v1.2.3