241typedef struct aml_token_props
252typedef struct aml_token
358 if (token.
num != expected)
const char * aml_token_type_to_string(aml_token_type_t type)
Convert a token type to a string.
aml_token_num_t
Token numbers.
const aml_token_props_t amlTokenProps[AML_MAX_TOKEN]
Token properties array indexed by aml_token_num_t.
static uint64_t aml_token_expect(aml_term_list_ctx_t *ctx, aml_token_num_t expected)
Reads a token from the AML stream and verifies it matches the expected token.
aml_token_type_t
Token Type.
static const aml_token_props_t * aml_token_lookup(aml_token_num_t num)
Lookup token properties.
static void aml_token_read(aml_term_list_ctx_t *ctx, aml_token_t *out)
Attempt to read a token from the AML stream.
static void aml_token_peek(aml_term_list_ctx_t *ctx, aml_token_t *out)
Attempt to read a token from the AML stream, without advancing the instruction pointer.
@ AML_CREATE_BIT_FIELD_OP
@ AML_FIND_SET_RIGHT_BIT_OP
@ AML_CREATE_QWORD_FIELD_OP
@ AML_TO_DECIMAL_STRING_OP
@ AML_DEPRECATED_PROCESSOR_OP
@ AML_CREATE_BYTE_FIELD_OP
@ AML_CREATE_WORD_FIELD_OP
@ AML_FIND_SET_LEFT_BIT_OP
@ AML_CREATE_DWORD_FIELD_OP
@ AML_ENCODING_GROUP_TERM
@ AML_ENCODING_GROUP_DATA
@ AML_ENCODING_GROUP_DEBUG
@ AML_ENCODING_GROUP_LOCAL
@ AML_ENCODING_GROUP_NAME
@ AML_ENCODING_GROUP_NONE
@ AML_TOKEN_TYPE_NAMED
Is a NamedObj (section 20.2.5.2).
@ AML_TOKEN_TYPE_NAMESPACE_MODIFIER
Is a Namespace Modifier Object (section 20.2.5.1).
@ AML_TOKEN_TYPE_DEBUG
Is a Debug Object (section 20.2.6.3).
@ AML_TOKEN_TYPE_COMPUTATIONAL
Is part of a ComputationalData Object (section 20.2.3).
@ AML_TOKEN_TYPE_EXPRESSION
Is an Expression Opcode (section 20.2.5.4).
@ AML_TOKEN_TYPE_NAME
Is a Name Object (section 20.2.2).
@ AML_TOKEN_TYPE_STATEMENT
Is a Statement Opcode (section 20.2.5.3).
@ AML_TOKEN_TYPE_ARG
Is an Arg Object (section 20.2.6.1).
@ AML_TOKEN_TYPE_LOCAL
Is a Local Object (section 20.2.6.2).
#define errno
Error number variable.
#define EILSEQ
Illegal byte sequence.
#define NULL
Pointer error value.
#define ERR
Integer error value.
Context for reading a TermList.
aml_encoding_group_t group
const aml_token_props_t * props