UefiPayloadPkg: Add PCI root bridge info hob support for SBL
authorMa, Maurice <maurice.ma@intel.com>
Thu, 30 Sep 2021 16:59:07 +0000 (09:59 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 13 Oct 2021 23:03:50 +0000 (23:03 +0000)
commit978d428ec3ca2520c217819901c8465235c45c5e
treee2af29a9052466ebe6e6cd4dec17ab18b2c34a1b
parent6ed6abd6c116e8599876a2876b77e172e800b13e
UefiPayloadPkg: Add PCI root bridge info hob support for SBL

Current UefiPayloadPkg can suport PCI root bridge info HOB
provided by bootloader. For UniversalPayload, bootloader can
directly provide this HOB for payload consumption. However,
for legacy UEFI payload, it is required to migrate the HOB
information from bootloader HOB space to UEFI payload HOB
space. This patch added the missing part for the bootloader
ParseLib in order to support both legacy and universal UEFI
payload.

This patch was tested on Slim Bootloader with latest UEFI
payload, and it worked as expected.

Cc: Ray Ni <ray.ni@intel.com>
Cc: Guo Dong <guo.dong@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Signed-off-by: Maurice Ma <maurice.ma@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
UefiPayloadPkg/Include/Library/BlParseLib.h
UefiPayloadPkg/Library/CbParseLib/CbParseLib.c
UefiPayloadPkg/Library/SblParseLib/SblParseLib.c
UefiPayloadPkg/Library/SblParseLib/SblParseLib.inf
UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c