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:
Daniil Egranov 2016-09-22 17:33:01 -05:00 committed by Ard Biesheuvel
parent 272142289d
commit 50d4be4f4e
1 changed files with 6 additions and 3 deletions

View File

@ -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;