diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-08-30 08:02:15 +0100 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-08-30 14:13:20 +0100 |
commit | 0bcb80106762c65463b1eac4009a59980a65b351 (patch) | |
tree | 961e89d5e4f33e1ed26645c4cd0e6b5eaebfe679 /EmbeddedPkg/EmbeddedPkg.dec | |
parent | 7385d2543e2a0c9b601673f244a75635d7ff90da (diff) | |
download | edk2-0bcb80106762c65463b1eac4009a59980a65b351.zip edk2-0bcb80106762c65463b1eac4009a59980a65b351.tar.gz edk2-0bcb80106762c65463b1eac4009a59980a65b351.tar.bz2 |
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>
Diffstat (limited to 'EmbeddedPkg/EmbeddedPkg.dec')
-rw-r--r-- | EmbeddedPkg/EmbeddedPkg.dec | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/EmbeddedPkg/EmbeddedPkg.dec b/EmbeddedPkg/EmbeddedPkg.dec index e6861cb..0be102a 100644 --- a/EmbeddedPkg/EmbeddedPkg.dec +++ b/EmbeddedPkg/EmbeddedPkg.dec @@ -205,3 +205,10 @@ [PcdsFixedAtBuild.common, PcdsDynamic.common]
gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L""|VOID*|0x00000055
+
+ #
+ # Value to add to a host address to obtain a device address, using
+ # unsigned 64-bit integer arithmetic. This means we can rely on
+ # truncation on overflow to specify negative offsets.
+ #
+ gEmbeddedTokenSpaceGuid.PcdDmaDeviceOffset|0x0|UINT64|0x0000058
|