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>
This commit is contained in:
Ma, Maurice
2021-09-30 09:59:07 -07:00
committed by mergify[bot]
parent 6ed6abd6c1
commit 978d428ec3
5 changed files with 84 additions and 2 deletions

View File

@@ -560,3 +560,19 @@ ParseGfxDeviceInfo (
return RETURN_NOT_FOUND;
}
/**
Parse and handle the misc info provided by bootloader
@retval RETURN_SUCCESS The misc information was parsed successfully.
@retval RETURN_NOT_FOUND Could not find required misc info.
@retval RETURN_OUT_OF_RESOURCES Insufficant memory space.
**/
RETURN_STATUS
EFIAPI
ParseMiscInfo (
VOID
)
{
return RETURN_SUCCESS;
}