diff options
Diffstat (limited to 'drivers/acpi/acpica/acutils.h')
-rw-r--r-- | drivers/acpi/acpica/acutils.h | 58 |
1 files changed, 42 insertions, 16 deletions
diff --git a/drivers/acpi/acpica/acutils.h b/drivers/acpi/acpica/acutils.h index 5035327ebccc..b0f5f92b674a 100644 --- a/drivers/acpi/acpica/acutils.h +++ b/drivers/acpi/acpica/acutils.h | |||
@@ -69,6 +69,22 @@ extern const char *acpi_gbl_siz_decode[]; | |||
69 | extern const char *acpi_gbl_trs_decode[]; | 69 | extern const char *acpi_gbl_trs_decode[]; |
70 | extern const char *acpi_gbl_ttp_decode[]; | 70 | extern const char *acpi_gbl_ttp_decode[]; |
71 | extern const char *acpi_gbl_typ_decode[]; | 71 | extern const char *acpi_gbl_typ_decode[]; |
72 | extern const char *acpi_gbl_ppc_decode[]; | ||
73 | extern const char *acpi_gbl_ior_decode[]; | ||
74 | extern const char *acpi_gbl_dts_decode[]; | ||
75 | extern const char *acpi_gbl_ct_decode[]; | ||
76 | extern const char *acpi_gbl_sbt_decode[]; | ||
77 | extern const char *acpi_gbl_am_decode[]; | ||
78 | extern const char *acpi_gbl_sm_decode[]; | ||
79 | extern const char *acpi_gbl_wm_decode[]; | ||
80 | extern const char *acpi_gbl_cph_decode[]; | ||
81 | extern const char *acpi_gbl_cpo_decode[]; | ||
82 | extern const char *acpi_gbl_dp_decode[]; | ||
83 | extern const char *acpi_gbl_ed_decode[]; | ||
84 | extern const char *acpi_gbl_bpb_decode[]; | ||
85 | extern const char *acpi_gbl_sb_decode[]; | ||
86 | extern const char *acpi_gbl_fc_decode[]; | ||
87 | extern const char *acpi_gbl_pt_decode[]; | ||
72 | #endif | 88 | #endif |
73 | 89 | ||
74 | /* Types for Resource descriptor entries */ | 90 | /* Types for Resource descriptor entries */ |
@@ -79,14 +95,14 @@ extern const char *acpi_gbl_typ_decode[]; | |||
79 | #define ACPI_SMALL_VARIABLE_LENGTH 3 | 95 | #define ACPI_SMALL_VARIABLE_LENGTH 3 |
80 | 96 | ||
81 | typedef | 97 | typedef |
82 | acpi_status(*acpi_walk_aml_callback) (u8 * aml, | 98 | acpi_status(*acpi_walk_aml_callback) (u8 *aml, |
83 | u32 length, | 99 | u32 length, |
84 | u32 offset, | 100 | u32 offset, |
85 | u8 resource_index, void **context); | 101 | u8 resource_index, void **context); |
86 | 102 | ||
87 | typedef | 103 | typedef |
88 | acpi_status(*acpi_pkg_callback) (u8 object_type, | 104 | acpi_status(*acpi_pkg_callback) (u8 object_type, |
89 | union acpi_operand_object * source_object, | 105 | union acpi_operand_object *source_object, |
90 | union acpi_generic_state * state, | 106 | union acpi_generic_state * state, |
91 | void *context); | 107 | void *context); |
92 | 108 | ||
@@ -202,7 +218,9 @@ extern const u8 _acpi_ctype[]; | |||
202 | #define ACPI_IS_PRINT(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO | _ACPI_UP | _ACPI_DI | _ACPI_SP | _ACPI_PU)) | 218 | #define ACPI_IS_PRINT(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO | _ACPI_UP | _ACPI_DI | _ACPI_SP | _ACPI_PU)) |
203 | #define ACPI_IS_ALPHA(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO | _ACPI_UP)) | 219 | #define ACPI_IS_ALPHA(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO | _ACPI_UP)) |
204 | 220 | ||
205 | #endif /* ACPI_USE_SYSTEM_CLIBRARY */ | 221 | #endif /* !ACPI_USE_SYSTEM_CLIBRARY */ |
222 | |||
223 | #define ACPI_IS_ASCII(c) ((c) < 0x80) | ||
206 | 224 | ||
207 | /* | 225 | /* |
208 | * utcopy - Object construction and conversion interfaces | 226 | * utcopy - Object construction and conversion interfaces |
@@ -210,11 +228,11 @@ extern const u8 _acpi_ctype[]; | |||
210 | acpi_status | 228 | acpi_status |
211 | acpi_ut_build_simple_object(union acpi_operand_object *obj, | 229 | acpi_ut_build_simple_object(union acpi_operand_object *obj, |
212 | union acpi_object *user_obj, | 230 | union acpi_object *user_obj, |
213 | u8 * data_space, u32 * buffer_space_used); | 231 | u8 *data_space, u32 *buffer_space_used); |
214 | 232 | ||
215 | acpi_status | 233 | acpi_status |
216 | acpi_ut_build_package_object(union acpi_operand_object *obj, | 234 | acpi_ut_build_package_object(union acpi_operand_object *obj, |
217 | u8 * buffer, u32 * space_used); | 235 | u8 *buffer, u32 *space_used); |
218 | 236 | ||
219 | acpi_status | 237 | acpi_status |
220 | acpi_ut_copy_iobject_to_eobject(union acpi_operand_object *obj, | 238 | acpi_ut_copy_iobject_to_eobject(union acpi_operand_object *obj, |
@@ -287,9 +305,10 @@ acpi_ut_ptr_exit(u32 line_number, | |||
287 | const char *function_name, | 305 | const char *function_name, |
288 | const char *module_name, u32 component_id, u8 *ptr); | 306 | const char *module_name, u32 component_id, u8 *ptr); |
289 | 307 | ||
290 | void acpi_ut_dump_buffer(u8 * buffer, u32 count, u32 display, u32 component_id); | 308 | void |
309 | acpi_ut_debug_dump_buffer(u8 *buffer, u32 count, u32 display, u32 component_id); | ||
291 | 310 | ||
292 | void acpi_ut_dump_buffer2(u8 * buffer, u32 count, u32 display); | 311 | void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 offset); |
293 | 312 | ||
294 | void acpi_ut_report_error(char *module_name, u32 line_number); | 313 | void acpi_ut_report_error(char *module_name, u32 line_number); |
295 | 314 | ||
@@ -337,15 +356,19 @@ acpi_ut_execute_power_methods(struct acpi_namespace_node *device_node, | |||
337 | */ | 356 | */ |
338 | acpi_status | 357 | acpi_status |
339 | acpi_ut_execute_HID(struct acpi_namespace_node *device_node, | 358 | acpi_ut_execute_HID(struct acpi_namespace_node *device_node, |
340 | struct acpica_device_id **return_id); | 359 | struct acpi_pnp_device_id ** return_id); |
341 | 360 | ||
342 | acpi_status | 361 | acpi_status |
343 | acpi_ut_execute_UID(struct acpi_namespace_node *device_node, | 362 | acpi_ut_execute_UID(struct acpi_namespace_node *device_node, |
344 | struct acpica_device_id **return_id); | 363 | struct acpi_pnp_device_id ** return_id); |
364 | |||
365 | acpi_status | ||
366 | acpi_ut_execute_SUB(struct acpi_namespace_node *device_node, | ||
367 | struct acpi_pnp_device_id **return_id); | ||
345 | 368 | ||
346 | acpi_status | 369 | acpi_status |
347 | acpi_ut_execute_CID(struct acpi_namespace_node *device_node, | 370 | acpi_ut_execute_CID(struct acpi_namespace_node *device_node, |
348 | struct acpica_device_id_list **return_cid_list); | 371 | struct acpi_pnp_device_id_list ** return_cid_list); |
349 | 372 | ||
350 | /* | 373 | /* |
351 | * utlock - reader/writer locks | 374 | * utlock - reader/writer locks |
@@ -479,15 +502,19 @@ acpi_ut_walk_package_tree(union acpi_operand_object *source_object, | |||
479 | 502 | ||
480 | void acpi_ut_strupr(char *src_string); | 503 | void acpi_ut_strupr(char *src_string); |
481 | 504 | ||
505 | void acpi_ut_strlwr(char *src_string); | ||
506 | |||
507 | int acpi_ut_stricmp(char *string1, char *string2); | ||
508 | |||
482 | void acpi_ut_print_string(char *string, u8 max_length); | 509 | void acpi_ut_print_string(char *string, u8 max_length); |
483 | 510 | ||
484 | u8 acpi_ut_valid_acpi_name(u32 name); | 511 | u8 acpi_ut_valid_acpi_name(u32 name); |
485 | 512 | ||
486 | acpi_name acpi_ut_repair_name(char *name); | 513 | void acpi_ut_repair_name(char *name); |
487 | 514 | ||
488 | u8 acpi_ut_valid_acpi_char(char character, u32 position); | 515 | u8 acpi_ut_valid_acpi_char(char character, u32 position); |
489 | 516 | ||
490 | acpi_status acpi_ut_strtoul64(char *string, u32 base, u64 * ret_integer); | 517 | acpi_status acpi_ut_strtoul64(char *string, u32 base, u64 *ret_integer); |
491 | 518 | ||
492 | /* Values for Base above (16=Hex, 10=Decimal) */ | 519 | /* Values for Base above (16=Hex, 10=Decimal) */ |
493 | 520 | ||
@@ -508,12 +535,12 @@ acpi_ut_display_init_pathname(u8 type, | |||
508 | * utresrc | 535 | * utresrc |
509 | */ | 536 | */ |
510 | acpi_status | 537 | acpi_status |
511 | acpi_ut_walk_aml_resources(u8 * aml, | 538 | acpi_ut_walk_aml_resources(u8 *aml, |
512 | acpi_size aml_length, | 539 | acpi_size aml_length, |
513 | acpi_walk_aml_callback user_function, | 540 | acpi_walk_aml_callback user_function, |
514 | void **context); | 541 | void **context); |
515 | 542 | ||
516 | acpi_status acpi_ut_validate_resource(void *aml, u8 * return_index); | 543 | acpi_status acpi_ut_validate_resource(void *aml, u8 *return_index); |
517 | 544 | ||
518 | u32 acpi_ut_get_descriptor_length(void *aml); | 545 | u32 acpi_ut_get_descriptor_length(void *aml); |
519 | 546 | ||
@@ -524,8 +551,7 @@ u8 acpi_ut_get_resource_header_length(void *aml); | |||
524 | u8 acpi_ut_get_resource_type(void *aml); | 551 | u8 acpi_ut_get_resource_type(void *aml); |
525 | 552 | ||
526 | acpi_status | 553 | acpi_status |
527 | acpi_ut_get_resource_end_tag(union acpi_operand_object *obj_desc, | 554 | acpi_ut_get_resource_end_tag(union acpi_operand_object *obj_desc, u8 **end_tag); |
528 | u8 ** end_tag); | ||
529 | 555 | ||
530 | /* | 556 | /* |
531 | * utmutex - mutex support | 557 | * utmutex - mutex support |