9#ifndef AML_NODE_DEFINES_H_
10#define AML_NODE_DEFINES_H_
121#define IS_AML_NODE_VALID(Node) \
123 ((((CONST AML_NODE_HEADER*)Node)->NodeType > EAmlNodeUnknown) || \
124 (((CONST AML_NODE_HEADER*)Node)->NodeType < EAmlNodeMax)))
133#define IS_AML_ROOT_NODE(Node) \
135 (((CONST AML_NODE_HEADER*)Node)->NodeType == EAmlNodeRoot))
144#define IS_AML_OBJECT_NODE(Node) \
146 (((CONST AML_NODE_HEADER*)Node)->NodeType == EAmlNodeObject))
155#define IS_AML_DATA_NODE(Node) \
157 (((CONST AML_NODE_HEADER*)Node)->NodeType == EAmlNodeData))
166#define AML_NODE_HAS_PARENT(Node) \
167 (IS_AML_NODE_VALID (Node) && \
168 (((CONST AML_NODE_HEADER*)Node)->Parent != NULL))
178#define AML_NODE_IS_DETACHED(Node) \
179 (IS_AML_NODE_VALID (Node) && \
180 IsListEmpty ((CONST LIST_ENTRY*)Node) && \
181 (((CONST AML_NODE_HEADER*)Node)->Parent == NULL))
struct AmlRootNode AML_ROOT_NODE
AML_NODE_HEADER * AML_NODE_HANDLE
AML_ROOT_NODE * AML_ROOT_NODE_HANDLE
struct AmlNodeHeader AML_NODE_HEADER
struct AmlDataNode AML_DATA_NODE
struct AmlObjectNode AML_OBJECT_NODE
AML_OBJECT_NODE * AML_OBJECT_NODE_HANDLE
AML_DATA_NODE * AML_DATA_NODE_HANDLE
enum EAmlNodeType EAML_NODE_TYPE
enum EAmlNodeDataType EAML_NODE_DATA_TYPE
@ EAmlParseIndexMax
Maximum fixed argument index (=6).
AML_NODE_HEADER NodeHeader
Header information. Must be the first field of the struct.
EAML_NODE_DATA_TYPE DataType
UINT8 * Buffer
Buffer containing the data stored by this node.
UINT32 Size
Size of the Buffer.
CONST AML_BYTE_ENCODING * AmlByteEncoding
AML_NODE_HEADER NodeHeader
Header information. Must be the first field of the struct.
AML_NODE_HEADER * FixedArgs[EAmlParseIndexMax]
AML_NODE_HEADER NodeHeader
Header information. Must be the first field of the struct.
EFI_ACPI_DESCRIPTION_HEADER * SdtHeader
ACPI DSDT/SSDT header.