summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/VirtioNetDxe
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.singh@amd.com>2017-08-23 06:57:16 -0400
committerLaszlo Ersek <lersek@redhat.com>2017-08-25 10:42:18 +0200
commit0a78d754edc82ed0dae07c3d505b88fce8b5bd09 (patch)
tree2c0a20b5290f0afe0c372ea4a34fc64f37c9bcf6 /OvmfPkg/VirtioNetDxe
parent084cfc1a35d4d9775c73345485596a12a71fd2a6 (diff)
downloadedk2-0a78d754edc82ed0dae07c3d505b88fce8b5bd09.tar.gz
edk2-0a78d754edc82ed0dae07c3d505b88fce8b5bd09.tar.bz2
edk2-0a78d754edc82ed0dae07c3d505b88fce8b5bd09.zip
OvmfPkg/VirtioLib: add VirtioMapAllBytesInSharedBuffer() helper function
The function can be used for mapping the system physical address to virtio device address using VIRTIO_DEVICE_PROTOCOL.MapSharedBuffer (). The function helps with centralizing error handling, and it allows the caller to pass in constant or other evaluated expressions for NumberOfBytes. Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Tom Lendacky <thomas.lendacky@amd.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Brijesh Singh <brijesh.singh@amd.com> [lersek@redhat.com: s/This/VirtIo/ in the new function's comment blocks] Reviewed-by: Laszlo Ersek <lersek@redhat.com> Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'OvmfPkg/VirtioNetDxe')
0 files changed, 0 insertions, 0 deletions