summaryrefslogtreecommitdiff
path: root/OvmfPkg/VirtioGpuDxe/DriverBinding.c
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2017-08-26 22:15:46 +0200
committerLaszlo Ersek <lersek@redhat.com>2017-09-01 14:28:20 +0200
commit5c8f091bd84d3706e2aad89e13ec00da11f6e5aa (patch)
tree24ee42b97e8b81707eaa8532bf30fefb900397bf /OvmfPkg/VirtioGpuDxe/DriverBinding.c
parent5409c6abc8d8b8a7196fee1d4455845aacef23bd (diff)
downloadedk2-5c8f091bd84d3706e2aad89e13ec00da11f6e5aa.zip
edk2-5c8f091bd84d3706e2aad89e13ec00da11f6e5aa.tar.gz
edk2-5c8f091bd84d3706e2aad89e13ec00da11f6e5aa.tar.bz2
OvmfPkg/VirtioGpuDxe: helpers for backing store (de)allocation+(un)mapping
Introduce the VirtioGpuAllocateZeroAndMapBackingStore() and VirtioGpuUnmapAndFreeBackingStore() helper functions. These functions tie together the allocation, zeroing and mapping, and unmapping and deallocation, respectively, of memory that the virtio GPU will permanently reference after receiving the RESOURCE_ATTACH_BACKING command. With these functions we can keep the next patch simpler -- the GOP implementation in "Gop.c" retains its error handling structure, and remains oblivious to VIRTIO_DEVICE_PROTOCOL and VirtioLib. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Brijesh Singh <brijesh.singh@amd.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Tom Lendacky <thomas.lendacky@amd.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Brijesh Singh <brijesh.singh@amd.com>
Diffstat (limited to 'OvmfPkg/VirtioGpuDxe/DriverBinding.c')
-rw-r--r--OvmfPkg/VirtioGpuDxe/DriverBinding.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/OvmfPkg/VirtioGpuDxe/DriverBinding.c b/OvmfPkg/VirtioGpuDxe/DriverBinding.c
index 33c1ad3..a44d52c 100644
--- a/OvmfPkg/VirtioGpuDxe/DriverBinding.c
+++ b/OvmfPkg/VirtioGpuDxe/DriverBinding.c
@@ -15,7 +15,6 @@
**/
-#include <Library/BaseMemoryLib.h>
#include <Library/DevicePathLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PrintLib.h>