TianoCore EDK2 master
Loading...
Searching...
No Matches
PostCode.c
Go to the documentation of this file.
1
9#include <Base.h>
10
11#include <Library/PostCodeLib.h>
12#include <Library/DebugLib.h>
13#include <Library/PcdLib.h>
14
33UINT32
34EFIAPI
36 IN UINT32 Value
37 )
38{
39 DEBUG ((DEBUG_INFO, "POST %08x\n", Value));
40 return Value;
41}
42
67UINT32
68EFIAPI
70 IN UINT32 Value,
71 IN CONST CHAR8 *Description OPTIONAL
72 )
73{
74 DEBUG ((DEBUG_INFO, "POST %08x - %s\n", Value, Description));
75 return Value;
76}
77
90BOOLEAN
91EFIAPI
93 VOID
94 )
95{
96 return (BOOLEAN)((PcdGet8 (PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_ENABLED) != 0);
97}
98
111BOOLEAN
112EFIAPI
114 VOID
115 )
116{
117 return (BOOLEAN)((PcdGet8 (PcdPostCodePropertyMask) & POST_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED) != 0);
118}
UINT32 EFIAPI PostCode(IN UINT32 Value)
Definition: PostCode.c:35
BOOLEAN EFIAPI PostCodeDescriptionEnabled(VOID)
Definition: PostCode.c:113
UINT32 EFIAPI PostCodeWithDescription(IN UINT32 Value, IN CONST CHAR8 *Description OPTIONAL)
Definition: PostCode.c:69
BOOLEAN EFIAPI PostCodeEnabled(VOID)
Definition: PostCode.c:92
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define DEBUG(Expression)
Definition: DebugLib.h:434
#define PcdGet8(TokenName)
Definition: PcdLib.h:336