]> git.proxmox.com Git - mirror_edk2.git/commit - EmbeddedPkg/EmbeddedPkg.dec
EmbeddedPkg/NonCoherentDmaLib: implement support for DMA range limits
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 21 Nov 2019 08:32:26 +0000 (09:32 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 6 Dec 2019 14:55:45 +0000 (14:55 +0000)
commit62a75650e4f918a7aed8e325b8beed37247e4513
tree68a341d99f8873072d054ae64ccc114ebddfcdae
parent9caaa79dd7e078ebb4012dde3b3d3a5d451df609
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>
EmbeddedPkg/EmbeddedPkg.dec
EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.c
EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.inf