ArmPkg/ArmDmaLib: add support for fixed host-to-device DMA offset

Some devices, such as the Raspberry Pi3, have a fixed offset between memory
addresses as seen by the host and as seen by the other bus masters. So add
a new PCD that allows this fixed offset to be recorded, and to be used when
returning device addresses from the DmaLib mapping routines.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Ryan Harkin <ryan.harkin@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
Ard Biesheuvel
2016-11-12 14:02:28 +01:00
committed by Leif Lindholm
parent df8c2668d7
commit bfe34275a9
3 changed files with 27 additions and 2 deletions

View File

@@ -44,6 +44,7 @@
[Guids]
[Pcd]
gArmTokenSpaceGuid.PcdArmDmaDeviceOffset
[Depex]
gEfiCpuArchProtocolGuid