summaryrefslogtreecommitdiffstats
path: root/EmbeddedPkg/EmbeddedPkg.dec
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-11-21 09:32:26 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2019-12-06 14:55:45 +0000
commit62a75650e4f918a7aed8e325b8beed37247e4513 (patch)
tree68a341d99f8873072d054ae64ccc114ebddfcdae /EmbeddedPkg/EmbeddedPkg.dec
parent9caaa79dd7e078ebb4012dde3b3d3a5d451df609 (diff)
downloadedk2-62a75650e4f918a7aed8e325b8beed37247e4513.tar.gz
edk2-62a75650e4f918a7aed8e325b8beed37247e4513.tar.bz2
edk2-62a75650e4f918a7aed8e325b8beed37247e4513.zip
EmbeddedPkg/NonCoherentDmaLib: implement support for DMA range limits
Implement support for driving peripherals with limited DMA ranges to NonCoherentDmaLib, by adding a device address limit, and taking it, along with the device offset, into account when allocating or mapping DMA buffers. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Tested-by: Pete Batard <pete@akeo.ie> Acked-by: Philippe Mathieu-Daude <philmd@redhat.com> Acked-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'EmbeddedPkg/EmbeddedPkg.dec')
-rw-r--r--EmbeddedPkg/EmbeddedPkg.dec6
1 files changed, 6 insertions, 0 deletions
diff --git a/EmbeddedPkg/EmbeddedPkg.dec b/EmbeddedPkg/EmbeddedPkg.dec
index 8812a6db7c..69922802f4 100644
--- a/EmbeddedPkg/EmbeddedPkg.dec
+++ b/EmbeddedPkg/EmbeddedPkg.dec
@@ -187,6 +187,12 @@
gEmbeddedTokenSpaceGuid.PcdDmaDeviceOffset|0x0|UINT64|0x0000058
#
+ # Highest address value supported by the device for DMA addressing. Note
+ # that this value should be strictly greater than PcdDmaDeviceOffset.
+ #
+ gEmbeddedTokenSpaceGuid.PcdDmaDeviceLimit|0xFFFFFFFFFFFFFFFF|UINT64|0x000005A
+
+ #
# Selection between DT and ACPI as a default
#
gEmbeddedTokenSpaceGuid.PcdDefaultDtPref|TRUE|BOOLEAN|0x0000059