2 This library will parse the coreboot table in memory and extract those required
5 Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #include <Guid/GraphicsInfoHob.h>
11 #include <Guid/MemoryMapInfoGuid.h>
12 #include <Guid/SerialPortInfoGuid.h>
13 #include <Guid/SystemTableInfoGuid.h>
14 #include <Guid/AcpiBoardInfoGuid.h>
16 #ifndef __BOOTLOADER_PARSE_LIB__
17 #define __BOOTLOADER_PARSE_LIB__
19 #define GET_BOOTLOADER_PARAMETER() PcdGet64 (PcdBootloaderParameter)
21 typedef RETURN_STATUS \
22 (*BL_MEM_INFO_CALLBACK
) (MEMROY_MAP_ENTRY
*MemoryMapEntry
, VOID
*Param
);
25 This function retrieves the parameter base address from boot loader.
27 This function will get bootloader specific parameter address for UEFI payload.
28 e.g. HobList pointer for Slim Bootloader, and coreboot table header for Coreboot.
30 @retval NULL Failed to find the GUID HOB.
31 @retval others GUIDed HOB data pointer.
41 Acquire the memory map information.
43 @param MemInfoCallback The callback routine
44 @param Params Pointer to the callback routine parameter
46 @retval RETURN_SUCCESS Successfully find out the memory information.
47 @retval RETURN_NOT_FOUND Failed to find the memory information.
53 IN BL_MEM_INFO_CALLBACK MemInfoCallback
,
58 Acquire acpi table and smbios table from slim bootloader
60 @param SystemTableInfo Pointer to the system table info
62 @retval RETURN_SUCCESS Successfully find out the tables.
63 @retval RETURN_NOT_FOUND Failed to find the tables.
69 OUT SYSTEM_TABLE_INFO
*SystemTableInfo
74 Find the serial port information
76 @param SERIAL_PORT_INFO Pointer to serial port info structure
78 @retval RETURN_SUCCESS Successfully find the serial port information.
79 @retval RETURN_NOT_FOUND Failed to find the serial port information .
85 OUT SERIAL_PORT_INFO
*SerialPortInfo
90 Find the video frame buffer information
92 @param GfxInfo Pointer to the EFI_PEI_GRAPHICS_INFO_HOB structure
94 @retval RETURN_SUCCESS Successfully find the video frame buffer information.
95 @retval RETURN_NOT_FOUND Failed to find the video frame buffer information .
101 OUT EFI_PEI_GRAPHICS_INFO_HOB
*GfxInfo
105 Find the video frame buffer device information
107 @param GfxDeviceInfo Pointer to the EFI_PEI_GRAPHICS_DEVICE_INFO_HOB structure
109 @retval RETURN_SUCCESS Successfully find the video frame buffer information.
110 @retval RETURN_NOT_FOUND Failed to find the video frame buffer information .
116 OUT EFI_PEI_GRAPHICS_DEVICE_INFO_HOB
*GfxDeviceInfo