blob: 9858551fc84ae1f20ea777322d258891eb73c986 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/******************************************************************************
2 *
3 * Name: acpixf.h - External interfaces to the ACPI subsystem
4 *
5 *****************************************************************************/
6
7/*
Bob Moorefbb7a2d2014-02-08 09:42:25 +08008 * Copyright (C) 2000 - 2014, Intel Corp.
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 * All rights reserved.
10 *
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions, and the following disclaimer,
16 * without modification.
17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 * substantially similar to the "NO WARRANTY" disclaimer below
19 * ("Disclaimer") and any redistribution must be conditioned upon
20 * including a substantially similar Disclaimer requirement for further
21 * binary redistribution.
22 * 3. Neither the names of the above-listed copyright holders nor the names
23 * of any contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * Alternatively, this software may be distributed under the terms of the
27 * GNU General Public License ("GPL") version 2 as published by the Free
28 * Software Foundation.
29 *
30 * NO WARRANTY
31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 * POSSIBILITY OF SUCH DAMAGES.
42 */
43
Linus Torvalds1da177e2005-04-16 15:20:36 -070044#ifndef __ACXFACE_H__
45#define __ACXFACE_H__
46
Bob Moore50df4d82008-12-31 03:01:23 +080047/* Current ACPICA subsystem version in YYYYMMDD format */
48
Bob Moorebc381ee2014-04-30 10:06:30 +080049#define ACPI_CA_VERSION 0x20140424
Bob Moore50df4d82008-12-31 03:01:23 +080050
David Howellsa1ce3922012-10-02 18:01:25 +010051#include <acpi/acconfig.h>
52#include <acpi/actypes.h>
53#include <acpi/actbl.h>
Linus Torvaldsd8dc91b2012-10-08 07:14:06 +090054#include <acpi/acbuffer.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070055
Lin Ming889c78b2008-12-31 09:23:57 +080056extern u8 acpi_gbl_permanent_mmap;
57
Bob Moore10110802014-04-30 10:06:22 +080058/*****************************************************************************
Lv Zheng3035ff72014-04-30 10:03:52 +080059 *
Bob Moore10110802014-04-30 10:06:22 +080060 * Macros used for ACPICA globals and configuration
61 *
62 ****************************************************************************/
63
Robert Moore44f6c012005-04-18 22:49:35 -040064/*
Bob Moore10110802014-04-30 10:06:22 +080065 * Ensure that global variables are defined and initialized only once.
66 *
67 * The use of these macros allows for a single list of globals (here)
68 * in order to simplify maintenance of the code.
Bob Moore50df4d82008-12-31 03:01:23 +080069 */
Lv Zheng3035ff72014-04-30 10:03:52 +080070#ifdef DEFINE_ACPI_GLOBALS
71#define ACPI_GLOBAL(type,name) \
72 extern type name; \
73 type name
Lv Zheng3e8214e2012-12-19 05:37:15 +000074
Lv Zheng3035ff72014-04-30 10:03:52 +080075#define ACPI_INIT_GLOBAL(type,name,value) \
76 type name=value
Lv Zheng3e8214e2012-12-19 05:37:15 +000077
Lv Zheng3035ff72014-04-30 10:03:52 +080078#else
79#ifndef ACPI_GLOBAL
80#define ACPI_GLOBAL(type,name) \
81 extern type name
82#endif
Lv Zheng3e8214e2012-12-19 05:37:15 +000083
Lv Zheng3035ff72014-04-30 10:03:52 +080084#ifndef ACPI_INIT_GLOBAL
85#define ACPI_INIT_GLOBAL(type,name,value) \
86 extern type name
87#endif
88#endif
Bob Moore50df4d82008-12-31 03:01:23 +080089
Bob Moore33620c52012-02-14 18:14:27 +080090/*
Bob Moore10110802014-04-30 10:06:22 +080091 * These macros configure the various ACPICA interfaces. They are
92 * useful for generating stub inline functions for features that are
93 * configured out of the current kernel or ACPICA application.
94 */
Lv Zheng8b9c1152014-04-30 10:05:08 +080095#ifndef ACPI_EXTERNAL_RETURN_STATUS
96#define ACPI_EXTERNAL_RETURN_STATUS(prototype) \
97 prototype;
98#endif
99
100#ifndef ACPI_EXTERNAL_RETURN_OK
101#define ACPI_EXTERNAL_RETURN_OK(prototype) \
102 prototype;
103#endif
104
105#ifndef ACPI_EXTERNAL_RETURN_VOID
106#define ACPI_EXTERNAL_RETURN_VOID(prototype) \
107 prototype;
108#endif
109
110#ifndef ACPI_EXTERNAL_RETURN_UINT32
111#define ACPI_EXTERNAL_RETURN_UINT32(prototype) \
112 prototype;
113#endif
114
115#ifndef ACPI_EXTERNAL_RETURN_PTR
116#define ACPI_EXTERNAL_RETURN_PTR(prototype) \
117 prototype;
118#endif
119
Lv Zheng3035ff72014-04-30 10:03:52 +0800120/*****************************************************************************
121 *
Bob Moore10110802014-04-30 10:06:22 +0800122 * Public globals and runtime configuration options
Lv Zheng3035ff72014-04-30 10:03:52 +0800123 *
124 ****************************************************************************/
125
126/*
Bob Moore10110802014-04-30 10:06:22 +0800127 * Enable "slack mode" of the AML interpreter? Default is FALSE, and the
Lv Zheng3035ff72014-04-30 10:03:52 +0800128 * interpreter strictly follows the ACPI specification. Setting to TRUE
129 * allows the interpreter to ignore certain errors and/or bad AML constructs.
130 *
131 * Currently, these features are enabled by this flag:
132 *
133 * 1) Allow "implicit return" of last value in a control method
134 * 2) Allow access beyond the end of an operation region
135 * 3) Allow access to uninitialized locals/args (auto-init to integer 0)
136 * 4) Allow ANY object type to be a source operand for the Store() operator
137 * 5) Allow unresolved references (invalid target name) in package objects
138 * 6) Enable warning messages for behavior that is not ACPI spec compliant
139 */
140ACPI_INIT_GLOBAL(u8, acpi_gbl_enable_interpreter_slack, FALSE);
141
142/*
143 * Automatically serialize all methods that create named objects? Default
144 * is TRUE, meaning that all non_serialized methods are scanned once at
145 * table load time to determine those that create named objects. Methods
146 * that create named objects are marked Serialized in order to prevent
147 * possible run-time problems if they are entered by more than one thread.
148 */
149ACPI_INIT_GLOBAL(u8, acpi_gbl_auto_serialize_methods, TRUE);
150
151/*
152 * Create the predefined _OSI method in the namespace? Default is TRUE
153 * because ACPICA is fully compatible with other ACPI implementations.
154 * Changing this will revert ACPICA (and machine ASL) to pre-OSI behavior.
155 */
156ACPI_INIT_GLOBAL(u8, acpi_gbl_create_osi_method, TRUE);
157
158/*
159 * Optionally use default values for the ACPI register widths. Set this to
160 * TRUE to use the defaults, if an FADT contains incorrect widths/lengths.
161 */
162ACPI_INIT_GLOBAL(u8, acpi_gbl_use_default_register_widths, TRUE);
163
164/*
Lv Zheng47d68c72014-05-31 08:14:44 +0800165 * Whether or not to verify the table checksum before installation. Set
166 * this to TRUE to verify the table checksum before install it to the table
167 * manager. Note that enabling this option causes errors to happen in some
168 * OSPMs during early initialization stages. Default behavior is to do such
169 * verification.
170 */
171ACPI_INIT_GLOBAL(u8, acpi_gbl_verify_table_checksum, TRUE);
172
173/*
Lv Zheng3035ff72014-04-30 10:03:52 +0800174 * Optionally enable output from the AML Debug Object.
175 */
176ACPI_INIT_GLOBAL(u8, acpi_gbl_enable_aml_debug_object, FALSE);
177
178/*
179 * Optionally copy the entire DSDT to local memory (instead of simply
180 * mapping it.) There are some BIOSs that corrupt or replace the original
181 * DSDT, creating the need for this option. Default is FALSE, do not copy
182 * the DSDT.
183 */
184ACPI_INIT_GLOBAL(u8, acpi_gbl_copy_dsdt_locally, FALSE);
185
186/*
187 * Optionally ignore an XSDT if present and use the RSDT instead.
188 * Although the ACPI specification requires that an XSDT be used instead
189 * of the RSDT, the XSDT has been found to be corrupt or ill-formed on
190 * some machines. Default behavior is to use the XSDT if present.
191 */
192ACPI_INIT_GLOBAL(u8, acpi_gbl_do_not_use_xsdt, FALSE);
193
194/*
195 * Optionally use 32-bit FADT addresses if and when there is a conflict
196 * (address mismatch) between the 32-bit and 64-bit versions of the
197 * address. Although ACPICA adheres to the ACPI specification which
198 * requires the use of the corresponding 64-bit address if it is non-zero,
199 * some machines have been found to have a corrupted non-zero 64-bit
Rafael J. Wysockic9b77a42014-05-27 18:11:38 +0200200 * address. Default is TRUE, favor the 32-bit addresses.
Lv Zheng3035ff72014-04-30 10:03:52 +0800201 */
Rafael J. Wysockic9b77a42014-05-27 18:11:38 +0200202ACPI_INIT_GLOBAL(u8, acpi_gbl_use32_bit_fadt_addresses, TRUE);
Lv Zheng3035ff72014-04-30 10:03:52 +0800203
204/*
205 * Optionally truncate I/O addresses to 16 bits. Provides compatibility
206 * with other ACPI implementations. NOTE: During ACPICA initialization,
207 * this value is set to TRUE if any Windows OSI strings have been
208 * requested by the BIOS.
209 */
210ACPI_INIT_GLOBAL(u8, acpi_gbl_truncate_io_addresses, FALSE);
211
212/*
213 * Disable runtime checking and repair of values returned by control methods.
214 * Use only if the repair is causing a problem on a particular machine.
215 */
216ACPI_INIT_GLOBAL(u8, acpi_gbl_disable_auto_repair, FALSE);
217
218/*
219 * Optionally do not install any SSDTs from the RSDT/XSDT during initialization.
220 * This can be useful for debugging ACPI problems on some machines.
221 */
222ACPI_INIT_GLOBAL(u8, acpi_gbl_disable_ssdt_table_install, FALSE);
223
224/*
225 * We keep track of the latest version of Windows that has been requested by
Bob Moorefea79bc2014-04-30 10:05:34 +0800226 * the BIOS. ACPI 5.0.
Lv Zheng3035ff72014-04-30 10:03:52 +0800227 */
228ACPI_INIT_GLOBAL(u8, acpi_gbl_osi_data, 0);
229
230/*
Lv Zheng3a2f3a32014-04-30 10:04:35 +0800231 * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning
232 * that the ACPI hardware is no longer required. A flag in the FADT indicates
233 * a reduced HW machine, and that flag is duplicated here for convenience.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700234 */
Lv Zheng3a2f3a32014-04-30 10:04:35 +0800235ACPI_INIT_GLOBAL(u8, acpi_gbl_reduced_hardware, FALSE);
Bob Moore50df4d82008-12-31 03:01:23 +0800236
Lv Zheng3a2f3a32014-04-30 10:04:35 +0800237/*
238 * This mechanism is used to trace a specified AML method. The method is
239 * traced each time it is executed.
240 */
241ACPI_INIT_GLOBAL(u32, acpi_gbl_trace_flags, 0);
242ACPI_INIT_GLOBAL(acpi_name, acpi_gbl_trace_method_name, 0);
Bob Moore50df4d82008-12-31 03:01:23 +0800243
Lv Zheng3a2f3a32014-04-30 10:04:35 +0800244/*
245 * Runtime configuration of debug output control masks. We want the debug
246 * switches statically initialized so they are already set when the debugger
247 * is entered.
248 */
249ACPI_INIT_GLOBAL(u32, acpi_dbg_level, ACPI_DEBUG_DEFAULT);
250ACPI_INIT_GLOBAL(u32, acpi_dbg_layer, 0);
Bob Moore50df4d82008-12-31 03:01:23 +0800251
Lv Zheng3a2f3a32014-04-30 10:04:35 +0800252/*
Bob Moore10110802014-04-30 10:06:22 +0800253 * Other miscellaneous globals
Lv Zheng3a2f3a32014-04-30 10:04:35 +0800254 */
Lv Zheng3a2f3a32014-04-30 10:04:35 +0800255ACPI_GLOBAL(struct acpi_table_fadt, acpi_gbl_FADT);
Bob Moore10110802014-04-30 10:06:22 +0800256ACPI_GLOBAL(u32, acpi_current_gpe_count);
Lv Zheng3a2f3a32014-04-30 10:04:35 +0800257ACPI_GLOBAL(u8, acpi_gbl_system_awake_and_running);
Bob Moore50df4d82008-12-31 03:01:23 +0800258
Bob Moore10110802014-04-30 10:06:22 +0800259/*****************************************************************************
260 *
261 * ACPICA public interface configuration.
262 *
263 * Interfaces that are configured out of the ACPICA build are replaced
264 * by inlined stubs by default.
265 *
266 ****************************************************************************/
267
Bob Moore33620c52012-02-14 18:14:27 +0800268/*
Bob Moore10110802014-04-30 10:06:22 +0800269 * Hardware-reduced prototypes (default: Not hardware reduced).
270 *
271 * All ACPICA hardware-related interfaces that use these macros will be
272 * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag
Bob Moore33620c52012-02-14 18:14:27 +0800273 * is set to TRUE.
Bob Moore10110802014-04-30 10:06:22 +0800274 *
275 * Note: This static build option for reduced hardware is intended to
276 * reduce ACPICA code size if desired or necessary. However, even if this
277 * option is not specified, the runtime behavior of ACPICA is dependent
278 * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set,
279 * the flag will enable similar behavior -- ACPICA will not attempt
280 * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.)
Bob Moore33620c52012-02-14 18:14:27 +0800281 */
282#if (!ACPI_REDUCED_HARDWARE)
283#define ACPI_HW_DEPENDENT_RETURN_STATUS(prototype) \
Lv Zheng8b9c1152014-04-30 10:05:08 +0800284 ACPI_EXTERNAL_RETURN_STATUS(prototype)
Bob Moore33620c52012-02-14 18:14:27 +0800285
286#define ACPI_HW_DEPENDENT_RETURN_OK(prototype) \
Lv Zheng8b9c1152014-04-30 10:05:08 +0800287 ACPI_EXTERNAL_RETURN_OK(prototype)
Bob Moore33620c52012-02-14 18:14:27 +0800288
289#define ACPI_HW_DEPENDENT_RETURN_VOID(prototype) \
Lv Zheng8b9c1152014-04-30 10:05:08 +0800290 ACPI_EXTERNAL_RETURN_VOID(prototype)
Bob Moore33620c52012-02-14 18:14:27 +0800291
292#else
293#define ACPI_HW_DEPENDENT_RETURN_STATUS(prototype) \
294 static ACPI_INLINE prototype {return(AE_NOT_CONFIGURED);}
295
296#define ACPI_HW_DEPENDENT_RETURN_OK(prototype) \
297 static ACPI_INLINE prototype {return(AE_OK);}
298
299#define ACPI_HW_DEPENDENT_RETURN_VOID(prototype) \
Bob Moorec26f3c92013-10-29 09:29:16 +0800300 static ACPI_INLINE prototype {return;}
Bob Moore33620c52012-02-14 18:14:27 +0800301
302#endif /* !ACPI_REDUCED_HARDWARE */
303
Bob Moore50df4d82008-12-31 03:01:23 +0800304/*
Bob Moore10110802014-04-30 10:06:22 +0800305 * Error message prototypes (default: error messages enabled).
306 *
307 * All interfaces related to error and warning messages
308 * will be configured out of the ACPICA build if the
309 * ACPI_NO_ERROR_MESSAGE flag is defined.
Lv Zheng407e22a2014-04-30 10:04:48 +0800310 */
311#ifndef ACPI_NO_ERROR_MESSAGES
312#define ACPI_MSG_DEPENDENT_RETURN_VOID(prototype) \
313 prototype;
314
315#else
316#define ACPI_MSG_DEPENDENT_RETURN_VOID(prototype) \
317 static ACPI_INLINE prototype {return;}
318
319#endif /* ACPI_NO_ERROR_MESSAGES */
320
321/*
Bob Moore10110802014-04-30 10:06:22 +0800322 * Debugging output prototypes (default: no debug output).
323 *
324 * All interfaces related to debug output messages
325 * will be configured out of the ACPICA build unless the
326 * ACPI_DEBUG_OUTPUT flag is defined.
Lv Zheng1ce28c32014-04-30 10:04:55 +0800327 */
328#ifdef ACPI_DEBUG_OUTPUT
329#define ACPI_DBG_DEPENDENT_RETURN_VOID(prototype) \
330 prototype;
331
332#else
333#define ACPI_DBG_DEPENDENT_RETURN_VOID(prototype) \
334 static ACPI_INLINE prototype {return;}
335
336#endif /* ACPI_DEBUG_OUTPUT */
337
Lv Zheng2e70da42014-07-08 10:07:06 +0800338/*
339 * Application prototypes
340 *
341 * All interfaces used by application will be configured
342 * out of the ACPICA build unless the ACPI_APPLICATION
343 * flag is defined.
344 */
345#ifdef ACPI_APPLICATION
346#define ACPI_APP_DEPENDENT_RETURN_VOID(prototype) \
347 prototype;
348
349#else
350#define ACPI_APP_DEPENDENT_RETURN_VOID(prototype) \
351 static ACPI_INLINE prototype {return;}
352
353#endif /* ACPI_APPLICATION */
354
Bob Moore10110802014-04-30 10:06:22 +0800355/*****************************************************************************
356 *
357 * ACPICA public interface prototypes
358 *
359 ****************************************************************************/
360
Lv Zheng1ce28c32014-04-30 10:04:55 +0800361/*
Lv Zheng75c80442012-12-19 05:36:49 +0000362 * Initialization
Linus Torvalds1da177e2005-04-16 15:20:36 -0700363 */
Lv Zheng8b9c1152014-04-30 10:05:08 +0800364ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init
365 acpi_initialize_tables(struct acpi_table_desc
366 *initial_storage,
367 u32 initial_table_count,
368 u8 allow_resize))
369ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init acpi_initialize_subsystem(void))
Bob Mooref3d2e782007-02-02 19:48:18 +0300370
Lv Zheng8b9c1152014-04-30 10:05:08 +0800371ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init acpi_enable_subsystem(u32 flags))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700372
Lv Zheng8b9c1152014-04-30 10:05:08 +0800373ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init
374 acpi_initialize_objects(u32 flags))
375ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init acpi_terminate(void))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700376
Lv Zheng75c80442012-12-19 05:36:49 +0000377/*
378 * Miscellaneous global interfaces
379 */
Bob Moore33620c52012-02-14 18:14:27 +0800380ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable(void))
381ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_disable(void))
Lv Zheng739dcbb2012-12-20 01:07:26 +0000382#ifdef ACPI_FUTURE_USAGE
Lv Zheng8b9c1152014-04-30 10:05:08 +0800383ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_subsystem_status(void))
Lv Zheng739dcbb2012-12-20 01:07:26 +0000384#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700385
386#ifdef ACPI_FUTURE_USAGE
Lv Zheng8b9c1152014-04-30 10:05:08 +0800387ACPI_EXTERNAL_RETURN_STATUS(acpi_status
388 acpi_get_system_info(struct acpi_buffer
389 *ret_buffer))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700390#endif
Lv Zheng8b9c1152014-04-30 10:05:08 +0800391ACPI_EXTERNAL_RETURN_STATUS(acpi_status
392 acpi_get_statistics(struct acpi_statistics *stats))
393ACPI_EXTERNAL_RETURN_PTR(const char
394 *acpi_format_exception(acpi_status exception))
395ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_purge_cached_objects(void))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700396
Lv Zheng8b9c1152014-04-30 10:05:08 +0800397ACPI_EXTERNAL_RETURN_STATUS(acpi_status
398 acpi_install_interface(acpi_string interface_name))
Lv Zheng9187a412013-10-31 09:30:28 +0800399
Lv Zheng8b9c1152014-04-30 10:05:08 +0800400ACPI_EXTERNAL_RETURN_STATUS(acpi_status
401 acpi_remove_interface(acpi_string interface_name))
402ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_update_interfaces(u8 action))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700403
Lv Zheng8b9c1152014-04-30 10:05:08 +0800404ACPI_EXTERNAL_RETURN_UINT32(u32
405 acpi_check_address_range(acpi_adr_space_type
406 space_id,
407 acpi_physical_address
408 address, acpi_size length,
409 u8 warn))
410ACPI_EXTERNAL_RETURN_STATUS(acpi_status
411 acpi_decode_pld_buffer(u8 *in_buffer,
412 acpi_size length,
413 struct acpi_pld_info
414 **return_buffer))
Bob Moorebe030a52012-08-17 13:07:54 +0800415
Linus Torvalds1da177e2005-04-16 15:20:36 -0700416/*
Bob Mooref60d8182012-07-16 10:21:34 +0800417 * ACPI table load/unload interfaces
418 */
Lv Zheng8b9c1152014-04-30 10:05:08 +0800419ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init
420 acpi_install_table(acpi_physical_address address,
421 u8 physical))
Bob Mooref60d8182012-07-16 10:21:34 +0800422
Lv Zheng8b9c1152014-04-30 10:05:08 +0800423ACPI_EXTERNAL_RETURN_STATUS(acpi_status
424 acpi_load_table(struct acpi_table_header *table))
Bob Mooref60d8182012-07-16 10:21:34 +0800425
Lv Zheng8b9c1152014-04-30 10:05:08 +0800426ACPI_EXTERNAL_RETURN_STATUS(acpi_status
427 acpi_unload_parent_table(acpi_handle object))
428ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init acpi_load_tables(void))
Bob Mooref60d8182012-07-16 10:21:34 +0800429
430/*
Linus Torvalds1da177e2005-04-16 15:20:36 -0700431 * ACPI table manipulation interfaces
432 */
Lv Zheng8b9c1152014-04-30 10:05:08 +0800433ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init acpi_reallocate_root_table(void))
Bob Mooref3d2e782007-02-02 19:48:18 +0300434
Lv Zheng8b9c1152014-04-30 10:05:08 +0800435ACPI_EXTERNAL_RETURN_STATUS(acpi_status __init
436 acpi_find_root_pointer(acpi_size * rsdp_address))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700437
Lv Zheng8b9c1152014-04-30 10:05:08 +0800438ACPI_EXTERNAL_RETURN_STATUS(acpi_status
439 acpi_get_table_header(acpi_string signature,
440 u32 instance,
441 struct acpi_table_header
442 *out_table_header))
443ACPI_EXTERNAL_RETURN_STATUS(acpi_status
444 acpi_get_table(acpi_string signature, u32 instance,
445 struct acpi_table_header
446 **out_table))
447ACPI_EXTERNAL_RETURN_STATUS(acpi_status
448 acpi_get_table_by_index(u32 table_index,
449 struct acpi_table_header
450 **out_table))
451ACPI_EXTERNAL_RETURN_STATUS(acpi_status
452 acpi_install_table_handler(acpi_table_handler
453 handler, void *context))
454ACPI_EXTERNAL_RETURN_STATUS(acpi_status
455 acpi_remove_table_handler(acpi_table_handler
456 handler))
Lin Ming3e08e2d2008-04-10 19:06:38 +0400457
Linus Torvalds1da177e2005-04-16 15:20:36 -0700458/*
459 * Namespace and name interfaces
460 */
Lv Zheng8b9c1152014-04-30 10:05:08 +0800461ACPI_EXTERNAL_RETURN_STATUS(acpi_status
462 acpi_walk_namespace(acpi_object_type type,
463 acpi_handle start_object,
464 u32 max_depth,
465 acpi_walk_callback
466 descending_callback,
467 acpi_walk_callback
468 ascending_callback,
469 void *context,
470 void **return_value))
471ACPI_EXTERNAL_RETURN_STATUS(acpi_status
472 acpi_get_devices(const char *HID,
473 acpi_walk_callback user_function,
474 void *context,
475 void **return_value))
476ACPI_EXTERNAL_RETURN_STATUS(acpi_status
477 acpi_get_name(acpi_handle object, u32 name_type,
478 struct acpi_buffer *ret_path_ptr))
479ACPI_EXTERNAL_RETURN_STATUS(acpi_status
480 acpi_get_handle(acpi_handle parent,
481 acpi_string pathname,
482 acpi_handle * ret_handle))
483ACPI_EXTERNAL_RETURN_STATUS(acpi_status
484 acpi_attach_data(acpi_handle object,
485 acpi_object_handler handler,
486 void *data))
487ACPI_EXTERNAL_RETURN_STATUS(acpi_status
488 acpi_detach_data(acpi_handle object,
489 acpi_object_handler handler))
490ACPI_EXTERNAL_RETURN_STATUS(acpi_status
491 acpi_get_data(acpi_handle object,
492 acpi_object_handler handler,
493 void **data))
494ACPI_EXTERNAL_RETURN_STATUS(acpi_status
495 acpi_debug_trace(char *name, u32 debug_level,
496 u32 debug_layer, u32 flags))
Bob Moore50eca3e2005-09-30 19:03:00 -0400497
Linus Torvalds1da177e2005-04-16 15:20:36 -0700498/*
499 * Object manipulation and enumeration
500 */
Lv Zheng8b9c1152014-04-30 10:05:08 +0800501ACPI_EXTERNAL_RETURN_STATUS(acpi_status
502 acpi_evaluate_object(acpi_handle object,
503 acpi_string pathname,
504 struct acpi_object_list
505 *parameter_objects,
506 struct acpi_buffer
507 *return_object_buffer))
508ACPI_EXTERNAL_RETURN_STATUS(acpi_status
509 acpi_evaluate_object_typed(acpi_handle object,
510 acpi_string pathname,
511 struct acpi_object_list
512 *external_params,
513 struct acpi_buffer
514 *return_buffer,
515 acpi_object_type
516 return_type))
517ACPI_EXTERNAL_RETURN_STATUS(acpi_status
518 acpi_get_object_info(acpi_handle object,
519 struct acpi_device_info
520 **return_buffer))
521ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_install_method(u8 *buffer))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700522
Lv Zheng8b9c1152014-04-30 10:05:08 +0800523ACPI_EXTERNAL_RETURN_STATUS(acpi_status
524 acpi_get_next_object(acpi_object_type type,
525 acpi_handle parent,
526 acpi_handle child,
527 acpi_handle * out_handle))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700528
Lv Zheng8b9c1152014-04-30 10:05:08 +0800529ACPI_EXTERNAL_RETURN_STATUS(acpi_status
530 acpi_get_type(acpi_handle object,
531 acpi_object_type * out_type))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700532
Lv Zheng8b9c1152014-04-30 10:05:08 +0800533ACPI_EXTERNAL_RETURN_STATUS(acpi_status
534 acpi_get_parent(acpi_handle object,
535 acpi_handle * out_handle))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700536
537/*
Bob Mooreecfbbc72008-12-31 02:55:32 +0800538 * Handler interfaces
Linus Torvalds1da177e2005-04-16 15:20:36 -0700539 */
Lv Zheng8b9c1152014-04-30 10:05:08 +0800540ACPI_EXTERNAL_RETURN_STATUS(acpi_status
541 acpi_install_initialization_handler
542 (acpi_init_handler handler, u32 function))
Bob Moore33620c52012-02-14 18:14:27 +0800543ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
Lv Zheng8b9c1152014-04-30 10:05:08 +0800544 acpi_install_sci_handler(acpi_sci_handler
545 address,
546 void *context))
Lv Zhenga2fd4b42013-09-23 09:52:05 +0800547ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
548 acpi_remove_sci_handler(acpi_sci_handler
549 address))
550ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
551 acpi_install_global_event_handler
552 (acpi_gbl_event_handler handler,
553 void *context))
Bob Moore33620c52012-02-14 18:14:27 +0800554ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
555 acpi_install_fixed_event_handler(u32
556 acpi_event,
557 acpi_event_handler
558 handler,
559 void
560 *context))
561ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
562 acpi_remove_fixed_event_handler(u32 acpi_event,
563 acpi_event_handler
564 handler))
565ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
566 acpi_install_gpe_handler(acpi_handle
567 gpe_device,
568 u32 gpe_number,
569 u32 type,
570 acpi_gpe_handler
571 address,
572 void *context))
573ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
574 acpi_remove_gpe_handler(acpi_handle gpe_device,
575 u32 gpe_number,
576 acpi_gpe_handler
577 address))
Lv Zheng8b9c1152014-04-30 10:05:08 +0800578ACPI_EXTERNAL_RETURN_STATUS(acpi_status
579 acpi_install_notify_handler(acpi_handle device,
580 u32 handler_type,
581 acpi_notify_handler
582 handler,
583 void *context))
584ACPI_EXTERNAL_RETURN_STATUS(acpi_status
585 acpi_remove_notify_handler(acpi_handle device,
586 u32 handler_type,
587 acpi_notify_handler
588 handler))
589ACPI_EXTERNAL_RETURN_STATUS(acpi_status
590 acpi_install_address_space_handler(acpi_handle
591 device,
592 acpi_adr_space_type
593 space_id,
594 acpi_adr_space_handler
595 handler,
596 acpi_adr_space_setup
597 setup,
598 void *context))
599ACPI_EXTERNAL_RETURN_STATUS(acpi_status
600 acpi_remove_address_space_handler(acpi_handle
601 device,
602 acpi_adr_space_type
603 space_id,
604 acpi_adr_space_handler
605 handler))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700606#ifdef ACPI_FUTURE_USAGE
Lv Zheng8b9c1152014-04-30 10:05:08 +0800607ACPI_EXTERNAL_RETURN_STATUS(acpi_status
608 acpi_install_exception_handler
609 (acpi_exception_handler handler))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700610#endif
Lv Zheng8b9c1152014-04-30 10:05:08 +0800611ACPI_EXTERNAL_RETURN_STATUS(acpi_status
612 acpi_install_interface_handler
613 (acpi_interface_handler handler))
Lin Mingb0ed7a92010-08-06 09:35:51 +0800614
Linus Torvalds1da177e2005-04-16 15:20:36 -0700615/*
Lin Mingffef6822011-11-16 11:08:30 +0800616 * Global Lock interfaces
Linus Torvalds1da177e2005-04-16 15:20:36 -0700617 */
Bob Moore33620c52012-02-14 18:14:27 +0800618ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
619 acpi_acquire_global_lock(u16 timeout,
620 u32 *handle))
Lv Zhengcd27d792013-10-29 09:30:22 +0800621
Bob Moore33620c52012-02-14 18:14:27 +0800622ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
623 acpi_release_global_lock(u32 handle))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700624
Lin Mingffef6822011-11-16 11:08:30 +0800625/*
626 * Interfaces to AML mutex objects
627 */
Lv Zheng8b9c1152014-04-30 10:05:08 +0800628ACPI_EXTERNAL_RETURN_STATUS(acpi_status
629 acpi_acquire_mutex(acpi_handle handle,
630 acpi_string pathname,
631 u16 timeout))
Lin Mingffef6822011-11-16 11:08:30 +0800632
Lv Zheng8b9c1152014-04-30 10:05:08 +0800633ACPI_EXTERNAL_RETURN_STATUS(acpi_status
634 acpi_release_mutex(acpi_handle handle,
635 acpi_string pathname))
Lin Mingffef6822011-11-16 11:08:30 +0800636
637/*
638 * Fixed Event interfaces
639 */
Bob Moore33620c52012-02-14 18:14:27 +0800640ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
641 acpi_enable_event(u32 event, u32 flags))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700642
Bob Moore33620c52012-02-14 18:14:27 +0800643ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
644 acpi_disable_event(u32 event, u32 flags))
Bob Moore33620c52012-02-14 18:14:27 +0800645ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_clear_event(u32 event))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700646
Bob Moore33620c52012-02-14 18:14:27 +0800647ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
648 acpi_get_event_status(u32 event,
649 acpi_event_status
650 *event_status))
Lv Zhengcd27d792013-10-29 09:30:22 +0800651
Bob Moore08ac07b2008-12-30 09:55:48 +0800652/*
Lin Mingffef6822011-11-16 11:08:30 +0800653 * General Purpose Event (GPE) Interfaces
Bob Moore08ac07b2008-12-30 09:55:48 +0800654 */
Bob Moore33620c52012-02-14 18:14:27 +0800655ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_update_all_gpes(void))
Len Brown4be44fc2005-08-05 00:44:28 -0400656
Bob Moore33620c52012-02-14 18:14:27 +0800657ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
658 acpi_enable_gpe(acpi_handle gpe_device,
659 u32 gpe_number))
Len Brown4be44fc2005-08-05 00:44:28 -0400660
Bob Moore33620c52012-02-14 18:14:27 +0800661ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
662 acpi_disable_gpe(acpi_handle gpe_device,
663 u32 gpe_number))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700664
Bob Moore33620c52012-02-14 18:14:27 +0800665ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
666 acpi_clear_gpe(acpi_handle gpe_device,
667 u32 gpe_number))
Lin Mingbba63a22010-12-13 13:39:17 +0800668
Bob Moore33620c52012-02-14 18:14:27 +0800669ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
670 acpi_set_gpe(acpi_handle gpe_device,
671 u32 gpe_number, u8 action))
Rafael J. Wysockie8b6f972010-06-25 01:18:39 +0200672
Bob Moore33620c52012-02-14 18:14:27 +0800673ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
674 acpi_finish_gpe(acpi_handle gpe_device,
675 u32 gpe_number))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700676
Bob Moore33620c52012-02-14 18:14:27 +0800677ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
678 acpi_setup_gpe_for_wake(acpi_handle
679 parent_device,
680 acpi_handle gpe_device,
681 u32 gpe_number))
682ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
683 acpi_set_gpe_wake_mask(acpi_handle gpe_device,
684 u32 gpe_number,
685 u8 action))
686ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
687 acpi_get_gpe_status(acpi_handle gpe_device,
688 u32 gpe_number,
689 acpi_event_status
690 *event_status))
Bob Moore33620c52012-02-14 18:14:27 +0800691ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_disable_all_gpes(void))
Bob Moore33620c52012-02-14 18:14:27 +0800692ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable_all_runtime_gpes(void))
Bob Mooree97d6bf2008-12-30 09:45:17 +0800693
Bob Moore33620c52012-02-14 18:14:27 +0800694ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
695 acpi_get_gpe_device(u32 gpe_index,
696 acpi_handle * gpe_device))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700697
Bob Moore33620c52012-02-14 18:14:27 +0800698ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
699 acpi_install_gpe_block(acpi_handle gpe_device,
700 struct
701 acpi_generic_address
702 *gpe_block_address,
703 u32 register_count,
704 u32 interrupt_number))
705ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
706 acpi_remove_gpe_block(acpi_handle gpe_device))
Rafael J. Wysockia2100802010-09-16 00:30:43 +0200707
Linus Torvalds1da177e2005-04-16 15:20:36 -0700708/*
709 * Resource interfaces
710 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700711typedef
Bob Moore616861242006-03-17 16:44:00 -0500712acpi_status(*acpi_walk_resource_callback) (struct acpi_resource * resource,
Len Brown4be44fc2005-08-05 00:44:28 -0400713 void *context);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700714
Lv Zheng8b9c1152014-04-30 10:05:08 +0800715ACPI_EXTERNAL_RETURN_STATUS(acpi_status
716 acpi_get_vendor_resource(acpi_handle device,
717 char *name,
718 struct acpi_vendor_uuid
719 *uuid,
720 struct acpi_buffer
721 *ret_buffer))
722ACPI_EXTERNAL_RETURN_STATUS(acpi_status
723 acpi_get_current_resources(acpi_handle device,
724 struct acpi_buffer
725 *ret_buffer))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700726#ifdef ACPI_FUTURE_USAGE
Lv Zheng8b9c1152014-04-30 10:05:08 +0800727ACPI_EXTERNAL_RETURN_STATUS(acpi_status
728 acpi_get_possible_resources(acpi_handle device,
729 struct acpi_buffer
730 *ret_buffer))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700731#endif
Lv Zheng8b9c1152014-04-30 10:05:08 +0800732ACPI_EXTERNAL_RETURN_STATUS(acpi_status
733 acpi_get_event_resources(acpi_handle device_handle,
734 struct acpi_buffer
735 *ret_buffer))
736ACPI_EXTERNAL_RETURN_STATUS(acpi_status
737 acpi_walk_resource_buffer(struct acpi_buffer
738 *buffer,
739 acpi_walk_resource_callback
740 user_function,
741 void *context))
742ACPI_EXTERNAL_RETURN_STATUS(acpi_status
743 acpi_walk_resources(acpi_handle device, char *name,
744 acpi_walk_resource_callback
745 user_function, void *context))
746ACPI_EXTERNAL_RETURN_STATUS(acpi_status
747 acpi_set_current_resources(acpi_handle device,
748 struct acpi_buffer
749 *in_buffer))
750ACPI_EXTERNAL_RETURN_STATUS(acpi_status
751 acpi_get_irq_routing_table(acpi_handle device,
752 struct acpi_buffer
753 *ret_buffer))
754ACPI_EXTERNAL_RETURN_STATUS(acpi_status
755 acpi_resource_to_address64(struct acpi_resource
756 *resource,
757 struct
758 acpi_resource_address64
759 *out))
760ACPI_EXTERNAL_RETURN_STATUS(acpi_status
761 acpi_buffer_to_resource(u8 *aml_buffer,
762 u16 aml_buffer_length,
763 struct acpi_resource
764 **resource_ptr))
Bob Moore0e243172011-11-16 14:51:01 +0800765
Linus Torvalds1da177e2005-04-16 15:20:36 -0700766/*
767 * Hardware (ACPI device) interfaces
768 */
Lv Zheng8b9c1152014-04-30 10:05:08 +0800769ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_reset(void))
Bob Moored3fd9022008-12-30 11:11:57 +0800770
Lv Zheng8b9c1152014-04-30 10:05:08 +0800771ACPI_EXTERNAL_RETURN_STATUS(acpi_status
772 acpi_read(u64 *value,
773 struct acpi_generic_address *reg))
Lv Zheng739dcbb2012-12-20 01:07:26 +0000774
Lv Zheng8b9c1152014-04-30 10:05:08 +0800775ACPI_EXTERNAL_RETURN_STATUS(acpi_status
776 acpi_write(u64 value,
777 struct acpi_generic_address *reg))
Lv Zheng739dcbb2012-12-20 01:07:26 +0000778
Bob Moore33620c52012-02-14 18:14:27 +0800779ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
780 acpi_read_bit_register(u32 register_id,
781 u32 *return_value))
Len Brown4be44fc2005-08-05 00:44:28 -0400782
Bob Moore33620c52012-02-14 18:14:27 +0800783ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
784 acpi_write_bit_register(u32 register_id,
785 u32 value))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700786
Bob Moore33620c52012-02-14 18:14:27 +0800787/*
788 * Sleep/Wake interfaces
789 */
Lv Zheng8b9c1152014-04-30 10:05:08 +0800790ACPI_EXTERNAL_RETURN_STATUS(acpi_status
791 acpi_get_sleep_type_data(u8 sleep_state,
792 u8 *slp_typ_a,
793 u8 *slp_typ_b))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700794
Lv Zheng8b9c1152014-04-30 10:05:08 +0800795ACPI_EXTERNAL_RETURN_STATUS(acpi_status
796 acpi_enter_sleep_state_prep(u8 sleep_state))
797ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_enter_sleep_state(u8 sleep_state))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700798
Lv Zheng40bce102013-10-31 09:31:18 +0800799ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enter_sleep_state_s4bios(void))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700800
Lv Zheng8b9c1152014-04-30 10:05:08 +0800801ACPI_EXTERNAL_RETURN_STATUS(acpi_status
802 acpi_leave_sleep_state_prep(u8 sleep_state))
803ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_leave_sleep_state(u8 sleep_state))
Linus Torvalds1da177e2005-04-16 15:20:36 -0700804
Lv Zheng739dcbb2012-12-20 01:07:26 +0000805ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
806 acpi_set_firmware_waking_vector(u32
807 physical_address))
Lv Zheng739dcbb2012-12-20 01:07:26 +0000808#if ACPI_MACHINE_WIDTH == 64
809ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
810 acpi_set_firmware_waking_vector64(u64
811 physical_address))
812#endif
Bob Moore50df4d82008-12-31 03:01:23 +0800813/*
Bob Moored08310f2012-02-14 15:22:51 +0800814 * ACPI Timer interfaces
815 */
816#ifdef ACPI_FUTURE_USAGE
Bob Moore33620c52012-02-14 18:14:27 +0800817ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
818 acpi_get_timer_resolution(u32 *resolution))
Bob Moore33620c52012-02-14 18:14:27 +0800819ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_get_timer(u32 *ticks))
Bob Moored08310f2012-02-14 15:22:51 +0800820
Bob Moore33620c52012-02-14 18:14:27 +0800821ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
822 acpi_get_timer_duration(u32 start_ticks,
823 u32 end_ticks,
824 u32 *time_elapsed))
Bob Moored08310f2012-02-14 15:22:51 +0800825#endif /* ACPI_FUTURE_USAGE */
826
827/*
Bob Mooreb74be612009-04-22 10:20:23 +0800828 * Error/Warning output
Bob Moore50df4d82008-12-31 03:01:23 +0800829 */
Lv Zheng407e22a2014-04-30 10:04:48 +0800830ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
831 void ACPI_INTERNAL_VAR_XFACE
832 acpi_error(const char *module_name,
833 u32 line_number,
834 const char *format, ...))
835ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(4)
836 void ACPI_INTERNAL_VAR_XFACE
837 acpi_exception(const char *module_name,
838 u32 line_number,
839 acpi_status status,
840 const char *format, ...))
841ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
842 void ACPI_INTERNAL_VAR_XFACE
843 acpi_warning(const char *module_name,
844 u32 line_number,
845 const char *format, ...))
846ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
847 void ACPI_INTERNAL_VAR_XFACE
848 acpi_info(const char *module_name,
849 u32 line_number,
850 const char *format, ...))
851ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
852 void ACPI_INTERNAL_VAR_XFACE
853 acpi_bios_error(const char *module_name,
854 u32 line_number,
855 const char *format, ...))
856ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
857 void ACPI_INTERNAL_VAR_XFACE
858 acpi_bios_warning(const char *module_name,
859 u32 line_number,
860 const char *format, ...))
Bob Moore62cdd142012-07-16 09:25:27 +0800861
Bob Mooreb74be612009-04-22 10:20:23 +0800862/*
863 * Debug output
864 */
Lv Zheng1ce28c32014-04-30 10:04:55 +0800865ACPI_DBG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(6)
866 void ACPI_INTERNAL_VAR_XFACE
867 acpi_debug_print(u32 requested_debug_level,
868 u32 line_number,
869 const char *function_name,
870 const char *module_name,
871 u32 component_id,
872 const char *format, ...))
873ACPI_DBG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(6)
874 void ACPI_INTERNAL_VAR_XFACE
875 acpi_debug_print_raw(u32 requested_debug_level,
876 u32 line_number,
877 const char *function_name,
878 const char *module_name,
879 u32 component_id,
880 const char *format, ...))
Lv Zheng2e70da42014-07-08 10:07:06 +0800881ACPI_APP_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(1)
882 void ACPI_INTERNAL_VAR_XFACE
883 acpi_log_error(const char *format, ...))
Bob Moore50df4d82008-12-31 03:01:23 +0800884
Lv Zheng0dedb3c2014-04-30 10:05:02 +0800885/*
886 * Divergences
887 */
888acpi_status acpi_get_id(acpi_handle object, acpi_owner_id * out_type);
Bob Moore50df4d82008-12-31 03:01:23 +0800889
Lv Zheng0dedb3c2014-04-30 10:05:02 +0800890acpi_status acpi_unload_table_id(acpi_owner_id id);
891
892acpi_status
893acpi_get_table_with_size(acpi_string signature,
894 u32 instance, struct acpi_table_header **out_table,
895 acpi_size *tbl_size);
896
897acpi_status
898acpi_get_data_full(acpi_handle object, acpi_object_handler handler, void **data,
899 void (*callback)(void *));
Bob Moore50df4d82008-12-31 03:01:23 +0800900
Len Brown4be44fc2005-08-05 00:44:28 -0400901#endif /* __ACXFACE_H__ */