summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-05-22 07:58:46 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-05-22 07:58:46 +0000
commit22b785494767a4420de8fdb92e2738be861c7a60 (patch)
treec6ea6d166bd76455cee9aedafcbeaf446f103829
parent84091a49dab40f386ca8652340544a44e2e07ad1 (diff)
Some more PCI kludgeology to support the IOC3.
-rw-r--r--arch/mips64/sgi-ip27/ip27-pci.c10
1 files changed, 9 insertions, 1 deletions
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); \