mirror of https://github.com/acidanthera/audk.git
MdeModulePkg PciBusDxe: Allows PCI device drivers to set the EFI_PCI_IO_ATTRIBUTE_DUAL_ADDRESS_CYCLE attribute for a PCI device.
Signed-off-by: rsun3 Reviewed-by: mdkinney git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12545 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
515327a3e3
commit
5a3a6aa787
|
@ -1130,8 +1130,12 @@ DetermineDeviceAttribute (
|
|||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
//
|
||||
// Assume the PCI Root Bridge supports DAC
|
||||
//
|
||||
PciIoDevice->Supports |= (EFI_PCI_IO_ATTRIBUTE_EMBEDDED_DEVICE |
|
||||
EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM);
|
||||
EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM |
|
||||
EFI_PCI_IO_ATTRIBUTE_DUAL_ADDRESS_CYCLE);
|
||||
|
||||
} else {
|
||||
|
||||
|
|
|
@ -1305,11 +1305,11 @@ ModifyRootBridgeAttributes (
|
|||
}
|
||||
|
||||
//
|
||||
// Mask off EFI_PCI_IO_ATTRIBUTE_EMBEDDED_DEVICE &
|
||||
// EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM, which are not supported by PCI root bridge.
|
||||
// Mask off attributes not supported by PCI root bridge.
|
||||
//
|
||||
Attributes &= ~(UINT64)(EFI_PCI_IO_ATTRIBUTE_EMBEDDED_DEVICE |
|
||||
EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM);
|
||||
EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM |
|
||||
EFI_PCI_IO_ATTRIBUTE_DUAL_ADDRESS_CYCLE);
|
||||
|
||||
//
|
||||
// Record the new attribute of the Root Bridge
|
||||
|
|
Loading…
Reference in New Issue