Add #defines for PCI classes and subclasses

git-svn-id: svn://coreboot.org/openbios/openbios-devel@439 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2009-02-02 17:40:29 +00:00
parent d74b4e50cb
commit 7fbbf2d6eb
3 changed files with 354 additions and 110 deletions

View File

@@ -734,7 +734,9 @@ static void ob_scan_pci_bus(int bus, unsigned long *mem_base,
ob_pci_configure(addr, &config, mem_base, io_base);
ob_pci_add_properties(addr, pci_dev, &config);
if (ccode == 0x0600 || ccode == 0x0604) {
if (class == PCI_BASE_CLASS_BRIDGE &&
(subclass == PCI_SUBCLASS_BRIDGE_HOST ||
subclass == PCI_SUBCLASS_BRIDGE_PCI)) {
/* host or bridge */
free(*path);
*path = strdup(config.path);