mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user