EmbeddedPkg/CoherentDmaLib: add support for non-1:1 DMA translation

Bring CoherentDmaLib in line with ArmDmaLib, and add support for
defining a static offset between the host's and the bus master's
view of memory.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
Ard Biesheuvel
2017-08-30 08:02:15 +01:00
parent 7385d2543e
commit 0bcb801067
3 changed files with 19 additions and 1 deletions

View File

@@ -31,3 +31,6 @@
[LibraryClasses]
DebugLib
MemoryAllocationLib
[Pcd]
gEmbeddedTokenSpaceGuid.PcdDmaDeviceOffset