^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /******************************************************************************
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * Name: acinterp.h - Interpreter subcomponent prototypes and defines
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * Copyright (C) 2000 - 2020, Intel Corp.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) *****************************************************************************/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef __ACINTERP_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define __ACINTERP_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define ACPI_WALK_OPERANDS (&(walk_state->operands [walk_state->num_operands -1]))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) /* Macros for tables used for debug output */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define ACPI_EXD_OFFSET(f) (u8) ACPI_OFFSET (union acpi_operand_object,f)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define ACPI_EXD_NSOFFSET(f) (u8) ACPI_OFFSET (struct acpi_namespace_node,f)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define ACPI_EXD_TABLE_SIZE(name) (sizeof(name) / sizeof (struct acpi_exdump_info))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) * If possible, pack the following structures to byte alignment, since we
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) * don't care about performance for debug output. Two cases where we cannot
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) * pack the structures:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) * 1) Hardware does not support misaligned memory transfers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) * 2) Compiler does not support pointers within packed structures
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #if (!defined(ACPI_MISALIGNMENT_NOT_SUPPORTED) && !defined(ACPI_PACKED_POINTERS_NOT_SUPPORTED))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #pragma pack(1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) typedef const struct acpi_exdump_info {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) u8 opcode;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) u8 offset;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) const char *name;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) } acpi_exdump_info;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) /* Values for the Opcode field above */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #define ACPI_EXD_INIT 0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #define ACPI_EXD_TYPE 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #define ACPI_EXD_UINT8 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #define ACPI_EXD_UINT16 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #define ACPI_EXD_UINT32 4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #define ACPI_EXD_UINT64 5
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #define ACPI_EXD_LITERAL 6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) #define ACPI_EXD_POINTER 7
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) #define ACPI_EXD_ADDRESS 8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #define ACPI_EXD_STRING 9
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) #define ACPI_EXD_BUFFER 10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) #define ACPI_EXD_PACKAGE 11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #define ACPI_EXD_FIELD 12
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) #define ACPI_EXD_REFERENCE 13
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) #define ACPI_EXD_LIST 14 /* Operand object list */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) #define ACPI_EXD_HDLR_LIST 15 /* Address Handler list */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) #define ACPI_EXD_RGN_LIST 16 /* Region list */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #define ACPI_EXD_NODE 17 /* Namespace Node */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) /* restore default alignment */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) #pragma pack()
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) * exconvrt - object conversion
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) acpi_ex_convert_to_integer(union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) union acpi_operand_object **result_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) u32 implicit_conversion);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) acpi_ex_convert_to_buffer(union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) union acpi_operand_object **result_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) acpi_ex_convert_to_string(union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) union acpi_operand_object **result_desc, u32 type);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) /* Types for ->String conversion */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) #define ACPI_EXPLICIT_BYTE_COPY 0x00000000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) #define ACPI_EXPLICIT_CONVERT_HEX 0x00000001
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) #define ACPI_IMPLICIT_CONVERT_HEX 0x00000002
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) #define ACPI_EXPLICIT_CONVERT_DECIMAL 0x00000003
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) acpi_ex_convert_to_target_type(acpi_object_type destination_type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) union acpi_operand_object *source_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) union acpi_operand_object **result_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) * exdebug - AML debug object
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) acpi_ex_do_debug_object(union acpi_operand_object *source_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) u32 level, u32 index);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) acpi_ex_start_trace_method(struct acpi_namespace_node *method_node,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) acpi_ex_stop_trace_method(struct acpi_namespace_node *method_node,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) acpi_ex_start_trace_opcode(union acpi_parse_object *op,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) acpi_ex_stop_trace_opcode(union acpi_parse_object *op,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) acpi_ex_trace_point(acpi_trace_event_type type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) u8 begin, u8 *aml, char *pathname);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) * exfield - ACPI AML (p-code) execution - field manipulation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) acpi_ex_get_protocol_buffer_length(u32 protocol_id, u32 *return_length);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) acpi_ex_common_buffer_setup(union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) u32 buffer_length, u32 * datum_count);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) acpi_ex_write_with_update_rule(union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) u64 mask,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) u64 field_value, u32 field_datum_byte_offset);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) acpi_ex_get_buffer_datum(u64 *datum,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) void *buffer,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) u32 buffer_length,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) u32 byte_granularity, u32 buffer_offset);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) acpi_ex_set_buffer_datum(u64 merged_datum,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) void *buffer,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) u32 buffer_length,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) u32 byte_granularity, u32 buffer_offset);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) union acpi_operand_object **ret_buffer_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) acpi_ex_write_data_to_field(union acpi_operand_object *source_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) union acpi_operand_object **result_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) * exfldio - low level field I/O
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) acpi_ex_extract_from_field(union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) void *buffer, u32 buffer_length);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) acpi_ex_insert_into_field(union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) void *buffer, u32 buffer_length);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) acpi_ex_access_region(union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) u32 field_datum_byte_offset, u64 *value, u32 read_write);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) * exmisc - misc support routines
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) acpi_ex_get_object_reference(union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) union acpi_operand_object **return_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) acpi_ex_concat_template(union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) union acpi_operand_object *obj_desc2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) union acpi_operand_object **actual_return_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) acpi_ex_do_concatenate(union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) union acpi_operand_object *obj_desc2,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) union acpi_operand_object **actual_return_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) acpi_ex_do_logical_numeric_op(u16 opcode,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) u64 integer0, u64 integer1, u8 *logical_result);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) acpi_ex_do_logical_op(u16 opcode,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) union acpi_operand_object *operand0,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) union acpi_operand_object *operand1, u8 *logical_result);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) u64 acpi_ex_do_math_op(u16 opcode, u64 operand0, u64 operand1);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) acpi_status acpi_ex_create_mutex(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) acpi_status acpi_ex_create_processor(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) acpi_status acpi_ex_create_power_resource(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) acpi_ex_create_region(u8 * aml_start,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) u32 aml_length,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) u8 region_space, struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) acpi_status acpi_ex_create_event(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) acpi_status acpi_ex_create_alias(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) acpi_ex_create_method(u8 * aml_start,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) u32 aml_length, struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) * exconfig - dynamic table load/unload
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) acpi_ex_load_op(union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) union acpi_operand_object *target,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) acpi_ex_load_table_op(struct acpi_walk_state *walk_state,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) union acpi_operand_object **return_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) acpi_status acpi_ex_unload_table(union acpi_operand_object *ddb_handle);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) * exmutex - mutex support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) acpi_ex_acquire_mutex(union acpi_operand_object *time_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) acpi_ex_acquire_mutex_object(u16 timeout,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249) union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250) acpi_thread_id thread_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253) acpi_ex_release_mutex(union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256) acpi_status acpi_ex_release_mutex_object(union acpi_operand_object *obj_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258) void acpi_ex_release_all_mutexes(struct acpi_thread_state *thread);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) void acpi_ex_unlink_mutex(union acpi_operand_object *obj_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 263) * exprep - ACPI AML execution - prep utilities
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 264) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 265) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 266) acpi_ex_prep_common_field_object(union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 267) u8 field_flags,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 268) u8 field_attribute,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 269) u32 field_bit_position, u32 field_bit_length);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 270)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 271) acpi_status acpi_ex_prep_field_value(struct acpi_create_field_info *info);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 272)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 273) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 274) * exserial - field_unit support for serial address spaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 275) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 276) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 277) acpi_ex_read_serial_bus(union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 278) union acpi_operand_object **return_buffer);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 279)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 280) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 281) acpi_ex_write_serial_bus(union acpi_operand_object *source_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 282) union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 283) union acpi_operand_object **return_buffer);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 284)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 285) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 286) acpi_ex_read_gpio(union acpi_operand_object *obj_desc, void *buffer);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 287)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 288) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 289) acpi_ex_write_gpio(union acpi_operand_object *source_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 290) union acpi_operand_object *obj_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 291) union acpi_operand_object **return_buffer);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 292)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 293) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 294) * exsystem - Interface to OS services
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 295) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 296) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 297) acpi_ex_system_do_notify_op(union acpi_operand_object *value,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 298) union acpi_operand_object *obj_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 299)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 300) acpi_status acpi_ex_system_do_sleep(u64 time);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 301)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 302) acpi_status acpi_ex_system_do_stall(u32 time);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 303)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 304) acpi_status acpi_ex_system_signal_event(union acpi_operand_object *obj_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 305)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 306) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 307) acpi_ex_system_wait_event(union acpi_operand_object *time,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 308) union acpi_operand_object *obj_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 309)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 310) acpi_status acpi_ex_system_reset_event(union acpi_operand_object *obj_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 311)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 312) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 313) acpi_ex_system_wait_semaphore(acpi_semaphore semaphore, u16 timeout);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 314)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 315) acpi_status acpi_ex_system_wait_mutex(acpi_mutex mutex, u16 timeout);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 316)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 317) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 318) * exoparg1 - ACPI AML execution, 1 operand
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 319) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 320) acpi_status acpi_ex_opcode_0A_0T_1R(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 321)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 322) acpi_status acpi_ex_opcode_1A_0T_0R(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 323)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 324) acpi_status acpi_ex_opcode_1A_0T_1R(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 325)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 326) acpi_status acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 327)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 328) acpi_status acpi_ex_opcode_1A_1T_0R(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 329)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 330) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 331) * exoparg2 - ACPI AML execution, 2 operands
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 332) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 333) acpi_status acpi_ex_opcode_2A_0T_0R(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 334)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 335) acpi_status acpi_ex_opcode_2A_0T_1R(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 336)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 337) acpi_status acpi_ex_opcode_2A_1T_1R(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 338)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 339) acpi_status acpi_ex_opcode_2A_2T_1R(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 340)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 341) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 342) * exoparg3 - ACPI AML execution, 3 operands
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 343) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 344) acpi_status acpi_ex_opcode_3A_0T_0R(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 345)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 346) acpi_status acpi_ex_opcode_3A_1T_1R(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 347)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 348) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 349) * exoparg6 - ACPI AML execution, 6 operands
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 350) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 351) acpi_status acpi_ex_opcode_6A_0T_1R(struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 352)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 353) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 354) * exresolv - Object resolution and get value functions
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 355) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 356) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 357) acpi_ex_resolve_to_value(union acpi_operand_object **stack_ptr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 358) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 359)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 360) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 361) acpi_ex_resolve_multiple(struct acpi_walk_state *walk_state,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 362) union acpi_operand_object *operand,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 363) acpi_object_type *return_type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 364) union acpi_operand_object **return_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 365)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 366) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 367) * exresnte - resolve namespace node
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 368) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 369) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 370) acpi_ex_resolve_node_to_value(struct acpi_namespace_node **stack_ptr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 371) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 372)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 373) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 374) * exresop - resolve operand to value
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 375) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 376) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 377) acpi_ex_resolve_operands(u16 opcode,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 378) union acpi_operand_object **stack_ptr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 379) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 380)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 381) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 382) * exdump - Interpreter debug output routines
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 383) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 384) void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 385)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 386) void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 387) acpi_ex_dump_operands(union acpi_operand_object **operands,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 388) const char *opcode_name, u32 num_opcodes);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 389)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 390) void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 391) acpi_ex_dump_object_descriptor(union acpi_operand_object *object, u32 flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 392)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 393) void acpi_ex_dump_namespace_node(struct acpi_namespace_node *node, u32 flags);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 394)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 395) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 396) * exnames - AML namestring support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 397) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 398) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 399) acpi_ex_get_name_string(acpi_object_type data_type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 400) u8 * in_aml_address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 401) char **out_name_string, u32 * out_name_length);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 402)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 403) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 404) * exstore - Object store support
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 405) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 406) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 407) acpi_ex_store(union acpi_operand_object *val_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 408) union acpi_operand_object *dest_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 409) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 410)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 411) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 412) acpi_ex_store_object_to_node(union acpi_operand_object *source_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 413) struct acpi_namespace_node *node,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 414) struct acpi_walk_state *walk_state,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 415) u8 implicit_conversion);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 416)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 417) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 418) * exstoren - resolve/store object
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 419) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 420) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 421) acpi_ex_resolve_object(union acpi_operand_object **source_desc_ptr,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 422) acpi_object_type target_type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 423) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 424)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 425) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 426) acpi_ex_store_object_to_object(union acpi_operand_object *source_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 427) union acpi_operand_object *dest_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 428) union acpi_operand_object **new_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 429) struct acpi_walk_state *walk_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 430)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 431) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 432) * exstorob - store object - buffer/string
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 433) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 434) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 435) acpi_ex_store_buffer_to_buffer(union acpi_operand_object *source_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 436) union acpi_operand_object *target_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 437)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 438) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 439) acpi_ex_store_string_to_string(union acpi_operand_object *source_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 440) union acpi_operand_object *target_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 441)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 442) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 443) * excopy - object copy
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 444) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 445) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 446) acpi_ex_copy_integer_to_index_field(union acpi_operand_object *source_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 447) union acpi_operand_object *target_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 448)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 449) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 450) acpi_ex_copy_integer_to_bank_field(union acpi_operand_object *source_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 451) union acpi_operand_object *target_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 452)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 453) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 454) acpi_ex_copy_data_to_named_field(union acpi_operand_object *source_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 455) struct acpi_namespace_node *node);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 456)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 457) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 458) acpi_ex_copy_integer_to_buffer_field(union acpi_operand_object *source_desc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 459) union acpi_operand_object *target_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 460)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 461) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 462) * exutils - interpreter/scanner utilities
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 463) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 464) void acpi_ex_enter_interpreter(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 465)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 466) void acpi_ex_exit_interpreter(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 467)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 468) u8 acpi_ex_truncate_for32bit_table(union acpi_operand_object *obj_desc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 469)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 470) void acpi_ex_acquire_global_lock(u32 rule);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 471)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 472) void acpi_ex_release_global_lock(u32 rule);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 473)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 474) void acpi_ex_eisa_id_to_string(char *dest, u64 compressed_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 475)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 476) void acpi_ex_integer_to_string(char *dest, u64 value);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 477)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 478) void acpi_ex_pci_cls_to_string(char *dest, u8 class_code[3]);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 479)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 480) u8 acpi_is_valid_space_id(u8 space_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 481)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 482) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 483) * exregion - default op_region handlers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 484) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 485) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 486) acpi_ex_system_memory_space_handler(u32 function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 487) acpi_physical_address address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 488) u32 bit_width,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 489) u64 *value,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 490) void *handler_context,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 491) void *region_context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 492)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 493) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 494) acpi_ex_system_io_space_handler(u32 function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 495) acpi_physical_address address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 496) u32 bit_width,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 497) u64 *value,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 498) void *handler_context, void *region_context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 499)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 500) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 501) acpi_ex_pci_config_space_handler(u32 function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 502) acpi_physical_address address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 503) u32 bit_width,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 504) u64 *value,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 505) void *handler_context, void *region_context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 506)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 507) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 508) acpi_ex_cmos_space_handler(u32 function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 509) acpi_physical_address address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 510) u32 bit_width,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 511) u64 *value,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 512) void *handler_context, void *region_context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 513)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 514) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 515) acpi_ex_pci_bar_space_handler(u32 function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 516) acpi_physical_address address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 517) u32 bit_width,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 518) u64 *value,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 519) void *handler_context, void *region_context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 520)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 521) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 522) acpi_ex_embedded_controller_space_handler(u32 function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 523) acpi_physical_address address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 524) u32 bit_width,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 525) u64 *value,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 526) void *handler_context,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 527) void *region_context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 528)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 529) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 530) acpi_ex_sm_bus_space_handler(u32 function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 531) acpi_physical_address address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 532) u32 bit_width,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 533) u64 *value,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 534) void *handler_context, void *region_context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 535)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 536) acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 537) acpi_ex_data_table_space_handler(u32 function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 538) acpi_physical_address address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 539) u32 bit_width,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 540) u64 *value,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 541) void *handler_context, void *region_context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 542)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 543) #endif /* __INTERP_H__ */