PatchworkOS
Loading...
Searching...
No Matches
name.h File Reference
#include <stdint.h>
#include <sys/list.h>

Go to the source code of this file.

Data Structures

struct  aml_prefix_path_t
 A PrefixPath structure. More...
 
struct  aml_root_char_t
 A RootChar structure. More...
 
struct  aml_name_path_t
 Represents the NamePath, DualNamePath, MultiNamePath and NullPath structures. More...
 
struct  aml_name_string_t
 A NameString structure. More...
 

Macros

#define AML_IS_LEAD_NAME_CHAR(token)    (((token)->num >= AML_NAME_CHAR_A && (token)->num <= AML_NAME_CHAR_Z) || (token)->num == AML_NAME_CHAR)
 Check if a token is a LeadNameChar structure.
 
#define AML_IS_DIGIT_CHAR(token)   (((token)->num >= AML_DIGIT_CHAR_0 && (token)->num <= AML_DIGIT_CHAR_9))
 Check if a token is a DigitChar structure.
 
#define AML_IS_NAME_CHAR(token)   (AML_IS_DIGIT_CHAR(token) || AML_IS_LEAD_NAME_CHAR(token))
 Check if a token is a NameChar structure.
 

Typedefs

typedef struct aml_term_list_ctx aml_term_list_ctx_t
 
typedef struct aml_object aml_object_t
 
typedef uint32_t aml_name_seg_t
 

Functions

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_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_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_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.
 
uint64_t aml_null_name_read (aml_term_list_ctx_t *ctx)
 
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.
 
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.
 
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_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_taml_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 object.
 
aml_object_taml_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.
 
aml_object_taml_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_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.
 

Typedef Documentation

◆ aml_object_t

typedef struct aml_object aml_object_t

Definition at line 7 of file name.h.

◆ aml_term_list_ctx_t

typedef struct aml_term_list_ctx aml_term_list_ctx_t

Definition at line 6 of file name.h.