52 #if defined(ACPI_DISASSEMBLER) || defined (ACPI_DEBUGGER)
54 extern const char *acpi_gbl_bm_decode[];
55 extern const char *acpi_gbl_config_decode[];
56 extern const char *acpi_gbl_consume_decode[];
57 extern const char *acpi_gbl_dec_decode[];
58 extern const char *acpi_gbl_he_decode[];
59 extern const char *acpi_gbl_io_decode[];
60 extern const char *acpi_gbl_ll_decode[];
61 extern const char *acpi_gbl_max_decode[];
62 extern const char *acpi_gbl_mem_decode[];
63 extern const char *acpi_gbl_min_decode[];
64 extern const char *acpi_gbl_mtp_decode[];
65 extern const char *acpi_gbl_rng_decode[];
66 extern const char *acpi_gbl_rw_decode[];
67 extern const char *acpi_gbl_shr_decode[];
68 extern const char *acpi_gbl_siz_decode[];
69 extern const char *acpi_gbl_trs_decode[];
70 extern const char *acpi_gbl_ttp_decode[];
71 extern const char *acpi_gbl_typ_decode[];
76 #define ACPI_INVALID_RESOURCE 0
77 #define ACPI_FIXED_LENGTH 1
78 #define ACPI_VARIABLE_LENGTH 2
79 #define ACPI_SMALL_VARIABLE_LENGTH 3
100 #define REF_INCREMENT (u16) 0
101 #define REF_DECREMENT (u16) 1
102 #define REF_FORCE_DELETE (u16) 2
106 #define DB_BYTE_DISPLAY 1
107 #define DB_WORD_DISPLAY 2
108 #define DB_DWORD_DISPLAY 4
109 #define DB_QWORD_DISPLAY 8
116 #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
118 char *acpi_ut_get_mutex_name(
u32 mutex_id);
120 const char *acpi_ut_get_notify_name(
u32 notify_value);
152 #ifndef ACPI_USE_SYSTEM_CLIBRARY
159 const char *src_string, acpi_size
count);
170 const char *src_string, acpi_size
count);
186 #define _ACPI_XA 0x00
187 #define _ACPI_XS 0x40
188 #define _ACPI_BB 0x00
189 #define _ACPI_CN 0x20
190 #define _ACPI_DI 0x04
191 #define _ACPI_LO 0x02
192 #define _ACPI_PU 0x10
193 #define _ACPI_SP 0x08
194 #define _ACPI_UP 0x01
195 #define _ACPI_XD 0x80
197 #define ACPI_IS_DIGIT(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_DI))
198 #define ACPI_IS_SPACE(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_SP))
199 #define ACPI_IS_XDIGIT(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_XD))
200 #define ACPI_IS_UPPER(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_UP))
201 #define ACPI_IS_LOWER(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO))
202 #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))
213 u8 * data_space,
u32 * buffer_space_used);
251 const char *function_name,
256 const char *function_name,
261 const char *function_name,
266 const char *function_name,
271 const char *function_name,
276 const char *function_name,
282 const char *function_name,
287 const char *function_name,
319 u32 expected_return_btypes,
332 const char **method_names,
333 u8 method_count,
u8 *out_values);
376 u32 line_number,
u32 component_id);
378 #define acpi_ut_create_internal_object(t) acpi_ut_create_internal_object_dbg (_acpi_module_name,__LINE__,_COMPONENT,t)
379 #define acpi_ut_allocate_object_desc() acpi_ut_allocate_object_desc_dbg (_acpi_module_name,__LINE__,_COMPONENT)
429 void *external_object,
437 #ifdef ACPI_FUTURE_USAGE
440 void *external_object,
454 u64 in_divisor,
u64 *out_quotient,
u64 *out_remainder);
494 #define ACPI_ANY_BASE 0
500 #ifdef ACPI_DEBUG_OUTPUT
502 acpi_ut_display_init_pathname(
u8 type,
512 acpi_size aml_length,
552 acpi_size required_length);
560 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
561 void *acpi_ut_allocate_and_track(acpi_size
size,
564 void *acpi_ut_allocate_zeroed_and_track(acpi_size
size,
569 acpi_ut_free_and_track(
void *
address,
572 #ifdef ACPI_FUTURE_USAGE
573 void acpi_ut_dump_allocation_info(
void);
579 acpi_ut_create_list(
char *list_name,
619 const char *internal_name,
acpi_status lookup_status);