diff options
Diffstat (limited to 'drivers/acpi/acpica/acutils.h')
-rw-r--r-- | drivers/acpi/acpica/acutils.h | 59 |
1 files changed, 34 insertions, 25 deletions
diff --git a/drivers/acpi/acpica/acutils.h b/drivers/acpi/acpica/acutils.h index b0f5f92b674a..0082fa0a6139 100644 --- a/drivers/acpi/acpica/acutils.h +++ b/drivers/acpi/acpica/acutils.h | |||
@@ -5,7 +5,7 @@ | |||
5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
6 | 6 | ||
7 | /* | 7 | /* |
8 | * Copyright (C) 2000 - 2012, Intel Corp. | 8 | * Copyright (C) 2000 - 2013, Intel Corp. |
9 | * All rights reserved. | 9 | * All rights reserved. |
10 | * | 10 | * |
11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
@@ -483,39 +483,17 @@ acpi_ut_short_divide(u64 in_dividend, | |||
483 | /* | 483 | /* |
484 | * utmisc | 484 | * utmisc |
485 | */ | 485 | */ |
486 | void ut_convert_backslashes(char *pathname); | ||
487 | |||
488 | const char *acpi_ut_validate_exception(acpi_status status); | 486 | const char *acpi_ut_validate_exception(acpi_status status); |
489 | 487 | ||
490 | u8 acpi_ut_is_pci_root_bridge(char *id); | 488 | u8 acpi_ut_is_pci_root_bridge(char *id); |
491 | 489 | ||
492 | u8 acpi_ut_is_aml_table(struct acpi_table_header *table); | 490 | u8 acpi_ut_is_aml_table(struct acpi_table_header *table); |
493 | 491 | ||
494 | acpi_status acpi_ut_allocate_owner_id(acpi_owner_id * owner_id); | ||
495 | |||
496 | void acpi_ut_release_owner_id(acpi_owner_id * owner_id); | ||
497 | |||
498 | acpi_status | 492 | acpi_status |
499 | acpi_ut_walk_package_tree(union acpi_operand_object *source_object, | 493 | acpi_ut_walk_package_tree(union acpi_operand_object *source_object, |
500 | void *target_object, | 494 | void *target_object, |
501 | acpi_pkg_callback walk_callback, void *context); | 495 | acpi_pkg_callback walk_callback, void *context); |
502 | 496 | ||
503 | void acpi_ut_strupr(char *src_string); | ||
504 | |||
505 | void acpi_ut_strlwr(char *src_string); | ||
506 | |||
507 | int acpi_ut_stricmp(char *string1, char *string2); | ||
508 | |||
509 | void acpi_ut_print_string(char *string, u8 max_length); | ||
510 | |||
511 | u8 acpi_ut_valid_acpi_name(u32 name); | ||
512 | |||
513 | void acpi_ut_repair_name(char *name); | ||
514 | |||
515 | u8 acpi_ut_valid_acpi_char(char character, u32 position); | ||
516 | |||
517 | acpi_status acpi_ut_strtoul64(char *string, u32 base, u64 *ret_integer); | ||
518 | |||
519 | /* Values for Base above (16=Hex, 10=Decimal) */ | 497 | /* Values for Base above (16=Hex, 10=Decimal) */ |
520 | 498 | ||
521 | #define ACPI_ANY_BASE 0 | 499 | #define ACPI_ANY_BASE 0 |
@@ -532,15 +510,25 @@ acpi_ut_display_init_pathname(u8 type, | |||
532 | #endif | 510 | #endif |
533 | 511 | ||
534 | /* | 512 | /* |
513 | * utownerid - Support for Table/Method Owner IDs | ||
514 | */ | ||
515 | acpi_status acpi_ut_allocate_owner_id(acpi_owner_id * owner_id); | ||
516 | |||
517 | void acpi_ut_release_owner_id(acpi_owner_id * owner_id); | ||
518 | |||
519 | /* | ||
535 | * utresrc | 520 | * utresrc |
536 | */ | 521 | */ |
537 | acpi_status | 522 | acpi_status |
538 | acpi_ut_walk_aml_resources(u8 *aml, | 523 | acpi_ut_walk_aml_resources(struct acpi_walk_state *walk_state, |
524 | u8 *aml, | ||
539 | acpi_size aml_length, | 525 | acpi_size aml_length, |
540 | acpi_walk_aml_callback user_function, | 526 | acpi_walk_aml_callback user_function, |
541 | void **context); | 527 | void **context); |
542 | 528 | ||
543 | acpi_status acpi_ut_validate_resource(void *aml, u8 *return_index); | 529 | acpi_status |
530 | acpi_ut_validate_resource(struct acpi_walk_state *walk_state, | ||
531 | void *aml, u8 *return_index); | ||
544 | 532 | ||
545 | u32 acpi_ut_get_descriptor_length(void *aml); | 533 | u32 acpi_ut_get_descriptor_length(void *aml); |
546 | 534 | ||
@@ -554,6 +542,27 @@ acpi_status | |||
554 | acpi_ut_get_resource_end_tag(union acpi_operand_object *obj_desc, u8 **end_tag); | 542 | acpi_ut_get_resource_end_tag(union acpi_operand_object *obj_desc, u8 **end_tag); |
555 | 543 | ||
556 | /* | 544 | /* |
545 | * utstring - String and character utilities | ||
546 | */ | ||
547 | void acpi_ut_strupr(char *src_string); | ||
548 | |||
549 | void acpi_ut_strlwr(char *src_string); | ||
550 | |||
551 | int acpi_ut_stricmp(char *string1, char *string2); | ||
552 | |||
553 | acpi_status acpi_ut_strtoul64(char *string, u32 base, u64 *ret_integer); | ||
554 | |||
555 | void acpi_ut_print_string(char *string, u8 max_length); | ||
556 | |||
557 | void ut_convert_backslashes(char *pathname); | ||
558 | |||
559 | u8 acpi_ut_valid_acpi_name(u32 name); | ||
560 | |||
561 | u8 acpi_ut_valid_acpi_char(char character, u32 position); | ||
562 | |||
563 | void acpi_ut_repair_name(char *name); | ||
564 | |||
565 | /* | ||
557 | * utmutex - mutex support | 566 | * utmutex - mutex support |
558 | */ | 567 | */ |
559 | acpi_status acpi_ut_mutex_initialize(void); | 568 | acpi_status acpi_ut_mutex_initialize(void); |