acutils.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. /******************************************************************************
  2. *
  3. * Name: acutils.h -- prototypes for the common (subsystem-wide) procedures
  4. *
  5. *****************************************************************************/
  6. /*
  7. * Copyright (C) 2000 - 2012, Intel Corp.
  8. * All rights reserved.
  9. *
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions
  12. * are met:
  13. * 1. Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions, and the following disclaimer,
  15. * without modification.
  16. * 2. Redistributions in binary form must reproduce at minimum a disclaimer
  17. * substantially similar to the "NO WARRANTY" disclaimer below
  18. * ("Disclaimer") and any redistribution must be conditioned upon
  19. * including a substantially similar Disclaimer requirement for further
  20. * binary redistribution.
  21. * 3. Neither the names of the above-listed copyright holders nor the names
  22. * of any contributors may be used to endorse or promote products derived
  23. * from this software without specific prior written permission.
  24. *
  25. * Alternatively, this software may be distributed under the terms of the
  26. * GNU General Public License ("GPL") version 2 as published by the Free
  27. * Software Foundation.
  28. *
  29. * NO WARRANTY
  30. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  31. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  32. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
  33. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  34. * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  35. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  36. * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  37. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  38. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  39. * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  40. * POSSIBILITY OF SUCH DAMAGES.
  41. */
  42. #ifndef _ACUTILS_H
  43. #define _ACUTILS_H
  44. extern const u8 acpi_gbl_resource_aml_sizes[];
  45. extern const u8 acpi_gbl_resource_aml_serial_bus_sizes[];
  46. /* Strings used by the disassembler and debugger resource dump routines */
  47. #if defined(ACPI_DISASSEMBLER) || defined (ACPI_DEBUGGER)
  48. extern const char *acpi_gbl_bm_decode[];
  49. extern const char *acpi_gbl_config_decode[];
  50. extern const char *acpi_gbl_consume_decode[];
  51. extern const char *acpi_gbl_dec_decode[];
  52. extern const char *acpi_gbl_he_decode[];
  53. extern const char *acpi_gbl_io_decode[];
  54. extern const char *acpi_gbl_ll_decode[];
  55. extern const char *acpi_gbl_max_decode[];
  56. extern const char *acpi_gbl_mem_decode[];
  57. extern const char *acpi_gbl_min_decode[];
  58. extern const char *acpi_gbl_mtp_decode[];
  59. extern const char *acpi_gbl_rng_decode[];
  60. extern const char *acpi_gbl_rw_decode[];
  61. extern const char *acpi_gbl_shr_decode[];
  62. extern const char *acpi_gbl_siz_decode[];
  63. extern const char *acpi_gbl_trs_decode[];
  64. extern const char *acpi_gbl_ttp_decode[];
  65. extern const char *acpi_gbl_typ_decode[];
  66. #endif
  67. /* Types for Resource descriptor entries */
  68. #define ACPI_INVALID_RESOURCE 0
  69. #define ACPI_FIXED_LENGTH 1
  70. #define ACPI_VARIABLE_LENGTH 2
  71. #define ACPI_SMALL_VARIABLE_LENGTH 3
  72. typedef
  73. acpi_status(*acpi_walk_aml_callback) (u8 * aml,
  74. u32 length,
  75. u32 offset,
  76. u8 resource_index, void **context);
  77. typedef
  78. acpi_status(*acpi_pkg_callback) (u8 object_type,
  79. union acpi_operand_object * source_object,
  80. union acpi_generic_state * state,
  81. void *context);
  82. struct acpi_pkg_info {
  83. u8 *free_space;
  84. acpi_size length;
  85. u32 object_space;
  86. u32 num_packages;
  87. };
  88. #define REF_INCREMENT (u16) 0
  89. #define REF_DECREMENT (u16) 1
  90. #define REF_FORCE_DELETE (u16) 2
  91. /* acpi_ut_dump_buffer */
  92. #define DB_BYTE_DISPLAY 1
  93. #define DB_WORD_DISPLAY 2
  94. #define DB_DWORD_DISPLAY 4
  95. #define DB_QWORD_DISPLAY 8
  96. /*
  97. * utglobal - Global data structures and procedures
  98. */
  99. acpi_status acpi_ut_init_globals(void);
  100. #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
  101. char *acpi_ut_get_mutex_name(u32 mutex_id);
  102. const char *acpi_ut_get_notify_name(u32 notify_value);
  103. #endif
  104. char *acpi_ut_get_type_name(acpi_object_type type);
  105. char *acpi_ut_get_node_name(void *object);
  106. char *acpi_ut_get_descriptor_name(void *object);
  107. const char *acpi_ut_get_reference_name(union acpi_operand_object *object);
  108. char *acpi_ut_get_object_type_name(union acpi_operand_object *obj_desc);
  109. char *acpi_ut_get_region_name(u8 space_id);
  110. char *acpi_ut_get_event_name(u32 event_id);
  111. char acpi_ut_hex_to_ascii_char(u64 integer, u32 position);
  112. u8 acpi_ut_valid_object_type(acpi_object_type type);
  113. /*
  114. * utinit - miscellaneous initialization and shutdown
  115. */
  116. acpi_status acpi_ut_hardware_initialize(void);
  117. void acpi_ut_subsystem_shutdown(void);
  118. /*
  119. * utclib - Local implementations of C library functions
  120. */
  121. #ifndef ACPI_USE_SYSTEM_CLIBRARY
  122. acpi_size acpi_ut_strlen(const char *string);
  123. char *acpi_ut_strcpy(char *dst_string, const char *src_string);
  124. char *acpi_ut_strncpy(char *dst_string,
  125. const char *src_string, acpi_size count);
  126. int acpi_ut_memcmp(const char *buffer1, const char *buffer2, acpi_size count);
  127. int acpi_ut_strncmp(const char *string1, const char *string2, acpi_size count);
  128. int acpi_ut_strcmp(const char *string1, const char *string2);
  129. char *acpi_ut_strcat(char *dst_string, const char *src_string);
  130. char *acpi_ut_strncat(char *dst_string,
  131. const char *src_string, acpi_size count);
  132. u32 acpi_ut_strtoul(const char *string, char **terminator, u32 base);
  133. char *acpi_ut_strstr(char *string1, char *string2);
  134. void *acpi_ut_memcpy(void *dest, const void *src, acpi_size count);
  135. void *acpi_ut_memset(void *dest, u8 value, acpi_size count);
  136. int acpi_ut_to_upper(int c);
  137. int acpi_ut_to_lower(int c);
  138. extern const u8 _acpi_ctype[];
  139. #define _ACPI_XA 0x00 /* extra alphabetic - not supported */
  140. #define _ACPI_XS 0x40 /* extra space */
  141. #define _ACPI_BB 0x00 /* BEL, BS, etc. - not supported */
  142. #define _ACPI_CN 0x20 /* CR, FF, HT, NL, VT */
  143. #define _ACPI_DI 0x04 /* '0'-'9' */
  144. #define _ACPI_LO 0x02 /* 'a'-'z' */
  145. #define _ACPI_PU 0x10 /* punctuation */
  146. #define _ACPI_SP 0x08 /* space */
  147. #define _ACPI_UP 0x01 /* 'A'-'Z' */
  148. #define _ACPI_XD 0x80 /* '0'-'9', 'A'-'F', 'a'-'f' */
  149. #define ACPI_IS_DIGIT(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_DI))
  150. #define ACPI_IS_SPACE(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_SP))
  151. #define ACPI_IS_XDIGIT(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_XD))
  152. #define ACPI_IS_UPPER(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_UP))
  153. #define ACPI_IS_LOWER(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO))
  154. #define ACPI_IS_PRINT(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO | _ACPI_UP | _ACPI_DI | _ACPI_SP | _ACPI_PU))
  155. #define ACPI_IS_ALPHA(c) (_acpi_ctype[(unsigned char)(c)] & (_ACPI_LO | _ACPI_UP))
  156. #endif /* ACPI_USE_SYSTEM_CLIBRARY */
  157. /*
  158. * utcopy - Object construction and conversion interfaces
  159. */
  160. acpi_status
  161. acpi_ut_build_simple_object(union acpi_operand_object *obj,
  162. union acpi_object *user_obj,
  163. u8 * data_space, u32 * buffer_space_used);
  164. acpi_status
  165. acpi_ut_build_package_object(union acpi_operand_object *obj,
  166. u8 * buffer, u32 * space_used);
  167. acpi_status
  168. acpi_ut_copy_iobject_to_eobject(union acpi_operand_object *obj,
  169. struct acpi_buffer *ret_buffer);
  170. acpi_status
  171. acpi_ut_copy_eobject_to_iobject(union acpi_object *obj,
  172. union acpi_operand_object **internal_obj);
  173. acpi_status
  174. acpi_ut_copy_isimple_to_isimple(union acpi_operand_object *source_obj,
  175. union acpi_operand_object *dest_obj);
  176. acpi_status
  177. acpi_ut_copy_iobject_to_iobject(union acpi_operand_object *source_desc,
  178. union acpi_operand_object **dest_desc,
  179. struct acpi_walk_state *walk_state);
  180. /*
  181. * utcreate - Object creation
  182. */
  183. acpi_status
  184. acpi_ut_update_object_reference(union acpi_operand_object *object, u16 action);
  185. /*
  186. * utdebug - Debug interfaces
  187. */
  188. void acpi_ut_init_stack_ptr_trace(void);
  189. void acpi_ut_track_stack_ptr(void);
  190. void
  191. acpi_ut_trace(u32 line_number,
  192. const char *function_name,
  193. const char *module_name, u32 component_id);
  194. void
  195. acpi_ut_trace_ptr(u32 line_number,
  196. const char *function_name,
  197. const char *module_name, u32 component_id, void *pointer);
  198. void
  199. acpi_ut_trace_u32(u32 line_number,
  200. const char *function_name,
  201. const char *module_name, u32 component_id, u32 integer);
  202. void
  203. acpi_ut_trace_str(u32 line_number,
  204. const char *function_name,
  205. const char *module_name, u32 component_id, char *string);
  206. void
  207. acpi_ut_exit(u32 line_number,
  208. const char *function_name,
  209. const char *module_name, u32 component_id);
  210. void
  211. acpi_ut_status_exit(u32 line_number,
  212. const char *function_name,
  213. const char *module_name,
  214. u32 component_id, acpi_status status);
  215. void
  216. acpi_ut_value_exit(u32 line_number,
  217. const char *function_name,
  218. const char *module_name, u32 component_id, u64 value);
  219. void
  220. acpi_ut_ptr_exit(u32 line_number,
  221. const char *function_name,
  222. const char *module_name, u32 component_id, u8 *ptr);
  223. void acpi_ut_dump_buffer(u8 * buffer, u32 count, u32 display, u32 component_id);
  224. void acpi_ut_dump_buffer2(u8 * buffer, u32 count, u32 display);
  225. void acpi_ut_report_error(char *module_name, u32 line_number);
  226. void acpi_ut_report_info(char *module_name, u32 line_number);
  227. void acpi_ut_report_warning(char *module_name, u32 line_number);
  228. /*
  229. * utdelete - Object deletion and reference counts
  230. */
  231. void acpi_ut_add_reference(union acpi_operand_object *object);
  232. void acpi_ut_remove_reference(union acpi_operand_object *object);
  233. void acpi_ut_delete_internal_package_object(union acpi_operand_object *object);
  234. void acpi_ut_delete_internal_simple_object(union acpi_operand_object *object);
  235. void acpi_ut_delete_internal_object_list(union acpi_operand_object **obj_list);
  236. /*
  237. * uteval - object evaluation
  238. */
  239. acpi_status
  240. acpi_ut_evaluate_object(struct acpi_namespace_node *prefix_node,
  241. char *path,
  242. u32 expected_return_btypes,
  243. union acpi_operand_object **return_desc);
  244. acpi_status
  245. acpi_ut_evaluate_numeric_object(char *object_name,
  246. struct acpi_namespace_node *device_node,
  247. u64 *value);
  248. acpi_status
  249. acpi_ut_execute_STA(struct acpi_namespace_node *device_node, u32 *status_flags);
  250. acpi_status
  251. acpi_ut_execute_power_methods(struct acpi_namespace_node *device_node,
  252. const char **method_names,
  253. u8 method_count, u8 *out_values);
  254. /*
  255. * utids - device ID support
  256. */
  257. acpi_status
  258. acpi_ut_execute_HID(struct acpi_namespace_node *device_node,
  259. struct acpica_device_id **return_id);
  260. acpi_status
  261. acpi_ut_execute_UID(struct acpi_namespace_node *device_node,
  262. struct acpica_device_id **return_id);
  263. acpi_status
  264. acpi_ut_execute_CID(struct acpi_namespace_node *device_node,
  265. struct acpica_device_id_list **return_cid_list);
  266. /*
  267. * utlock - reader/writer locks
  268. */
  269. acpi_status acpi_ut_create_rw_lock(struct acpi_rw_lock *lock);
  270. void acpi_ut_delete_rw_lock(struct acpi_rw_lock *lock);
  271. acpi_status acpi_ut_acquire_read_lock(struct acpi_rw_lock *lock);
  272. acpi_status acpi_ut_release_read_lock(struct acpi_rw_lock *lock);
  273. acpi_status acpi_ut_acquire_write_lock(struct acpi_rw_lock *lock);
  274. void acpi_ut_release_write_lock(struct acpi_rw_lock *lock);
  275. /*
  276. * utobject - internal object create/delete/cache routines
  277. */
  278. union acpi_operand_object *acpi_ut_create_internal_object_dbg(const char
  279. *module_name,
  280. u32 line_number,
  281. u32 component_id,
  282. acpi_object_type
  283. type);
  284. void *acpi_ut_allocate_object_desc_dbg(const char *module_name,
  285. u32 line_number, u32 component_id);
  286. #define acpi_ut_create_internal_object(t) acpi_ut_create_internal_object_dbg (_acpi_module_name,__LINE__,_COMPONENT,t)
  287. #define acpi_ut_allocate_object_desc() acpi_ut_allocate_object_desc_dbg (_acpi_module_name,__LINE__,_COMPONENT)
  288. void acpi_ut_delete_object_desc(union acpi_operand_object *object);
  289. u8 acpi_ut_valid_internal_object(void *object);
  290. union acpi_operand_object *acpi_ut_create_package_object(u32 count);
  291. union acpi_operand_object *acpi_ut_create_integer_object(u64 value);
  292. union acpi_operand_object *acpi_ut_create_buffer_object(acpi_size buffer_size);
  293. union acpi_operand_object *acpi_ut_create_string_object(acpi_size string_size);
  294. acpi_status
  295. acpi_ut_get_object_size(union acpi_operand_object *obj, acpi_size * obj_length);
  296. /*
  297. * utosi - Support for the _OSI predefined control method
  298. */
  299. acpi_status acpi_ut_initialize_interfaces(void);
  300. void acpi_ut_interface_terminate(void);
  301. acpi_status acpi_ut_install_interface(acpi_string interface_name);
  302. acpi_status acpi_ut_remove_interface(acpi_string interface_name);
  303. struct acpi_interface_info *acpi_ut_get_interface(acpi_string interface_name);
  304. acpi_status acpi_ut_osi_implementation(struct acpi_walk_state *walk_state);
  305. /*
  306. * utstate - Generic state creation/cache routines
  307. */
  308. void
  309. acpi_ut_push_generic_state(union acpi_generic_state **list_head,
  310. union acpi_generic_state *state);
  311. union acpi_generic_state *acpi_ut_pop_generic_state(union acpi_generic_state
  312. **list_head);
  313. union acpi_generic_state *acpi_ut_create_generic_state(void);
  314. struct acpi_thread_state *acpi_ut_create_thread_state(void);
  315. union acpi_generic_state *acpi_ut_create_update_state(union acpi_operand_object
  316. *object, u16 action);
  317. union acpi_generic_state *acpi_ut_create_pkg_state(void *internal_object,
  318. void *external_object,
  319. u16 index);
  320. acpi_status
  321. acpi_ut_create_update_state_and_push(union acpi_operand_object *object,
  322. u16 action,
  323. union acpi_generic_state **state_list);
  324. #ifdef ACPI_FUTURE_USAGE
  325. acpi_status
  326. acpi_ut_create_pkg_state_and_push(void *internal_object,
  327. void *external_object,
  328. u16 index,
  329. union acpi_generic_state **state_list);
  330. #endif /* ACPI_FUTURE_USAGE */
  331. union acpi_generic_state *acpi_ut_create_control_state(void);
  332. void acpi_ut_delete_generic_state(union acpi_generic_state *state);
  333. /*
  334. * utmath
  335. */
  336. acpi_status
  337. acpi_ut_divide(u64 in_dividend,
  338. u64 in_divisor, u64 *out_quotient, u64 *out_remainder);
  339. acpi_status
  340. acpi_ut_short_divide(u64 in_dividend,
  341. u32 divisor, u64 *out_quotient, u32 *out_remainder);
  342. /*
  343. * utmisc
  344. */
  345. const char *acpi_ut_validate_exception(acpi_status status);
  346. u8 acpi_ut_is_pci_root_bridge(char *id);
  347. u8 acpi_ut_is_aml_table(struct acpi_table_header *table);
  348. acpi_status acpi_ut_allocate_owner_id(acpi_owner_id * owner_id);
  349. void acpi_ut_release_owner_id(acpi_owner_id * owner_id);
  350. acpi_status
  351. acpi_ut_walk_package_tree(union acpi_operand_object *source_object,
  352. void *target_object,
  353. acpi_pkg_callback walk_callback, void *context);
  354. void acpi_ut_strupr(char *src_string);
  355. void acpi_ut_print_string(char *string, u8 max_length);
  356. u8 acpi_ut_valid_acpi_name(u32 name);
  357. acpi_name acpi_ut_repair_name(char *name);
  358. u8 acpi_ut_valid_acpi_char(char character, u32 position);
  359. acpi_status acpi_ut_strtoul64(char *string, u32 base, u64 * ret_integer);
  360. /* Values for Base above (16=Hex, 10=Decimal) */
  361. #define ACPI_ANY_BASE 0
  362. u32 acpi_ut_dword_byte_swap(u32 value);
  363. void acpi_ut_set_integer_width(u8 revision);
  364. #ifdef ACPI_DEBUG_OUTPUT
  365. void
  366. acpi_ut_display_init_pathname(u8 type,
  367. struct acpi_namespace_node *obj_handle,
  368. char *path);
  369. #endif
  370. /*
  371. * utresrc
  372. */
  373. acpi_status
  374. acpi_ut_walk_aml_resources(u8 * aml,
  375. acpi_size aml_length,
  376. acpi_walk_aml_callback user_function,
  377. void **context);
  378. acpi_status acpi_ut_validate_resource(void *aml, u8 * return_index);
  379. u32 acpi_ut_get_descriptor_length(void *aml);
  380. u16 acpi_ut_get_resource_length(void *aml);
  381. u8 acpi_ut_get_resource_header_length(void *aml);
  382. u8 acpi_ut_get_resource_type(void *aml);
  383. acpi_status
  384. acpi_ut_get_resource_end_tag(union acpi_operand_object *obj_desc,
  385. u8 ** end_tag);
  386. /*
  387. * utmutex - mutex support
  388. */
  389. acpi_status acpi_ut_mutex_initialize(void);
  390. void acpi_ut_mutex_terminate(void);
  391. acpi_status acpi_ut_acquire_mutex(acpi_mutex_handle mutex_id);
  392. acpi_status acpi_ut_release_mutex(acpi_mutex_handle mutex_id);
  393. /*
  394. * utalloc - memory allocation and object caching
  395. */
  396. acpi_status acpi_ut_create_caches(void);
  397. acpi_status acpi_ut_delete_caches(void);
  398. acpi_status acpi_ut_validate_buffer(struct acpi_buffer *buffer);
  399. acpi_status
  400. acpi_ut_initialize_buffer(struct acpi_buffer *buffer,
  401. acpi_size required_length);
  402. void *acpi_ut_allocate(acpi_size size,
  403. u32 component, const char *module, u32 line);
  404. void *acpi_ut_allocate_zeroed(acpi_size size,
  405. u32 component, const char *module, u32 line);
  406. #ifdef ACPI_DBG_TRACK_ALLOCATIONS
  407. void *acpi_ut_allocate_and_track(acpi_size size,
  408. u32 component, const char *module, u32 line);
  409. void *acpi_ut_allocate_zeroed_and_track(acpi_size size,
  410. u32 component,
  411. const char *module, u32 line);
  412. void
  413. acpi_ut_free_and_track(void *address,
  414. u32 component, const char *module, u32 line);
  415. #ifdef ACPI_FUTURE_USAGE
  416. void acpi_ut_dump_allocation_info(void);
  417. #endif /* ACPI_FUTURE_USAGE */
  418. void acpi_ut_dump_allocations(u32 component, const char *module);
  419. acpi_status
  420. acpi_ut_create_list(char *list_name,
  421. u16 object_size, struct acpi_memory_list **return_cache);
  422. #endif /* ACPI_DBG_TRACK_ALLOCATIONS */
  423. /*
  424. * utaddress - address range check
  425. */
  426. acpi_status
  427. acpi_ut_add_address_range(acpi_adr_space_type space_id,
  428. acpi_physical_address address,
  429. u32 length, struct acpi_namespace_node *region_node);
  430. void
  431. acpi_ut_remove_address_range(acpi_adr_space_type space_id,
  432. struct acpi_namespace_node *region_node);
  433. u32
  434. acpi_ut_check_address_range(acpi_adr_space_type space_id,
  435. acpi_physical_address address, u32 length, u8 warn);
  436. void acpi_ut_delete_address_lists(void);
  437. /*
  438. * utxferror - various error/warning output functions
  439. */
  440. void ACPI_INTERNAL_VAR_XFACE
  441. acpi_ut_predefined_warning(const char *module_name,
  442. u32 line_number,
  443. char *pathname,
  444. u8 node_flags, const char *format, ...);
  445. void ACPI_INTERNAL_VAR_XFACE
  446. acpi_ut_predefined_info(const char *module_name,
  447. u32 line_number,
  448. char *pathname, u8 node_flags, const char *format, ...);
  449. void
  450. acpi_ut_namespace_error(const char *module_name,
  451. u32 line_number,
  452. const char *internal_name, acpi_status lookup_status);
  453. void
  454. acpi_ut_method_error(const char *module_name,
  455. u32 line_number,
  456. const char *message,
  457. struct acpi_namespace_node *node,
  458. const char *path, acpi_status lookup_status);
  459. #endif /* _ACUTILS_H */