summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1995-06-28 16:02:05 +0000
committerse <se@FreeBSD.org>1995-06-28 16:02:05 +0000
commit2b44d2ccf27fbc2265c4795a22a6fca797ac36f1 (patch)
tree6a0099ec169c76e02ff333f76578dd4085bbd270 /sys/pci
parent728b42a4c510da90893a64cbab4448c9efc72370 (diff)
downloadFreeBSD-src-2b44d2ccf27fbc2265c4795a22a6fca797ac36f1.zip
FreeBSD-src-2b44d2ccf27fbc2265c4795a22a6fca797ac36f1.tar.gz
Give more detailed information about the type of bridge devices
found when probing the PCI bus.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/pcisupport.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/pci/pcisupport.c b/sys/pci/pcisupport.c
index fa1c35e..51c520c 100644
--- a/sys/pci/pcisupport.c
+++ b/sys/pci/pcisupport.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: pcisupport.c,v 1.13 1995/03/21 23:01:05 se Exp $
+** $Id: pcisupport.c,v 1.14 1995/06/28 11:28:43 se Exp $
**
** Device driver for DEC/INTEL PCI chipsets.
**
@@ -115,8 +115,18 @@ chipset_probe (pcici_t tag, pcidi_t type)
data = pci_conf_read(tag, PCI_CLASS_REG);
switch (data & (PCI_CLASS_MASK|PCI_SUBCLASS_MASK)) {
+ case PCI_CLASS_BRIDGE|PCI_SUBCLASS_BRIDGE_HOST:
+ return ("CPU-PCI bridge");
+ case PCI_CLASS_BRIDGE|PCI_SUBCLASS_BRIDGE_ISA:
+ return ("PCI-ISA bridge");
+ case PCI_CLASS_BRIDGE|PCI_SUBCLASS_BRIDGE_EISA:
+ return ("PCI-EISA bridge");
+ case PCI_CLASS_BRIDGE|PCI_SUBCLASS_BRIDGE_MC:
+ return ("PCI-MC bridge");
case PCI_CLASS_BRIDGE|PCI_SUBCLASS_BRIDGE_PCI:
return ("PCI-PCI bridge");
+ case PCI_CLASS_BRIDGE|PCI_SUBCLASS_BRIDGE_PCMCIA:
+ return ("PCI-PCMCIA bridge");
};
return ((char*)0);
}
OpenPOWER on IntegriCloud