TianoCore EDK2 master
Loading...
Searching...
No Matches
AmlDbgPrint.h
Go to the documentation of this file.
1
10#ifndef AML_PRINT_H_
11#define AML_PRINT_H_
12
13/* This header file does not include internal Node definition,
14 i.e. AML_ROOT_NODE, AML_OBJECT_NODE, etc. The node definitions
15 must be included by the caller file. The function prototypes must
16 only expose AML_NODE_HANDLE, AML_ROOT_NODE_HANDLE, etc. node
17 definitions.
18 This allows to keep the functions defined here both internal and
19 potentially external. If necessary, any function of this file can
20 be exposed externally.
21 The Api folder is internal to the AmlLib, but should only use these
22 functions. They provide a "safe" way to interact with the AmlLib.
23*/
24
25#if !defined (MDEPKG_NDEBUG)
26
27 #include <AmlInclude.h>
28
46VOID
47EFIAPI
49 IN CONST UINT8 *Ptr,
50 IN UINT32 Length
51 );
52
61VOID
62EFIAPI
64 IN UINT32 ErrorLevel,
65 IN CONST CHAR8 *Buffer,
66 IN UINT32 Size
67 );
68
74VOID
75EFIAPI
77 IN CONST CHAR8 *Buffer
78 );
79
85VOID
86EFIAPI
88 IN CONST CHAR8 *Buffer,
89 IN BOOLEAN NewLine
90 );
91
99VOID
100EFIAPI
103 );
104
112VOID
113EFIAPI
116 );
117
131EFIAPI
133 IN AML_ROOT_NODE_HANDLE RootNode
134 );
135
136/* Macros to encapsulate Aml Debug Print APIs.
137*/
138
139#define AMLDBG_DUMP_RAW(Ptr, Length) \
140 AmlDbgDumpRaw (Ptr, Length)
141
142#define AMLDBG_PRINT_CHARS(ErrorLevel, Buffer, Size) \
143 AmlDbgPrintChars (ErrorLevel, Buffer, Size)
144
145#define AMLDBG_PRINT_NAMESEG(Buffer) \
146 AmlDbgPrintNameSeg (Buffer)
147
148#define AMLDBG_PRINT_NAMESTR(Buffer, NewLine) \
149 AmlDbgPrintNameString (Buffer,NewLine)
150
151#define AMLDBG_PRINT_NODE(Node) \
152 AmlDbgPrintNode (Node)
153
154#define AMLDBG_PRINT_TREE(Node) \
155 AmlDbgPrintTree (Node)
156
157#define AMLDBG_PRINT_NAMESPACE(RootNode) \
158 AmlDbgPrintNameSpace (RootNode)
159
160#else
161
162#define AMLDBG_DUMP_RAW(Ptr, Length)
163
164#define AMLDBG_PRINT_CHARS(ErrorLevel, Buffer, Size)
165
166#define AMLDBG_PRINT_NAMESEG(Buffer)
167
168#define AMLDBG_PRINT_NAMESTR(Buffer, NewLine)
169
170#define AMLDBG_PRINT_NODE(Node)
171
172#define AMLDBG_PRINT_TREE(Node)
173
174#define AMLDBG_PRINT_NAMESPACE(RootNode)
175
176#endif // MDEPKG_NDEBUG
177
178#endif // AML_PRINT_H_
VOID EFIAPI AmlDbgPrintNameString(IN CONST CHAR8 *Buffer, IN BOOLEAN NewLine)
Definition: AmlDbgPrint.c:121
VOID EFIAPI AmlDbgPrintNameSeg(IN CONST CHAR8 *Buffer)
Definition: AmlDbgPrint.c:81
VOID EFIAPI AmlDbgDumpRaw(IN CONST UINT8 *Ptr, IN UINT32 Length)
Definition: AmlDbgPrint.c:506
void * AML_ROOT_NODE_HANDLE
Definition: AmlLib.h:51
void * AML_NODE_HANDLE
Definition: AmlLib.h:47
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID EFIAPI AmlDbgPrintNode(IN AML_NODE_HANDLE Node)
VOID EFIAPI AmlDbgPrintTree(IN AML_NODE_HANDLE Node)
VOID EFIAPI AmlDbgPrintChars(IN UINT32 ErrorLevel, IN CONST CHAR8 *Buffer, IN UINT32 Size)
Definition: AmlDbgPrint.c:56
EFI_STATUS EFIAPI AmlDbgPrintNameSpace(IN AML_ROOT_NODE_HANDLE RootNode)