mirror of https://github.com/acidanthera/audk.git
Add special treatment for EFI_PCI_IO_ATTRIBUTE_EMBEDDED_DEVICE and EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM, because these attributes are only for PCI IO, while not supported by PCI Root Bridge IO.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11165 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
3a0e054598
commit
7afa5ea800
|
@ -1063,6 +1063,9 @@ DetermineDeviceAttribute (
|
|||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
PciIoDevice->Supports |= (EFI_PCI_IO_ATTRIBUTE_EMBEDDED_DEVICE |
|
||||
EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM);
|
||||
|
||||
} else {
|
||||
|
||||
//
|
||||
|
|
|
@ -1268,6 +1268,13 @@ ModifyRootBridgeAttributes (
|
|||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
//
|
||||
// Mask off EFI_PCI_IO_ATTRIBUTE_EMBEDDED_DEVICE &
|
||||
// EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM, which are not supported by PCI root bridge.
|
||||
//
|
||||
Attributes &= ~(UINT64)(EFI_PCI_IO_ATTRIBUTE_EMBEDDED_DEVICE |
|
||||
EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM);
|
||||
|
||||
//
|
||||
// Record the new attribute of the Root Bridge
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue