]> git.proxmox.com Git - mirror_edk2.git/commit - EmbeddedPkg/Include/Library/DmaLib.h
EmbeddedPkg/DmaLib: add routine to allocate aligned buffers
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 24 Aug 2017 19:05:48 +0000 (20:05 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 29 Aug 2017 16:54:36 +0000 (17:54 +0100)
commitdeef290f95e0df80549d2a6cbd7edae104c82709
tree2d1f712f971dacd3f6e5103839eee5dcd05d8b87
parent1696b221b15e439162cfccd6bd04132e425dd2ff
EmbeddedPkg/DmaLib: add routine to allocate aligned buffers

DmaLib's purpose is to manage memory that is shared between the host
and DMA capable devices. In some cases, this requires a larger alignment
than page size, and we currently don't cater for that in DmaLib. So add
a variant of DmaAllocateBuffer () that takes an alignment parameter.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
EmbeddedPkg/Include/Library/DmaLib.h
EmbeddedPkg/Library/NullDmaLib/NullDmaLib.c