From 5c8f091bd84d3706e2aad89e13ec00da11f6e5aa Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Sat, 26 Aug 2017 22:15:46 +0200 Subject: 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 Cc: Brijesh Singh Cc: Jordan Justen Cc: Tom Lendacky Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek Tested-by: Brijesh Singh --- OvmfPkg/VirtioGpuDxe/DriverBinding.c | 1 - 1 file changed, 1 deletion(-) (limited to 'OvmfPkg/VirtioGpuDxe/DriverBinding.c') 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 #include #include #include -- cgit v1.1