acpixf.h revision 1.37 1 1.1 jruoho /******************************************************************************
2 1.1 jruoho *
3 1.1 jruoho * Name: acpixf.h - External interfaces to the ACPI subsystem
4 1.1 jruoho *
5 1.1 jruoho *****************************************************************************/
6 1.1 jruoho
7 1.37 christos /******************************************************************************
8 1.37 christos *
9 1.37 christos * 1. Copyright Notice
10 1.37 christos *
11 1.37 christos * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp.
12 1.1 jruoho * All rights reserved.
13 1.1 jruoho *
14 1.37 christos * 2. License
15 1.37 christos *
16 1.37 christos * 2.1. This is your license from Intel Corp. under its intellectual property
17 1.37 christos * rights. You may have additional license terms from the party that provided
18 1.37 christos * you this software, covering your right to use that party's intellectual
19 1.37 christos * property rights.
20 1.37 christos *
21 1.37 christos * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 1.37 christos * copy of the source code appearing in this file ("Covered Code") an
23 1.37 christos * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 1.37 christos * base code distributed originally by Intel ("Original Intel Code") to copy,
25 1.37 christos * make derivatives, distribute, use and display any portion of the Covered
26 1.37 christos * Code in any form, with the right to sublicense such rights; and
27 1.37 christos *
28 1.37 christos * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 1.37 christos * license (with the right to sublicense), under only those claims of Intel
30 1.37 christos * patents that are infringed by the Original Intel Code, to make, use, sell,
31 1.37 christos * offer to sell, and import the Covered Code and derivative works thereof
32 1.37 christos * solely to the minimum extent necessary to exercise the above copyright
33 1.37 christos * license, and in no event shall the patent license extend to any additions
34 1.37 christos * to or modifications of the Original Intel Code. No other license or right
35 1.37 christos * is granted directly or by implication, estoppel or otherwise;
36 1.37 christos *
37 1.37 christos * The above copyright and patent license is granted only if the following
38 1.37 christos * conditions are met:
39 1.37 christos *
40 1.37 christos * 3. Conditions
41 1.37 christos *
42 1.37 christos * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 1.37 christos * Redistribution of source code of any substantial portion of the Covered
44 1.37 christos * Code or modification with rights to further distribute source must include
45 1.37 christos * the above Copyright Notice, the above License, this list of Conditions,
46 1.37 christos * and the following Disclaimer and Export Compliance provision. In addition,
47 1.37 christos * Licensee must cause all Covered Code to which Licensee contributes to
48 1.37 christos * contain a file documenting the changes Licensee made to create that Covered
49 1.37 christos * Code and the date of any change. Licensee must include in that file the
50 1.37 christos * documentation of any changes made by any predecessor Licensee. Licensee
51 1.37 christos * must include a prominent statement that the modification is derived,
52 1.37 christos * directly or indirectly, from Original Intel Code.
53 1.37 christos *
54 1.37 christos * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 1.37 christos * Redistribution of source code of any substantial portion of the Covered
56 1.37 christos * Code or modification without rights to further distribute source must
57 1.37 christos * include the following Disclaimer and Export Compliance provision in the
58 1.37 christos * documentation and/or other materials provided with distribution. In
59 1.37 christos * addition, Licensee may not authorize further sublicense of source of any
60 1.37 christos * portion of the Covered Code, and must include terms to the effect that the
61 1.37 christos * license from Licensee to its licensee is limited to the intellectual
62 1.37 christos * property embodied in the software Licensee provides to its licensee, and
63 1.37 christos * not to intellectual property embodied in modifications its licensee may
64 1.37 christos * make.
65 1.37 christos *
66 1.37 christos * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 1.37 christos * substantial portion of the Covered Code or modification must reproduce the
68 1.37 christos * above Copyright Notice, and the following Disclaimer and Export Compliance
69 1.37 christos * provision in the documentation and/or other materials provided with the
70 1.37 christos * distribution.
71 1.37 christos *
72 1.37 christos * 3.4. Intel retains all right, title, and interest in and to the Original
73 1.37 christos * Intel Code.
74 1.37 christos *
75 1.37 christos * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 1.37 christos * Intel shall be used in advertising or otherwise to promote the sale, use or
77 1.37 christos * other dealings in products derived from or relating to the Covered Code
78 1.37 christos * without prior written authorization from Intel.
79 1.37 christos *
80 1.37 christos * 4. Disclaimer and Export Compliance
81 1.37 christos *
82 1.37 christos * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 1.37 christos * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 1.37 christos * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 1.37 christos * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 1.37 christos * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 1.37 christos * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
88 1.37 christos * PARTICULAR PURPOSE.
89 1.37 christos *
90 1.37 christos * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 1.37 christos * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 1.37 christos * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 1.37 christos * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 1.37 christos * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 1.37 christos * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 1.37 christos * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
97 1.37 christos * LIMITED REMEDY.
98 1.37 christos *
99 1.37 christos * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 1.37 christos * software or system incorporating such software without first obtaining any
101 1.37 christos * required license or other approval from the U. S. Department of Commerce or
102 1.37 christos * any other agency or department of the United States Government. In the
103 1.37 christos * event Licensee exports any such software from the United States or
104 1.37 christos * re-exports any such software from a foreign destination, Licensee shall
105 1.37 christos * ensure that the distribution and export/re-export of the software is in
106 1.37 christos * compliance with all laws, regulations, orders, or other restrictions of the
107 1.37 christos * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 1.37 christos * any of its subsidiaries will export/re-export any technical data, process,
109 1.37 christos * software, or service, directly or indirectly, to any country for which the
110 1.37 christos * United States government or any agency thereof requires an export license,
111 1.37 christos * other governmental approval, or letter of assurance, without first obtaining
112 1.37 christos * such license, approval or letter.
113 1.37 christos *
114 1.37 christos *****************************************************************************
115 1.37 christos *
116 1.37 christos * Alternatively, you may choose to be licensed under the terms of the
117 1.37 christos * following license:
118 1.37 christos *
119 1.3 jruoho * Redistribution and use in source and binary forms, with or without
120 1.3 jruoho * modification, are permitted provided that the following conditions
121 1.3 jruoho * are met:
122 1.3 jruoho * 1. Redistributions of source code must retain the above copyright
123 1.3 jruoho * notice, this list of conditions, and the following disclaimer,
124 1.3 jruoho * without modification.
125 1.3 jruoho * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126 1.3 jruoho * substantially similar to the "NO WARRANTY" disclaimer below
127 1.3 jruoho * ("Disclaimer") and any redistribution must be conditioned upon
128 1.3 jruoho * including a substantially similar Disclaimer requirement for further
129 1.3 jruoho * binary redistribution.
130 1.3 jruoho * 3. Neither the names of the above-listed copyright holders nor the names
131 1.3 jruoho * of any contributors may be used to endorse or promote products derived
132 1.3 jruoho * from this software without specific prior written permission.
133 1.3 jruoho *
134 1.3 jruoho * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135 1.3 jruoho * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136 1.29 christos * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137 1.3 jruoho * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138 1.37 christos * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139 1.37 christos * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140 1.37 christos * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141 1.37 christos * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142 1.37 christos * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143 1.37 christos * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144 1.37 christos * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
145 1.37 christos *
146 1.37 christos * Alternatively, you may choose to be licensed under the terms of the
147 1.37 christos * GNU General Public License ("GPL") version 2 as published by the Free
148 1.37 christos * Software Foundation.
149 1.37 christos *
150 1.37 christos *****************************************************************************/
151 1.1 jruoho
152 1.1 jruoho #ifndef __ACXFACE_H__
153 1.1 jruoho #define __ACXFACE_H__
154 1.1 jruoho
155 1.1 jruoho /* Current ACPICA subsystem version in YYYYMMDD format */
156 1.1 jruoho
157 1.37 christos #define ACPI_CA_VERSION 0x20241212
158 1.1 jruoho
159 1.6 christos #include "acconfig.h"
160 1.1 jruoho #include "actypes.h"
161 1.1 jruoho #include "actbl.h"
162 1.6 christos #include "acbuffer.h"
163 1.1 jruoho
164 1.7 christos
165 1.7 christos /*****************************************************************************
166 1.7 christos *
167 1.7 christos * Macros used for ACPICA globals and configuration
168 1.7 christos *
169 1.7 christos ****************************************************************************/
170 1.7 christos
171 1.7 christos /*
172 1.7 christos * Ensure that global variables are defined and initialized only once.
173 1.7 christos *
174 1.7 christos * The use of these macros allows for a single list of globals (here)
175 1.7 christos * in order to simplify maintenance of the code.
176 1.7 christos */
177 1.7 christos #ifdef DEFINE_ACPI_GLOBALS
178 1.7 christos #define ACPI_GLOBAL(type,name) \
179 1.7 christos extern type name; \
180 1.7 christos type name
181 1.7 christos
182 1.7 christos #define ACPI_INIT_GLOBAL(type,name,value) \
183 1.7 christos type name=value
184 1.7 christos
185 1.7 christos #else
186 1.7 christos #ifndef ACPI_GLOBAL
187 1.7 christos #define ACPI_GLOBAL(type,name) \
188 1.7 christos extern type name
189 1.7 christos #endif
190 1.7 christos
191 1.7 christos #ifndef ACPI_INIT_GLOBAL
192 1.7 christos #define ACPI_INIT_GLOBAL(type,name,value) \
193 1.7 christos extern type name
194 1.7 christos #endif
195 1.7 christos #endif
196 1.7 christos
197 1.7 christos /*
198 1.7 christos * These macros configure the various ACPICA interfaces. They are
199 1.7 christos * useful for generating stub inline functions for features that are
200 1.7 christos * configured out of the current kernel or ACPICA application.
201 1.7 christos */
202 1.7 christos #ifndef ACPI_EXTERNAL_RETURN_STATUS
203 1.7 christos #define ACPI_EXTERNAL_RETURN_STATUS(Prototype) \
204 1.7 christos Prototype;
205 1.7 christos #endif
206 1.7 christos
207 1.7 christos #ifndef ACPI_EXTERNAL_RETURN_OK
208 1.7 christos #define ACPI_EXTERNAL_RETURN_OK(Prototype) \
209 1.7 christos Prototype;
210 1.7 christos #endif
211 1.7 christos
212 1.7 christos #ifndef ACPI_EXTERNAL_RETURN_VOID
213 1.7 christos #define ACPI_EXTERNAL_RETURN_VOID(Prototype) \
214 1.7 christos Prototype;
215 1.7 christos #endif
216 1.7 christos
217 1.7 christos #ifndef ACPI_EXTERNAL_RETURN_UINT32
218 1.7 christos #define ACPI_EXTERNAL_RETURN_UINT32(Prototype) \
219 1.7 christos Prototype;
220 1.7 christos #endif
221 1.7 christos
222 1.7 christos #ifndef ACPI_EXTERNAL_RETURN_PTR
223 1.7 christos #define ACPI_EXTERNAL_RETURN_PTR(Prototype) \
224 1.7 christos Prototype;
225 1.7 christos #endif
226 1.7 christos
227 1.7 christos
228 1.7 christos /*****************************************************************************
229 1.7 christos *
230 1.7 christos * Public globals and runtime configuration options
231 1.7 christos *
232 1.7 christos ****************************************************************************/
233 1.7 christos
234 1.7 christos /*
235 1.7 christos * Enable "slack mode" of the AML interpreter? Default is FALSE, and the
236 1.7 christos * interpreter strictly follows the ACPI specification. Setting to TRUE
237 1.7 christos * allows the interpreter to ignore certain errors and/or bad AML constructs.
238 1.7 christos *
239 1.7 christos * Currently, these features are enabled by this flag:
240 1.7 christos *
241 1.7 christos * 1) Allow "implicit return" of last value in a control method
242 1.7 christos * 2) Allow access beyond the end of an operation region
243 1.7 christos * 3) Allow access to uninitialized locals/args (auto-init to integer 0)
244 1.7 christos * 4) Allow ANY object type to be a source operand for the Store() operator
245 1.7 christos * 5) Allow unresolved references (invalid target name) in package objects
246 1.7 christos * 6) Enable warning messages for behavior that is not ACPI spec compliant
247 1.7 christos */
248 1.7 christos ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableInterpreterSlack, FALSE);
249 1.7 christos
250 1.7 christos /*
251 1.7 christos * Automatically serialize all methods that create named objects? Default
252 1.7 christos * is TRUE, meaning that all NonSerialized methods are scanned once at
253 1.7 christos * table load time to determine those that create named objects. Methods
254 1.7 christos * that create named objects are marked Serialized in order to prevent
255 1.7 christos * possible run-time problems if they are entered by more than one thread.
256 1.7 christos */
257 1.7 christos ACPI_INIT_GLOBAL (UINT8, AcpiGbl_AutoSerializeMethods, TRUE);
258 1.7 christos
259 1.7 christos /*
260 1.7 christos * Create the predefined _OSI method in the namespace? Default is TRUE
261 1.7 christos * because ACPICA is fully compatible with other ACPI implementations.
262 1.7 christos * Changing this will revert ACPICA (and machine ASL) to pre-OSI behavior.
263 1.7 christos */
264 1.7 christos ACPI_INIT_GLOBAL (UINT8, AcpiGbl_CreateOsiMethod, TRUE);
265 1.7 christos
266 1.7 christos /*
267 1.7 christos * Optionally use default values for the ACPI register widths. Set this to
268 1.7 christos * TRUE to use the defaults, if an FADT contains incorrect widths/lengths.
269 1.7 christos */
270 1.7 christos ACPI_INIT_GLOBAL (UINT8, AcpiGbl_UseDefaultRegisterWidths, TRUE);
271 1.7 christos
272 1.7 christos /*
273 1.16 christos * Whether or not to validate (map) an entire table to verify
274 1.16 christos * checksum/duplication in early stage before install. Set this to TRUE to
275 1.16 christos * allow early table validation before install it to the table manager.
276 1.16 christos * Note that enabling this option causes errors to happen in some OSPMs
277 1.16 christos * during early initialization stages. Default behavior is to allow such
278 1.16 christos * validation.
279 1.7 christos */
280 1.16 christos ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableTableValidation, TRUE);
281 1.7 christos
282 1.7 christos /*
283 1.7 christos * Optionally enable output from the AML Debug Object.
284 1.7 christos */
285 1.7 christos ACPI_INIT_GLOBAL (_Bool, AcpiGbl_EnableAmlDebugObject, FALSE);
286 1.7 christos
287 1.7 christos /*
288 1.7 christos * Optionally copy the entire DSDT to local memory (instead of simply
289 1.7 christos * mapping it.) There are some BIOSs that corrupt or replace the original
290 1.7 christos * DSDT, creating the need for this option. Default is FALSE, do not copy
291 1.7 christos * the DSDT.
292 1.7 christos */
293 1.7 christos ACPI_INIT_GLOBAL (UINT8, AcpiGbl_CopyDsdtLocally, FALSE);
294 1.7 christos
295 1.7 christos /*
296 1.7 christos * Optionally ignore an XSDT if present and use the RSDT instead.
297 1.7 christos * Although the ACPI specification requires that an XSDT be used instead
298 1.7 christos * of the RSDT, the XSDT has been found to be corrupt or ill-formed on
299 1.7 christos * some machines. Default behavior is to use the XSDT if present.
300 1.7 christos */
301 1.7 christos ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DoNotUseXsdt, FALSE);
302 1.7 christos
303 1.7 christos /*
304 1.7 christos * Optionally use 32-bit FADT addresses if and when there is a conflict
305 1.7 christos * (address mismatch) between the 32-bit and 64-bit versions of the
306 1.7 christos * address. Although ACPICA adheres to the ACPI specification which
307 1.7 christos * requires the use of the corresponding 64-bit address if it is non-zero,
308 1.7 christos * some machines have been found to have a corrupted non-zero 64-bit
309 1.7 christos * address. Default is FALSE, do not favor the 32-bit addresses.
310 1.7 christos */
311 1.7 christos ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFadtAddresses, FALSE);
312 1.7 christos
313 1.7 christos /*
314 1.9 christos * Optionally use 32-bit FACS table addresses.
315 1.9 christos * It is reported that some platforms fail to resume from system suspending
316 1.9 christos * if 64-bit FACS table address is selected:
317 1.9 christos * https://bugzilla.kernel.org/show_bug.cgi?id=74021
318 1.9 christos * Default is TRUE, favor the 32-bit addresses.
319 1.9 christos */
320 1.9 christos ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFacsAddresses, TRUE);
321 1.9 christos
322 1.9 christos /*
323 1.7 christos * Optionally truncate I/O addresses to 16 bits. Provides compatibility
324 1.7 christos * with other ACPI implementations. NOTE: During ACPICA initialization,
325 1.7 christos * this value is set to TRUE if any Windows OSI strings have been
326 1.7 christos * requested by the BIOS.
327 1.7 christos */
328 1.7 christos ACPI_INIT_GLOBAL (UINT8, AcpiGbl_TruncateIoAddresses, FALSE);
329 1.7 christos
330 1.7 christos /*
331 1.7 christos * Disable runtime checking and repair of values returned by control methods.
332 1.7 christos * Use only if the repair is causing a problem on a particular machine.
333 1.7 christos */
334 1.7 christos ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableAutoRepair, FALSE);
335 1.7 christos
336 1.7 christos /*
337 1.7 christos * Optionally do not install any SSDTs from the RSDT/XSDT during initialization.
338 1.7 christos * This can be useful for debugging ACPI problems on some machines.
339 1.7 christos */
340 1.7 christos ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableSsdtTableInstall, FALSE);
341 1.7 christos
342 1.7 christos /*
343 1.9 christos * Optionally enable runtime namespace override.
344 1.9 christos */
345 1.9 christos ACPI_INIT_GLOBAL (UINT8, AcpiGbl_RuntimeNamespaceOverride, TRUE);
346 1.9 christos
347 1.9 christos /*
348 1.7 christos * We keep track of the latest version of Windows that has been requested by
349 1.7 christos * the BIOS. ACPI 5.0.
350 1.7 christos */
351 1.7 christos ACPI_INIT_GLOBAL (UINT8, AcpiGbl_OsiData, 0);
352 1.7 christos
353 1.7 christos /*
354 1.7 christos * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning
355 1.7 christos * that the ACPI hardware is no longer required. A flag in the FADT indicates
356 1.7 christos * a reduced HW machine, and that flag is duplicated here for convenience.
357 1.7 christos */
358 1.7 christos ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_ReducedHardware, FALSE);
359 1.7 christos
360 1.7 christos /*
361 1.17 christos * Maximum timeout for While() loop iterations before forced method abort.
362 1.13 christos * This mechanism is intended to prevent infinite loops during interpreter
363 1.13 christos * execution within a host kernel.
364 1.13 christos */
365 1.17 christos ACPI_INIT_GLOBAL (UINT32, AcpiGbl_MaxLoopIterations, ACPI_MAX_LOOP_TIMEOUT);
366 1.13 christos
367 1.13 christos /*
368 1.18 christos * Optionally ignore AE_NOT_FOUND errors from named reference package elements
369 1.18 christos * during DSDT/SSDT table loading. This reduces error "noise" in platforms
370 1.18 christos * whose firmware is carrying around a bunch of unused package objects that
371 1.18 christos * refer to non-existent named objects. However, If the AML actually tries to
372 1.18 christos * use such a package, the unresolved element(s) will be replaced with NULL
373 1.18 christos * elements.
374 1.18 christos */
375 1.18 christos ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_IgnorePackageResolutionErrors, FALSE);
376 1.18 christos
377 1.18 christos /*
378 1.7 christos * This mechanism is used to trace a specified AML method. The method is
379 1.7 christos * traced each time it is executed.
380 1.7 christos */
381 1.7 christos ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceFlags, 0);
382 1.9 christos ACPI_INIT_GLOBAL (const char *, AcpiGbl_TraceMethodName, NULL);
383 1.9 christos ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLevel, ACPI_TRACE_LEVEL_DEFAULT);
384 1.9 christos ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLayer, ACPI_TRACE_LAYER_DEFAULT);
385 1.7 christos
386 1.1 jruoho /*
387 1.7 christos * Runtime configuration of debug output control masks. We want the debug
388 1.7 christos * switches statically initialized so they are already set when the debugger
389 1.7 christos * is entered.
390 1.1 jruoho */
391 1.21 christos #if defined(ACPI_DEBUG_OUTPUT) && defined(ACPI_DEBUG_TRACE)
392 1.7 christos ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_DEBUG_DEFAULT);
393 1.7 christos #else
394 1.7 christos ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_NORMAL_DEFAULT);
395 1.7 christos #endif
396 1.7 christos ACPI_INIT_GLOBAL (UINT32, AcpiDbgLayer, ACPI_COMPONENT_DEFAULT);
397 1.7 christos
398 1.10 christos /* Optionally enable timer output with Debug Object output */
399 1.10 christos
400 1.10 christos ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisplayDebugTimer, FALSE);
401 1.10 christos
402 1.7 christos /*
403 1.14 christos * Debugger command handshake globals. Host OSes need to access these
404 1.14 christos * variables to implement their own command handshake mechanism.
405 1.14 christos */
406 1.14 christos #ifdef ACPI_DEBUGGER
407 1.14 christos ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_MethodExecuting, FALSE);
408 1.14 christos ACPI_GLOBAL (char, AcpiGbl_DbLineBuf[ACPI_DB_LINE_BUFFER_SIZE]);
409 1.14 christos #endif
410 1.14 christos
411 1.14 christos /*
412 1.7 christos * Other miscellaneous globals
413 1.7 christos */
414 1.7 christos ACPI_GLOBAL (ACPI_TABLE_FADT, AcpiGbl_FADT);
415 1.7 christos ACPI_GLOBAL (UINT32, AcpiCurrentGpeCount);
416 1.7 christos ACPI_GLOBAL (BOOLEAN, AcpiGbl_SystemAwakeAndRunning);
417 1.6 christos
418 1.6 christos
419 1.7 christos /*****************************************************************************
420 1.7 christos *
421 1.7 christos * ACPICA public interface configuration.
422 1.7 christos *
423 1.7 christos * Interfaces that are configured out of the ACPICA build are replaced
424 1.7 christos * by inlined stubs by default.
425 1.7 christos *
426 1.7 christos ****************************************************************************/
427 1.7 christos
428 1.6 christos /*
429 1.7 christos * Hardware-reduced prototypes (default: Not hardware reduced).
430 1.7 christos *
431 1.7 christos * All ACPICA hardware-related interfaces that use these macros will be
432 1.7 christos * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag
433 1.6 christos * is set to TRUE.
434 1.7 christos *
435 1.7 christos * Note: This static build option for reduced hardware is intended to
436 1.7 christos * reduce ACPICA code size if desired or necessary. However, even if this
437 1.7 christos * option is not specified, the runtime behavior of ACPICA is dependent
438 1.7 christos * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set,
439 1.7 christos * the flag will enable similar behavior -- ACPICA will not attempt
440 1.7 christos * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.)
441 1.6 christos */
442 1.6 christos #if (!ACPI_REDUCED_HARDWARE)
443 1.6 christos #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
444 1.7 christos ACPI_EXTERNAL_RETURN_STATUS(Prototype)
445 1.6 christos
446 1.6 christos #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
447 1.7 christos ACPI_EXTERNAL_RETURN_OK(Prototype)
448 1.6 christos
449 1.23 christos #define ACPI_HW_DEPENDENT_RETURN_UINT32(prototype) \
450 1.23 christos ACPI_EXTERNAL_RETURN_UINT32(prototype)
451 1.23 christos
452 1.6 christos #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
453 1.7 christos ACPI_EXTERNAL_RETURN_VOID(Prototype)
454 1.6 christos
455 1.6 christos #else
456 1.6 christos #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
457 1.6 christos static ACPI_INLINE Prototype {return(AE_NOT_CONFIGURED);}
458 1.6 christos
459 1.6 christos #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
460 1.6 christos static ACPI_INLINE Prototype {return(AE_OK);}
461 1.6 christos
462 1.23 christos #define ACPI_HW_DEPENDENT_RETURN_UINT32(prototype) \
463 1.23 christos static ACPI_INLINE prototype {return(0);}
464 1.23 christos
465 1.6 christos #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
466 1.6 christos static ACPI_INLINE Prototype {return;}
467 1.6 christos
468 1.6 christos #endif /* !ACPI_REDUCED_HARDWARE */
469 1.1 jruoho
470 1.1 jruoho
471 1.1 jruoho /*
472 1.7 christos * Error message prototypes (default: error messages enabled).
473 1.7 christos *
474 1.7 christos * All interfaces related to error and warning messages
475 1.7 christos * will be configured out of the ACPICA build if the
476 1.7 christos * ACPI_NO_ERROR_MESSAGE flag is defined.
477 1.7 christos */
478 1.7 christos #ifndef ACPI_NO_ERROR_MESSAGES
479 1.7 christos #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
480 1.7 christos Prototype;
481 1.7 christos
482 1.7 christos #else
483 1.7 christos #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
484 1.7 christos static ACPI_INLINE Prototype {return;}
485 1.7 christos
486 1.7 christos #endif /* ACPI_NO_ERROR_MESSAGES */
487 1.7 christos
488 1.7 christos
489 1.7 christos /*
490 1.7 christos * Debugging output prototypes (default: no debug output).
491 1.7 christos *
492 1.7 christos * All interfaces related to debug output messages
493 1.7 christos * will be configured out of the ACPICA build unless the
494 1.7 christos * ACPI_DEBUG_OUTPUT flag is defined.
495 1.7 christos */
496 1.7 christos #ifdef ACPI_DEBUG_OUTPUT
497 1.7 christos #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
498 1.7 christos Prototype;
499 1.7 christos
500 1.7 christos #else
501 1.7 christos #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
502 1.7 christos static ACPI_INLINE Prototype {return;}
503 1.7 christos
504 1.7 christos #endif /* ACPI_DEBUG_OUTPUT */
505 1.7 christos
506 1.7 christos
507 1.7 christos /*
508 1.7 christos * Application prototypes
509 1.7 christos *
510 1.7 christos * All interfaces used by application will be configured
511 1.7 christos * out of the ACPICA build unless the ACPI_APPLICATION
512 1.7 christos * flag is defined.
513 1.7 christos */
514 1.7 christos #ifdef ACPI_APPLICATION
515 1.7 christos #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
516 1.7 christos Prototype;
517 1.7 christos
518 1.7 christos #else
519 1.7 christos #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
520 1.7 christos static ACPI_INLINE Prototype {return;}
521 1.7 christos
522 1.7 christos #endif /* ACPI_APPLICATION */
523 1.7 christos
524 1.7 christos
525 1.10 christos /*
526 1.10 christos * Debugger prototypes
527 1.10 christos *
528 1.10 christos * All interfaces used by debugger will be configured
529 1.10 christos * out of the ACPICA build unless the ACPI_DEBUGGER
530 1.10 christos * flag is defined.
531 1.10 christos */
532 1.10 christos #ifdef ACPI_DEBUGGER
533 1.10 christos #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
534 1.10 christos ACPI_EXTERNAL_RETURN_OK(Prototype)
535 1.10 christos
536 1.10 christos #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
537 1.10 christos ACPI_EXTERNAL_RETURN_VOID(Prototype)
538 1.10 christos
539 1.10 christos #else
540 1.10 christos #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
541 1.10 christos static ACPI_INLINE Prototype {return(AE_OK);}
542 1.10 christos
543 1.10 christos #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
544 1.10 christos static ACPI_INLINE Prototype {return;}
545 1.10 christos
546 1.10 christos #endif /* ACPI_DEBUGGER */
547 1.10 christos
548 1.10 christos
549 1.7 christos /*****************************************************************************
550 1.7 christos *
551 1.7 christos * ACPICA public interface prototypes
552 1.7 christos *
553 1.7 christos ****************************************************************************/
554 1.7 christos
555 1.7 christos /*
556 1.3 jruoho * Initialization
557 1.1 jruoho */
558 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
559 1.13 christos ACPI_STATUS ACPI_INIT_FUNCTION
560 1.1 jruoho AcpiInitializeTables (
561 1.1 jruoho ACPI_TABLE_DESC *InitialStorage,
562 1.1 jruoho UINT32 InitialTableCount,
563 1.7 christos BOOLEAN AllowResize))
564 1.1 jruoho
565 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
566 1.13 christos ACPI_STATUS ACPI_INIT_FUNCTION
567 1.1 jruoho AcpiInitializeSubsystem (
568 1.7 christos void))
569 1.1 jruoho
570 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
571 1.13 christos ACPI_STATUS ACPI_INIT_FUNCTION
572 1.1 jruoho AcpiEnableSubsystem (
573 1.7 christos UINT32 Flags))
574 1.1 jruoho
575 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
576 1.13 christos ACPI_STATUS ACPI_INIT_FUNCTION
577 1.1 jruoho AcpiInitializeObjects (
578 1.7 christos UINT32 Flags))
579 1.1 jruoho
580 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
581 1.13 christos ACPI_STATUS ACPI_INIT_FUNCTION
582 1.1 jruoho AcpiTerminate (
583 1.7 christos void))
584 1.1 jruoho
585 1.3 jruoho
586 1.3 jruoho /*
587 1.3 jruoho * Miscellaneous global interfaces
588 1.3 jruoho */
589 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
590 1.1 jruoho ACPI_STATUS
591 1.3 jruoho AcpiEnable (
592 1.6 christos void))
593 1.1 jruoho
594 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
595 1.1 jruoho ACPI_STATUS
596 1.3 jruoho AcpiDisable (
597 1.6 christos void))
598 1.1 jruoho
599 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
600 1.1 jruoho ACPI_STATUS
601 1.3 jruoho AcpiSubsystemStatus (
602 1.7 christos void))
603 1.1 jruoho
604 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
605 1.1 jruoho ACPI_STATUS
606 1.1 jruoho AcpiGetSystemInfo (
607 1.7 christos ACPI_BUFFER *RetBuffer))
608 1.1 jruoho
609 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
610 1.1 jruoho ACPI_STATUS
611 1.1 jruoho AcpiGetStatistics (
612 1.7 christos ACPI_STATISTICS *Stats))
613 1.1 jruoho
614 1.7 christos ACPI_EXTERNAL_RETURN_PTR (
615 1.1 jruoho const char *
616 1.1 jruoho AcpiFormatException (
617 1.7 christos ACPI_STATUS Exception))
618 1.1 jruoho
619 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
620 1.1 jruoho ACPI_STATUS
621 1.1 jruoho AcpiPurgeCachedObjects (
622 1.7 christos void))
623 1.1 jruoho
624 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
625 1.3 jruoho ACPI_STATUS
626 1.3 jruoho AcpiInstallInterface (
627 1.7 christos ACPI_STRING InterfaceName))
628 1.3 jruoho
629 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
630 1.3 jruoho ACPI_STATUS
631 1.3 jruoho AcpiRemoveInterface (
632 1.7 christos ACPI_STRING InterfaceName))
633 1.3 jruoho
634 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
635 1.6 christos ACPI_STATUS
636 1.6 christos AcpiUpdateInterfaces (
637 1.7 christos UINT8 Action))
638 1.6 christos
639 1.7 christos ACPI_EXTERNAL_RETURN_UINT32 (
640 1.6 christos UINT32
641 1.6 christos AcpiCheckAddressRange (
642 1.6 christos ACPI_ADR_SPACE_TYPE SpaceId,
643 1.6 christos ACPI_PHYSICAL_ADDRESS Address,
644 1.6 christos ACPI_SIZE Length,
645 1.7 christos BOOLEAN Warn))
646 1.6 christos
647 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
648 1.6 christos ACPI_STATUS
649 1.6 christos AcpiDecodePldBuffer (
650 1.6 christos UINT8 *InBuffer,
651 1.6 christos ACPI_SIZE Length,
652 1.7 christos ACPI_PLD_INFO **ReturnBuffer))
653 1.6 christos
654 1.1 jruoho
655 1.1 jruoho /*
656 1.6 christos * ACPI table load/unload interfaces
657 1.1 jruoho */
658 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
659 1.13 christos ACPI_STATUS ACPI_INIT_FUNCTION
660 1.7 christos AcpiInstallTable (
661 1.32 christos ACPI_TABLE_HEADER *Table))
662 1.32 christos
663 1.32 christos ACPI_EXTERNAL_RETURN_STATUS (
664 1.32 christos ACPI_STATUS ACPI_INIT_FUNCTION
665 1.32 christos AcpiInstallPhysicalTable (
666 1.32 christos ACPI_PHYSICAL_ADDRESS Address))
667 1.7 christos
668 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
669 1.6 christos ACPI_STATUS
670 1.6 christos AcpiLoadTable (
671 1.24 christos ACPI_TABLE_HEADER *Table,
672 1.24 christos UINT32 *TableIdx))
673 1.24 christos
674 1.24 christos ACPI_EXTERNAL_RETURN_STATUS (
675 1.24 christos ACPI_STATUS
676 1.24 christos AcpiUnloadTable (
677 1.24 christos UINT32 TableIndex))
678 1.6 christos
679 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
680 1.6 christos ACPI_STATUS
681 1.6 christos AcpiUnloadParentTable (
682 1.7 christos ACPI_HANDLE Object))
683 1.6 christos
684 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
685 1.13 christos ACPI_STATUS ACPI_INIT_FUNCTION
686 1.6 christos AcpiLoadTables (
687 1.7 christos void))
688 1.1 jruoho
689 1.1 jruoho
690 1.1 jruoho /*
691 1.1 jruoho * ACPI table manipulation interfaces
692 1.1 jruoho */
693 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
694 1.13 christos ACPI_STATUS ACPI_INIT_FUNCTION
695 1.1 jruoho AcpiReallocateRootTable (
696 1.7 christos void))
697 1.1 jruoho
698 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
699 1.13 christos ACPI_STATUS ACPI_INIT_FUNCTION
700 1.1 jruoho AcpiFindRootPointer (
701 1.8 christos ACPI_PHYSICAL_ADDRESS *RsdpAddress))
702 1.1 jruoho
703 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
704 1.1 jruoho ACPI_STATUS
705 1.1 jruoho AcpiGetTableHeader (
706 1.2 jruoho ACPI_CONST_STRING Signature,
707 1.1 jruoho UINT32 Instance,
708 1.7 christos ACPI_TABLE_HEADER *OutTableHeader))
709 1.1 jruoho
710 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
711 1.1 jruoho ACPI_STATUS
712 1.1 jruoho AcpiGetTable (
713 1.2 jruoho ACPI_CONST_STRING Signature,
714 1.1 jruoho UINT32 Instance,
715 1.7 christos ACPI_TABLE_HEADER **OutTable))
716 1.1 jruoho
717 1.14 christos ACPI_EXTERNAL_RETURN_VOID (
718 1.14 christos void
719 1.14 christos AcpiPutTable (
720 1.14 christos ACPI_TABLE_HEADER *Table))
721 1.14 christos
722 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
723 1.1 jruoho ACPI_STATUS
724 1.1 jruoho AcpiGetTableByIndex (
725 1.1 jruoho UINT32 TableIndex,
726 1.7 christos ACPI_TABLE_HEADER **OutTable))
727 1.1 jruoho
728 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
729 1.1 jruoho ACPI_STATUS
730 1.1 jruoho AcpiInstallTableHandler (
731 1.1 jruoho ACPI_TABLE_HANDLER Handler,
732 1.7 christos void *Context))
733 1.1 jruoho
734 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
735 1.1 jruoho ACPI_STATUS
736 1.1 jruoho AcpiRemoveTableHandler (
737 1.7 christos ACPI_TABLE_HANDLER Handler))
738 1.1 jruoho
739 1.1 jruoho
740 1.1 jruoho /*
741 1.1 jruoho * Namespace and name interfaces
742 1.1 jruoho */
743 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
744 1.1 jruoho ACPI_STATUS
745 1.1 jruoho AcpiWalkNamespace (
746 1.1 jruoho ACPI_OBJECT_TYPE Type,
747 1.1 jruoho ACPI_HANDLE StartObject,
748 1.1 jruoho UINT32 MaxDepth,
749 1.6 christos ACPI_WALK_CALLBACK DescendingCallback,
750 1.6 christos ACPI_WALK_CALLBACK AscendingCallback,
751 1.1 jruoho void *Context,
752 1.7 christos void **ReturnValue))
753 1.1 jruoho
754 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
755 1.1 jruoho ACPI_STATUS
756 1.1 jruoho AcpiGetDevices (
757 1.1 jruoho char *HID,
758 1.1 jruoho ACPI_WALK_CALLBACK UserFunction,
759 1.1 jruoho void *Context,
760 1.7 christos void **ReturnValue))
761 1.1 jruoho
762 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
763 1.1 jruoho ACPI_STATUS
764 1.1 jruoho AcpiGetName (
765 1.1 jruoho ACPI_HANDLE Object,
766 1.1 jruoho UINT32 NameType,
767 1.7 christos ACPI_BUFFER *RetPathPtr))
768 1.1 jruoho
769 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
770 1.1 jruoho ACPI_STATUS
771 1.1 jruoho AcpiGetHandle (
772 1.1 jruoho ACPI_HANDLE Parent,
773 1.35 christos const char *Pathname,
774 1.7 christos ACPI_HANDLE *RetHandle))
775 1.1 jruoho
776 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
777 1.1 jruoho ACPI_STATUS
778 1.1 jruoho AcpiAttachData (
779 1.1 jruoho ACPI_HANDLE Object,
780 1.1 jruoho ACPI_OBJECT_HANDLER Handler,
781 1.7 christos void *Data))
782 1.1 jruoho
783 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
784 1.1 jruoho ACPI_STATUS
785 1.1 jruoho AcpiDetachData (
786 1.1 jruoho ACPI_HANDLE Object,
787 1.7 christos ACPI_OBJECT_HANDLER Handler))
788 1.1 jruoho
789 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
790 1.1 jruoho ACPI_STATUS
791 1.1 jruoho AcpiGetData (
792 1.1 jruoho ACPI_HANDLE Object,
793 1.1 jruoho ACPI_OBJECT_HANDLER Handler,
794 1.7 christos void **Data))
795 1.1 jruoho
796 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
797 1.1 jruoho ACPI_STATUS
798 1.1 jruoho AcpiDebugTrace (
799 1.9 christos const char *Name,
800 1.1 jruoho UINT32 DebugLevel,
801 1.1 jruoho UINT32 DebugLayer,
802 1.7 christos UINT32 Flags))
803 1.1 jruoho
804 1.1 jruoho
805 1.1 jruoho /*
806 1.1 jruoho * Object manipulation and enumeration
807 1.1 jruoho */
808 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
809 1.1 jruoho ACPI_STATUS
810 1.1 jruoho AcpiEvaluateObject (
811 1.1 jruoho ACPI_HANDLE Object,
812 1.2 jruoho ACPI_CONST_STRING Pathname,
813 1.1 jruoho ACPI_OBJECT_LIST *ParameterObjects,
814 1.7 christos ACPI_BUFFER *ReturnObjectBuffer))
815 1.1 jruoho
816 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
817 1.1 jruoho ACPI_STATUS
818 1.1 jruoho AcpiEvaluateObjectTyped (
819 1.1 jruoho ACPI_HANDLE Object,
820 1.2 jruoho ACPI_CONST_STRING Pathname,
821 1.1 jruoho ACPI_OBJECT_LIST *ExternalParams,
822 1.1 jruoho ACPI_BUFFER *ReturnBuffer,
823 1.7 christos ACPI_OBJECT_TYPE ReturnType))
824 1.1 jruoho
825 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
826 1.1 jruoho ACPI_STATUS
827 1.1 jruoho AcpiGetObjectInfo (
828 1.1 jruoho ACPI_HANDLE Object,
829 1.7 christos ACPI_DEVICE_INFO **ReturnBuffer))
830 1.1 jruoho
831 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
832 1.1 jruoho ACPI_STATUS
833 1.1 jruoho AcpiInstallMethod (
834 1.7 christos UINT8 *Buffer))
835 1.1 jruoho
836 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
837 1.1 jruoho ACPI_STATUS
838 1.1 jruoho AcpiGetNextObject (
839 1.1 jruoho ACPI_OBJECT_TYPE Type,
840 1.1 jruoho ACPI_HANDLE Parent,
841 1.1 jruoho ACPI_HANDLE Child,
842 1.7 christos ACPI_HANDLE *OutHandle))
843 1.1 jruoho
844 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
845 1.1 jruoho ACPI_STATUS
846 1.1 jruoho AcpiGetType (
847 1.1 jruoho ACPI_HANDLE Object,
848 1.7 christos ACPI_OBJECT_TYPE *OutType))
849 1.1 jruoho
850 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
851 1.1 jruoho ACPI_STATUS
852 1.1 jruoho AcpiGetParent (
853 1.1 jruoho ACPI_HANDLE Object,
854 1.7 christos ACPI_HANDLE *OutHandle))
855 1.1 jruoho
856 1.1 jruoho
857 1.1 jruoho /*
858 1.1 jruoho * Handler interfaces
859 1.1 jruoho */
860 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
861 1.1 jruoho ACPI_STATUS
862 1.1 jruoho AcpiInstallInitializationHandler (
863 1.1 jruoho ACPI_INIT_HANDLER Handler,
864 1.7 christos UINT32 Function))
865 1.1 jruoho
866 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
867 1.6 christos ACPI_STATUS
868 1.6 christos AcpiInstallSciHandler (
869 1.6 christos ACPI_SCI_HANDLER Address,
870 1.6 christos void *Context))
871 1.6 christos
872 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
873 1.6 christos ACPI_STATUS
874 1.6 christos AcpiRemoveSciHandler (
875 1.6 christos ACPI_SCI_HANDLER Address))
876 1.6 christos
877 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
878 1.1 jruoho ACPI_STATUS
879 1.3 jruoho AcpiInstallGlobalEventHandler (
880 1.3 jruoho ACPI_GBL_EVENT_HANDLER Handler,
881 1.6 christos void *Context))
882 1.3 jruoho
883 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
884 1.3 jruoho ACPI_STATUS
885 1.1 jruoho AcpiInstallFixedEventHandler (
886 1.1 jruoho UINT32 AcpiEvent,
887 1.1 jruoho ACPI_EVENT_HANDLER Handler,
888 1.6 christos void *Context))
889 1.1 jruoho
890 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
891 1.1 jruoho ACPI_STATUS
892 1.1 jruoho AcpiRemoveFixedEventHandler (
893 1.1 jruoho UINT32 AcpiEvent,
894 1.6 christos ACPI_EVENT_HANDLER Handler))
895 1.1 jruoho
896 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
897 1.1 jruoho ACPI_STATUS
898 1.3 jruoho AcpiInstallGpeHandler (
899 1.3 jruoho ACPI_HANDLE GpeDevice,
900 1.3 jruoho UINT32 GpeNumber,
901 1.3 jruoho UINT32 Type,
902 1.3 jruoho ACPI_GPE_HANDLER Address,
903 1.6 christos void *Context))
904 1.3 jruoho
905 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
906 1.3 jruoho ACPI_STATUS
907 1.8 christos AcpiInstallGpeRawHandler (
908 1.8 christos ACPI_HANDLE GpeDevice,
909 1.8 christos UINT32 GpeNumber,
910 1.8 christos UINT32 Type,
911 1.8 christos ACPI_GPE_HANDLER Address,
912 1.8 christos void *Context))
913 1.8 christos
914 1.8 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
915 1.8 christos ACPI_STATUS
916 1.3 jruoho AcpiRemoveGpeHandler (
917 1.3 jruoho ACPI_HANDLE GpeDevice,
918 1.3 jruoho UINT32 GpeNumber,
919 1.6 christos ACPI_GPE_HANDLER Address))
920 1.3 jruoho
921 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
922 1.3 jruoho ACPI_STATUS
923 1.1 jruoho AcpiInstallNotifyHandler (
924 1.1 jruoho ACPI_HANDLE Device,
925 1.1 jruoho UINT32 HandlerType,
926 1.1 jruoho ACPI_NOTIFY_HANDLER Handler,
927 1.7 christos void *Context))
928 1.1 jruoho
929 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
930 1.1 jruoho ACPI_STATUS
931 1.1 jruoho AcpiRemoveNotifyHandler (
932 1.1 jruoho ACPI_HANDLE Device,
933 1.1 jruoho UINT32 HandlerType,
934 1.7 christos ACPI_NOTIFY_HANDLER Handler))
935 1.1 jruoho
936 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
937 1.1 jruoho ACPI_STATUS
938 1.1 jruoho AcpiInstallAddressSpaceHandler (
939 1.1 jruoho ACPI_HANDLE Device,
940 1.1 jruoho ACPI_ADR_SPACE_TYPE SpaceId,
941 1.1 jruoho ACPI_ADR_SPACE_HANDLER Handler,
942 1.1 jruoho ACPI_ADR_SPACE_SETUP Setup,
943 1.7 christos void *Context))
944 1.1 jruoho
945 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
946 1.1 jruoho ACPI_STATUS
947 1.35 christos AcpiInstallAddressSpaceHandlerNo_Reg(
948 1.35 christos ACPI_HANDLE Device,
949 1.35 christos ACPI_ADR_SPACE_TYPE SpaceId,
950 1.35 christos ACPI_ADR_SPACE_HANDLER Handler,
951 1.35 christos ACPI_ADR_SPACE_SETUP Setup,
952 1.35 christos void *Context))
953 1.35 christos
954 1.35 christos ACPI_EXTERNAL_RETURN_STATUS (
955 1.35 christos ACPI_STATUS
956 1.35 christos AcpiExecuteRegMethods (
957 1.35 christos ACPI_HANDLE Device,
958 1.35 christos ACPI_ADR_SPACE_TYPE SpaceId))
959 1.35 christos
960 1.35 christos ACPI_EXTERNAL_RETURN_STATUS (
961 1.35 christos ACPI_STATUS
962 1.1 jruoho AcpiRemoveAddressSpaceHandler (
963 1.1 jruoho ACPI_HANDLE Device,
964 1.1 jruoho ACPI_ADR_SPACE_TYPE SpaceId,
965 1.7 christos ACPI_ADR_SPACE_HANDLER Handler))
966 1.1 jruoho
967 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
968 1.1 jruoho ACPI_STATUS
969 1.3 jruoho AcpiInstallExceptionHandler (
970 1.7 christos ACPI_EXCEPTION_HANDLER Handler))
971 1.1 jruoho
972 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
973 1.1 jruoho ACPI_STATUS
974 1.3 jruoho AcpiInstallInterfaceHandler (
975 1.7 christos ACPI_INTERFACE_HANDLER Handler))
976 1.1 jruoho
977 1.1 jruoho
978 1.1 jruoho /*
979 1.3 jruoho * Global Lock interfaces
980 1.1 jruoho */
981 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
982 1.1 jruoho ACPI_STATUS
983 1.1 jruoho AcpiAcquireGlobalLock (
984 1.1 jruoho UINT16 Timeout,
985 1.6 christos UINT32 *Handle))
986 1.1 jruoho
987 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
988 1.1 jruoho ACPI_STATUS
989 1.1 jruoho AcpiReleaseGlobalLock (
990 1.6 christos UINT32 Handle))
991 1.6 christos
992 1.6 christos
993 1.6 christos /*
994 1.6 christos * Interfaces to AML mutex objects
995 1.6 christos */
996 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
997 1.6 christos ACPI_STATUS
998 1.6 christos AcpiAcquireMutex (
999 1.6 christos ACPI_HANDLE Handle,
1000 1.6 christos ACPI_STRING Pathname,
1001 1.7 christos UINT16 Timeout))
1002 1.6 christos
1003 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1004 1.6 christos ACPI_STATUS
1005 1.6 christos AcpiReleaseMutex (
1006 1.6 christos ACPI_HANDLE Handle,
1007 1.7 christos ACPI_STRING Pathname))
1008 1.1 jruoho
1009 1.3 jruoho
1010 1.3 jruoho /*
1011 1.3 jruoho * Fixed Event interfaces
1012 1.3 jruoho */
1013 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1014 1.1 jruoho ACPI_STATUS
1015 1.1 jruoho AcpiEnableEvent (
1016 1.1 jruoho UINT32 Event,
1017 1.6 christos UINT32 Flags))
1018 1.1 jruoho
1019 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1020 1.1 jruoho ACPI_STATUS
1021 1.1 jruoho AcpiDisableEvent (
1022 1.1 jruoho UINT32 Event,
1023 1.6 christos UINT32 Flags))
1024 1.1 jruoho
1025 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1026 1.1 jruoho ACPI_STATUS
1027 1.1 jruoho AcpiClearEvent (
1028 1.6 christos UINT32 Event))
1029 1.1 jruoho
1030 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1031 1.1 jruoho ACPI_STATUS
1032 1.1 jruoho AcpiGetEventStatus (
1033 1.1 jruoho UINT32 Event,
1034 1.6 christos ACPI_EVENT_STATUS *EventStatus))
1035 1.1 jruoho
1036 1.1 jruoho
1037 1.1 jruoho /*
1038 1.3 jruoho * General Purpose Event (GPE) Interfaces
1039 1.1 jruoho */
1040 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1041 1.1 jruoho ACPI_STATUS
1042 1.3 jruoho AcpiUpdateAllGpes (
1043 1.6 christos void))
1044 1.3 jruoho
1045 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1046 1.3 jruoho ACPI_STATUS
1047 1.3 jruoho AcpiEnableGpe (
1048 1.3 jruoho ACPI_HANDLE GpeDevice,
1049 1.6 christos UINT32 GpeNumber))
1050 1.3 jruoho
1051 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1052 1.3 jruoho ACPI_STATUS
1053 1.3 jruoho AcpiDisableGpe (
1054 1.3 jruoho ACPI_HANDLE GpeDevice,
1055 1.6 christos UINT32 GpeNumber))
1056 1.3 jruoho
1057 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1058 1.3 jruoho ACPI_STATUS
1059 1.3 jruoho AcpiClearGpe (
1060 1.3 jruoho ACPI_HANDLE GpeDevice,
1061 1.6 christos UINT32 GpeNumber))
1062 1.3 jruoho
1063 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1064 1.3 jruoho ACPI_STATUS
1065 1.1 jruoho AcpiSetGpe (
1066 1.1 jruoho ACPI_HANDLE GpeDevice,
1067 1.1 jruoho UINT32 GpeNumber,
1068 1.6 christos UINT8 Action))
1069 1.1 jruoho
1070 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1071 1.1 jruoho ACPI_STATUS
1072 1.3 jruoho AcpiFinishGpe (
1073 1.1 jruoho ACPI_HANDLE GpeDevice,
1074 1.6 christos UINT32 GpeNumber))
1075 1.1 jruoho
1076 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1077 1.1 jruoho ACPI_STATUS
1078 1.13 christos AcpiMaskGpe (
1079 1.13 christos ACPI_HANDLE GpeDevice,
1080 1.13 christos UINT32 GpeNumber,
1081 1.13 christos BOOLEAN IsMasked))
1082 1.13 christos
1083 1.13 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1084 1.13 christos ACPI_STATUS
1085 1.7 christos AcpiMarkGpeForWake (
1086 1.7 christos ACPI_HANDLE GpeDevice,
1087 1.7 christos UINT32 GpeNumber))
1088 1.7 christos
1089 1.7 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1090 1.7 christos ACPI_STATUS
1091 1.3 jruoho AcpiSetupGpeForWake (
1092 1.3 jruoho ACPI_HANDLE ParentDevice,
1093 1.1 jruoho ACPI_HANDLE GpeDevice,
1094 1.6 christos UINT32 GpeNumber))
1095 1.1 jruoho
1096 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1097 1.1 jruoho ACPI_STATUS
1098 1.3 jruoho AcpiSetGpeWakeMask (
1099 1.1 jruoho ACPI_HANDLE GpeDevice,
1100 1.3 jruoho UINT32 GpeNumber,
1101 1.6 christos UINT8 Action))
1102 1.1 jruoho
1103 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1104 1.1 jruoho ACPI_STATUS
1105 1.1 jruoho AcpiGetGpeStatus (
1106 1.1 jruoho ACPI_HANDLE GpeDevice,
1107 1.1 jruoho UINT32 GpeNumber,
1108 1.6 christos ACPI_EVENT_STATUS *EventStatus))
1109 1.1 jruoho
1110 1.23 christos ACPI_HW_DEPENDENT_RETURN_UINT32 (
1111 1.23 christos UINT32
1112 1.23 christos AcpiDispatchGpe (
1113 1.23 christos ACPI_HANDLE GpeDevice,
1114 1.23 christos UINT32 GpeNumber))
1115 1.23 christos
1116 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1117 1.1 jruoho ACPI_STATUS
1118 1.1 jruoho AcpiDisableAllGpes (
1119 1.6 christos void))
1120 1.1 jruoho
1121 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1122 1.1 jruoho ACPI_STATUS
1123 1.1 jruoho AcpiEnableAllRuntimeGpes (
1124 1.6 christos void))
1125 1.1 jruoho
1126 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1127 1.1 jruoho ACPI_STATUS
1128 1.8 christos AcpiEnableAllWakeupGpes (
1129 1.8 christos void))
1130 1.8 christos
1131 1.25 christos ACPI_HW_DEPENDENT_RETURN_UINT32 (
1132 1.25 christos UINT32 AcpiAnyGpeStatusSet (
1133 1.25 christos void))
1134 1.25 christos
1135 1.8 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1136 1.8 christos ACPI_STATUS
1137 1.1 jruoho AcpiGetGpeDevice (
1138 1.1 jruoho UINT32 GpeIndex,
1139 1.6 christos ACPI_HANDLE *GpeDevice))
1140 1.1 jruoho
1141 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1142 1.1 jruoho ACPI_STATUS
1143 1.1 jruoho AcpiInstallGpeBlock (
1144 1.1 jruoho ACPI_HANDLE GpeDevice,
1145 1.1 jruoho ACPI_GENERIC_ADDRESS *GpeBlockAddress,
1146 1.1 jruoho UINT32 RegisterCount,
1147 1.6 christos UINT32 InterruptNumber))
1148 1.1 jruoho
1149 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1150 1.1 jruoho ACPI_STATUS
1151 1.1 jruoho AcpiRemoveGpeBlock (
1152 1.6 christos ACPI_HANDLE GpeDevice))
1153 1.1 jruoho
1154 1.1 jruoho
1155 1.1 jruoho /*
1156 1.1 jruoho * Resource interfaces
1157 1.1 jruoho */
1158 1.1 jruoho typedef
1159 1.1 jruoho ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) (
1160 1.1 jruoho ACPI_RESOURCE *Resource,
1161 1.1 jruoho void *Context);
1162 1.1 jruoho
1163 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1164 1.1 jruoho ACPI_STATUS
1165 1.1 jruoho AcpiGetVendorResource (
1166 1.1 jruoho ACPI_HANDLE Device,
1167 1.1 jruoho char *Name,
1168 1.1 jruoho ACPI_VENDOR_UUID *Uuid,
1169 1.7 christos ACPI_BUFFER *RetBuffer))
1170 1.1 jruoho
1171 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1172 1.1 jruoho ACPI_STATUS
1173 1.1 jruoho AcpiGetCurrentResources (
1174 1.1 jruoho ACPI_HANDLE Device,
1175 1.7 christos ACPI_BUFFER *RetBuffer))
1176 1.1 jruoho
1177 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1178 1.1 jruoho ACPI_STATUS
1179 1.1 jruoho AcpiGetPossibleResources (
1180 1.1 jruoho ACPI_HANDLE Device,
1181 1.7 christos ACPI_BUFFER *RetBuffer))
1182 1.1 jruoho
1183 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1184 1.1 jruoho ACPI_STATUS
1185 1.6 christos AcpiGetEventResources (
1186 1.6 christos ACPI_HANDLE DeviceHandle,
1187 1.7 christos ACPI_BUFFER *RetBuffer))
1188 1.6 christos
1189 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1190 1.6 christos ACPI_STATUS
1191 1.6 christos AcpiWalkResourceBuffer (
1192 1.6 christos ACPI_BUFFER *Buffer,
1193 1.6 christos ACPI_WALK_RESOURCE_CALLBACK UserFunction,
1194 1.7 christos void *Context))
1195 1.6 christos
1196 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1197 1.6 christos ACPI_STATUS
1198 1.1 jruoho AcpiWalkResources (
1199 1.1 jruoho ACPI_HANDLE Device,
1200 1.2 jruoho const char *Name,
1201 1.1 jruoho ACPI_WALK_RESOURCE_CALLBACK UserFunction,
1202 1.7 christos void *Context))
1203 1.1 jruoho
1204 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1205 1.1 jruoho ACPI_STATUS
1206 1.1 jruoho AcpiSetCurrentResources (
1207 1.1 jruoho ACPI_HANDLE Device,
1208 1.7 christos ACPI_BUFFER *InBuffer))
1209 1.1 jruoho
1210 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1211 1.1 jruoho ACPI_STATUS
1212 1.1 jruoho AcpiGetIrqRoutingTable (
1213 1.1 jruoho ACPI_HANDLE Device,
1214 1.7 christos ACPI_BUFFER *RetBuffer))
1215 1.1 jruoho
1216 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1217 1.1 jruoho ACPI_STATUS
1218 1.1 jruoho AcpiResourceToAddress64 (
1219 1.1 jruoho ACPI_RESOURCE *Resource,
1220 1.7 christos ACPI_RESOURCE_ADDRESS64 *Out))
1221 1.1 jruoho
1222 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1223 1.6 christos ACPI_STATUS
1224 1.6 christos AcpiBufferToResource (
1225 1.6 christos UINT8 *AmlBuffer,
1226 1.6 christos UINT16 AmlBufferLength,
1227 1.7 christos ACPI_RESOURCE **ResourcePtr))
1228 1.6 christos
1229 1.1 jruoho
1230 1.1 jruoho /*
1231 1.1 jruoho * Hardware (ACPI device) interfaces
1232 1.1 jruoho */
1233 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1234 1.1 jruoho ACPI_STATUS
1235 1.1 jruoho AcpiReset (
1236 1.7 christos void))
1237 1.1 jruoho
1238 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1239 1.1 jruoho ACPI_STATUS
1240 1.1 jruoho AcpiRead (
1241 1.1 jruoho UINT64 *Value,
1242 1.7 christos ACPI_GENERIC_ADDRESS *Reg))
1243 1.1 jruoho
1244 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1245 1.1 jruoho ACPI_STATUS
1246 1.1 jruoho AcpiWrite (
1247 1.1 jruoho UINT64 Value,
1248 1.7 christos ACPI_GENERIC_ADDRESS *Reg))
1249 1.1 jruoho
1250 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1251 1.1 jruoho ACPI_STATUS
1252 1.1 jruoho AcpiReadBitRegister (
1253 1.1 jruoho UINT32 RegisterId,
1254 1.6 christos UINT32 *ReturnValue))
1255 1.1 jruoho
1256 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1257 1.1 jruoho ACPI_STATUS
1258 1.1 jruoho AcpiWriteBitRegister (
1259 1.1 jruoho UINT32 RegisterId,
1260 1.6 christos UINT32 Value))
1261 1.1 jruoho
1262 1.6 christos
1263 1.6 christos /*
1264 1.6 christos * Sleep/Wake interfaces
1265 1.6 christos */
1266 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1267 1.1 jruoho ACPI_STATUS
1268 1.1 jruoho AcpiGetSleepTypeData (
1269 1.1 jruoho UINT8 SleepState,
1270 1.1 jruoho UINT8 *Slp_TypA,
1271 1.7 christos UINT8 *Slp_TypB))
1272 1.1 jruoho
1273 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1274 1.1 jruoho ACPI_STATUS
1275 1.1 jruoho AcpiEnterSleepStatePrep (
1276 1.7 christos UINT8 SleepState))
1277 1.1 jruoho
1278 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1279 1.1 jruoho ACPI_STATUS
1280 1.1 jruoho AcpiEnterSleepState (
1281 1.7 christos UINT8 SleepState))
1282 1.1 jruoho
1283 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1284 1.1 jruoho ACPI_STATUS
1285 1.1 jruoho AcpiEnterSleepStateS4bios (
1286 1.6 christos void))
1287 1.6 christos
1288 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1289 1.6 christos ACPI_STATUS
1290 1.6 christos AcpiLeaveSleepStatePrep (
1291 1.7 christos UINT8 SleepState))
1292 1.1 jruoho
1293 1.7 christos ACPI_EXTERNAL_RETURN_STATUS (
1294 1.1 jruoho ACPI_STATUS
1295 1.1 jruoho AcpiLeaveSleepState (
1296 1.7 christos UINT8 SleepState))
1297 1.6 christos
1298 1.36 christos ACPI_EXTERNAL_RETURN_STATUS (
1299 1.1 jruoho ACPI_STATUS
1300 1.1 jruoho AcpiSetFirmwareWakingVector (
1301 1.9 christos ACPI_PHYSICAL_ADDRESS PhysicalAddress,
1302 1.9 christos ACPI_PHYSICAL_ADDRESS PhysicalAddress64))
1303 1.1 jruoho
1304 1.1 jruoho
1305 1.1 jruoho /*
1306 1.6 christos * ACPI Timer interfaces
1307 1.6 christos */
1308 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1309 1.6 christos ACPI_STATUS
1310 1.6 christos AcpiGetTimerResolution (
1311 1.6 christos UINT32 *Resolution))
1312 1.6 christos
1313 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1314 1.6 christos ACPI_STATUS
1315 1.6 christos AcpiGetTimer (
1316 1.6 christos UINT32 *Ticks))
1317 1.6 christos
1318 1.6 christos ACPI_HW_DEPENDENT_RETURN_STATUS (
1319 1.6 christos ACPI_STATUS
1320 1.6 christos AcpiGetTimerDuration (
1321 1.6 christos UINT32 StartTicks,
1322 1.6 christos UINT32 EndTicks,
1323 1.6 christos UINT32 *TimeElapsed))
1324 1.6 christos
1325 1.6 christos
1326 1.6 christos /*
1327 1.1 jruoho * Error/Warning output
1328 1.1 jruoho */
1329 1.7 christos ACPI_MSG_DEPENDENT_RETURN_VOID (
1330 1.6 christos ACPI_PRINTF_LIKE(3)
1331 1.1 jruoho void ACPI_INTERNAL_VAR_XFACE
1332 1.1 jruoho AcpiError (
1333 1.1 jruoho const char *ModuleName,
1334 1.1 jruoho UINT32 LineNumber,
1335 1.1 jruoho const char *Format,
1336 1.7 christos ...))
1337 1.1 jruoho
1338 1.7 christos ACPI_MSG_DEPENDENT_RETURN_VOID (
1339 1.6 christos ACPI_PRINTF_LIKE(4)
1340 1.1 jruoho void ACPI_INTERNAL_VAR_XFACE
1341 1.1 jruoho AcpiException (
1342 1.1 jruoho const char *ModuleName,
1343 1.1 jruoho UINT32 LineNumber,
1344 1.1 jruoho ACPI_STATUS Status,
1345 1.1 jruoho const char *Format,
1346 1.7 christos ...))
1347 1.1 jruoho
1348 1.7 christos ACPI_MSG_DEPENDENT_RETURN_VOID (
1349 1.6 christos ACPI_PRINTF_LIKE(3)
1350 1.1 jruoho void ACPI_INTERNAL_VAR_XFACE
1351 1.1 jruoho AcpiWarning (
1352 1.1 jruoho const char *ModuleName,
1353 1.1 jruoho UINT32 LineNumber,
1354 1.1 jruoho const char *Format,
1355 1.7 christos ...))
1356 1.1 jruoho
1357 1.7 christos ACPI_MSG_DEPENDENT_RETURN_VOID (
1358 1.11 christos ACPI_PRINTF_LIKE(1)
1359 1.1 jruoho void ACPI_INTERNAL_VAR_XFACE
1360 1.1 jruoho AcpiInfo (
1361 1.1 jruoho const char *Format,
1362 1.7 christos ...))
1363 1.6 christos
1364 1.7 christos ACPI_MSG_DEPENDENT_RETURN_VOID (
1365 1.6 christos ACPI_PRINTF_LIKE(3)
1366 1.6 christos void ACPI_INTERNAL_VAR_XFACE
1367 1.6 christos AcpiBiosError (
1368 1.6 christos const char *ModuleName,
1369 1.6 christos UINT32 LineNumber,
1370 1.6 christos const char *Format,
1371 1.7 christos ...))
1372 1.6 christos
1373 1.7 christos ACPI_MSG_DEPENDENT_RETURN_VOID (
1374 1.22 christos ACPI_PRINTF_LIKE(4)
1375 1.22 christos void ACPI_INTERNAL_VAR_XFACE
1376 1.22 christos AcpiBiosException (
1377 1.22 christos const char *ModuleName,
1378 1.22 christos UINT32 LineNumber,
1379 1.22 christos ACPI_STATUS Status,
1380 1.22 christos const char *Format,
1381 1.22 christos ...))
1382 1.22 christos
1383 1.22 christos ACPI_MSG_DEPENDENT_RETURN_VOID (
1384 1.6 christos ACPI_PRINTF_LIKE(3)
1385 1.6 christos void ACPI_INTERNAL_VAR_XFACE
1386 1.6 christos AcpiBiosWarning (
1387 1.6 christos const char *ModuleName,
1388 1.6 christos UINT32 LineNumber,
1389 1.6 christos const char *Format,
1390 1.7 christos ...))
1391 1.1 jruoho
1392 1.1 jruoho
1393 1.1 jruoho /*
1394 1.1 jruoho * Debug output
1395 1.1 jruoho */
1396 1.7 christos ACPI_DBG_DEPENDENT_RETURN_VOID (
1397 1.6 christos ACPI_PRINTF_LIKE(6)
1398 1.1 jruoho void ACPI_INTERNAL_VAR_XFACE
1399 1.1 jruoho AcpiDebugPrint (
1400 1.1 jruoho UINT32 RequestedDebugLevel,
1401 1.1 jruoho UINT32 LineNumber,
1402 1.1 jruoho const char *FunctionName,
1403 1.1 jruoho const char *ModuleName,
1404 1.1 jruoho UINT32 ComponentId,
1405 1.1 jruoho const char *Format,
1406 1.7 christos ...))
1407 1.1 jruoho
1408 1.7 christos ACPI_DBG_DEPENDENT_RETURN_VOID (
1409 1.6 christos ACPI_PRINTF_LIKE(6)
1410 1.1 jruoho void ACPI_INTERNAL_VAR_XFACE
1411 1.1 jruoho AcpiDebugPrintRaw (
1412 1.1 jruoho UINT32 RequestedDebugLevel,
1413 1.1 jruoho UINT32 LineNumber,
1414 1.1 jruoho const char *FunctionName,
1415 1.1 jruoho const char *ModuleName,
1416 1.1 jruoho UINT32 ComponentId,
1417 1.1 jruoho const char *Format,
1418 1.7 christos ...))
1419 1.7 christos
1420 1.9 christos ACPI_DBG_DEPENDENT_RETURN_VOID (
1421 1.9 christos void
1422 1.9 christos AcpiTracePoint (
1423 1.9 christos ACPI_TRACE_EVENT_TYPE Type,
1424 1.9 christos BOOLEAN Begin,
1425 1.9 christos UINT8 *Aml,
1426 1.9 christos char *Pathname))
1427 1.9 christos
1428 1.10 christos ACPI_STATUS
1429 1.10 christos AcpiInitializeDebugger (
1430 1.10 christos void);
1431 1.10 christos
1432 1.10 christos void
1433 1.10 christos AcpiTerminateDebugger (
1434 1.10 christos void);
1435 1.10 christos
1436 1.10 christos void
1437 1.14 christos AcpiRunDebugger (
1438 1.14 christos char *BatchBuffer);
1439 1.14 christos
1440 1.14 christos void
1441 1.10 christos AcpiSetDebuggerThreadId (
1442 1.10 christos ACPI_THREAD_ID ThreadId);
1443 1.10 christos
1444 1.1 jruoho #endif /* __ACXFACE_H__ */
1445