summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>1999-06-24 04:06:26 +0000
committerjlemon <jlemon@FreeBSD.org>1999-06-24 04:06:26 +0000
commit513c620785b95e70e93aae959d17e908986ad534 (patch)
treea3605f17f4c0f8ed66b79cde65d697390535affc
parent4406bd85b539f569a0bd5e8d3c83e38298b78b29 (diff)
downloadFreeBSD-src-513c620785b95e70e93aae959d17e908986ad534.zip
FreeBSD-src-513c620785b95e70e93aae959d17e908986ad534.tar.gz
Allow the Ross host to PCI bridge to appear as a PCI bus. This permits
my Compaq 3000 to recognize the secondary bus.
-rw-r--r--sys/pci/pcisupport.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/pci/pcisupport.c b/sys/pci/pcisupport.c
index 6440356..ab29e54 100644
--- a/sys/pci/pcisupport.c
+++ b/sys/pci/pcisupport.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: pcisupport.c,v 1.120 1999/06/15 12:01:26 roger Exp $
+** $Id: pcisupport.c,v 1.121 1999/06/16 12:26:40 billf Exp $
**
** Device driver for DEC/INTEL PCI chipsets.
**
@@ -170,9 +170,9 @@ fixbushigh_Ross(device_t dev)
/* just guessing the secondary bus register number ... */
secondarybus = pci_read_config(dev, 0x45, 1);
- if (secondarybus != 0) {
- pci_set_secondarybus(dev, secondarybus + 1);
- pci_set_subordinatebus(dev, secondarybus + 1);
+ if (secondarybus != 0 && secondarybus != 0xff) {
+ pci_set_secondarybus(dev, secondarybus);
+ pci_set_subordinatebus(dev, secondarybus);
}
}
@@ -834,6 +834,11 @@ pcib_match(device_t dev)
return ("IBM 82351 PCI-PCI bridge");
case 0x00011011:
return ("DEC 21050 PCI-PCI bridge");
+
+ /* Ross (?) -- vendor 0x1166 */
+ case 0x00051166:
+ fixbushigh_Ross(dev);
+ return ("Ross (?) host to PCI bridge");
};
if (pci_get_class(dev) == PCIC_BRIDGE
@@ -1203,11 +1208,6 @@ chip_match(device_t dev)
return ("OPTi 82C861 (FireLink) USB controller");
#endif
- /* Ross (?) -- vendor 0x1166 */
- case 0x00051166:
- fixbushigh_Ross(dev);
- return ("Ross (?) host to PCI bridge");
-
/* NEC -- vendor 0x1033 */
/* PCI to C-bus bridge */
OpenPOWER on IntegriCloud