]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/Virtio10Dxe: convert to PciCapLib
authorLaszlo Ersek <lersek@redhat.com>
Fri, 4 May 2018 14:40:52 +0000 (16:40 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 24 May 2018 19:23:18 +0000 (21:23 +0200)
commit5685a243b6f85113591f4bac6cb8ecaa1376094e
treeceedbf75e6f74f94f8e4dd1ab9d06eac03bb3aa7
parent3815101ff854459e74a18571475c1d9ffee6af91
OvmfPkg/Virtio10Dxe: convert to PciCapLib

Replace the manual capability list parsing in OvmfPkg/Virtio10Dxe with
PciCapLib and PciCapPciIoLib API calls.

The VIRTIO_PCI_CAP_LINK structure type is now superfluous. (Well, it
always has been; we should have used EFI_PCI_CAPABILITY_HDR.)

Also, EFI_PCI_CAPABILITY_VENDOR_HDR is now included at the front of
VIRTIO_PCI_CAP. No driver other than Virtio10Dxe relies on VIRTIO_PCI_CAP.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
OvmfPkg/Include/IndustryStandard/Virtio10.h
OvmfPkg/Virtio10Dxe/Virtio10.c
OvmfPkg/Virtio10Dxe/Virtio10.inf