diff options
Diffstat (limited to 'drivers/acpi/acpica/acutils.h')
-rw-r--r-- | drivers/acpi/acpica/acutils.h | 48 |
1 files changed, 46 insertions, 2 deletions
diff --git a/drivers/acpi/acpica/acutils.h b/drivers/acpi/acpica/acutils.h index 1e256c5bda20..486d342e74b6 100644 --- a/drivers/acpi/acpica/acutils.h +++ b/drivers/acpi/acpica/acutils.h | |||
@@ -95,7 +95,6 @@ extern const char *acpi_gbl_pt_decode[]; | |||
95 | #ifdef ACPI_ASL_COMPILER | 95 | #ifdef ACPI_ASL_COMPILER |
96 | 96 | ||
97 | #include <stdio.h> | 97 | #include <stdio.h> |
98 | extern FILE *acpi_gbl_output_file; | ||
99 | 98 | ||
100 | #define ACPI_MSG_REDIRECT_BEGIN \ | 99 | #define ACPI_MSG_REDIRECT_BEGIN \ |
101 | FILE *output_file = acpi_gbl_output_file; \ | 100 | FILE *output_file = acpi_gbl_output_file; \ |
@@ -195,6 +194,8 @@ char *acpi_ut_get_event_name(u32 event_id); | |||
195 | 194 | ||
196 | char acpi_ut_hex_to_ascii_char(u64 integer, u32 position); | 195 | char acpi_ut_hex_to_ascii_char(u64 integer, u32 position); |
197 | 196 | ||
197 | u8 acpi_ut_ascii_char_to_hex(int hex_char); | ||
198 | |||
198 | u8 acpi_ut_valid_object_type(acpi_object_type type); | 199 | u8 acpi_ut_valid_object_type(acpi_object_type type); |
199 | 200 | ||
200 | /* | 201 | /* |
@@ -211,6 +212,8 @@ void acpi_ut_subsystem_shutdown(void); | |||
211 | 212 | ||
212 | acpi_size acpi_ut_strlen(const char *string); | 213 | acpi_size acpi_ut_strlen(const char *string); |
213 | 214 | ||
215 | char *acpi_ut_strchr(const char *string, int ch); | ||
216 | |||
214 | char *acpi_ut_strcpy(char *dst_string, const char *src_string); | 217 | char *acpi_ut_strcpy(char *dst_string, const char *src_string); |
215 | 218 | ||
216 | char *acpi_ut_strncpy(char *dst_string, | 219 | char *acpi_ut_strncpy(char *dst_string, |
@@ -257,7 +260,7 @@ extern const u8 _acpi_ctype[]; | |||
257 | #define ACPI_IS_XDIGIT(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_XD)) | 260 | #define ACPI_IS_XDIGIT(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_XD)) |
258 | #define ACPI_IS_UPPER(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_UP)) | 261 | #define ACPI_IS_UPPER(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_UP)) |
259 | #define ACPI_IS_LOWER(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO)) | 262 | #define ACPI_IS_LOWER(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO)) |
260 | #define ACPI_IS_PRINT(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO | _ACPI_UP | _ACPI_DI | _ACPI_SP | _ACPI_PU)) | 263 | #define ACPI_IS_PRINT(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO | _ACPI_UP | _ACPI_DI | _ACPI_XS | _ACPI_PU)) |
261 | #define ACPI_IS_ALPHA(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO | _ACPI_UP)) | 264 | #define ACPI_IS_ALPHA(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO | _ACPI_UP)) |
262 | 265 | ||
263 | #endif /* !ACPI_USE_SYSTEM_CLIBRARY */ | 266 | #endif /* !ACPI_USE_SYSTEM_CLIBRARY */ |
@@ -352,6 +355,13 @@ acpi_ut_debug_dump_buffer(u8 *buffer, u32 count, u32 display, u32 component_id); | |||
352 | 355 | ||
353 | void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 offset); | 356 | void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 offset); |
354 | 357 | ||
358 | #ifdef ACPI_APPLICATION | ||
359 | void | ||
360 | acpi_ut_dump_buffer_to_file(ACPI_FILE file, | ||
361 | u8 *buffer, | ||
362 | u32 count, u32 display, u32 base_offset); | ||
363 | #endif | ||
364 | |||
355 | void acpi_ut_report_error(char *module_name, u32 line_number); | 365 | void acpi_ut_report_error(char *module_name, u32 line_number); |
356 | 366 | ||
357 | void acpi_ut_report_info(char *module_name, u32 line_number); | 367 | void acpi_ut_report_info(char *module_name, u32 line_number); |
@@ -394,6 +404,14 @@ acpi_ut_execute_power_methods(struct acpi_namespace_node *device_node, | |||
394 | u8 method_count, u8 *out_values); | 404 | u8 method_count, u8 *out_values); |
395 | 405 | ||
396 | /* | 406 | /* |
407 | * utfileio - file operations | ||
408 | */ | ||
409 | #ifdef ACPI_APPLICATION | ||
410 | acpi_status | ||
411 | acpi_ut_read_table_from_file(char *filename, struct acpi_table_header **table); | ||
412 | #endif | ||
413 | |||
414 | /* | ||
397 | * utids - device ID support | 415 | * utids - device ID support |
398 | */ | 416 | */ |
399 | acpi_status | 417 | acpi_status |
@@ -743,4 +761,30 @@ const struct ah_predefined_name *acpi_ah_match_predefined_name(char *nameseg); | |||
743 | 761 | ||
744 | const struct ah_device_id *acpi_ah_match_hardware_id(char *hid); | 762 | const struct ah_device_id *acpi_ah_match_hardware_id(char *hid); |
745 | 763 | ||
764 | const char *acpi_ah_match_uuid(u8 *data); | ||
765 | |||
766 | /* | ||
767 | * utprint - printf/vprintf output functions | ||
768 | */ | ||
769 | const char *acpi_ut_scan_number(const char *string, u64 *number_ptr); | ||
770 | |||
771 | const char *acpi_ut_print_number(char *string, u64 number); | ||
772 | |||
773 | int | ||
774 | acpi_ut_vsnprintf(char *string, | ||
775 | acpi_size size, const char *format, va_list args); | ||
776 | |||
777 | int acpi_ut_snprintf(char *string, acpi_size size, const char *format, ...); | ||
778 | |||
779 | #ifdef ACPI_APPLICATION | ||
780 | int acpi_ut_file_vprintf(ACPI_FILE file, const char *format, va_list args); | ||
781 | |||
782 | int acpi_ut_file_printf(ACPI_FILE file, const char *format, ...); | ||
783 | #endif | ||
784 | |||
785 | /* | ||
786 | * utuuid -- UUID support functions | ||
787 | */ | ||
788 | void acpi_ut_convert_string_to_uuid(char *in_string, u8 *uuid_buffer); | ||
789 | |||
746 | #endif /* _ACUTILS_H */ | 790 | #endif /* _ACUTILS_H */ |