42 IN OUT VOID *Context OPTIONAL,
53 UINT8 ObjectNodeInfoArray[6];
64 Status1 = EFI_INVALID_PARAMETER;
98 if (EFI_ERROR (Status1)) {
100 ContinueEnum =
FALSE;
116 ObjectNodeInfoArray[Index++] = ObjectNode->AmlByteEncoding->OpCode;
117 if (ObjectNode->AmlByteEncoding->OpCode == AML_EXT_OP) {
118 ObjectNodeInfoArray[Index++] = ObjectNode->AmlByteEncoding->SubOpCode;
125 &ObjectNodeInfoArray[Index]
134 if (EFI_ERROR (Status1)) {
136 ContinueEnum =
FALSE;
142 if (Status !=
NULL) {
178 IN UINT8 *Buffer OPTIONAL,
179 IN OUT UINT32 *BufferSize
187 (BufferSize ==
NULL))
190 return EFI_INVALID_PARAMETER;
198 if (EFI_ERROR (Status)) {
209 if (TableSize != RootNode->SdtHeader->Length) {
211 return EFI_INVALID_PARAMETER;
215 if ((TableSize < *BufferSize) || (Buffer ==
NULL)) {
216 *BufferSize = TableSize;
227 if (EFI_ERROR (Status)) {
235 (UINT8 *)RootNode->SdtHeader,
238 if (EFI_ERROR (Status)) {
250 if (EFI_ERROR (Status)) {
288 return EFI_INVALID_PARAMETER;
301 if (EFI_ERROR (Status)) {
307 if (TableBuffer ==
NULL) {
310 "ERROR: Failed to allocate memory for Table Buffer."
313 return EFI_OUT_OF_RESOURCES;
322 if (EFI_ERROR (Status)) {
#define AML_HAS_PKG_LENGTH
#define AML_IS_PSEUDO_OPCODE
BOOLEAN EFIAPI AmlNodeCompareOpCode(IN CONST AML_OBJECT_NODE *ObjectNode, IN UINT8 OpCode, IN UINT8 SubOpCode)
BOOLEAN EFIAPI AmlNodeHasAttribute(IN CONST AML_OBJECT_NODE *ObjectNode, IN AML_OP_ATTRIBUTE Attribute)
#define IS_AML_ROOT_NODE(Node)
#define IS_AML_OBJECT_NODE(Node)
#define IS_AML_DATA_NODE(Node)
#define IS_AML_NODE_VALID(Node)
EFI_STATUS EFIAPI AmlSerializeDefinitionBlock(IN AML_ROOT_NODE *RootNode, OUT EFI_ACPI_DESCRIPTION_HEADER **Table)
EFI_STATUS EFIAPI AmlSerializeTree(IN AML_ROOT_NODE *RootNode, IN UINT8 *Buffer OPTIONAL, IN OUT UINT32 *BufferSize)
STATIC BOOLEAN EFIAPI AmlSerializeNodeCallback(IN AML_NODE_HEADER *Node, IN OUT VOID *Context OPTIONAL, IN OUT EFI_STATUS *Status OPTIONAL)
EFI_STATUS EFIAPI AmlStreamWrite(IN AML_STREAM *Stream, IN CONST UINT8 *Buffer, IN UINT32 Size)
EFI_STATUS EFIAPI AmlStreamInit(IN OUT AML_STREAM *Stream, IN UINT8 *Buffer, IN UINT32 MaxBufferSize, IN EAML_STREAM_DIRECTION Direction)
@ EAmlStreamDirectionForward
BOOLEAN EFIAPI AmlIsNodeFixedArgument(IN CONST AML_NODE_HEADER *Node, OUT EAML_PARSE_INDEX *IndexPtr)
EFI_STATUS EFIAPI AcpiPlatformChecksum(IN EFI_ACPI_DESCRIPTION_HEADER *AcpiTable)
EFI_STATUS EFIAPI AmlComputeSize(IN CONST AML_NODE_HEADER *Node, IN OUT UINT32 *Size)
UINT8 EFIAPI AmlSetPkgLength(IN UINT32 Length, OUT UINT8 *Buffer)
VOID *EFIAPI AllocateZeroPool(IN UINTN AllocationSize)
VOID EFIAPI FreePool(IN VOID *Buffer)
#define DEBUG(Expression)
AML_NODE_HANDLE EFIAPI AmlGetParent(IN AML_NODE_HANDLE Node)
BOOLEAN EFIAPI AmlEnumTree(IN AML_NODE_HANDLE Node, IN EDKII_AML_TREE_ENUM_CALLBACK CallBack, IN OUT VOID *Context OPTIONAL, OUT EFI_STATUS *Status OPTIONAL)
#define AML_METHOD_INVOC_OP
enum EAmlParseIndex EAML_PARSE_INDEX
@ EAmlParseIndexTerm1
Second fixed argument index.
UINT8 * Buffer
Pointer to a buffer.