TianoCore EDK2 master
Loading...
Searching...
No Matches
PostCodeLib.h
Go to the documentation of this file.
1
9#ifndef __POST_CODE_LIB_H__
10#define __POST_CODE_LIB_H__
11
12#define POST_CODE_PROPERTY_POST_CODE_ENABLED 0x00000008
13#define POST_CODE_PROPERTY_POST_CODE_DESCRIPTION_ENABLED 0x00000010
14
33UINT32
34EFIAPI
36 IN UINT32 Value
37 );
38
63UINT32
64EFIAPI
66 IN UINT32 Value,
67 IN CONST CHAR8 *Description OPTIONAL
68 );
69
82BOOLEAN
83EFIAPI
85 VOID
86 );
87
100BOOLEAN
101EFIAPI
103 VOID
104 );
105
117#define POST_CODE(Value) PostCodeEnabled() ? PostCode(Value) : Value
118
133#define POST_CODE_WITH_DESCRIPTION(Value, Description) \
134 PostCodeEnabled() ? \
135 (PostCodeDescriptionEnabled() ? \
136 PostCodeWithDescription(Value,Description) : \
137 PostCode(Value)) : \
138 Value
139
140#endif
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
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