TianoCore EDK2 master
|
#include <Uefi.h>
#include <Pi/PiMultiPhase.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/HobLib.h>
#include <Library/HobPrintLib.h>
#include <Guid/MemoryTypeInformation.h>
#include <Guid/MemoryAllocationHob.h>
Go to the source code of this file.
Data Structures | |
struct | HOB_PRINT_HANDLER_TABLE |
Macros | |
#define | ROW_LIMITER 16 |
Functions | |
EFI_STATUS | PrintHex (IN UINT32 ErrorLevel, IN UINT8 *DataStart, IN UINT16 DataSize) |
EFI_STATUS | PrintInvalidHob (IN VOID *HobStart, IN UINT16 HobLength) |
EFI_STATUS | PrintHandOffHob (IN VOID *HobStart, IN UINT16 HobLength) |
EFI_STATUS | PrintMemoryAllocationHob (IN VOID *HobStart, IN UINT16 HobLength) |
EFI_STATUS | PrintResourceDiscriptorHob (IN VOID *HobStart, IN UINT16 HobLength) |
EFI_STATUS | PrintGuidHob (IN VOID *HobStart, IN UINT16 HobLength) |
EFI_STATUS | PrintFvHob (IN VOID *HobStart, IN UINT16 HobLength) |
EFI_STATUS | PrintCpuHob (IN VOID *HobStart, IN UINT16 HobLength) |
EFI_STATUS | PrintMemoryPoolHob (IN VOID *HobStart, IN UINT16 HobLength) |
EFI_STATUS | PrintFv2Hob (IN VOID *HobStart, IN UINT16 HobLength) |
EFI_STATUS | PrintCapsuleHob (IN VOID *HobStart, IN UINT16 HobLength) |
EFI_STATUS | PrintFv3Hob (IN VOID *HobStart, IN UINT16 HobLength) |
VOID EFIAPI | PrintHobList (IN CONST VOID *HobStart, IN HOB_PRINT_HANDLER PrintHandler) |
Variables | |
CHAR8 * | mMemoryTypeStr [] |
CHAR8 * | mResource_Type_List [] |
HOB_PRINT_HANDLER_TABLE | mHobHandles [] |
Prints all the HOBs.
Copyright (c) 2024, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file HobPrintLib.c.
#define ROW_LIMITER 16 |
Definition at line 18 of file HobPrintLib.c.
EFI_STATUS PrintCapsuleHob | ( | IN VOID * | HobStart, |
IN UINT16 | HobLength | ||
) |
Print the information in Capsule Hob.
[in] | HobStart | A pointer to the HOB of type EFI_HOB_TYPE_UEFI_CAPSULE. |
[in] | HobLength | The length in bytes of the HOB of type EFI_HOB_TYPE_UEFI_CAPSULE. |
EFI_SUCCESS | If it completed successfully. |
Definition at line 344 of file HobPrintLib.c.
EFI_STATUS PrintCpuHob | ( | IN VOID * | HobStart, |
IN UINT16 | HobLength | ||
) |
Print the information in Cpu Hob.
[in] | HobStart | A pointer to the HOB of type EFI_HOB_TYPE_CPU. |
[in] | HobLength | The length in bytes of the HOB of type EFI_HOB_TYPE_CPU. |
EFI_SUCCESS | If it completed successfully. |
Definition at line 272 of file HobPrintLib.c.
EFI_STATUS PrintFv2Hob | ( | IN VOID * | HobStart, |
IN UINT16 | HobLength | ||
) |
Print the information in Fv2Hob.
[in] | HobStart | A pointer to the HOB of type EFI_HOB_TYPE_FV2. |
[in] | HobLength | The length in bytes of the HOB of type EFI_HOB_TYPE_FV2. |
EFI_SUCCESS | If it completed successfully. |
Definition at line 320 of file HobPrintLib.c.
EFI_STATUS PrintFv3Hob | ( | IN VOID * | HobStart, |
IN UINT16 | HobLength | ||
) |
Print the information in Fv3 Hob.
[in] | HobStart | A pointer to the HOB of type EFI_HOB_TYPE_FV3. |
[in] | HobLength | The length in bytes of the HOB of type EFI_HOB_TYPE_FV3. |
EFI_SUCCESS | If it completed successfully. |
Definition at line 366 of file HobPrintLib.c.
EFI_STATUS PrintFvHob | ( | IN VOID * | HobStart, |
IN UINT16 | HobLength | ||
) |
Print the information in FV Hob.
[in] | HobStart | A pointer to the HOB of type EFI_HOB_TYPE_FV. |
[in] | HobLength | The length in bytes of the HOB of type EFI_HOB_TYPE_FV. |
EFI_SUCCESS | If it completed successfully. |
Definition at line 250 of file HobPrintLib.c.
EFI_STATUS PrintGuidHob | ( | IN VOID * | HobStart, |
IN UINT16 | HobLength | ||
) |
Print the Guid Hob using related print handle function.
[in] | HobStart | A pointer to the HOB of type EFI_HOB_TYPE_GUID_EXTENSION. |
[in] | HobLength | The length in bytes of the HOB of type EFI_HOB_TYPE_GUID_EXTENSION. |
EFI_SUCCESS | If it completed successfully. |
Definition at line 224 of file HobPrintLib.c.
EFI_STATUS PrintHandOffHob | ( | IN VOID * | HobStart, |
IN UINT16 | HobLength | ||
) |
Print the information in HandOffHob.
[in] | HobStart | A pointer to the HOB of type EFI_HOB_TYPE_HANDOFF. |
[in] | HobLength | The length in bytes of HOB of type EFI_HOB_TYPE_HANDOFF. |
EFI_SUCCESS | If it completed successfully. |
Definition at line 117 of file HobPrintLib.c.
EFI_STATUS PrintHex | ( | IN UINT32 | ErrorLevel, |
IN UINT8 * | DataStart, | ||
IN UINT16 | DataSize | ||
) |
Print the Hex value of a given range.
[in] | ErrorLevel | Error Level to print the Hex value. |
[in] | DataStart | A pointer to the start of data to be printed. |
[in] | DataSize | The length of the data to be printed. |
EFI_SUCCESS | If it completed successfully. |
Definition at line 66 of file HobPrintLib.c.
VOID EFIAPI PrintHobList | ( | IN CONST VOID * | HobStart, |
IN HOB_PRINT_HANDLER PrintHandler | OPTIONAL | ||
) |
Print all HOBs info from the HOB list.
[in] | HobStart | A pointer to the HOB list. |
[in] | PrintHandler | A custom handler to print HOB info. |
Definition at line 410 of file HobPrintLib.c.
EFI_STATUS PrintInvalidHob | ( | IN VOID * | HobStart, |
IN UINT16 | HobLength | ||
) |
Print the Hex value of the Invalid HOB.
[in] | HobStart | A pointer to the Invalid HOB. |
[in] | HobLength | The length in bytes of the Invalid HOB. |
EFI_SUCCESS | If it completed successfully. |
Definition at line 99 of file HobPrintLib.c.
EFI_STATUS PrintMemoryAllocationHob | ( | IN VOID * | HobStart, |
IN UINT16 | HobLength | ||
) |
Print the information in Memory Allocation Hob.
[in] | HobStart | A pointer to the HOB of type EFI_HOB_TYPE_MEMORY_ALLOCATION. |
[in] | HobLength | The length in bytes of HOB of type EFI_HOB_TYPE_MEMORY_ALLOCATION. |
EFI_SUCCESS | If it completed successfully. |
Definition at line 145 of file HobPrintLib.c.
EFI_STATUS PrintMemoryPoolHob | ( | IN VOID * | HobStart, |
IN UINT16 | HobLength | ||
) |
Print the information in MemoryPoolHob.
[in] | HobStart | A pointer to the HOB of type EFI_HOB_TYPE_MEMORY_POOL. |
[in] | HobLength | The length in bytes of the HOB of type EFI_HOB_TYPE_MEMORY_POOL. |
EFI_SUCCESS | If it completed successfully. |
Definition at line 294 of file HobPrintLib.c.
EFI_STATUS PrintResourceDiscriptorHob | ( | IN VOID * | HobStart, |
IN UINT16 | HobLength | ||
) |
Print the information in Resource Discriptor Hob.
[in] | HobStart | A pointer to HOB of type EFI_HOB_TYPE_RESOURCE_DESCRIPTOR. |
[in] | HobLength | The Length in bytes of HOB of type EFI_HOB_TYPE_RESOURCE_DESCRIPTOR. |
EFI_SUCCESS | If it completed successfully. |
Definition at line 196 of file HobPrintLib.c.
HOB_PRINT_HANDLER_TABLE mHobHandles[] |
Definition at line 388 of file HobPrintLib.c.
CHAR8* mMemoryTypeStr[] |
Definition at line 26 of file HobPrintLib.c.
CHAR8* mResource_Type_List[] |
Definition at line 45 of file HobPrintLib.c.