28#define AML_IS_LEAD_NAME_CHAR(token) \
29 (((token)->num >= AML_NAME_CHAR_A && (token)->num <= AML_NAME_CHAR_Z) || (token)->num == AML_NAME_CHAR)
37#define AML_IS_DIGIT_CHAR(token) (((token)->num >= AML_DIGIT_CHAR_0 && (token)->num <= AML_DIGIT_CHAR_9))
45#define AML_IS_NAME_CHAR(token) (AML_IS_DIGIT_CHAR(token) || AML_IS_LEAD_NAME_CHAR(token))
uint64_t aml_seg_count_read(aml_term_list_ctx_t *ctx, uint8_t *out)
Reads the next data as a SegCount structure from the AML bytecode stream.
uint64_t aml_name_string_read(aml_term_list_ctx_t *ctx, aml_name_string_t *out)
Reads the next data as a NameString structure from the AML bytecode stream.
aml_object_t * aml_name_string_read_and_resolve(aml_term_list_ctx_t *ctx)
Reads the next data as a NameString structure from the AML bytecode stream and resolves it to a objec...
uint64_t aml_null_name_read(aml_term_list_ctx_t *ctx)
uint64_t aml_multi_name_path_read(aml_term_list_ctx_t *ctx, aml_name_seg_t **outSegments, uint64_t *outSegCount)
Reads the next data as a MultiNamePath structure from the AML bytecode stream.
aml_object_t * aml_simple_name_read_and_resolve(aml_term_list_ctx_t *ctx)
Reads a SimpleName structure from the AML byte stream and resolves it to a object.
uint64_t aml_name_seg_read(aml_term_list_ctx_t *ctx, aml_name_seg_t **out)
Reads the next data as a NameSeg from the AML bytecode stream.
uint64_t aml_name_path_read(aml_term_list_ctx_t *ctx, aml_name_path_t *out)
Reads the next data as a NamePath structure from the AML bytecode stream.
aml_object_t * aml_super_name_read_and_resolve(aml_term_list_ctx_t *ctx)
Reads a SuperName structure from the AML byte stream and resolves it to a object.
uint64_t aml_root_char_read(aml_term_list_ctx_t *ctx, aml_root_char_t *out)
Reads the next data as a RootChar from the AML bytecode stream.
uint64_t aml_target_read_and_resolve(aml_term_list_ctx_t *ctx, aml_object_t **out)
Reads a Target structure from the AML byte stream and resolves it to a object.
uint64_t aml_dual_name_path_read(aml_term_list_ctx_t *ctx, aml_name_seg_t **out)
Reads the next data as a DualNamePath structure from the AML bytecode stream.
uint64_t aml_prefix_path_read(aml_term_list_ctx_t *ctx, aml_prefix_path_t *out)
Reads the next data as a PrefixPath structure from the AML bytecode stream.
Represents the NamePath, DualNamePath, MultiNamePath and NullPath structures.
aml_name_seg_t * segments
Array of segments in the name path.
uint64_t segmentCount
Number of segments in the name path.
aml_prefix_path_t prefixPath
bool present
If the first character is a root character ('\'), if yes, the name string is absolute.
Context for reading a TermList.