PatchworkOS
Loading...
Searching...
No Matches
data.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <stdbool.h>
6#include <stdint.h>
7
8typedef struct aml_object aml_object_t;
9typedef struct aml_package_obj aml_package_obj_t;
10typedef struct aml_term_list_ctx aml_term_list_ctx_t;
11
32
43
54
65
76
87
98
109
122
136
149
161
172
185
197
210
221
234
245
256
uint64_t aml_package_element_read(aml_term_list_ctx_t *ctx, aml_object_t *out)
Read a PackageElement structure from the AML stream.
Definition data.c:345
uint64_t aml_def_package_read(aml_term_list_ctx_t *ctx, aml_object_t *out)
Reads a DefPackage structure from the AML byte stream.
Definition data.c:407
uint64_t aml_byte_data_read(aml_term_list_ctx_t *ctx, uint8_t *out)
Read a ByteData structure from the AML stream.
Definition data.c:16
uint64_t aml_data_ref_object_read(aml_term_list_ctx_t *ctx, aml_object_t *out)
Read a DataRefObject structure from the AML stream.
Definition data.c:529
uint64_t aml_qword_data_read(aml_term_list_ctx_t *ctx, uint64_t *out)
Read a QWordData structure from the AML stream.
Definition data.c:54
uint64_t aml_dword_data_read(aml_term_list_ctx_t *ctx, uint32_t *out)
Read a DWordData structure from the AML stream.
Definition data.c:42
uint64_t aml_word_data_read(aml_term_list_ctx_t *ctx, uint16_t *out)
Read a WordData structure from the AML stream.
Definition data.c:30
uint64_t aml_def_var_package_read(aml_term_list_ctx_t *ctx, aml_object_t *out)
Reads a DefVarPackage structure from the AML byte stream.
Definition data.c:460
uint64_t aml_dword_const_read(aml_term_list_ctx_t *ctx, uint32_t *out)
Read a DWordConst structure from the AML stream.
Definition data.c:88
uint64_t aml_byte_const_read(aml_term_list_ctx_t *ctx, uint8_t *out)
Read a ByteConst structure from the AML stream.
Definition data.c:66
uint64_t aml_data_object_read(aml_term_list_ctx_t *ctx, aml_object_t *out)
Read a DataObject structure from the AML stream.
Definition data.c:501
uint64_t aml_word_const_read(aml_term_list_ctx_t *ctx, uint16_t *out)
Read a WordConst structure from the AML stream.
Definition data.c:77
uint64_t aml_num_elements_read(aml_term_list_ctx_t *ctx, uint8_t *out)
Read a NumElements structure from the AML stream.
Definition data.c:304
uint64_t aml_def_var_num_elements_read(aml_term_list_ctx_t *ctx, aml_integer_t *out)
Read a VarNumElements structure from the AML stream.
Definition data.c:449
uint64_t aml_package_element_list_read(aml_term_list_ctx_t *ctx, aml_package_obj_t *package, const uint8_t *end)
Read a PackageElementList structure from the AML stream.
Definition data.c:387
uint64_t aml_const_obj_read(aml_term_list_ctx_t *ctx, aml_object_t *out)
Read a ConstObj structure from the AML stream.
Definition data.c:110
uint64_t aml_string_read(aml_term_list_ctx_t *ctx, aml_object_t *out)
Read a String structure from the AML stream.
Definition data.c:144
uint64_t aml_qword_const_read(aml_term_list_ctx_t *ctx, uint64_t *out)
Read a QWordConst structure from the AML stream.
Definition data.c:99
uint64_t aml_revision_op_read(aml_term_list_ctx_t *ctx, aml_object_t *out)
Read a RevisionOp structure from the AML stream.
Definition data.c:183
uint64_t aml_computational_data_read(aml_term_list_ctx_t *ctx, aml_object_t *out)
Read a ComputationalData structure from the AML stream.
Definition data.c:199
uint64_t aml_integer_t
AML Integer type.
Definition integer.h:20
__UINT32_TYPE__ uint32_t
Definition stdint.h:15
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
__UINT8_TYPE__ uint8_t
Definition stdint.h:11
__UINT16_TYPE__ uint16_t
Definition stdint.h:13
ACPI object.
Definition object.h:425
Data for a package object.
Definition object.h:337
Context for reading a TermList.
Definition term.h:37