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>
This commit is contained in:
1009
OvmfPkg/Library/BasePciCapLib/BasePciCapLib.c
Normal file
1009
OvmfPkg/Library/BasePciCapLib/BasePciCapLib.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user