TianoCore EDK2 master
Loading...
Searching...
No Matches
AmlString.h
Go to the documentation of this file.
1
10#ifndef AML_STRING_H_
11#define AML_STRING_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#include <AmlInclude.h>
26
42BOOLEAN
43EFIAPI
45 IN UINT32 Root,
46 IN UINT32 ParentPrefix,
47 IN UINT32 SegCount
48 );
49
64EFIAPI
66 OUT CHAR8 *DstBuffer,
67 IN UINT32 MaxDstBufferSize,
68 IN CONST CHAR8 *SrcBuffer,
69 IN UINT32 Count
70 );
71
82BOOLEAN
83EFIAPI
85 IN CONST CHAR8 *Buffer
86 );
87
103BOOLEAN
104EFIAPI
106 IN CHAR8 Ch
107 );
108
128BOOLEAN
129EFIAPI
131 IN CHAR8 Ch
132 );
133
145BOOLEAN
146EFIAPI
148 IN CONST CHAR8 *AslBuffer,
149 OUT UINT32 *Size
150 );
151
162BOOLEAN
163EFIAPI
165 IN CONST CHAR8 *AmlBuffer
166 );
167
186EFIAPI
188 IN CONST CHAR8 *Buffer,
189 OUT UINT32 *Root,
190 OUT UINT32 *ParentPrefix,
191 OUT UINT32 *SegCount
192 );
193
213EFIAPI
215 IN CONST CHAR8 *Buffer,
216 OUT UINT32 *Root,
217 OUT UINT32 *ParentPrefix,
218 OUT UINT32 *SegCount
219 );
220
233UINT32
234EFIAPI
236 IN UINT32 Root,
237 IN UINT32 ParentPrefix,
238 IN UINT32 SegCount
239 );
240
253UINT32
254EFIAPI
256 IN UINT32 Root,
257 IN UINT32 ParentPrefix,
258 IN UINT32 SegCount
259 );
260
270EFIAPI
272 IN CONST CHAR8 *AslPath,
273 OUT UINT32 *AslPathSizePtr
274 );
275
285EFIAPI
287 IN CONST CHAR8 *AmlPath,
288 OUT UINT32 *AmlPathSizePtr
289 );
290
303EFIAPI
305 IN CONST CHAR8 *AslPath,
306 OUT CHAR8 **OutAmlPath
307 );
308
321EFIAPI
323 IN CONST CHAR8 *AmlPath,
324 OUT CHAR8 **OutAslPath
325 );
326
335BOOLEAN
336EFIAPI
338 IN CONST CHAR8 *AslName1,
339 IN CONST CHAR8 *AslName2
340 );
341
350BOOLEAN
351EFIAPI
353 IN CONST CHAR8 *AmlName1,
354 IN CONST CHAR8 *AmlName2
355 );
356
371BOOLEAN
372EFIAPI
374 IN CONST CHAR8 *AmlName1,
375 IN CONST CHAR8 *AslName2
376 );
377
392CONST
393CHAR8 *
394EFIAPI
396 IN CONST CHAR8 *AmlPath,
397 IN UINT32 Root,
398 IN UINT32 ParentPrefix
399 );
400
401#endif // AML_STRING_H_
EFI_STATUS EFIAPI ConvertAmlNameToAslName(IN CONST CHAR8 *AmlPath, OUT CHAR8 **OutAslPath)
Definition: AmlString.c:761
BOOLEAN EFIAPI AslCompareNameString(IN CONST CHAR8 *AslName1, IN CONST CHAR8 *AslName2)
Definition: AmlString.c:873
EFI_STATUS EFIAPI AmlParseNameStringInfo(IN CONST CHAR8 *Buffer, OUT UINT32 *Root, OUT UINT32 *ParentPrefix, OUT UINT32 *SegCount)
Definition: AmlString.c:371
EFI_STATUS EFIAPI AmlUpperCaseMemCpyS(OUT CHAR8 *DstBuffer, IN UINT32 MaxDstBufferSize, IN CONST CHAR8 *SrcBuffer, IN UINT32 Count)
Definition: AmlString.c:65
BOOLEAN EFIAPI AmlCompareNameString(IN CONST CHAR8 *AmlName1, IN CONST CHAR8 *AmlName2)
Definition: AmlString.c:919
BOOLEAN EFIAPI CompareAmlWithAslNameString(IN CONST CHAR8 *AmlName1, IN CONST CHAR8 *AslName2)
Definition: AmlString.c:971
BOOLEAN EFIAPI AmlIsNameChar(IN CHAR8 Ch)
Definition: AmlString.c:176
UINT32 EFIAPI AmlComputeNameStringSize(IN UINT32 Root, IN UINT32 ParentPrefix, IN UINT32 SegCount)
Definition: AmlString.c:481
BOOLEAN EFIAPI AmlIsLeadNameChar(IN CHAR8 Ch)
Definition: AmlString.c:144
BOOLEAN EFIAPI AslIsNameSeg(IN CONST CHAR8 *AslBuffer, OUT UINT32 *Size)
Definition: AmlString.c:200
BOOLEAN EFIAPI AmlIsRootPath(IN CONST CHAR8 *Buffer)
Definition: AmlString.c:112
EFI_STATUS EFIAPI AslParseNameStringInfo(IN CONST CHAR8 *Buffer, OUT UINT32 *Root, OUT UINT32 *ParentPrefix, OUT UINT32 *SegCount)
Definition: AmlString.c:286
EFI_STATUS EFIAPI AmlGetNameStringSize(IN CONST CHAR8 *AmlPath, OUT UINT32 *AmlPathSizePtr)
Definition: AmlString.c:547
EFI_STATUS EFIAPI ConvertAslNameToAmlName(IN CONST CHAR8 *AslPath, OUT CHAR8 **OutAmlPath)
Definition: AmlString.c:598
CONST CHAR8 *EFIAPI AmlGetFirstNameSeg(IN CONST CHAR8 *AmlPath, IN UINT32 Root, IN UINT32 ParentPrefix)
Definition: AmlString.c:1021
UINT32 EFIAPI AslComputeNameStringSize(IN UINT32 Root, IN UINT32 ParentPrefix, IN UINT32 SegCount)
Definition: AmlString.c:439
BOOLEAN EFIAPI AmlIsNameSeg(IN CONST CHAR8 *AmlBuffer)
Definition: AmlString.c:244
BOOLEAN EFIAPI AmlIsNameString(IN UINT32 Root, IN UINT32 ParentPrefix, IN UINT32 SegCount)
Definition: AmlString.c:32
EFI_STATUS EFIAPI AslGetNameStringSize(IN CONST CHAR8 *AslPath, OUT UINT32 *AslPathSizePtr)
Definition: AmlString.c:516
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29