mirror of https://github.com/acidanthera/audk.git
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:
parent
a4fdb495db
commit
deac23ab96
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue