TianoCore EDK2 master
|
#include <PiDxe.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/PcdLib.h>
#include <Library/IoLib.h>
#include <Library/HobLib.h>
#include <Library/BlParseLib.h>
#include <IndustryStandard/Acpi.h>
#include <UniversalPayload/PciRootBridges.h>
Go to the source code of this file.
Functions | |
VOID *EFIAPI | GetParameterBase (VOID) |
VOID * | GetGuidHobDataFromSbl (IN EFI_GUID *Guid) |
RETURN_STATUS EFIAPI | ParseMemoryInfo (IN BL_MEM_INFO_CALLBACK MemInfoCallback, IN VOID *Params) |
RETURN_STATUS EFIAPI | ParseSmbiosTable (OUT UNIVERSAL_PAYLOAD_SMBIOS_TABLE *SmbiosTable) |
RETURN_STATUS EFIAPI | ParseAcpiTableInfo (OUT UNIVERSAL_PAYLOAD_ACPI_TABLE *AcpiTableHob) |
RETURN_STATUS EFIAPI | ParseSerialInfo (OUT SERIAL_PORT_INFO *SerialPortInfo) |
RETURN_STATUS EFIAPI | ParseGfxInfo (OUT EFI_PEI_GRAPHICS_INFO_HOB *GfxInfo) |
RETURN_STATUS EFIAPI | ParseGfxDeviceInfo (OUT EFI_PEI_GRAPHICS_DEVICE_INFO_HOB *GfxDeviceInfo) |
RETURN_STATUS EFIAPI | ParseMiscInfo (VOID) |
This library will parse the Slim Bootloader to get required information.
Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SblParseLib.c.
This function retrieves a GUIDed HOB data from Slim Bootloader.
This function will search SBL HOB list to find the first GUIDed HOB that its GUID matches Guid.
[in] | Guid | A pointer to HOB GUID to search. |
NULL | Failed to find the GUID HOB. |
others | GUIDed HOB data pointer. |
Definition at line 62 of file SblParseLib.c.
VOID *EFIAPI GetParameterBase | ( | VOID | ) |
This function retrieves the parameter base address from boot loader.
This function will get bootloader specific parameter address for UEFI payload. e.g. HobList pointer for Slim Bootloader, and coreboot table header for Coreboot.
NULL | Failed to find the GUID HOB. |
others | GUIDed HOB data pointer. |
Definition at line 32 of file SblParseLib.c.
RETURN_STATUS EFIAPI ParseAcpiTableInfo | ( | OUT UNIVERSAL_PAYLOAD_ACPI_TABLE * | AcpiTableHob | ) |
Acquire ACPI table from slim bootloader.
AcpiTableHob | Pointer to the ACPI table info. |
RETURN_SUCCESS | Successfully find out the tables. |
RETURN_NOT_FOUND | Failed to find the tables. |
Definition at line 151 of file SblParseLib.c.
RETURN_STATUS EFIAPI ParseGfxDeviceInfo | ( | OUT EFI_PEI_GRAPHICS_DEVICE_INFO_HOB * | GfxDeviceInfo | ) |
Find the video frame buffer device information
GfxDeviceInfo | Pointer to the EFI_PEI_GRAPHICS_DEVICE_INFO_HOB structure |
RETURN_SUCCESS | Successfully find the video frame buffer information. |
RETURN_NOT_FOUND | Failed to find the video frame buffer information. |
Definition at line 234 of file SblParseLib.c.
RETURN_STATUS EFIAPI ParseGfxInfo | ( | OUT EFI_PEI_GRAPHICS_INFO_HOB * | GfxInfo | ) |
Find the video frame buffer information
GfxInfo | Pointer to the EFI_PEI_GRAPHICS_INFO_HOB structure |
RETURN_SUCCESS | Successfully find the video frame buffer information. |
RETURN_NOT_FOUND | Failed to find the video frame buffer information . |
Definition at line 207 of file SblParseLib.c.
Acquire the memory map information.
MemInfoCallback | The callback routine |
Params | Pointer to the callback routine parameter |
RETURN_SUCCESS | Successfully find out the memory information. |
RETURN_NOT_FOUND | Failed to find the memory information. |
Definition at line 91 of file SblParseLib.c.
RETURN_STATUS EFIAPI ParseMiscInfo | ( | VOID | ) |
Parse and handle the misc info provided by bootloader
RETURN_SUCCESS | The misc information was parsed successfully. |
RETURN_NOT_FOUND | Could not find required misc info. |
RETURN_OUT_OF_RESOURCES | Insufficant memory space. |
Definition at line 260 of file SblParseLib.c.
RETURN_STATUS EFIAPI ParseSerialInfo | ( | OUT SERIAL_PORT_INFO * | SerialPortInfo | ) |
Find the serial port information
[out] | SerialPortInfo | Pointer to serial port info structure |
RETURN_SUCCESS | Successfully find the serial port information. |
RETURN_NOT_FOUND | Failed to find the serial port information . |
Definition at line 179 of file SblParseLib.c.
RETURN_STATUS EFIAPI ParseSmbiosTable | ( | OUT UNIVERSAL_PAYLOAD_SMBIOS_TABLE * | SmbiosTable | ) |
Acquire SMBIOS table from slim bootloader.
SmbiosTable | Pointer to the SMBIOS table info. |
RETURN_SUCCESS | Successfully find out the tables. |
RETURN_NOT_FOUND | Failed to find the tables. |
Definition at line 123 of file SblParseLib.c.