19STATIC UINT32 gDebugPrintErrorLevel;
20STATIC BOOLEAN gDebugPrintErrorLevelInitialized =
FALSE;
39 return PcdGet32 (PcdDebugPrintErrorLevel);
42 if (!gDebugPrintErrorLevelInitialized) {
43 gDebugPrintErrorLevelInitialized =
TRUE;
44 gDebugPrintErrorLevel =
PcdGet32 (PcdDebugPrintErrorLevel);
46 if (GuidHob !=
NULL) {
49 (GenericHeader->Length <= GET_GUID_HOB_DATA_SIZE (GuidHob)))
51 if (GenericHeader->Revision == UEFI_PAYLOAD_DEBUG_PRINT_ERROR_LEVEL_REVISION) {
54 gDebugPrintErrorLevel = DebugPrintErrorLevel->ErrorLevel;
61 return gDebugPrintErrorLevel;
VOID *EFIAPI GetFirstGuidHob(IN CONST EFI_GUID *Guid)
VOID *EFIAPI GetHobList(VOID)
BOOLEAN EFIAPI SetDebugPrintErrorLevel(UINT32 ErrorLevel)
UINT32 EFIAPI GetDebugPrintErrorLevel(VOID)
#define PcdGet32(TokenName)
#define UNIVERSAL_PAYLOAD_SIZEOF_THROUGH_FIELD(TYPE, Field)