From 1f8ca7ddc46b4da73ccd329fd8b95e54fd00e480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Wed, 28 Jun 1995 16:02:05 +0000 Subject: [PATCH] Give more detailed information about the type of bridge devices found when probing the PCI bus. --- sys/pci/pcisupport.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys/pci/pcisupport.c b/sys/pci/pcisupport.c index fa1c35ea034..51c520c0c60 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); }