]> git.proxmox.com Git - mirror_edk2.git/blobdiff - CorebootModulePkg/PciBusNoEnumerationDxe/PciEnumeratorSupport.c
CorebootModulePkg: Add video resolution PCD initialization
[mirror_edk2.git] / CorebootModulePkg / PciBusNoEnumerationDxe / PciEnumeratorSupport.c
index 0b0247dffcfc17c19616cf29b69a165fca4b2402..58b9385a375d0b4336ea18fed7d3261797e5b5a3 100644 (file)
@@ -226,6 +226,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
         //