PatchworkOS
Loading...
Searching...
No Matches
term.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <stdint.h>
6
7typedef struct aml_state aml_state_t;
8
30
45
56
65
73
81
89
99
109
127uint64_t aml_term_list_read(aml_state_t* state, aml_object_t* scope, const uint8_t* start, const uint8_t* end,
128 aml_term_list_ctx_t* parentCtx);
129
aml_object_t * aml_term_arg_read(aml_term_list_ctx_t *ctx, aml_type_t allowedTypes)
Reads an TermArg structure from the AML byte stream.
Definition term.c:20
uint64_t aml_term_arg_read_integer(aml_term_list_ctx_t *ctx, aml_integer_t *out)
Wrapper around aml_term_arg_read() that converts the result to an integer.
Definition term.c:89
uint64_t aml_object_read(aml_term_list_ctx_t *ctx)
Reads an Object structure from the AML byte stream.
Definition term.c:147
uint64_t aml_term_obj_read(aml_term_list_ctx_t *ctx)
Reads a TermObj structure from the AML byte stream.
Definition term.c:165
aml_package_obj_t * aml_term_arg_read_package(aml_term_list_ctx_t *ctx)
Wrapper around aml_term_arg_read() that converts the result to a package.
Definition term.c:133
uint64_t aml_term_list_read(aml_state_t *state, aml_object_t *scope, const uint8_t *start, const uint8_t *end, aml_term_list_ctx_t *parentCtx)
Reads a TermList structure from the AML byte stream.
Definition term.c:216
aml_buffer_obj_t * aml_term_arg_read_buffer(aml_term_list_ctx_t *ctx)
Wrapper around aml_term_arg_read() that converts the result to a buffer.
Definition term.c:119
aml_string_obj_t * aml_term_arg_read_string(aml_term_list_ctx_t *ctx)
Wrapper around aml_term_arg_read() that converts the result to a string.
Definition term.c:105
aml_stop_reason_t
Stop reason.
Definition term.h:24
@ AML_STOP_REASON_BREAK
A Break statement was hit.
Definition term.h:27
@ AML_STOP_REASON_CONTINUE
A Continue statement was hit.
Definition term.h:28
@ AML_STOP_REASON_RETURN
A Return statement was hit.
Definition term.h:26
@ AML_STOP_REASON_NONE
No stop reason, continue execution or has reached the end of the TermList.
Definition term.h:25
uint64_t aml_integer_t
AML Integer type.
Definition integer.h:20
aml_type_t
ACPI data types.
Definition object.h:57
static void start()
Definition main.c:542
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
__UINT8_TYPE__ uint8_t
Definition stdint.h:11
Data for a buffer object.
Definition object.h:211
ACPI object.
Definition object.h:425
Data for a package object.
Definition object.h:337
AML State.
Definition state.h:25
Data for a string object.
Definition object.h:368
Context for reading a TermList.
Definition term.h:37
aml_object_t * scope
Definition term.h:39
aml_state_t * state
Definition term.h:38
const uint8_t * start
Definition term.h:40
const uint8_t * end
Definition term.h:41
const uint8_t * current
Definition term.h:42
aml_stop_reason_t stopReason
Definition term.h:43