diff options
Diffstat (limited to 'include/acpi/acinterp.h')
| -rw-r--r-- | include/acpi/acinterp.h | 626 |
1 files changed, 222 insertions, 404 deletions
diff --git a/include/acpi/acinterp.h b/include/acpi/acinterp.h index 5c7172477a0f..2c9c1a1d1b7f 100644 --- a/include/acpi/acinterp.h +++ b/include/acpi/acinterp.h | |||
| @@ -44,29 +44,22 @@ | |||
| 44 | #ifndef __ACINTERP_H__ | 44 | #ifndef __ACINTERP_H__ |
| 45 | #define __ACINTERP_H__ | 45 | #define __ACINTERP_H__ |
| 46 | 46 | ||
| 47 | |||
| 48 | #define ACPI_WALK_OPERANDS (&(walk_state->operands [walk_state->num_operands -1])) | 47 | #define ACPI_WALK_OPERANDS (&(walk_state->operands [walk_state->num_operands -1])) |
| 49 | 48 | ||
| 50 | |||
| 51 | /* | 49 | /* |
| 52 | * exconvrt - object conversion | 50 | * exconvrt - object conversion |
| 53 | */ | 51 | */ |
| 54 | acpi_status | 52 | acpi_status |
| 55 | acpi_ex_convert_to_integer ( | 53 | acpi_ex_convert_to_integer(union acpi_operand_object *obj_desc, |
| 56 | union acpi_operand_object *obj_desc, | 54 | union acpi_operand_object **result_desc, u32 flags); |
| 57 | union acpi_operand_object **result_desc, | ||
| 58 | u32 flags); | ||
| 59 | 55 | ||
| 60 | acpi_status | 56 | acpi_status |
| 61 | acpi_ex_convert_to_buffer ( | 57 | acpi_ex_convert_to_buffer(union acpi_operand_object *obj_desc, |
| 62 | union acpi_operand_object *obj_desc, | 58 | union acpi_operand_object **result_desc); |
| 63 | union acpi_operand_object **result_desc); | ||
| 64 | 59 | ||
| 65 | acpi_status | 60 | acpi_status |
| 66 | acpi_ex_convert_to_string ( | 61 | acpi_ex_convert_to_string(union acpi_operand_object *obj_desc, |
| 67 | union acpi_operand_object *obj_desc, | 62 | union acpi_operand_object **result_desc, u32 type); |
| 68 | union acpi_operand_object **result_desc, | ||
| 69 | u32 type); | ||
| 70 | 63 | ||
| 71 | /* Types for ->String conversion */ | 64 | /* Types for ->String conversion */ |
| 72 | 65 | ||
| @@ -76,587 +69,412 @@ acpi_ex_convert_to_string ( | |||
| 76 | #define ACPI_EXPLICIT_CONVERT_DECIMAL 0x00000003 | 69 | #define ACPI_EXPLICIT_CONVERT_DECIMAL 0x00000003 |
| 77 | 70 | ||
| 78 | acpi_status | 71 | acpi_status |
| 79 | acpi_ex_convert_to_target_type ( | 72 | acpi_ex_convert_to_target_type(acpi_object_type destination_type, |
| 80 | acpi_object_type destination_type, | 73 | union acpi_operand_object *source_desc, |
| 81 | union acpi_operand_object *source_desc, | 74 | union acpi_operand_object **result_desc, |
| 82 | union acpi_operand_object **result_desc, | 75 | struct acpi_walk_state *walk_state); |
| 83 | struct acpi_walk_state *walk_state); | ||
| 84 | |||
| 85 | 76 | ||
| 86 | /* | 77 | /* |
| 87 | * exfield - ACPI AML (p-code) execution - field manipulation | 78 | * exfield - ACPI AML (p-code) execution - field manipulation |
| 88 | */ | 79 | */ |
| 89 | acpi_status | 80 | acpi_status |
| 90 | acpi_ex_common_buffer_setup ( | 81 | acpi_ex_common_buffer_setup(union acpi_operand_object *obj_desc, |
| 91 | union acpi_operand_object *obj_desc, | 82 | u32 buffer_length, u32 * datum_count); |
| 92 | u32 buffer_length, | ||
| 93 | u32 *datum_count); | ||
| 94 | 83 | ||
| 95 | acpi_status | 84 | acpi_status |
| 96 | acpi_ex_write_with_update_rule ( | 85 | acpi_ex_write_with_update_rule(union acpi_operand_object *obj_desc, |
| 97 | union acpi_operand_object *obj_desc, | 86 | acpi_integer mask, |
| 98 | acpi_integer mask, | 87 | acpi_integer field_value, |
| 99 | acpi_integer field_value, | 88 | u32 field_datum_byte_offset); |
| 100 | u32 field_datum_byte_offset); | ||
| 101 | 89 | ||
| 102 | void | 90 | void |
| 103 | acpi_ex_get_buffer_datum( | 91 | acpi_ex_get_buffer_datum(acpi_integer * datum, |
| 104 | acpi_integer *datum, | 92 | void *buffer, |
| 105 | void *buffer, | 93 | u32 buffer_length, |
| 106 | u32 buffer_length, | 94 | u32 byte_granularity, u32 buffer_offset); |
| 107 | u32 byte_granularity, | ||
| 108 | u32 buffer_offset); | ||
| 109 | 95 | ||
| 110 | void | 96 | void |
| 111 | acpi_ex_set_buffer_datum ( | 97 | acpi_ex_set_buffer_datum(acpi_integer merged_datum, |
| 112 | acpi_integer merged_datum, | 98 | void *buffer, |
| 113 | void *buffer, | 99 | u32 buffer_length, |
| 114 | u32 buffer_length, | 100 | u32 byte_granularity, u32 buffer_offset); |
| 115 | u32 byte_granularity, | ||
| 116 | u32 buffer_offset); | ||
| 117 | 101 | ||
| 118 | acpi_status | 102 | acpi_status |
| 119 | acpi_ex_read_data_from_field ( | 103 | acpi_ex_read_data_from_field(struct acpi_walk_state *walk_state, |
| 120 | struct acpi_walk_state *walk_state, | 104 | union acpi_operand_object *obj_desc, |
| 121 | union acpi_operand_object *obj_desc, | 105 | union acpi_operand_object **ret_buffer_desc); |
| 122 | union acpi_operand_object **ret_buffer_desc); | ||
| 123 | 106 | ||
| 124 | acpi_status | 107 | acpi_status |
| 125 | acpi_ex_write_data_to_field ( | 108 | acpi_ex_write_data_to_field(union acpi_operand_object *source_desc, |
| 126 | union acpi_operand_object *source_desc, | 109 | union acpi_operand_object *obj_desc, |
| 127 | union acpi_operand_object *obj_desc, | 110 | union acpi_operand_object **result_desc); |
| 128 | union acpi_operand_object **result_desc); | ||
| 129 | |||
| 130 | 111 | ||
| 131 | /* | 112 | /* |
| 132 | * exfldio - low level field I/O | 113 | * exfldio - low level field I/O |
| 133 | */ | 114 | */ |
| 134 | acpi_status | 115 | acpi_status |
| 135 | acpi_ex_extract_from_field ( | 116 | acpi_ex_extract_from_field(union acpi_operand_object *obj_desc, |
| 136 | union acpi_operand_object *obj_desc, | 117 | void *buffer, u32 buffer_length); |
| 137 | void *buffer, | ||
| 138 | u32 buffer_length); | ||
| 139 | 118 | ||
| 140 | acpi_status | 119 | acpi_status |
| 141 | acpi_ex_insert_into_field ( | 120 | acpi_ex_insert_into_field(union acpi_operand_object *obj_desc, |
| 142 | union acpi_operand_object *obj_desc, | 121 | void *buffer, u32 buffer_length); |
| 143 | void *buffer, | ||
| 144 | u32 buffer_length); | ||
| 145 | 122 | ||
| 146 | acpi_status | 123 | acpi_status |
| 147 | acpi_ex_access_region ( | 124 | acpi_ex_access_region(union acpi_operand_object *obj_desc, |
| 148 | union acpi_operand_object *obj_desc, | 125 | u32 field_datum_byte_offset, |
| 149 | u32 field_datum_byte_offset, | 126 | acpi_integer * value, u32 read_write); |
| 150 | acpi_integer *value, | ||
| 151 | u32 read_write); | ||
| 152 | |||
| 153 | 127 | ||
| 154 | /* | 128 | /* |
| 155 | * exmisc - misc support routines | 129 | * exmisc - misc support routines |
| 156 | */ | 130 | */ |
| 157 | acpi_status | 131 | acpi_status |
| 158 | acpi_ex_get_object_reference ( | 132 | acpi_ex_get_object_reference(union acpi_operand_object *obj_desc, |
| 159 | union acpi_operand_object *obj_desc, | 133 | union acpi_operand_object **return_desc, |
| 160 | union acpi_operand_object **return_desc, | 134 | struct acpi_walk_state *walk_state); |
| 161 | struct acpi_walk_state *walk_state); | ||
| 162 | 135 | ||
| 163 | acpi_status | 136 | acpi_status |
| 164 | acpi_ex_concat_template ( | 137 | acpi_ex_concat_template(union acpi_operand_object *obj_desc, |
| 165 | union acpi_operand_object *obj_desc, | 138 | union acpi_operand_object *obj_desc2, |
| 166 | union acpi_operand_object *obj_desc2, | 139 | union acpi_operand_object **actual_return_desc, |
| 167 | union acpi_operand_object **actual_return_desc, | 140 | struct acpi_walk_state *walk_state); |
| 168 | struct acpi_walk_state *walk_state); | ||
| 169 | 141 | ||
| 170 | acpi_status | 142 | acpi_status |
| 171 | acpi_ex_do_concatenate ( | 143 | acpi_ex_do_concatenate(union acpi_operand_object *obj_desc, |
| 172 | union acpi_operand_object *obj_desc, | 144 | union acpi_operand_object *obj_desc2, |
| 173 | union acpi_operand_object *obj_desc2, | 145 | union acpi_operand_object **actual_return_desc, |
| 174 | union acpi_operand_object **actual_return_desc, | 146 | struct acpi_walk_state *walk_state); |
| 175 | struct acpi_walk_state *walk_state); | ||
| 176 | 147 | ||
| 177 | acpi_status | 148 | acpi_status |
| 178 | acpi_ex_do_logical_numeric_op ( | 149 | acpi_ex_do_logical_numeric_op(u16 opcode, |
| 179 | u16 opcode, | 150 | acpi_integer integer0, |
| 180 | acpi_integer integer0, | 151 | acpi_integer integer1, u8 * logical_result); |
| 181 | acpi_integer integer1, | ||
| 182 | u8 *logical_result); | ||
| 183 | 152 | ||
| 184 | acpi_status | 153 | acpi_status |
| 185 | acpi_ex_do_logical_op ( | 154 | acpi_ex_do_logical_op(u16 opcode, |
| 186 | u16 opcode, | 155 | union acpi_operand_object *operand0, |
| 187 | union acpi_operand_object *operand0, | 156 | union acpi_operand_object *operand1, u8 * logical_result); |
| 188 | union acpi_operand_object *operand1, | ||
| 189 | u8 *logical_result); | ||
| 190 | 157 | ||
| 191 | acpi_integer | 158 | acpi_integer |
| 192 | acpi_ex_do_math_op ( | 159 | acpi_ex_do_math_op(u16 opcode, acpi_integer operand0, acpi_integer operand1); |
| 193 | u16 opcode, | ||
| 194 | acpi_integer operand0, | ||
| 195 | acpi_integer operand1); | ||
| 196 | 160 | ||
| 197 | acpi_status | 161 | acpi_status acpi_ex_create_mutex(struct acpi_walk_state *walk_state); |
| 198 | acpi_ex_create_mutex ( | ||
| 199 | struct acpi_walk_state *walk_state); | ||
| 200 | 162 | ||
| 201 | acpi_status | 163 | acpi_status acpi_ex_create_processor(struct acpi_walk_state *walk_state); |
| 202 | acpi_ex_create_processor ( | ||
| 203 | struct acpi_walk_state *walk_state); | ||
| 204 | 164 | ||
| 205 | acpi_status | 165 | acpi_status acpi_ex_create_power_resource(struct acpi_walk_state *walk_state); |
| 206 | acpi_ex_create_power_resource ( | ||
| 207 | struct acpi_walk_state *walk_state); | ||
| 208 | 166 | ||
| 209 | acpi_status | 167 | acpi_status |
| 210 | acpi_ex_create_region ( | 168 | acpi_ex_create_region(u8 * aml_start, |
| 211 | u8 *aml_start, | 169 | u32 aml_length, |
| 212 | u32 aml_length, | 170 | u8 region_space, struct acpi_walk_state *walk_state); |
| 213 | u8 region_space, | ||
| 214 | struct acpi_walk_state *walk_state); | ||
| 215 | 171 | ||
| 216 | acpi_status | 172 | acpi_status acpi_ex_create_table_region(struct acpi_walk_state *walk_state); |
| 217 | acpi_ex_create_table_region ( | ||
| 218 | struct acpi_walk_state *walk_state); | ||
| 219 | 173 | ||
| 220 | acpi_status | 174 | acpi_status acpi_ex_create_event(struct acpi_walk_state *walk_state); |
| 221 | acpi_ex_create_event ( | ||
| 222 | struct acpi_walk_state *walk_state); | ||
| 223 | 175 | ||
| 224 | acpi_status | 176 | acpi_status acpi_ex_create_alias(struct acpi_walk_state *walk_state); |
| 225 | acpi_ex_create_alias ( | ||
| 226 | struct acpi_walk_state *walk_state); | ||
| 227 | 177 | ||
| 228 | acpi_status | 178 | acpi_status |
| 229 | acpi_ex_create_method ( | 179 | acpi_ex_create_method(u8 * aml_start, |
| 230 | u8 *aml_start, | 180 | u32 aml_length, struct acpi_walk_state *walk_state); |
| 231 | u32 aml_length, | ||
| 232 | struct acpi_walk_state *walk_state); | ||
| 233 | |||
| 234 | 181 | ||
| 235 | /* | 182 | /* |
| 236 | * exconfig - dynamic table load/unload | 183 | * exconfig - dynamic table load/unload |
| 237 | */ | 184 | */ |
| 238 | acpi_status | 185 | acpi_status |
| 239 | acpi_ex_load_op ( | 186 | acpi_ex_load_op(union acpi_operand_object *obj_desc, |
| 240 | union acpi_operand_object *obj_desc, | 187 | union acpi_operand_object *target, |
| 241 | union acpi_operand_object *target, | 188 | struct acpi_walk_state *walk_state); |
| 242 | struct acpi_walk_state *walk_state); | ||
| 243 | 189 | ||
| 244 | acpi_status | 190 | acpi_status |
| 245 | acpi_ex_load_table_op ( | 191 | acpi_ex_load_table_op(struct acpi_walk_state *walk_state, |
| 246 | struct acpi_walk_state *walk_state, | 192 | union acpi_operand_object **return_desc); |
| 247 | union acpi_operand_object **return_desc); | ||
| 248 | |||
| 249 | acpi_status | ||
| 250 | acpi_ex_unload_table ( | ||
| 251 | union acpi_operand_object *ddb_handle); | ||
| 252 | 193 | ||
| 194 | acpi_status acpi_ex_unload_table(union acpi_operand_object *ddb_handle); | ||
| 253 | 195 | ||
| 254 | /* | 196 | /* |
| 255 | * exmutex - mutex support | 197 | * exmutex - mutex support |
| 256 | */ | 198 | */ |
| 257 | acpi_status | 199 | acpi_status |
| 258 | acpi_ex_acquire_mutex ( | 200 | acpi_ex_acquire_mutex(union acpi_operand_object *time_desc, |
| 259 | union acpi_operand_object *time_desc, | 201 | union acpi_operand_object *obj_desc, |
| 260 | union acpi_operand_object *obj_desc, | 202 | struct acpi_walk_state *walk_state); |
| 261 | struct acpi_walk_state *walk_state); | ||
| 262 | 203 | ||
| 263 | acpi_status | 204 | acpi_status |
| 264 | acpi_ex_release_mutex ( | 205 | acpi_ex_release_mutex(union acpi_operand_object *obj_desc, |
| 265 | union acpi_operand_object *obj_desc, | 206 | struct acpi_walk_state *walk_state); |
| 266 | struct acpi_walk_state *walk_state); | ||
| 267 | 207 | ||
| 268 | void | 208 | void acpi_ex_release_all_mutexes(struct acpi_thread_state *thread); |
| 269 | acpi_ex_release_all_mutexes ( | ||
| 270 | struct acpi_thread_state *thread); | ||
| 271 | |||
| 272 | void | ||
| 273 | acpi_ex_unlink_mutex ( | ||
| 274 | union acpi_operand_object *obj_desc); | ||
| 275 | 209 | ||
| 210 | void acpi_ex_unlink_mutex(union acpi_operand_object *obj_desc); | ||
| 276 | 211 | ||
| 277 | /* | 212 | /* |
| 278 | * exprep - ACPI AML execution - prep utilities | 213 | * exprep - ACPI AML execution - prep utilities |
| 279 | */ | 214 | */ |
| 280 | acpi_status | 215 | acpi_status |
| 281 | acpi_ex_prep_common_field_object ( | 216 | acpi_ex_prep_common_field_object(union acpi_operand_object *obj_desc, |
| 282 | union acpi_operand_object *obj_desc, | 217 | u8 field_flags, |
| 283 | u8 field_flags, | 218 | u8 field_attribute, |
| 284 | u8 field_attribute, | 219 | u32 field_bit_position, u32 field_bit_length); |
| 285 | u32 field_bit_position, | ||
| 286 | u32 field_bit_length); | ||
| 287 | |||
| 288 | acpi_status | ||
| 289 | acpi_ex_prep_field_value ( | ||
| 290 | struct acpi_create_field_info *info); | ||
| 291 | 220 | ||
| 221 | acpi_status acpi_ex_prep_field_value(struct acpi_create_field_info *info); | ||
| 292 | 222 | ||
| 293 | /* | 223 | /* |
| 294 | * exsystem - Interface to OS services | 224 | * exsystem - Interface to OS services |
| 295 | */ | 225 | */ |
| 296 | acpi_status | 226 | acpi_status |
| 297 | acpi_ex_system_do_notify_op ( | 227 | acpi_ex_system_do_notify_op(union acpi_operand_object *value, |
| 298 | union acpi_operand_object *value, | 228 | union acpi_operand_object *obj_desc); |
| 299 | union acpi_operand_object *obj_desc); | ||
| 300 | 229 | ||
| 301 | acpi_status | 230 | acpi_status acpi_ex_system_do_suspend(acpi_integer time); |
| 302 | acpi_ex_system_do_suspend( | ||
| 303 | acpi_integer time); | ||
| 304 | 231 | ||
| 305 | acpi_status | 232 | acpi_status acpi_ex_system_do_stall(u32 time); |
| 306 | acpi_ex_system_do_stall ( | ||
| 307 | u32 time); | ||
| 308 | 233 | ||
| 309 | acpi_status | 234 | acpi_status |
| 310 | acpi_ex_system_acquire_mutex( | 235 | acpi_ex_system_acquire_mutex(union acpi_operand_object *time, |
| 311 | union acpi_operand_object *time, | 236 | union acpi_operand_object *obj_desc); |
| 312 | union acpi_operand_object *obj_desc); | ||
| 313 | 237 | ||
| 314 | acpi_status | 238 | acpi_status acpi_ex_system_release_mutex(union acpi_operand_object *obj_desc); |
| 315 | acpi_ex_system_release_mutex( | ||
| 316 | union acpi_operand_object *obj_desc); | ||
| 317 | 239 | ||
| 318 | acpi_status | 240 | acpi_status acpi_ex_system_signal_event(union acpi_operand_object *obj_desc); |
| 319 | acpi_ex_system_signal_event( | ||
| 320 | union acpi_operand_object *obj_desc); | ||
| 321 | 241 | ||
| 322 | acpi_status | 242 | acpi_status |
| 323 | acpi_ex_system_wait_event( | 243 | acpi_ex_system_wait_event(union acpi_operand_object *time, |
| 324 | union acpi_operand_object *time, | 244 | union acpi_operand_object *obj_desc); |
| 325 | union acpi_operand_object *obj_desc); | ||
| 326 | 245 | ||
| 327 | acpi_status | 246 | acpi_status acpi_ex_system_reset_event(union acpi_operand_object *obj_desc); |
| 328 | acpi_ex_system_reset_event( | ||
| 329 | union acpi_operand_object *obj_desc); | ||
| 330 | |||
| 331 | acpi_status | ||
| 332 | acpi_ex_system_wait_semaphore ( | ||
| 333 | acpi_handle semaphore, | ||
| 334 | u16 timeout); | ||
| 335 | 247 | ||
| 248 | acpi_status acpi_ex_system_wait_semaphore(acpi_handle semaphore, u16 timeout); | ||
| 336 | 249 | ||
| 337 | /* | 250 | /* |
| 338 | * exoparg1 - ACPI AML execution, 1 operand | 251 | * exoparg1 - ACPI AML execution, 1 operand |
| 339 | */ | 252 | */ |
| 340 | acpi_status | 253 | acpi_status acpi_ex_opcode_0A_0T_1R(struct acpi_walk_state *walk_state); |
| 341 | acpi_ex_opcode_0A_0T_1R ( | ||
| 342 | struct acpi_walk_state *walk_state); | ||
| 343 | 254 | ||
| 344 | acpi_status | 255 | acpi_status acpi_ex_opcode_1A_0T_0R(struct acpi_walk_state *walk_state); |
| 345 | acpi_ex_opcode_1A_0T_0R ( | ||
| 346 | struct acpi_walk_state *walk_state); | ||
| 347 | 256 | ||
| 348 | acpi_status | 257 | acpi_status acpi_ex_opcode_1A_0T_1R(struct acpi_walk_state *walk_state); |
| 349 | acpi_ex_opcode_1A_0T_1R ( | ||
| 350 | struct acpi_walk_state *walk_state); | ||
| 351 | 258 | ||
| 352 | acpi_status | 259 | acpi_status acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state); |
| 353 | acpi_ex_opcode_1A_1T_1R ( | ||
| 354 | struct acpi_walk_state *walk_state); | ||
| 355 | 260 | ||
| 356 | acpi_status | 261 | acpi_status acpi_ex_opcode_1A_1T_0R(struct acpi_walk_state *walk_state); |
| 357 | acpi_ex_opcode_1A_1T_0R ( | ||
| 358 | struct acpi_walk_state *walk_state); | ||
| 359 | 262 | ||
| 360 | /* | 263 | /* |
| 361 | * exoparg2 - ACPI AML execution, 2 operands | 264 | * exoparg2 - ACPI AML execution, 2 operands |
| 362 | */ | 265 | */ |
| 363 | acpi_status | 266 | acpi_status acpi_ex_opcode_2A_0T_0R(struct acpi_walk_state *walk_state); |
| 364 | acpi_ex_opcode_2A_0T_0R ( | ||
| 365 | struct acpi_walk_state *walk_state); | ||
| 366 | 267 | ||
| 367 | acpi_status | 268 | acpi_status acpi_ex_opcode_2A_0T_1R(struct acpi_walk_state *walk_state); |
| 368 | acpi_ex_opcode_2A_0T_1R ( | ||
| 369 | struct acpi_walk_state *walk_state); | ||
| 370 | 269 | ||
| 371 | acpi_status | 270 | acpi_status acpi_ex_opcode_2A_1T_1R(struct acpi_walk_state *walk_state); |
| 372 | acpi_ex_opcode_2A_1T_1R ( | ||
| 373 | struct acpi_walk_state *walk_state); | ||
| 374 | |||
| 375 | acpi_status | ||
| 376 | acpi_ex_opcode_2A_2T_1R ( | ||
| 377 | struct acpi_walk_state *walk_state); | ||
| 378 | 271 | ||
| 272 | acpi_status acpi_ex_opcode_2A_2T_1R(struct acpi_walk_state *walk_state); | ||
| 379 | 273 | ||
| 380 | /* | 274 | /* |
| 381 | * exoparg3 - ACPI AML execution, 3 operands | 275 | * exoparg3 - ACPI AML execution, 3 operands |
| 382 | */ | 276 | */ |
| 383 | acpi_status | 277 | acpi_status acpi_ex_opcode_3A_0T_0R(struct acpi_walk_state *walk_state); |
| 384 | acpi_ex_opcode_3A_0T_0R ( | ||
| 385 | struct acpi_walk_state *walk_state); | ||
| 386 | |||
| 387 | acpi_status | ||
| 388 | acpi_ex_opcode_3A_1T_1R ( | ||
| 389 | struct acpi_walk_state *walk_state); | ||
| 390 | 278 | ||
| 279 | acpi_status acpi_ex_opcode_3A_1T_1R(struct acpi_walk_state *walk_state); | ||
| 391 | 280 | ||
| 392 | /* | 281 | /* |
| 393 | * exoparg6 - ACPI AML execution, 6 operands | 282 | * exoparg6 - ACPI AML execution, 6 operands |
| 394 | */ | 283 | */ |
| 395 | acpi_status | 284 | acpi_status acpi_ex_opcode_6A_0T_1R(struct acpi_walk_state *walk_state); |
| 396 | acpi_ex_opcode_6A_0T_1R ( | ||
| 397 | struct acpi_walk_state *walk_state); | ||
| 398 | |||
| 399 | 285 | ||
| 400 | /* | 286 | /* |
| 401 | * exresolv - Object resolution and get value functions | 287 | * exresolv - Object resolution and get value functions |
| 402 | */ | 288 | */ |
| 403 | acpi_status | 289 | acpi_status |
| 404 | acpi_ex_resolve_to_value ( | 290 | acpi_ex_resolve_to_value(union acpi_operand_object **stack_ptr, |
| 405 | union acpi_operand_object **stack_ptr, | 291 | struct acpi_walk_state *walk_state); |
| 406 | struct acpi_walk_state *walk_state); | ||
| 407 | 292 | ||
| 408 | acpi_status | 293 | acpi_status |
| 409 | acpi_ex_resolve_multiple ( | 294 | acpi_ex_resolve_multiple(struct acpi_walk_state *walk_state, |
| 410 | struct acpi_walk_state *walk_state, | 295 | union acpi_operand_object *operand, |
| 411 | union acpi_operand_object *operand, | 296 | acpi_object_type * return_type, |
| 412 | acpi_object_type *return_type, | 297 | union acpi_operand_object **return_desc); |
| 413 | union acpi_operand_object **return_desc); | ||
| 414 | |||
| 415 | 298 | ||
| 416 | /* | 299 | /* |
| 417 | * exresnte - resolve namespace node | 300 | * exresnte - resolve namespace node |
| 418 | */ | 301 | */ |
| 419 | acpi_status | 302 | acpi_status |
| 420 | acpi_ex_resolve_node_to_value ( | 303 | acpi_ex_resolve_node_to_value(struct acpi_namespace_node **stack_ptr, |
| 421 | struct acpi_namespace_node **stack_ptr, | 304 | struct acpi_walk_state *walk_state); |
| 422 | struct acpi_walk_state *walk_state); | ||
| 423 | |||
| 424 | 305 | ||
| 425 | /* | 306 | /* |
| 426 | * exresop - resolve operand to value | 307 | * exresop - resolve operand to value |
| 427 | */ | 308 | */ |
| 428 | acpi_status | 309 | acpi_status |
| 429 | acpi_ex_resolve_operands ( | 310 | acpi_ex_resolve_operands(u16 opcode, |
| 430 | u16 opcode, | 311 | union acpi_operand_object **stack_ptr, |
| 431 | union acpi_operand_object **stack_ptr, | 312 | struct acpi_walk_state *walk_state); |
| 432 | struct acpi_walk_state *walk_state); | ||
| 433 | |||
| 434 | 313 | ||
| 435 | /* | 314 | /* |
| 436 | * exdump - Interpreter debug output routines | 315 | * exdump - Interpreter debug output routines |
| 437 | */ | 316 | */ |
| 438 | void | 317 | void acpi_ex_dump_operand(union acpi_operand_object *obj_desc, u32 depth); |
| 439 | acpi_ex_dump_operand ( | ||
| 440 | union acpi_operand_object *obj_desc, | ||
| 441 | u32 depth); | ||
| 442 | 318 | ||
| 443 | void | 319 | void |
| 444 | acpi_ex_dump_operands ( | 320 | acpi_ex_dump_operands(union acpi_operand_object **operands, |
| 445 | union acpi_operand_object **operands, | 321 | acpi_interpreter_mode interpreter_mode, |
| 446 | acpi_interpreter_mode interpreter_mode, | 322 | char *ident, |
| 447 | char *ident, | 323 | u32 num_levels, |
| 448 | u32 num_levels, | 324 | char *note, char *module_name, u32 line_number); |
| 449 | char *note, | ||
| 450 | char *module_name, | ||
| 451 | u32 line_number); | ||
| 452 | 325 | ||
| 453 | #ifdef ACPI_FUTURE_USAGE | 326 | #ifdef ACPI_FUTURE_USAGE |
| 454 | void | 327 | void |
| 455 | acpi_ex_dump_object_descriptor ( | 328 | acpi_ex_dump_object_descriptor(union acpi_operand_object *object, u32 flags); |
| 456 | union acpi_operand_object *object, | ||
| 457 | u32 flags); | ||
| 458 | |||
| 459 | void | ||
| 460 | acpi_ex_dump_node ( | ||
| 461 | struct acpi_namespace_node *node, | ||
| 462 | u32 flags); | ||
| 463 | #endif /* ACPI_FUTURE_USAGE */ | ||
| 464 | 329 | ||
| 330 | void acpi_ex_dump_node(struct acpi_namespace_node *node, u32 flags); | ||
| 331 | #endif /* ACPI_FUTURE_USAGE */ | ||
| 465 | 332 | ||
| 466 | /* | 333 | /* |
| 467 | * exnames - AML namestring support | 334 | * exnames - AML namestring support |
| 468 | */ | 335 | */ |
| 469 | acpi_status | 336 | acpi_status |
| 470 | acpi_ex_get_name_string ( | 337 | acpi_ex_get_name_string(acpi_object_type data_type, |
| 471 | acpi_object_type data_type, | 338 | u8 * in_aml_address, |
| 472 | u8 *in_aml_address, | 339 | char **out_name_string, u32 * out_name_length); |
| 473 | char **out_name_string, | ||
| 474 | u32 *out_name_length); | ||
| 475 | |||
| 476 | 340 | ||
| 477 | /* | 341 | /* |
| 478 | * exstore - Object store support | 342 | * exstore - Object store support |
| 479 | */ | 343 | */ |
| 480 | acpi_status | 344 | acpi_status |
| 481 | acpi_ex_store ( | 345 | acpi_ex_store(union acpi_operand_object *val_desc, |
| 482 | union acpi_operand_object *val_desc, | 346 | union acpi_operand_object *dest_desc, |
| 483 | union acpi_operand_object *dest_desc, | 347 | struct acpi_walk_state *walk_state); |
| 484 | struct acpi_walk_state *walk_state); | ||
| 485 | 348 | ||
| 486 | acpi_status | 349 | acpi_status |
| 487 | acpi_ex_store_object_to_node ( | 350 | acpi_ex_store_object_to_node(union acpi_operand_object *source_desc, |
| 488 | union acpi_operand_object *source_desc, | 351 | struct acpi_namespace_node *node, |
| 489 | struct acpi_namespace_node *node, | 352 | struct acpi_walk_state *walk_state, |
| 490 | struct acpi_walk_state *walk_state, | 353 | u8 implicit_conversion); |
| 491 | u8 implicit_conversion); | ||
| 492 | 354 | ||
| 493 | #define ACPI_IMPLICIT_CONVERSION TRUE | 355 | #define ACPI_IMPLICIT_CONVERSION TRUE |
| 494 | #define ACPI_NO_IMPLICIT_CONVERSION FALSE | 356 | #define ACPI_NO_IMPLICIT_CONVERSION FALSE |
| 495 | 357 | ||
| 496 | |||
| 497 | /* | 358 | /* |
| 498 | * exstoren - resolve/store object | 359 | * exstoren - resolve/store object |
| 499 | */ | 360 | */ |
| 500 | acpi_status | 361 | acpi_status |
| 501 | acpi_ex_resolve_object ( | 362 | acpi_ex_resolve_object(union acpi_operand_object **source_desc_ptr, |
| 502 | union acpi_operand_object **source_desc_ptr, | 363 | acpi_object_type target_type, |
| 503 | acpi_object_type target_type, | 364 | struct acpi_walk_state *walk_state); |
| 504 | struct acpi_walk_state *walk_state); | ||
| 505 | 365 | ||
| 506 | acpi_status | 366 | acpi_status |
| 507 | acpi_ex_store_object_to_object ( | 367 | acpi_ex_store_object_to_object(union acpi_operand_object *source_desc, |
| 508 | union acpi_operand_object *source_desc, | 368 | union acpi_operand_object *dest_desc, |
| 509 | union acpi_operand_object *dest_desc, | 369 | union acpi_operand_object **new_desc, |
| 510 | union acpi_operand_object **new_desc, | 370 | struct acpi_walk_state *walk_state); |
| 511 | struct acpi_walk_state *walk_state); | ||
| 512 | |||
| 513 | 371 | ||
| 514 | /* | 372 | /* |
| 515 | * exstorob - store object - buffer/string | 373 | * exstorob - store object - buffer/string |
| 516 | */ | 374 | */ |
| 517 | acpi_status | 375 | acpi_status |
| 518 | acpi_ex_store_buffer_to_buffer ( | 376 | acpi_ex_store_buffer_to_buffer(union acpi_operand_object *source_desc, |
| 519 | union acpi_operand_object *source_desc, | 377 | union acpi_operand_object *target_desc); |
| 520 | union acpi_operand_object *target_desc); | ||
| 521 | 378 | ||
| 522 | acpi_status | 379 | acpi_status |
| 523 | acpi_ex_store_string_to_string ( | 380 | acpi_ex_store_string_to_string(union acpi_operand_object *source_desc, |
| 524 | union acpi_operand_object *source_desc, | 381 | union acpi_operand_object *target_desc); |
| 525 | union acpi_operand_object *target_desc); | ||
| 526 | |||
| 527 | 382 | ||
| 528 | /* | 383 | /* |
| 529 | * excopy - object copy | 384 | * excopy - object copy |
| 530 | */ | 385 | */ |
| 531 | acpi_status | 386 | acpi_status |
| 532 | acpi_ex_copy_integer_to_index_field ( | 387 | acpi_ex_copy_integer_to_index_field(union acpi_operand_object *source_desc, |
| 533 | union acpi_operand_object *source_desc, | 388 | union acpi_operand_object *target_desc); |
| 534 | union acpi_operand_object *target_desc); | ||
| 535 | 389 | ||
| 536 | acpi_status | 390 | acpi_status |
| 537 | acpi_ex_copy_integer_to_bank_field ( | 391 | acpi_ex_copy_integer_to_bank_field(union acpi_operand_object *source_desc, |
| 538 | union acpi_operand_object *source_desc, | 392 | union acpi_operand_object *target_desc); |
| 539 | union acpi_operand_object *target_desc); | ||
| 540 | 393 | ||
| 541 | acpi_status | 394 | acpi_status |
| 542 | acpi_ex_copy_data_to_named_field ( | 395 | acpi_ex_copy_data_to_named_field(union acpi_operand_object *source_desc, |
| 543 | union acpi_operand_object *source_desc, | 396 | struct acpi_namespace_node *node); |
| 544 | struct acpi_namespace_node *node); | ||
| 545 | 397 | ||
| 546 | acpi_status | 398 | acpi_status |
| 547 | acpi_ex_copy_integer_to_buffer_field ( | 399 | acpi_ex_copy_integer_to_buffer_field(union acpi_operand_object *source_desc, |
| 548 | union acpi_operand_object *source_desc, | 400 | union acpi_operand_object *target_desc); |
| 549 | union acpi_operand_object *target_desc); | ||
| 550 | |||
| 551 | 401 | ||
| 552 | /* | 402 | /* |
| 553 | * exutils - interpreter/scanner utilities | 403 | * exutils - interpreter/scanner utilities |
| 554 | */ | 404 | */ |
| 555 | acpi_status | 405 | acpi_status acpi_ex_enter_interpreter(void); |
| 556 | acpi_ex_enter_interpreter ( | ||
| 557 | void); | ||
| 558 | 406 | ||
| 559 | void | 407 | void acpi_ex_exit_interpreter(void); |
| 560 | acpi_ex_exit_interpreter ( | ||
| 561 | void); | ||
| 562 | 408 | ||
| 563 | void | 409 | void acpi_ex_truncate_for32bit_table(union acpi_operand_object *obj_desc); |
| 564 | acpi_ex_truncate_for32bit_table ( | ||
| 565 | union acpi_operand_object *obj_desc); | ||
| 566 | 410 | ||
| 567 | u8 | 411 | u8 acpi_ex_acquire_global_lock(u32 rule); |
| 568 | acpi_ex_acquire_global_lock ( | ||
| 569 | u32 rule); | ||
| 570 | 412 | ||
| 571 | void | 413 | void acpi_ex_release_global_lock(u8 locked); |
| 572 | acpi_ex_release_global_lock ( | ||
| 573 | u8 locked); | ||
| 574 | 414 | ||
| 575 | void | 415 | void acpi_ex_eisa_id_to_string(u32 numeric_id, char *out_string); |
| 576 | acpi_ex_eisa_id_to_string ( | ||
| 577 | u32 numeric_id, | ||
| 578 | char *out_string); | ||
| 579 | |||
| 580 | void | ||
| 581 | acpi_ex_unsigned_integer_to_string ( | ||
| 582 | acpi_integer value, | ||
| 583 | char *out_string); | ||
| 584 | 416 | ||
| 417 | void acpi_ex_unsigned_integer_to_string(acpi_integer value, char *out_string); | ||
| 585 | 418 | ||
| 586 | /* | 419 | /* |
| 587 | * exregion - default op_region handlers | 420 | * exregion - default op_region handlers |
| 588 | */ | 421 | */ |
| 589 | acpi_status | 422 | acpi_status |
| 590 | acpi_ex_system_memory_space_handler ( | 423 | acpi_ex_system_memory_space_handler(u32 function, |
| 591 | u32 function, | 424 | acpi_physical_address address, |
| 592 | acpi_physical_address address, | 425 | u32 bit_width, |
| 593 | u32 bit_width, | 426 | acpi_integer * value, |
| 594 | acpi_integer *value, | 427 | void *handler_context, |
| 595 | void *handler_context, | 428 | void *region_context); |
| 596 | void *region_context); | 429 | |
| 597 | 430 | acpi_status | |
| 598 | acpi_status | 431 | acpi_ex_system_io_space_handler(u32 function, |
| 599 | acpi_ex_system_io_space_handler ( | 432 | acpi_physical_address address, |
| 600 | u32 function, | 433 | u32 bit_width, |
| 601 | acpi_physical_address address, | 434 | acpi_integer * value, |
| 602 | u32 bit_width, | 435 | void *handler_context, void *region_context); |
| 603 | acpi_integer *value, | 436 | |
| 604 | void *handler_context, | 437 | acpi_status |
| 605 | void *region_context); | 438 | acpi_ex_pci_config_space_handler(u32 function, |
| 606 | 439 | acpi_physical_address address, | |
| 607 | acpi_status | 440 | u32 bit_width, |
| 608 | acpi_ex_pci_config_space_handler ( | 441 | acpi_integer * value, |
| 609 | u32 function, | 442 | void *handler_context, void *region_context); |
| 610 | acpi_physical_address address, | 443 | |
| 611 | u32 bit_width, | 444 | acpi_status |
| 612 | acpi_integer *value, | 445 | acpi_ex_cmos_space_handler(u32 function, |
| 613 | void *handler_context, | 446 | acpi_physical_address address, |
| 614 | void *region_context); | 447 | u32 bit_width, |
| 615 | 448 | acpi_integer * value, | |
| 616 | acpi_status | 449 | void *handler_context, void *region_context); |
| 617 | acpi_ex_cmos_space_handler ( | 450 | |
| 618 | u32 function, | 451 | acpi_status |
| 619 | acpi_physical_address address, | 452 | acpi_ex_pci_bar_space_handler(u32 function, |
| 620 | u32 bit_width, | 453 | acpi_physical_address address, |
| 621 | acpi_integer *value, | 454 | u32 bit_width, |
| 622 | void *handler_context, | 455 | acpi_integer * value, |
| 623 | void *region_context); | 456 | void *handler_context, void *region_context); |
| 624 | 457 | ||
| 625 | acpi_status | 458 | acpi_status |
| 626 | acpi_ex_pci_bar_space_handler ( | 459 | acpi_ex_embedded_controller_space_handler(u32 function, |
| 627 | u32 function, | 460 | acpi_physical_address address, |
| 628 | acpi_physical_address address, | 461 | u32 bit_width, |
| 629 | u32 bit_width, | 462 | acpi_integer * value, |
| 630 | acpi_integer *value, | 463 | void *handler_context, |
| 631 | void *handler_context, | 464 | void *region_context); |
| 632 | void *region_context); | 465 | |
| 633 | 466 | acpi_status | |
| 634 | acpi_status | 467 | acpi_ex_sm_bus_space_handler(u32 function, |
| 635 | acpi_ex_embedded_controller_space_handler ( | 468 | acpi_physical_address address, |
| 636 | u32 function, | 469 | u32 bit_width, |
| 637 | acpi_physical_address address, | 470 | acpi_integer * value, |
| 638 | u32 bit_width, | 471 | void *handler_context, void *region_context); |
| 639 | acpi_integer *value, | 472 | |
| 640 | void *handler_context, | 473 | acpi_status |
| 641 | void *region_context); | 474 | acpi_ex_data_table_space_handler(u32 function, |
| 642 | 475 | acpi_physical_address address, | |
| 643 | acpi_status | 476 | u32 bit_width, |
| 644 | acpi_ex_sm_bus_space_handler ( | 477 | acpi_integer * value, |
| 645 | u32 function, | 478 | void *handler_context, void *region_context); |
| 646 | acpi_physical_address address, | 479 | |
| 647 | u32 bit_width, | 480 | #endif /* __INTERP_H__ */ |
| 648 | acpi_integer *value, | ||
| 649 | void *handler_context, | ||
| 650 | void *region_context); | ||
| 651 | |||
| 652 | |||
| 653 | acpi_status | ||
| 654 | acpi_ex_data_table_space_handler ( | ||
| 655 | u32 function, | ||
| 656 | acpi_physical_address address, | ||
| 657 | u32 bit_width, | ||
| 658 | acpi_integer *value, | ||
| 659 | void *handler_context, | ||
| 660 | void *region_context); | ||
| 661 | |||
| 662 | #endif /* __INTERP_H__ */ | ||
