diff options
author | Len Brown <len.brown@intel.com> | 2005-07-12 17:21:56 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-07-12 17:21:56 -0400 |
commit | 5028770a42e7bc4d15791a44c28f0ad539323807 (patch) | |
tree | 74800e35129775413c13ce7caf036ca19e3ce56c /include/acpi/acdispat.h | |
parent | 9f02d6b7b43d46a74dd385f06090104ecd0fb807 (diff) | |
parent | d8683a0cb5d09cb7f19feefa708424a84577e68f (diff) |
[ACPI] merge acpi-2.6.12 branch into latest Linux 2.6.13-rc...
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi/acdispat.h')
-rw-r--r-- | include/acpi/acdispat.h | 171 |
1 files changed, 49 insertions, 122 deletions
diff --git a/include/acpi/acdispat.h b/include/acpi/acdispat.h index 237d63433581..8f5f2f71b1de 100644 --- a/include/acpi/acdispat.h +++ b/include/acpi/acdispat.h | |||
@@ -50,40 +50,9 @@ | |||
50 | #define NAMEOF_ARG_NTE "__A0" | 50 | #define NAMEOF_ARG_NTE "__A0" |
51 | 51 | ||
52 | 52 | ||
53 | /* Common interfaces */ | 53 | /* |
54 | 54 | * dsopcode - support for late evaluation | |
55 | acpi_status | 55 | */ |
56 | acpi_ds_obj_stack_push ( | ||
57 | void *object, | ||
58 | struct acpi_walk_state *walk_state); | ||
59 | |||
60 | acpi_status | ||
61 | acpi_ds_obj_stack_pop ( | ||
62 | u32 pop_count, | ||
63 | struct acpi_walk_state *walk_state); | ||
64 | |||
65 | #ifdef ACPI_FUTURE_USAGE | ||
66 | void * | ||
67 | acpi_ds_obj_stack_get_value ( | ||
68 | u32 index, | ||
69 | struct acpi_walk_state *walk_state); | ||
70 | #endif | ||
71 | |||
72 | acpi_status | ||
73 | acpi_ds_obj_stack_pop_object ( | ||
74 | union acpi_operand_object **object, | ||
75 | struct acpi_walk_state *walk_state); | ||
76 | |||
77 | |||
78 | /* dsopcode - support for late evaluation */ | ||
79 | |||
80 | acpi_status | ||
81 | acpi_ds_execute_arguments ( | ||
82 | struct acpi_namespace_node *node, | ||
83 | struct acpi_namespace_node *scope_node, | ||
84 | u32 aml_length, | ||
85 | u8 *aml_start); | ||
86 | |||
87 | acpi_status | 56 | acpi_status |
88 | acpi_ds_get_buffer_field_arguments ( | 57 | acpi_ds_get_buffer_field_arguments ( |
89 | union acpi_operand_object *obj_desc); | 58 | union acpi_operand_object *obj_desc); |
@@ -101,15 +70,6 @@ acpi_ds_get_package_arguments ( | |||
101 | union acpi_operand_object *obj_desc); | 70 | union acpi_operand_object *obj_desc); |
102 | 71 | ||
103 | acpi_status | 72 | acpi_status |
104 | acpi_ds_init_buffer_field ( | ||
105 | u16 aml_opcode, | ||
106 | union acpi_operand_object *obj_desc, | ||
107 | union acpi_operand_object *buffer_desc, | ||
108 | union acpi_operand_object *offset_desc, | ||
109 | union acpi_operand_object *length_desc, | ||
110 | union acpi_operand_object *result_desc); | ||
111 | |||
112 | acpi_status | ||
113 | acpi_ds_eval_buffer_field_operands ( | 73 | acpi_ds_eval_buffer_field_operands ( |
114 | struct acpi_walk_state *walk_state, | 74 | struct acpi_walk_state *walk_state, |
115 | union acpi_parse_object *op); | 75 | union acpi_parse_object *op); |
@@ -130,9 +90,9 @@ acpi_ds_initialize_region ( | |||
130 | acpi_handle obj_handle); | 90 | acpi_handle obj_handle); |
131 | 91 | ||
132 | 92 | ||
133 | /* dsctrl - Parser/Interpreter interface, control stack routines */ | 93 | /* |
134 | 94 | * dsctrl - Parser/Interpreter interface, control stack routines | |
135 | 95 | */ | |
136 | acpi_status | 96 | acpi_status |
137 | acpi_ds_exec_begin_control_op ( | 97 | acpi_ds_exec_begin_control_op ( |
138 | struct acpi_walk_state *walk_state, | 98 | struct acpi_walk_state *walk_state, |
@@ -144,9 +104,9 @@ acpi_ds_exec_end_control_op ( | |||
144 | union acpi_parse_object *op); | 104 | union acpi_parse_object *op); |
145 | 105 | ||
146 | 106 | ||
147 | /* dsexec - Parser/Interpreter interface, method execution callbacks */ | 107 | /* |
148 | 108 | * dsexec - Parser/Interpreter interface, method execution callbacks | |
149 | 109 | */ | |
150 | acpi_status | 110 | acpi_status |
151 | acpi_ds_get_predicate_value ( | 111 | acpi_ds_get_predicate_value ( |
152 | struct acpi_walk_state *walk_state, | 112 | struct acpi_walk_state *walk_state, |
@@ -162,14 +122,9 @@ acpi_ds_exec_end_op ( | |||
162 | struct acpi_walk_state *state); | 122 | struct acpi_walk_state *state); |
163 | 123 | ||
164 | 124 | ||
165 | /* dsfield - Parser/Interpreter interface for AML fields */ | 125 | /* |
166 | 126 | * dsfield - Parser/Interpreter interface for AML fields | |
167 | acpi_status | 127 | */ |
168 | acpi_ds_get_field_names ( | ||
169 | struct acpi_create_field_info *info, | ||
170 | struct acpi_walk_state *walk_state, | ||
171 | union acpi_parse_object *arg); | ||
172 | |||
173 | acpi_status | 128 | acpi_status |
174 | acpi_ds_create_field ( | 129 | acpi_ds_create_field ( |
175 | union acpi_parse_object *op, | 130 | union acpi_parse_object *op, |
@@ -199,8 +154,9 @@ acpi_ds_init_field_objects ( | |||
199 | struct acpi_walk_state *walk_state); | 154 | struct acpi_walk_state *walk_state); |
200 | 155 | ||
201 | 156 | ||
202 | /* dsload - Parser/Interpreter interface, namespace load callbacks */ | 157 | /* |
203 | 158 | * dsload - Parser/Interpreter interface, namespace load callbacks | |
159 | */ | ||
204 | acpi_status | 160 | acpi_status |
205 | acpi_ds_load1_begin_op ( | 161 | acpi_ds_load1_begin_op ( |
206 | struct acpi_walk_state *walk_state, | 162 | struct acpi_walk_state *walk_state, |
@@ -225,9 +181,9 @@ acpi_ds_init_callbacks ( | |||
225 | u32 pass_number); | 181 | u32 pass_number); |
226 | 182 | ||
227 | 183 | ||
228 | /* dsmthdat - method data (locals/args) */ | 184 | /* |
229 | 185 | * dsmthdat - method data (locals/args) | |
230 | 186 | */ | |
231 | acpi_status | 187 | acpi_status |
232 | acpi_ds_store_object_to_local ( | 188 | acpi_ds_store_object_to_local ( |
233 | u16 opcode, | 189 | u16 opcode, |
@@ -250,14 +206,6 @@ u8 | |||
250 | acpi_ds_is_method_value ( | 206 | acpi_ds_is_method_value ( |
251 | union acpi_operand_object *obj_desc); | 207 | union acpi_operand_object *obj_desc); |
252 | 208 | ||
253 | #ifdef ACPI_FUTURE_USAGE | ||
254 | acpi_object_type | ||
255 | acpi_ds_method_data_get_type ( | ||
256 | u16 opcode, | ||
257 | u32 index, | ||
258 | struct acpi_walk_state *walk_state); | ||
259 | #endif | ||
260 | |||
261 | acpi_status | 209 | acpi_status |
262 | acpi_ds_method_data_get_value ( | 210 | acpi_ds_method_data_get_value ( |
263 | u16 opcode, | 211 | u16 opcode, |
@@ -265,12 +213,6 @@ acpi_ds_method_data_get_value ( | |||
265 | struct acpi_walk_state *walk_state, | 213 | struct acpi_walk_state *walk_state, |
266 | union acpi_operand_object **dest_desc); | 214 | union acpi_operand_object **dest_desc); |
267 | 215 | ||
268 | void | ||
269 | acpi_ds_method_data_delete_value ( | ||
270 | u16 opcode, | ||
271 | u32 index, | ||
272 | struct acpi_walk_state *walk_state); | ||
273 | |||
274 | acpi_status | 216 | acpi_status |
275 | acpi_ds_method_data_init_args ( | 217 | acpi_ds_method_data_init_args ( |
276 | union acpi_operand_object **params, | 218 | union acpi_operand_object **params, |
@@ -288,16 +230,10 @@ void | |||
288 | acpi_ds_method_data_init ( | 230 | acpi_ds_method_data_init ( |
289 | struct acpi_walk_state *walk_state); | 231 | struct acpi_walk_state *walk_state); |
290 | 232 | ||
291 | acpi_status | ||
292 | acpi_ds_method_data_set_value ( | ||
293 | u16 opcode, | ||
294 | u32 index, | ||
295 | union acpi_operand_object *object, | ||
296 | struct acpi_walk_state *walk_state); | ||
297 | |||
298 | |||
299 | /* dsmethod - Parser/Interpreter interface - control method parsing */ | ||
300 | 233 | ||
234 | /* | ||
235 | * dsmethod - Parser/Interpreter interface - control method parsing | ||
236 | */ | ||
301 | acpi_status | 237 | acpi_status |
302 | acpi_ds_parse_method ( | 238 | acpi_ds_parse_method ( |
303 | acpi_handle obj_handle); | 239 | acpi_handle obj_handle); |
@@ -324,20 +260,18 @@ acpi_ds_begin_method_execution ( | |||
324 | struct acpi_namespace_node *calling_method_node); | 260 | struct acpi_namespace_node *calling_method_node); |
325 | 261 | ||
326 | 262 | ||
327 | /* dsobj - Parser/Interpreter interface - object initialization and conversion */ | 263 | /* |
328 | 264 | * dsinit | |
329 | acpi_status | 265 | */ |
330 | acpi_ds_init_one_object ( | ||
331 | acpi_handle obj_handle, | ||
332 | u32 level, | ||
333 | void *context, | ||
334 | void **return_value); | ||
335 | |||
336 | acpi_status | 266 | acpi_status |
337 | acpi_ds_initialize_objects ( | 267 | acpi_ds_initialize_objects ( |
338 | struct acpi_table_desc *table_desc, | 268 | struct acpi_table_desc *table_desc, |
339 | struct acpi_namespace_node *start_node); | 269 | struct acpi_namespace_node *start_node); |
340 | 270 | ||
271 | |||
272 | /* | ||
273 | * dsobject - Parser/Interpreter interface - object initialization and conversion | ||
274 | */ | ||
341 | acpi_status | 275 | acpi_status |
342 | acpi_ds_build_internal_buffer_obj ( | 276 | acpi_ds_build_internal_buffer_obj ( |
343 | struct acpi_walk_state *walk_state, | 277 | struct acpi_walk_state *walk_state, |
@@ -353,12 +287,6 @@ acpi_ds_build_internal_package_obj ( | |||
353 | union acpi_operand_object **obj_desc); | 287 | union acpi_operand_object **obj_desc); |
354 | 288 | ||
355 | acpi_status | 289 | acpi_status |
356 | acpi_ds_build_internal_object ( | ||
357 | struct acpi_walk_state *walk_state, | ||
358 | union acpi_parse_object *op, | ||
359 | union acpi_operand_object **obj_desc_ptr); | ||
360 | |||
361 | acpi_status | ||
362 | acpi_ds_init_object_from_op ( | 290 | acpi_ds_init_object_from_op ( |
363 | struct acpi_walk_state *walk_state, | 291 | struct acpi_walk_state *walk_state, |
364 | union acpi_parse_object *op, | 292 | union acpi_parse_object *op, |
@@ -372,8 +300,9 @@ acpi_ds_create_node ( | |||
372 | union acpi_parse_object *op); | 300 | union acpi_parse_object *op); |
373 | 301 | ||
374 | 302 | ||
375 | /* dsutils - Parser/Interpreter interface utility routines */ | 303 | /* |
376 | 304 | * dsutils - Parser/Interpreter interface utility routines | |
305 | */ | ||
377 | void | 306 | void |
378 | acpi_ds_clear_implicit_return ( | 307 | acpi_ds_clear_implicit_return ( |
379 | struct acpi_walk_state *walk_state); | 308 | struct acpi_walk_state *walk_state); |
@@ -418,7 +347,6 @@ acpi_ds_clear_operands ( | |||
418 | /* | 347 | /* |
419 | * dswscope - Scope Stack manipulation | 348 | * dswscope - Scope Stack manipulation |
420 | */ | 349 | */ |
421 | |||
422 | acpi_status | 350 | acpi_status |
423 | acpi_ds_scope_stack_push ( | 351 | acpi_ds_scope_stack_push ( |
424 | struct acpi_namespace_node *node, | 352 | struct acpi_namespace_node *node, |
@@ -435,7 +363,18 @@ acpi_ds_scope_stack_clear ( | |||
435 | struct acpi_walk_state *walk_state); | 363 | struct acpi_walk_state *walk_state); |
436 | 364 | ||
437 | 365 | ||
438 | /* dswstate - parser WALK_STATE management routines */ | 366 | /* |
367 | * dswstate - parser WALK_STATE management routines | ||
368 | */ | ||
369 | acpi_status | ||
370 | acpi_ds_obj_stack_push ( | ||
371 | void *object, | ||
372 | struct acpi_walk_state *walk_state); | ||
373 | |||
374 | acpi_status | ||
375 | acpi_ds_obj_stack_pop ( | ||
376 | u32 pop_count, | ||
377 | struct acpi_walk_state *walk_state); | ||
439 | 378 | ||
440 | struct acpi_walk_state * | 379 | struct acpi_walk_state * |
441 | acpi_ds_create_walk_state ( | 380 | acpi_ds_create_walk_state ( |
@@ -454,12 +393,6 @@ acpi_ds_init_aml_walk ( | |||
454 | struct acpi_parameter_info *info, | 393 | struct acpi_parameter_info *info, |
455 | u32 pass_number); | 394 | u32 pass_number); |
456 | 395 | ||
457 | #ifdef ACPI_FUTURE_USAGE | ||
458 | acpi_status | ||
459 | acpi_ds_obj_stack_delete_all ( | ||
460 | struct acpi_walk_state *walk_state); | ||
461 | #endif | ||
462 | |||
463 | acpi_status | 396 | acpi_status |
464 | acpi_ds_obj_stack_pop_and_delete ( | 397 | acpi_ds_obj_stack_pop_and_delete ( |
465 | u32 pop_count, | 398 | u32 pop_count, |
@@ -494,20 +427,8 @@ struct acpi_walk_state * | |||
494 | acpi_ds_get_current_walk_state ( | 427 | acpi_ds_get_current_walk_state ( |
495 | struct acpi_thread_state *thread); | 428 | struct acpi_thread_state *thread); |
496 | 429 | ||
497 | #ifdef ACPI_ENABLE_OBJECT_CACHE | ||
498 | void | ||
499 | acpi_ds_delete_walk_state_cache ( | ||
500 | void); | ||
501 | #endif | ||
502 | |||
503 | #ifdef ACPI_FUTURE_USAGE | 430 | #ifdef ACPI_FUTURE_USAGE |
504 | acpi_status | 431 | acpi_status |
505 | acpi_ds_result_insert ( | ||
506 | void *object, | ||
507 | u32 index, | ||
508 | struct acpi_walk_state *walk_state); | ||
509 | |||
510 | acpi_status | ||
511 | acpi_ds_result_remove ( | 432 | acpi_ds_result_remove ( |
512 | union acpi_operand_object **object, | 433 | union acpi_operand_object **object, |
513 | u32 index, | 434 | u32 index, |
@@ -529,4 +450,10 @@ acpi_ds_result_pop_from_bottom ( | |||
529 | union acpi_operand_object **object, | 450 | union acpi_operand_object **object, |
530 | struct acpi_walk_state *walk_state); | 451 | struct acpi_walk_state *walk_state); |
531 | 452 | ||
453 | #ifdef ACPI_ENABLE_OBJECT_CACHE | ||
454 | void | ||
455 | acpi_ds_delete_walk_state_cache ( | ||
456 | void); | ||
457 | #endif | ||
458 | |||
532 | #endif /* _ACDISPAT_H_ */ | 459 | #endif /* _ACDISPAT_H_ */ |