diff options
| author | Aaron Pop <aaronpop@microsoft.com> | 2026-10-06 01:45:04 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-10-14 21:22:11 +0300 |
| commit | 0d61209231b2ec50ca6f6b96825baaa07c280854 (patch) | |
| tree | 17f9a43e54a392de50d71ff04edc68818133a6fa /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h | |
| parent | 0e7dad44bae663193b580adeb9d942c2559166f6 (diff) | |
| download | edk2-0d61209231b2ec50ca6f6b96825baaa07c280854.tar.xz | |
MdeModulePkg/PciBusDxe: Add Google Tests for BAR parsing
Add host-based Google Test coverage for PciParseBar() and
PciIovParseVfBar().
Cover absent BARs, 16-bit and 32-bit I/O BARs, 32-bit memory BARs, and
64-bit memory BARs. Also verify that a resource following a 64-bit BAR
retains its physical BAR number because the upper DWORD consumes the
intermediate BAR register.
Add equivalent SR-IOV VF BAR coverage, including InitialVFs length
scaling, system page alignment, 64-bit VF BAR parsing, and physical VF
BAR numbering after a 64-bit VF BAR.
Provide test-only PCI configuration access and boot service mocks.
Stub unrelated PciBusDxe dependencies pulled in by
PciEnumeratorSupport.c, and register the test application in
MdeModulePkgHostTest.dsc.
Signed-off-by: Aaron Pop <aaronpop@microsoft.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h')
0 files changed, 0 insertions, 0 deletions
