summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CorebootModulePkg/PciBusNoEnumerationDxe/PciEnumeratorSupport.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/CorebootModulePkg/PciBusNoEnumerationDxe/PciEnumeratorSupport.c b/CorebootModulePkg/PciBusNoEnumerationDxe/PciEnumeratorSupport.c
index 0b0247dffc..58b9385a37 100644
--- a/CorebootModulePkg/PciBusNoEnumerationDxe/PciEnumeratorSupport.c
+++ b/CorebootModulePkg/PciBusNoEnumerationDxe/PciEnumeratorSupport.c
@@ -227,6 +227,15 @@ Returns:
if (!EFI_ERROR (Status)) {
//
+ // Skip non-bridge devices which are not enabled
+ //
+ if (((Pci.Hdr.Command & (EFI_PCI_COMMAND_IO_SPACE
+ | EFI_PCI_COMMAND_MEMORY_SPACE)) == 0)
+ && (!(IS_PCI_BRIDGE (&Pci) || IS_CARDBUS_BRIDGE (&Pci)))) {
+ continue;
+ }
+
+ //
// Collect all the information about the PCI device discovered
//
Status = PciSearchDevice (