]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg: introduce PciCapLib
authorLaszlo Ersek <lersek@redhat.com>
Sat, 28 Apr 2018 21:22:11 +0000 (23:22 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 24 May 2018 19:12:06 +0000 (21:12 +0200)
commit392a31467f4164423ae459bf28b39f282bb48e98
tree26a99b353ce37ab6570c45be6ec83562f6fcbda2
parent4b8552d794e7b17a6627e0f752fd298e8bcb2587
OvmfPkg: introduce PciCapLib

Add a library class, and a BASE lib instance, to work more easily with PCI
capabilities in PCI config space. Functions are provided to parse
capabilities lists, and to locate, describe, read and write capabilities.
PCI config space access is abstracted away.

Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Suggested-by: 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/Library/PciCapLib.h [new file with mode: 0644]
OvmfPkg/Library/BasePciCapLib/BasePciCapLib.c [new file with mode: 0644]
OvmfPkg/Library/BasePciCapLib/BasePciCapLib.h [new file with mode: 0644]
OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf [new file with mode: 0644]
OvmfPkg/OvmfPkg.dec