CorebootPayloadPkg/PciBusNoEnumerationDxe: Skip disabled devices

Skip non-bridge devices which are not enabled either for memory or I/O
access.

Change-Id: I1a39c69a8556b6b9cefd1a2bb191f7e0744ddfb0
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-by: Prince Agyeman <prince.agyeman@intel.com>
This commit is contained in:
Leahy, Leroy P 2016-05-09 10:57:35 -07:00 committed by Prince Agyeman
parent a4fdb495db
commit deac23ab96
1 changed files with 9 additions and 0 deletions

View 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
//