mirror of https://github.com/acidanthera/audk.git
ArmPlatformPkg/ArmJunoPkg/Drivers/PciHostBridgeDxe: Fix for PCI Dual Address Cycle
The fix handles the PCI Dual Address Cycle Attribute case. It allows drivers using PCI DAC run on Juno. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daniil Egranov <daniil.egranov@arm.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Ryan Harkin <ryan.harkin@linaro.org>
This commit is contained in:
parent
272142289d
commit
50d4be4f4e
|
@ -518,11 +518,14 @@ PciRbMap (
|
|||
|
||||
PCI_TRACE ("PciRbMap()");
|
||||
|
||||
if (Operation == EfiPciOperationBusMasterRead) {
|
||||
if (Operation == EfiPciOperationBusMasterRead ||
|
||||
Operation == EfiPciOperationBusMasterRead64) {
|
||||
DmaOperation = MapOperationBusMasterRead;
|
||||
} else if (Operation == EfiPciOperationBusMasterWrite) {
|
||||
} else if (Operation == EfiPciOperationBusMasterWrite ||
|
||||
Operation == EfiPciOperationBusMasterWrite64) {
|
||||
DmaOperation = MapOperationBusMasterWrite;
|
||||
} else if (Operation == EfiPciOperationBusMasterCommonBuffer) {
|
||||
} else if (Operation == EfiPciOperationBusMasterCommonBuffer ||
|
||||
Operation == EfiPciOperationBusMasterCommonBuffer64) {
|
||||
DmaOperation = MapOperationBusMasterCommonBuffer;
|
||||
} else {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
|
|
Loading…
Reference in New Issue