|
PatchworkOS
|
#include <kernel/acpi/aml/encoding/expression.h>#include <kernel/acpi/aml/debug.h>#include <kernel/acpi/aml/encoding/arg.h>#include <kernel/acpi/aml/encoding/debug.h>#include <kernel/acpi/aml/encoding/package_length.h>#include <kernel/acpi/aml/encoding/term.h>#include <kernel/acpi/aml/exception.h>#include <kernel/acpi/aml/object.h>#include <kernel/acpi/aml/runtime/compare.h>#include <kernel/acpi/aml/runtime/concat.h>#include <kernel/acpi/aml/runtime/convert.h>#include <kernel/acpi/aml/runtime/copy.h>#include <kernel/acpi/aml/runtime/method.h>#include <kernel/acpi/aml/runtime/store.h>#include <kernel/acpi/aml/state.h>#include <kernel/acpi/aml/to_string.h>#include <kernel/acpi/aml/token.h>#include <kernel/log/log.h>#include <kernel/sched/timer.h>#include <sys/proc.h>Go to the source code of this file.
Functions | |
| aml_object_t * | aml_operand_read (aml_term_list_ctx_t *ctx, aml_type_t allowedTypes) |
| Reads an Operand structure from the AML byte stream. | |
| static uint64_t | aml_op_operand_operand_target_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_type_t allowedTypes, aml_object_t **operand1, aml_object_t **operand2, aml_object_t **target) |
| static uint64_t | aml_op_operand_operand_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_type_t allowedTypes, aml_object_t **operand1, aml_object_t **operand2) |
| static uint64_t | aml_op_operand_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_type_t allowedTypes, aml_object_t **operand) |
| static uint64_t | aml_op_operand_target_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_type_t allowedTypes, aml_object_t **operand, aml_object_t **target) |
| static uint64_t | aml_op_operand_shiftcount_target_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_type_t allowedTypes, aml_object_t **operand, aml_integer_t *shiftCount, aml_object_t **target) |
| static uint64_t | aml_op_data_data_target_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_object_t **data1, aml_object_t **data2, aml_object_t **target) |
| static uint64_t | aml_op_termarg_simplename_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_type_t allowedTypes, aml_object_t **termarg, aml_object_t **simplename) |
| static uint64_t | aml_op_supername_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_object_t **supername) |
| static uint64_t | aml_op_termarg_supername_read (aml_term_list_ctx_t *ctx, aml_token_num_t expectedOp, aml_type_t allowedTypes, aml_object_t **termarg, aml_object_t **supername) |
| uint64_t | aml_buffer_size_read (aml_term_list_ctx_t *ctx, aml_integer_t *out) |
| Reads a BufferSize structure from the AML byte stream. | |
| uint64_t | aml_def_buffer_read (aml_term_list_ctx_t *ctx, aml_object_t *out) |
| Reads a DefBuffer structure from the AML byte stream. | |
| uint64_t | aml_term_arg_list_read (aml_term_list_ctx_t *ctx, uint64_t argCount, aml_term_arg_list_t *out) |
| Reads a TermArgList structure from the AML byte stream. | |
| aml_object_t * | aml_method_invocation_read (aml_term_list_ctx_t *ctx) |
| Reads a MethodInvocation structure from the AML byte stream. | |
| aml_object_t * | aml_def_cond_ref_of_read (aml_term_list_ctx_t *ctx) |
| Reads a DefCondRefOf structure from the AML byte stream. | |
| aml_object_t * | aml_def_store_read (aml_term_list_ctx_t *ctx) |
| Reads a DefStore structure from the AML byte stream. | |
| uint64_t | aml_dividend_read (aml_term_list_ctx_t *ctx, aml_integer_t *out) |
| Reads a Dividend structure from the AML byte stream. | |
| uint64_t | aml_divisor_read (aml_term_list_ctx_t *ctx, aml_integer_t *out) |
| Reads a Divisor structure from the AML byte stream. | |
| aml_object_t * | aml_remainder_read (aml_term_list_ctx_t *ctx) |
| Reads a Remainder structure from the AML byte stream. | |
| aml_object_t * | aml_quotient_read (aml_term_list_ctx_t *ctx) |
| Reads a Quotient structure from the AML byte stream. | |
| aml_object_t * | aml_def_add_read (aml_term_list_ctx_t *ctx) |
| Reads a DefAdd structure from the AML byte stream. | |
| aml_object_t * | aml_def_subtract_read (aml_term_list_ctx_t *ctx) |
| Reads a DefSubtract structure from the AML byte stream. | |
| aml_object_t * | aml_def_multiply_read (aml_term_list_ctx_t *ctx) |
| Reads a DefMultiply structure from the AML byte stream. | |
| aml_object_t * | aml_def_divide_read (aml_term_list_ctx_t *ctx) |
| Reads a DefDivide structure from the AML byte stream. | |
| aml_object_t * | aml_def_mod_read (aml_term_list_ctx_t *ctx) |
| Reads a DefMod structure from the AML byte stream. | |
| aml_object_t * | aml_def_and_read (aml_term_list_ctx_t *ctx) |
| Reads a DefAnd structure from the AML byte stream. | |
| aml_object_t * | aml_def_nand_read (aml_term_list_ctx_t *ctx) |
| Reads a DefNAnd structure from the AML byte stream. | |
| aml_object_t * | aml_def_or_read (aml_term_list_ctx_t *ctx) |
| Reads a DefOr structure from the AML byte stream. | |
| aml_object_t * | aml_def_nor_read (aml_term_list_ctx_t *ctx) |
| Reads a DefNOr structure from the AML byte stream. | |
| aml_object_t * | aml_def_xor_read (aml_term_list_ctx_t *ctx) |
| Reads a DefXOr structure from the AML byte stream. | |
| aml_object_t * | aml_def_not_read (aml_term_list_ctx_t *ctx) |
| Reads a DefNot structure from the AML byte stream. | |
| uint64_t | aml_shift_count_read (aml_term_list_ctx_t *ctx, aml_integer_t *out) |
| Reads a ShiftCount structure from the AML byte stream. | |
| aml_object_t * | aml_def_shift_left_read (aml_term_list_ctx_t *ctx) |
| Reads a DefShiftLeft structure from the AML byte stream. | |
| aml_object_t * | aml_def_shift_right_read (aml_term_list_ctx_t *ctx) |
| Reads a DefShiftRight structure from the AML byte stream. | |
| aml_object_t * | aml_def_increment_read (aml_term_list_ctx_t *ctx) |
| Reads a DefIncrement structure from the AML byte stream. | |
| aml_object_t * | aml_def_decrement_read (aml_term_list_ctx_t *ctx) |
| Reads a DefDecrement structure from the AML byte stream. | |
| aml_object_t * | aml_obj_reference_read (aml_term_list_ctx_t *ctx) |
| Reads an ObjReference structure from the AML byte stream. | |
| aml_object_t * | aml_def_deref_of_read (aml_term_list_ctx_t *ctx) |
| Reads a DefDerefOf structure from the AML byte stream. | |
| aml_object_t * | aml_buff_pkg_str_obj_read (aml_term_list_ctx_t *ctx) |
| Reads a BuffPkgStrObj structure from the AML byte stream. | |
| uint64_t | aml_index_value_read (aml_term_list_ctx_t *ctx, aml_integer_t *out) |
| Reads an IndexValue structure from the AML byte stream. | |
| aml_object_t * | aml_def_index_read (aml_term_list_ctx_t *ctx) |
| Reads a DefIndex structure from the AML byte stream. | |
| aml_object_t * | aml_def_land_read (aml_term_list_ctx_t *ctx) |
| Reads a DefLAnd structure from the AML byte stream. | |
| aml_object_t * | aml_def_lequal_read (aml_term_list_ctx_t *ctx) |
| Reads a DefLEqual structure from the AML byte stream. | |
| aml_object_t * | aml_def_lgreater_read (aml_term_list_ctx_t *ctx) |
| Reads a DefLGreater structure from the AML byte stream. | |
| aml_object_t * | aml_def_lgreater_equal_read (aml_term_list_ctx_t *ctx) |
| Reads a DefLGreaterEqual structure from the AML byte stream. | |
| aml_object_t * | aml_def_lless_read (aml_term_list_ctx_t *ctx) |
| Reads a DefLLess structure from the AML byte stream. | |
| aml_object_t * | aml_def_lless_equal_read (aml_term_list_ctx_t *ctx) |
| Reads a DefLLessEqual structure from the AML byte stream. | |
| aml_object_t * | aml_def_lnot_read (aml_term_list_ctx_t *ctx) |
| Reads a DefLNot structure from the AML byte stream. | |
| aml_object_t * | aml_def_lnot_equal_read (aml_term_list_ctx_t *ctx) |
| Reads a DefLNotEqual structure from the AML byte stream. | |
| aml_object_t * | aml_def_lor_read (aml_term_list_ctx_t *ctx) |
| Reads a DefLOr structure from the AML byte stream. | |
| aml_object_t * | aml_mutex_object_read (aml_term_list_ctx_t *ctx) |
| Reads a MutexObject structure from the AML byte stream. | |
| uint64_t | aml_timeout_read (aml_term_list_ctx_t *ctx, uint16_t *out) |
| Reads a Timeout structure from the AML byte stream. | |
| aml_object_t * | aml_def_acquire_read (aml_term_list_ctx_t *ctx) |
| Reads a DefAcquire structure from the AML byte stream. | |
| aml_object_t * | aml_def_to_bcd_read (aml_term_list_ctx_t *ctx) |
| Reads a DefToBcd structure from the AML byte stream. | |
| aml_object_t * | aml_def_to_buffer_read (aml_term_list_ctx_t *ctx) |
| Reads a DefToBuffer structure from the AML byte stream. | |
| aml_object_t * | aml_def_to_decimal_string_read (aml_term_list_ctx_t *ctx) |
| Reads a DefToDecimalString structure from the AML byte stream. | |
| aml_object_t * | aml_def_to_hex_string_read (aml_term_list_ctx_t *ctx) |
| Reads a DefToHexString structure from the AML byte stream. | |
| aml_object_t * | aml_def_to_integer_read (aml_term_list_ctx_t *ctx) |
| Reads a DefToInteger structure from the AML byte stream. | |
| uint64_t | aml_length_arg_read (aml_term_list_ctx_t *ctx, aml_integer_t *out) |
| Reads a LengthArg structure from the AML byte stream. | |
| aml_object_t * | aml_def_to_string_read (aml_term_list_ctx_t *ctx) |
| Reads a DefToString structure from the AML byte stream. | |
| aml_object_t * | aml_def_timer_read (aml_term_list_ctx_t *ctx) |
| Reads a DefTimer structure from the AML byte stream. | |
| aml_object_t * | aml_def_copy_object_read (aml_term_list_ctx_t *ctx) |
| Reads a DefCopyObject structure from the AML byte stream. | |
| aml_object_t * | aml_data_read (aml_term_list_ctx_t *ctx) |
| Reads a Data structure from the AML byte stream. | |
| aml_object_t * | aml_def_concat_read (aml_term_list_ctx_t *ctx) |
| Reads a DefConcat structure from the AML byte stream. | |
| aml_object_t * | aml_def_size_of_read (aml_term_list_ctx_t *ctx) |
| Reads a DefSizeOf structure from the AML byte stream. | |
| aml_object_t * | aml_def_ref_of_read (aml_term_list_ctx_t *ctx) |
| Reads a DefRefOf structure from the AML byte stream. | |
| aml_object_t * | aml_def_object_type_read (aml_term_list_ctx_t *ctx) |
| Reads a DefObjectType structure from the AML byte stream. | |
| aml_object_t * | aml_reference_type_opcode_read (aml_term_list_ctx_t *ctx) |
| aml_object_t * | aml_def_find_set_left_bit_read (aml_term_list_ctx_t *ctx) |
| Reads a DefFindSetLeftBit structure from the AML byte stream. | |
| aml_object_t * | aml_def_find_set_right_bit_read (aml_term_list_ctx_t *ctx) |
| Reads a DefFindSetRightBit structure from the AML byte stream. | |
| aml_package_obj_t * | aml_search_pkg_read (aml_term_list_ctx_t *ctx) |
| Reads a SearchPkg structure from the AML byte stream. | |
| uint64_t | aml_match_opcode_read (aml_term_list_ctx_t *ctx, aml_match_opcode_t *out) |
| Reads a MatchOpcode structure from the AML byte stream. | |
| uint64_t | aml_start_index_read (aml_term_list_ctx_t *ctx, aml_integer_t *out) |
| Reads a StartIndex structure from the AML byte stream. | |
| static bool | aml_match_compare (aml_state_t *state, aml_object_t *obj1, aml_object_t *obj2, aml_match_opcode_t op) |
| aml_object_t * | aml_def_match_read (aml_term_list_ctx_t *ctx) |
| Reads a DefMatch structure from the AML byte stream. | |
| aml_object_t * | aml_expression_opcode_read (aml_term_list_ctx_t *ctx) |
| Reads an ExpressionOpcode structure from the AML byte stream. | |
|
static |
Definition at line 2311 of file expression.c.
References aml_compare(), AML_COMPARE_EQUAL, AML_COMPARE_GREATER, AML_COMPARE_GREATER_EQUAL, AML_COMPARE_LESS, AML_COMPARE_LESS_EQUAL, AML_ERROR, AML_EXCEPTION_RAISE, AML_MATCH_MEQ, AML_MATCH_MGE, AML_MATCH_MGT, AML_MATCH_MLE, AML_MATCH_MLT, and AML_MATCH_MTR.
Referenced by aml_def_match_read().
|
inlinestatic |
Definition at line 178 of file expression.c.
References aml_data_read(), AML_DEBUG_ERROR, aml_target_read_and_resolve(), aml_token_expect(), aml_token_lookup(), DEREF, ERR, and NULL.
Referenced by aml_def_concat_read().
|
inlinestatic |
Definition at line 72 of file expression.c.
References AML_DEBUG_ERROR, aml_operand_read(), aml_token_expect(), aml_token_lookup(), DEREF, ERR, and NULL.
Referenced by aml_def_land_read(), aml_def_lequal_read(), aml_def_lgreater_equal_read(), aml_def_lgreater_read(), aml_def_lless_equal_read(), aml_def_lless_read(), aml_def_lnot_equal_read(), and aml_def_lor_read().
|
inlinestatic |
Definition at line 36 of file expression.c.
References AML_DEBUG_ERROR, aml_operand_read(), aml_target_read_and_resolve(), aml_token_expect(), aml_token_lookup(), DEREF, ERR, and NULL.
Referenced by aml_def_add_read(), aml_def_and_read(), aml_def_multiply_read(), aml_def_nand_read(), aml_def_nor_read(), aml_def_or_read(), aml_def_subtract_read(), and aml_def_xor_read().
|
inlinestatic |
Definition at line 100 of file expression.c.
References AML_DEBUG_ERROR, aml_operand_read(), aml_token_expect(), aml_token_lookup(), ERR, and NULL.
Referenced by aml_def_lnot_read().
|
inlinestatic |
Definition at line 145 of file expression.c.
References AML_DEBUG_ERROR, aml_operand_read(), aml_shift_count_read(), aml_target_read_and_resolve(), aml_token_expect(), aml_token_lookup(), DEREF, ERR, and NULL.
Referenced by aml_def_shift_left_read(), and aml_def_shift_right_read().
|
inlinestatic |
Definition at line 119 of file expression.c.
References AML_DEBUG_ERROR, aml_operand_read(), aml_target_read_and_resolve(), aml_token_expect(), aml_token_lookup(), DEREF, ERR, and NULL.
Referenced by aml_def_find_set_left_bit_read(), aml_def_find_set_right_bit_read(), aml_def_not_read(), aml_def_to_bcd_read(), aml_def_to_buffer_read(), aml_def_to_decimal_string_read(), aml_def_to_hex_string_read(), and aml_def_to_integer_read().
|
inlinestatic |
Definition at line 240 of file expression.c.
References AML_DEBUG_ERROR, aml_super_name_read_and_resolve(), aml_token_expect(), aml_token_lookup(), ERR, and NULL.
Referenced by aml_def_decrement_read(), aml_def_increment_read(), aml_def_ref_of_read(), and aml_def_size_of_read().
|
inlinestatic |
Definition at line 213 of file expression.c.
References AML_DEBUG_ERROR, aml_simple_name_read_and_resolve(), aml_term_arg_read(), aml_token_expect(), aml_token_lookup(), DEREF, ERR, and NULL.
Referenced by aml_def_copy_object_read().
|
inlinestatic |
Definition at line 259 of file expression.c.
References AML_DEBUG_ERROR, aml_super_name_read_and_resolve(), aml_term_arg_read(), aml_token_expect(), aml_token_lookup(), DEREF, ERR, and NULL.
Referenced by aml_def_store_read().