Sync ACPICA with Intel's version 20150930.
[dragonfly.git] / sys / contrib / dev / acpica / source / include / acpixf.h
CommitLineData
0d02842f
SW
1/******************************************************************************
2 *
3 * Name: acpixf.h - External interfaces to the ACPI subsystem
4 *
5 *****************************************************************************/
6
7/*
fe7b5cb4 8 * Copyright (C) 2000 - 2015, Intel Corp.
0d02842f
SW
9 * 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
0d02842f
SW
44#ifndef __ACXFACE_H__
45#define __ACXFACE_H__
46
47/* Current ACPICA subsystem version in YYYYMMDD format */
48
c6400d37 49#define ACPI_CA_VERSION 0x20150930
0d02842f
SW
50
51#include "acconfig.h"
52#include "actypes.h"
53#include "actbl.h"
54#include "acbuffer.h"
55
9e1c0880
SW
56
57/*****************************************************************************
58 *
59 * Macros used for ACPICA globals and configuration
60 *
61 ****************************************************************************/
62
63/*
64 * Ensure that global variables are defined and initialized only once.
65 *
66 * The use of these macros allows for a single list of globals (here)
67 * in order to simplify maintenance of the code.
68 */
69#ifdef DEFINE_ACPI_GLOBALS
70#define ACPI_GLOBAL(type,name) \
71 extern type name; \
72 type name
73
74#define ACPI_INIT_GLOBAL(type,name,value) \
75 type name=value
76
77#else
78#ifndef ACPI_GLOBAL
79#define ACPI_GLOBAL(type,name) \
80 extern type name
81#endif
82
83#ifndef ACPI_INIT_GLOBAL
84#define ACPI_INIT_GLOBAL(type,name,value) \
85 extern type name
86#endif
87#endif
88
89/*
90 * These macros configure the various ACPICA interfaces. They are
91 * useful for generating stub inline functions for features that are
92 * configured out of the current kernel or ACPICA application.
93 */
94#ifndef ACPI_EXTERNAL_RETURN_STATUS
95#define ACPI_EXTERNAL_RETURN_STATUS(Prototype) \
96 Prototype;
97#endif
98
99#ifndef ACPI_EXTERNAL_RETURN_OK
100#define ACPI_EXTERNAL_RETURN_OK(Prototype) \
101 Prototype;
102#endif
103
104#ifndef ACPI_EXTERNAL_RETURN_VOID
105#define ACPI_EXTERNAL_RETURN_VOID(Prototype) \
106 Prototype;
107#endif
108
109#ifndef ACPI_EXTERNAL_RETURN_UINT32
110#define ACPI_EXTERNAL_RETURN_UINT32(Prototype) \
111 Prototype;
112#endif
113
114#ifndef ACPI_EXTERNAL_RETURN_PTR
115#define ACPI_EXTERNAL_RETURN_PTR(Prototype) \
116 Prototype;
117#endif
118
119
120/*****************************************************************************
121 *
122 * Public globals and runtime configuration options
123 *
124 ****************************************************************************/
125
126/*
127 * Enable "slack mode" of the AML interpreter? Default is FALSE, and the
128 * 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 (UINT8, AcpiGbl_EnableInterpreterSlack, FALSE);
141
142/*
143 * Automatically serialize all methods that create named objects? Default
144 * is TRUE, meaning that all NonSerialized 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 (UINT8, AcpiGbl_AutoSerializeMethods, 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 (UINT8, AcpiGbl_CreateOsiMethod, 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 (UINT8, AcpiGbl_UseDefaultRegisterWidths, TRUE);
163
5f39c7e7
SW
164/*
165 * 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 (UINT8, AcpiGbl_VerifyTableChecksum, TRUE);
172
9e1c0880
SW
173/*
174 * Optionally enable output from the AML Debug Object.
175 */
176ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableAmlDebugObject, 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 (UINT8, AcpiGbl_CopyDsdtLocally, 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 (UINT8, AcpiGbl_DoNotUseXsdt, 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
200 * address. Default is FALSE, do not favor the 32-bit addresses.
201 */
202ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFadtAddresses, FALSE);
203
25ca8c79
SW
204/*
205 * Optionally use 32-bit FACS table addresses.
206 * It is reported that some platforms fail to resume from system suspending
207 * if 64-bit FACS table address is selected:
208 * https://bugzilla.kernel.org/show_bug.cgi?id=74021
209 * Default is TRUE, favor the 32-bit addresses.
210 */
211ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFacsAddresses, TRUE);
212
9e1c0880
SW
213/*
214 * Optionally truncate I/O addresses to 16 bits. Provides compatibility
215 * with other ACPI implementations. NOTE: During ACPICA initialization,
216 * this value is set to TRUE if any Windows OSI strings have been
217 * requested by the BIOS.
218 */
219ACPI_INIT_GLOBAL (UINT8, AcpiGbl_TruncateIoAddresses, FALSE);
220
221/*
222 * Disable runtime checking and repair of values returned by control methods.
223 * Use only if the repair is causing a problem on a particular machine.
224 */
225ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableAutoRepair, FALSE);
226
0d02842f 227/*
9e1c0880
SW
228 * Optionally do not install any SSDTs from the RSDT/XSDT during initialization.
229 * This can be useful for debugging ACPI problems on some machines.
0d02842f 230 */
9e1c0880 231ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableSsdtTableInstall, FALSE);
0d02842f 232
25ca8c79
SW
233/*
234 * Optionally enable runtime namespace override.
235 */
236ACPI_INIT_GLOBAL (UINT8, AcpiGbl_RuntimeNamespaceOverride, TRUE);
237
9e1c0880
SW
238/*
239 * We keep track of the latest version of Windows that has been requested by
240 * the BIOS. ACPI 5.0.
241 */
242ACPI_INIT_GLOBAL (UINT8, AcpiGbl_OsiData, 0);
0d02842f 243
9e1c0880
SW
244/*
245 * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning
246 * that the ACPI hardware is no longer required. A flag in the FADT indicates
247 * a reduced HW machine, and that flag is duplicated here for convenience.
248 */
249ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_ReducedHardware, FALSE);
0d02842f 250
9e1c0880
SW
251/*
252 * This mechanism is used to trace a specified AML method. The method is
253 * traced each time it is executed.
254 */
255ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceFlags, 0);
267c04fd
SW
256ACPI_INIT_GLOBAL (const char *, AcpiGbl_TraceMethodName, NULL);
257ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLevel, ACPI_TRACE_LEVEL_DEFAULT);
258ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLayer, ACPI_TRACE_LAYER_DEFAULT);
0d02842f 259
9e1c0880
SW
260/*
261 * Runtime configuration of debug output control masks. We want the debug
262 * switches statically initialized so they are already set when the debugger
263 * is entered.
264 */
265#ifdef ACPI_DEBUG_OUTPUT
266ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_DEBUG_DEFAULT);
267#else
268ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_NORMAL_DEFAULT);
269#endif
270ACPI_INIT_GLOBAL (UINT32, AcpiDbgLayer, ACPI_COMPONENT_DEFAULT);
271
272/*
273 * Other miscellaneous globals
274 */
275ACPI_GLOBAL (ACPI_TABLE_FADT, AcpiGbl_FADT);
276ACPI_GLOBAL (UINT32, AcpiCurrentGpeCount);
277ACPI_GLOBAL (BOOLEAN, AcpiGbl_SystemAwakeAndRunning);
0d02842f
SW
278
279
9e1c0880
SW
280/*****************************************************************************
281 *
282 * ACPICA public interface configuration.
283 *
284 * Interfaces that are configured out of the ACPICA build are replaced
285 * by inlined stubs by default.
286 *
287 ****************************************************************************/
288
0d02842f 289/*
9e1c0880
SW
290 * Hardware-reduced prototypes (default: Not hardware reduced).
291 *
292 * All ACPICA hardware-related interfaces that use these macros will be
293 * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag
0d02842f 294 * is set to TRUE.
9e1c0880
SW
295 *
296 * Note: This static build option for reduced hardware is intended to
297 * reduce ACPICA code size if desired or necessary. However, even if this
298 * option is not specified, the runtime behavior of ACPICA is dependent
299 * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set,
300 * the flag will enable similar behavior -- ACPICA will not attempt
301 * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.)
0d02842f
SW
302 */
303#if (!ACPI_REDUCED_HARDWARE)
304#define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
9e1c0880 305 ACPI_EXTERNAL_RETURN_STATUS(Prototype)
0d02842f
SW
306
307#define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
9e1c0880 308 ACPI_EXTERNAL_RETURN_OK(Prototype)
0d02842f
SW
309
310#define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
9e1c0880 311 ACPI_EXTERNAL_RETURN_VOID(Prototype)
0d02842f
SW
312
313#else
314#define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
315 static ACPI_INLINE Prototype {return(AE_NOT_CONFIGURED);}
316
317#define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
318 static ACPI_INLINE Prototype {return(AE_OK);}
319
320#define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
321 static ACPI_INLINE Prototype {return;}
322
323#endif /* !ACPI_REDUCED_HARDWARE */
324
325
9e1c0880
SW
326/*
327 * Error message prototypes (default: error messages enabled).
328 *
329 * All interfaces related to error and warning messages
330 * will be configured out of the ACPICA build if the
331 * ACPI_NO_ERROR_MESSAGE flag is defined.
332 */
333#ifndef ACPI_NO_ERROR_MESSAGES
334#define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
335 Prototype;
336
337#else
338#define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
339 static ACPI_INLINE Prototype {return;}
340
341#endif /* ACPI_NO_ERROR_MESSAGES */
342
343
344/*
345 * Debugging output prototypes (default: no debug output).
346 *
347 * All interfaces related to debug output messages
348 * will be configured out of the ACPICA build unless the
349 * ACPI_DEBUG_OUTPUT flag is defined.
350 */
351#ifdef ACPI_DEBUG_OUTPUT
352#define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
353 Prototype;
354
355#else
356#define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
357 static ACPI_INLINE Prototype {return;}
358
359#endif /* ACPI_DEBUG_OUTPUT */
360
361
5f39c7e7
SW
362/*
363 * Application prototypes
364 *
365 * All interfaces used by application will be configured
366 * out of the ACPICA build unless the ACPI_APPLICATION
367 * flag is defined.
368 */
369#ifdef ACPI_APPLICATION
370#define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
371 Prototype;
372
373#else
374#define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
375 static ACPI_INLINE Prototype {return;}
376
377#endif /* ACPI_APPLICATION */
378
379
9e1c0880
SW
380/*****************************************************************************
381 *
382 * ACPICA public interface prototypes
383 *
384 ****************************************************************************/
385
0d02842f
SW
386/*
387 * Initialization
388 */
9e1c0880 389ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
390ACPI_STATUS
391AcpiInitializeTables (
392 ACPI_TABLE_DESC *InitialStorage,
393 UINT32 InitialTableCount,
9e1c0880 394 BOOLEAN AllowResize))
0d02842f 395
9e1c0880 396ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
397ACPI_STATUS
398AcpiInitializeSubsystem (
9e1c0880 399 void))
0d02842f 400
9e1c0880 401ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
402ACPI_STATUS
403AcpiEnableSubsystem (
9e1c0880 404 UINT32 Flags))
0d02842f 405
9e1c0880 406ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
407ACPI_STATUS
408AcpiInitializeObjects (
9e1c0880 409 UINT32 Flags))
0d02842f 410
9e1c0880 411ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
412ACPI_STATUS
413AcpiTerminate (
9e1c0880 414 void))
0d02842f
SW
415
416
417/*
418 * Miscellaneous global interfaces
419 */
420ACPI_HW_DEPENDENT_RETURN_STATUS (
421ACPI_STATUS
422AcpiEnable (
423 void))
424
425ACPI_HW_DEPENDENT_RETURN_STATUS (
426ACPI_STATUS
427AcpiDisable (
428 void))
429
9e1c0880 430ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
431ACPI_STATUS
432AcpiSubsystemStatus (
9e1c0880 433 void))
0d02842f 434
9e1c0880 435ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
436ACPI_STATUS
437AcpiGetSystemInfo (
9e1c0880 438 ACPI_BUFFER *RetBuffer))
0d02842f 439
9e1c0880 440ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
441ACPI_STATUS
442AcpiGetStatistics (
9e1c0880 443 ACPI_STATISTICS *Stats))
0d02842f 444
9e1c0880 445ACPI_EXTERNAL_RETURN_PTR (
0d02842f
SW
446const char *
447AcpiFormatException (
9e1c0880 448 ACPI_STATUS Exception))
0d02842f 449
9e1c0880 450ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
451ACPI_STATUS
452AcpiPurgeCachedObjects (
9e1c0880 453 void))
0d02842f 454
9e1c0880 455ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
456ACPI_STATUS
457AcpiInstallInterface (
9e1c0880 458 ACPI_STRING InterfaceName))
0d02842f 459
9e1c0880 460ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
461ACPI_STATUS
462AcpiRemoveInterface (
9e1c0880 463 ACPI_STRING InterfaceName))
0d02842f 464
9e1c0880 465ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
466ACPI_STATUS
467AcpiUpdateInterfaces (
9e1c0880 468 UINT8 Action))
0d02842f 469
9e1c0880 470ACPI_EXTERNAL_RETURN_UINT32 (
0d02842f
SW
471UINT32
472AcpiCheckAddressRange (
473 ACPI_ADR_SPACE_TYPE SpaceId,
474 ACPI_PHYSICAL_ADDRESS Address,
475 ACPI_SIZE Length,
9e1c0880 476 BOOLEAN Warn))
0d02842f 477
9e1c0880 478ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
479ACPI_STATUS
480AcpiDecodePldBuffer (
481 UINT8 *InBuffer,
482 ACPI_SIZE Length,
9e1c0880 483 ACPI_PLD_INFO **ReturnBuffer))
0d02842f
SW
484
485
486/*
487 * ACPI table load/unload interfaces
488 */
9e1c0880 489ACPI_EXTERNAL_RETURN_STATUS (
0d02842f 490ACPI_STATUS
d4972a9c
SW
491AcpiInstallTable (
492 ACPI_PHYSICAL_ADDRESS Address,
9e1c0880 493 BOOLEAN Physical))
d4972a9c 494
9e1c0880 495ACPI_EXTERNAL_RETURN_STATUS (
d4972a9c 496ACPI_STATUS
0d02842f 497AcpiLoadTable (
9e1c0880 498 ACPI_TABLE_HEADER *Table))
0d02842f 499
9e1c0880 500ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
501ACPI_STATUS
502AcpiUnloadParentTable (
9e1c0880 503 ACPI_HANDLE Object))
0d02842f 504
9e1c0880 505ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
506ACPI_STATUS
507AcpiLoadTables (
9e1c0880 508 void))
0d02842f
SW
509
510
511/*
512 * ACPI table manipulation interfaces
513 */
9e1c0880 514ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
515ACPI_STATUS
516AcpiReallocateRootTable (
9e1c0880 517 void))
0d02842f 518
9e1c0880 519ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
520ACPI_STATUS
521AcpiFindRootPointer (
5943f66c 522 ACPI_PHYSICAL_ADDRESS *RsdpAddress))
0d02842f 523
9e1c0880 524ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
525ACPI_STATUS
526AcpiGetTableHeader (
527 ACPI_STRING Signature,
528 UINT32 Instance,
9e1c0880 529 ACPI_TABLE_HEADER *OutTableHeader))
0d02842f 530
9e1c0880 531ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
532ACPI_STATUS
533AcpiGetTable (
534 ACPI_STRING Signature,
535 UINT32 Instance,
9e1c0880 536 ACPI_TABLE_HEADER **OutTable))
0d02842f 537
9e1c0880 538ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
539ACPI_STATUS
540AcpiGetTableByIndex (
541 UINT32 TableIndex,
9e1c0880 542 ACPI_TABLE_HEADER **OutTable))
0d02842f 543
9e1c0880 544ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
545ACPI_STATUS
546AcpiInstallTableHandler (
547 ACPI_TABLE_HANDLER Handler,
9e1c0880 548 void *Context))
0d02842f 549
9e1c0880 550ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
551ACPI_STATUS
552AcpiRemoveTableHandler (
9e1c0880 553 ACPI_TABLE_HANDLER Handler))
0d02842f
SW
554
555
556/*
557 * Namespace and name interfaces
558 */
9e1c0880 559ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
560ACPI_STATUS
561AcpiWalkNamespace (
562 ACPI_OBJECT_TYPE Type,
563 ACPI_HANDLE StartObject,
564 UINT32 MaxDepth,
565 ACPI_WALK_CALLBACK DescendingCallback,
566 ACPI_WALK_CALLBACK AscendingCallback,
567 void *Context,
9e1c0880 568 void **ReturnValue))
0d02842f 569
9e1c0880 570ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
571ACPI_STATUS
572AcpiGetDevices (
573 char *HID,
574 ACPI_WALK_CALLBACK UserFunction,
575 void *Context,
9e1c0880 576 void **ReturnValue))
0d02842f 577
9e1c0880 578ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
579ACPI_STATUS
580AcpiGetName (
581 ACPI_HANDLE Object,
582 UINT32 NameType,
9e1c0880 583 ACPI_BUFFER *RetPathPtr))
0d02842f 584
9e1c0880 585ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
586ACPI_STATUS
587AcpiGetHandle (
588 ACPI_HANDLE Parent,
589 ACPI_STRING Pathname,
9e1c0880 590 ACPI_HANDLE *RetHandle))
0d02842f 591
9e1c0880 592ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
593ACPI_STATUS
594AcpiAttachData (
595 ACPI_HANDLE Object,
596 ACPI_OBJECT_HANDLER Handler,
9e1c0880 597 void *Data))
0d02842f 598
9e1c0880 599ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
600ACPI_STATUS
601AcpiDetachData (
602 ACPI_HANDLE Object,
9e1c0880 603 ACPI_OBJECT_HANDLER Handler))
0d02842f 604
9e1c0880 605ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
606ACPI_STATUS
607AcpiGetData (
608 ACPI_HANDLE Object,
609 ACPI_OBJECT_HANDLER Handler,
9e1c0880 610 void **Data))
0d02842f 611
9e1c0880 612ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
613ACPI_STATUS
614AcpiDebugTrace (
267c04fd 615 const char *Name,
0d02842f
SW
616 UINT32 DebugLevel,
617 UINT32 DebugLayer,
9e1c0880 618 UINT32 Flags))
0d02842f
SW
619
620
621/*
622 * Object manipulation and enumeration
623 */
9e1c0880 624ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
625ACPI_STATUS
626AcpiEvaluateObject (
627 ACPI_HANDLE Object,
628 ACPI_STRING Pathname,
629 ACPI_OBJECT_LIST *ParameterObjects,
9e1c0880 630 ACPI_BUFFER *ReturnObjectBuffer))
0d02842f 631
9e1c0880 632ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
633ACPI_STATUS
634AcpiEvaluateObjectTyped (
635 ACPI_HANDLE Object,
636 ACPI_STRING Pathname,
637 ACPI_OBJECT_LIST *ExternalParams,
638 ACPI_BUFFER *ReturnBuffer,
9e1c0880 639 ACPI_OBJECT_TYPE ReturnType))
0d02842f 640
9e1c0880 641ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
642ACPI_STATUS
643AcpiGetObjectInfo (
644 ACPI_HANDLE Object,
9e1c0880 645 ACPI_DEVICE_INFO **ReturnBuffer))
0d02842f 646
9e1c0880 647ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
648ACPI_STATUS
649AcpiInstallMethod (
9e1c0880 650 UINT8 *Buffer))
0d02842f 651
9e1c0880 652ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
653ACPI_STATUS
654AcpiGetNextObject (
655 ACPI_OBJECT_TYPE Type,
656 ACPI_HANDLE Parent,
657 ACPI_HANDLE Child,
9e1c0880 658 ACPI_HANDLE *OutHandle))
0d02842f 659
9e1c0880 660ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
661ACPI_STATUS
662AcpiGetType (
663 ACPI_HANDLE Object,
9e1c0880 664 ACPI_OBJECT_TYPE *OutType))
0d02842f 665
9e1c0880 666ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
667ACPI_STATUS
668AcpiGetParent (
669 ACPI_HANDLE Object,
9e1c0880 670 ACPI_HANDLE *OutHandle))
0d02842f
SW
671
672
673/*
674 * Handler interfaces
675 */
9e1c0880 676ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
677ACPI_STATUS
678AcpiInstallInitializationHandler (
679 ACPI_INIT_HANDLER Handler,
9e1c0880 680 UINT32 Function))
0d02842f
SW
681
682ACPI_HW_DEPENDENT_RETURN_STATUS (
683ACPI_STATUS
684AcpiInstallSciHandler (
685 ACPI_SCI_HANDLER Address,
686 void *Context))
687
688ACPI_HW_DEPENDENT_RETURN_STATUS (
689ACPI_STATUS
690AcpiRemoveSciHandler (
691 ACPI_SCI_HANDLER Address))
692
693ACPI_HW_DEPENDENT_RETURN_STATUS (
694ACPI_STATUS
695AcpiInstallGlobalEventHandler (
696 ACPI_GBL_EVENT_HANDLER Handler,
697 void *Context))
698
699ACPI_HW_DEPENDENT_RETURN_STATUS (
700ACPI_STATUS
701AcpiInstallFixedEventHandler (
702 UINT32 AcpiEvent,
703 ACPI_EVENT_HANDLER Handler,
704 void *Context))
705
706ACPI_HW_DEPENDENT_RETURN_STATUS (
707ACPI_STATUS
708AcpiRemoveFixedEventHandler (
709 UINT32 AcpiEvent,
710 ACPI_EVENT_HANDLER Handler))
711
712ACPI_HW_DEPENDENT_RETURN_STATUS (
713ACPI_STATUS
714AcpiInstallGpeHandler (
715 ACPI_HANDLE GpeDevice,
716 UINT32 GpeNumber,
717 UINT32 Type,
718 ACPI_GPE_HANDLER Address,
719 void *Context))
720
fe7b5cb4
SW
721ACPI_HW_DEPENDENT_RETURN_STATUS (
722ACPI_STATUS
723AcpiInstallGpeRawHandler (
724 ACPI_HANDLE GpeDevice,
725 UINT32 GpeNumber,
726 UINT32 Type,
727 ACPI_GPE_HANDLER Address,
728 void *Context))
729
0d02842f
SW
730ACPI_HW_DEPENDENT_RETURN_STATUS (
731ACPI_STATUS
732AcpiRemoveGpeHandler (
733 ACPI_HANDLE GpeDevice,
734 UINT32 GpeNumber,
735 ACPI_GPE_HANDLER Address))
736
9e1c0880 737ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
738ACPI_STATUS
739AcpiInstallNotifyHandler (
740 ACPI_HANDLE Device,
741 UINT32 HandlerType,
742 ACPI_NOTIFY_HANDLER Handler,
9e1c0880 743 void *Context))
0d02842f 744
9e1c0880 745ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
746ACPI_STATUS
747AcpiRemoveNotifyHandler (
748 ACPI_HANDLE Device,
749 UINT32 HandlerType,
9e1c0880 750 ACPI_NOTIFY_HANDLER Handler))
0d02842f 751
9e1c0880 752ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
753ACPI_STATUS
754AcpiInstallAddressSpaceHandler (
755 ACPI_HANDLE Device,
756 ACPI_ADR_SPACE_TYPE SpaceId,
757 ACPI_ADR_SPACE_HANDLER Handler,
758 ACPI_ADR_SPACE_SETUP Setup,
9e1c0880 759 void *Context))
0d02842f 760
9e1c0880 761ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
762ACPI_STATUS
763AcpiRemoveAddressSpaceHandler (
764 ACPI_HANDLE Device,
765 ACPI_ADR_SPACE_TYPE SpaceId,
9e1c0880 766 ACPI_ADR_SPACE_HANDLER Handler))
0d02842f 767
9e1c0880 768ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
769ACPI_STATUS
770AcpiInstallExceptionHandler (
9e1c0880 771 ACPI_EXCEPTION_HANDLER Handler))
0d02842f 772
9e1c0880 773ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
774ACPI_STATUS
775AcpiInstallInterfaceHandler (
9e1c0880 776 ACPI_INTERFACE_HANDLER Handler))
0d02842f
SW
777
778
779/*
780 * Global Lock interfaces
781 */
782ACPI_HW_DEPENDENT_RETURN_STATUS (
783ACPI_STATUS
784AcpiAcquireGlobalLock (
785 UINT16 Timeout,
786 UINT32 *Handle))
787
788ACPI_HW_DEPENDENT_RETURN_STATUS (
789ACPI_STATUS
790AcpiReleaseGlobalLock (
791 UINT32 Handle))
792
793
794/*
795 * Interfaces to AML mutex objects
796 */
9e1c0880 797ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
798ACPI_STATUS
799AcpiAcquireMutex (
800 ACPI_HANDLE Handle,
801 ACPI_STRING Pathname,
9e1c0880 802 UINT16 Timeout))
0d02842f 803
9e1c0880 804ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
805ACPI_STATUS
806AcpiReleaseMutex (
807 ACPI_HANDLE Handle,
9e1c0880 808 ACPI_STRING Pathname))
0d02842f
SW
809
810
811/*
812 * Fixed Event interfaces
813 */
814ACPI_HW_DEPENDENT_RETURN_STATUS (
815ACPI_STATUS
816AcpiEnableEvent (
817 UINT32 Event,
818 UINT32 Flags))
819
820ACPI_HW_DEPENDENT_RETURN_STATUS (
821ACPI_STATUS
822AcpiDisableEvent (
823 UINT32 Event,
824 UINT32 Flags))
825
826ACPI_HW_DEPENDENT_RETURN_STATUS (
827ACPI_STATUS
828AcpiClearEvent (
829 UINT32 Event))
830
831ACPI_HW_DEPENDENT_RETURN_STATUS (
832ACPI_STATUS
833AcpiGetEventStatus (
834 UINT32 Event,
835 ACPI_EVENT_STATUS *EventStatus))
836
837
838/*
839 * General Purpose Event (GPE) Interfaces
840 */
841ACPI_HW_DEPENDENT_RETURN_STATUS (
842ACPI_STATUS
843AcpiUpdateAllGpes (
844 void))
845
846ACPI_HW_DEPENDENT_RETURN_STATUS (
847ACPI_STATUS
848AcpiEnableGpe (
849 ACPI_HANDLE GpeDevice,
850 UINT32 GpeNumber))
851
852ACPI_HW_DEPENDENT_RETURN_STATUS (
853ACPI_STATUS
854AcpiDisableGpe (
855 ACPI_HANDLE GpeDevice,
856 UINT32 GpeNumber))
857
858ACPI_HW_DEPENDENT_RETURN_STATUS (
859ACPI_STATUS
860AcpiClearGpe (
861 ACPI_HANDLE GpeDevice,
862 UINT32 GpeNumber))
863
864ACPI_HW_DEPENDENT_RETURN_STATUS (
865ACPI_STATUS
866AcpiSetGpe (
867 ACPI_HANDLE GpeDevice,
868 UINT32 GpeNumber,
869 UINT8 Action))
870
871ACPI_HW_DEPENDENT_RETURN_STATUS (
872ACPI_STATUS
873AcpiFinishGpe (
874 ACPI_HANDLE GpeDevice,
875 UINT32 GpeNumber))
876
066b6da2
SW
877ACPI_HW_DEPENDENT_RETURN_STATUS (
878ACPI_STATUS
879AcpiMarkGpeForWake (
880 ACPI_HANDLE GpeDevice,
881 UINT32 GpeNumber))
882
0d02842f
SW
883ACPI_HW_DEPENDENT_RETURN_STATUS (
884ACPI_STATUS
885AcpiSetupGpeForWake (
886 ACPI_HANDLE ParentDevice,
887 ACPI_HANDLE GpeDevice,
888 UINT32 GpeNumber))
889
890ACPI_HW_DEPENDENT_RETURN_STATUS (
891ACPI_STATUS
892AcpiSetGpeWakeMask (
893 ACPI_HANDLE GpeDevice,
894 UINT32 GpeNumber,
895 UINT8 Action))
896
897ACPI_HW_DEPENDENT_RETURN_STATUS (
898ACPI_STATUS
899AcpiGetGpeStatus (
900 ACPI_HANDLE GpeDevice,
901 UINT32 GpeNumber,
902 ACPI_EVENT_STATUS *EventStatus))
903
904ACPI_HW_DEPENDENT_RETURN_STATUS (
905ACPI_STATUS
906AcpiDisableAllGpes (
907 void))
908
909ACPI_HW_DEPENDENT_RETURN_STATUS (
910ACPI_STATUS
911AcpiEnableAllRuntimeGpes (
912 void))
913
fe7b5cb4
SW
914ACPI_HW_DEPENDENT_RETURN_STATUS (
915ACPI_STATUS
916AcpiEnableAllWakeupGpes (
917 void))
918
0d02842f
SW
919ACPI_HW_DEPENDENT_RETURN_STATUS (
920ACPI_STATUS
921AcpiGetGpeDevice (
922 UINT32 GpeIndex,
923 ACPI_HANDLE *GpeDevice))
924
925ACPI_HW_DEPENDENT_RETURN_STATUS (
926ACPI_STATUS
927AcpiInstallGpeBlock (
928 ACPI_HANDLE GpeDevice,
929 ACPI_GENERIC_ADDRESS *GpeBlockAddress,
930 UINT32 RegisterCount,
931 UINT32 InterruptNumber))
932
933ACPI_HW_DEPENDENT_RETURN_STATUS (
934ACPI_STATUS
935AcpiRemoveGpeBlock (
936 ACPI_HANDLE GpeDevice))
937
938
939/*
940 * Resource interfaces
941 */
942typedef
943ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) (
944 ACPI_RESOURCE *Resource,
945 void *Context);
946
9e1c0880 947ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
948ACPI_STATUS
949AcpiGetVendorResource (
950 ACPI_HANDLE Device,
951 char *Name,
952 ACPI_VENDOR_UUID *Uuid,
9e1c0880 953 ACPI_BUFFER *RetBuffer))
0d02842f 954
9e1c0880 955ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
956ACPI_STATUS
957AcpiGetCurrentResources (
958 ACPI_HANDLE Device,
9e1c0880 959 ACPI_BUFFER *RetBuffer))
0d02842f 960
9e1c0880 961ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
962ACPI_STATUS
963AcpiGetPossibleResources (
964 ACPI_HANDLE Device,
9e1c0880 965 ACPI_BUFFER *RetBuffer))
0d02842f 966
9e1c0880 967ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
968ACPI_STATUS
969AcpiGetEventResources (
970 ACPI_HANDLE DeviceHandle,
9e1c0880 971 ACPI_BUFFER *RetBuffer))
0d02842f 972
9e1c0880 973ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
974ACPI_STATUS
975AcpiWalkResourceBuffer (
976 ACPI_BUFFER *Buffer,
977 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
9e1c0880 978 void *Context))
0d02842f 979
9e1c0880 980ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
981ACPI_STATUS
982AcpiWalkResources (
983 ACPI_HANDLE Device,
984 char *Name,
985 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
9e1c0880 986 void *Context))
0d02842f 987
9e1c0880 988ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
989ACPI_STATUS
990AcpiSetCurrentResources (
991 ACPI_HANDLE Device,
9e1c0880 992 ACPI_BUFFER *InBuffer))
0d02842f 993
9e1c0880 994ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
995ACPI_STATUS
996AcpiGetIrqRoutingTable (
997 ACPI_HANDLE Device,
9e1c0880 998 ACPI_BUFFER *RetBuffer))
0d02842f 999
9e1c0880 1000ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
1001ACPI_STATUS
1002AcpiResourceToAddress64 (
1003 ACPI_RESOURCE *Resource,
9e1c0880 1004 ACPI_RESOURCE_ADDRESS64 *Out))
0d02842f 1005
9e1c0880 1006ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
1007ACPI_STATUS
1008AcpiBufferToResource (
1009 UINT8 *AmlBuffer,
1010 UINT16 AmlBufferLength,
9e1c0880 1011 ACPI_RESOURCE **ResourcePtr))
0d02842f
SW
1012
1013
1014/*
1015 * Hardware (ACPI device) interfaces
1016 */
9e1c0880 1017ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
1018ACPI_STATUS
1019AcpiReset (
9e1c0880 1020 void))
0d02842f 1021
9e1c0880 1022ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
1023ACPI_STATUS
1024AcpiRead (
1025 UINT64 *Value,
9e1c0880 1026 ACPI_GENERIC_ADDRESS *Reg))
0d02842f 1027
9e1c0880 1028ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
1029ACPI_STATUS
1030AcpiWrite (
1031 UINT64 Value,
9e1c0880 1032 ACPI_GENERIC_ADDRESS *Reg))
0d02842f
SW
1033
1034ACPI_HW_DEPENDENT_RETURN_STATUS (
1035ACPI_STATUS
1036AcpiReadBitRegister (
1037 UINT32 RegisterId,
1038 UINT32 *ReturnValue))
1039
1040ACPI_HW_DEPENDENT_RETURN_STATUS (
1041ACPI_STATUS
1042AcpiWriteBitRegister (
1043 UINT32 RegisterId,
1044 UINT32 Value))
1045
1046
1047/*
1048 * Sleep/Wake interfaces
1049 */
9e1c0880 1050ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
1051ACPI_STATUS
1052AcpiGetSleepTypeData (
1053 UINT8 SleepState,
1054 UINT8 *Slp_TypA,
9e1c0880 1055 UINT8 *Slp_TypB))
0d02842f 1056
9e1c0880 1057ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
1058ACPI_STATUS
1059AcpiEnterSleepStatePrep (
9e1c0880 1060 UINT8 SleepState))
0d02842f 1061
9e1c0880 1062ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
1063ACPI_STATUS
1064AcpiEnterSleepState (
9e1c0880 1065 UINT8 SleepState))
0d02842f
SW
1066
1067ACPI_HW_DEPENDENT_RETURN_STATUS (
1068ACPI_STATUS
1069AcpiEnterSleepStateS4bios (
1070 void))
1071
9e1c0880 1072ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
1073ACPI_STATUS
1074AcpiLeaveSleepStatePrep (
9e1c0880 1075 UINT8 SleepState))
0d02842f 1076
9e1c0880 1077ACPI_EXTERNAL_RETURN_STATUS (
0d02842f
SW
1078ACPI_STATUS
1079AcpiLeaveSleepState (
9e1c0880 1080 UINT8 SleepState))
0d02842f
SW
1081
1082ACPI_HW_DEPENDENT_RETURN_STATUS (
1083ACPI_STATUS
1084AcpiSetFirmwareWakingVector (
25ca8c79
SW
1085 ACPI_PHYSICAL_ADDRESS PhysicalAddress,
1086 ACPI_PHYSICAL_ADDRESS PhysicalAddress64))
0d02842f
SW
1087
1088
1089/*
1090 * ACPI Timer interfaces
1091 */
1092ACPI_HW_DEPENDENT_RETURN_STATUS (
1093ACPI_STATUS
1094AcpiGetTimerResolution (
1095 UINT32 *Resolution))
1096
1097ACPI_HW_DEPENDENT_RETURN_STATUS (
1098ACPI_STATUS
1099AcpiGetTimer (
1100 UINT32 *Ticks))
1101
1102ACPI_HW_DEPENDENT_RETURN_STATUS (
1103ACPI_STATUS
1104AcpiGetTimerDuration (
1105 UINT32 StartTicks,
1106 UINT32 EndTicks,
1107 UINT32 *TimeElapsed))
1108
1109
1110/*
1111 * Error/Warning output
1112 */
9e1c0880 1113ACPI_MSG_DEPENDENT_RETURN_VOID (
0d02842f
SW
1114ACPI_PRINTF_LIKE(3)
1115void ACPI_INTERNAL_VAR_XFACE
1116AcpiError (
1117 const char *ModuleName,
1118 UINT32 LineNumber,
1119 const char *Format,
9e1c0880 1120 ...))
0d02842f 1121
9e1c0880 1122ACPI_MSG_DEPENDENT_RETURN_VOID (
0d02842f
SW
1123ACPI_PRINTF_LIKE(4)
1124void ACPI_INTERNAL_VAR_XFACE
1125AcpiException (
1126 const char *ModuleName,
1127 UINT32 LineNumber,
1128 ACPI_STATUS Status,
1129 const char *Format,
9e1c0880 1130 ...))
0d02842f 1131
9e1c0880 1132ACPI_MSG_DEPENDENT_RETURN_VOID (
0d02842f
SW
1133ACPI_PRINTF_LIKE(3)
1134void ACPI_INTERNAL_VAR_XFACE
1135AcpiWarning (
1136 const char *ModuleName,
1137 UINT32 LineNumber,
1138 const char *Format,
9e1c0880 1139 ...))
0d02842f 1140
9e1c0880 1141ACPI_MSG_DEPENDENT_RETURN_VOID (
0d02842f
SW
1142ACPI_PRINTF_LIKE(3)
1143void ACPI_INTERNAL_VAR_XFACE
1144AcpiInfo (
1145 const char *ModuleName,
1146 UINT32 LineNumber,
1147 const char *Format,
9e1c0880 1148 ...))
0d02842f 1149
9e1c0880 1150ACPI_MSG_DEPENDENT_RETURN_VOID (
0d02842f
SW
1151ACPI_PRINTF_LIKE(3)
1152void ACPI_INTERNAL_VAR_XFACE
1153AcpiBiosError (
1154 const char *ModuleName,
1155 UINT32 LineNumber,
1156 const char *Format,
9e1c0880 1157 ...))
0d02842f 1158
9e1c0880 1159ACPI_MSG_DEPENDENT_RETURN_VOID (
0d02842f
SW
1160ACPI_PRINTF_LIKE(3)
1161void ACPI_INTERNAL_VAR_XFACE
1162AcpiBiosWarning (
1163 const char *ModuleName,
1164 UINT32 LineNumber,
1165 const char *Format,
9e1c0880 1166 ...))
0d02842f
SW
1167
1168
1169/*
1170 * Debug output
1171 */
9e1c0880 1172ACPI_DBG_DEPENDENT_RETURN_VOID (
0d02842f
SW
1173ACPI_PRINTF_LIKE(6)
1174void ACPI_INTERNAL_VAR_XFACE
1175AcpiDebugPrint (
1176 UINT32 RequestedDebugLevel,
1177 UINT32 LineNumber,
1178 const char *FunctionName,
1179 const char *ModuleName,
1180 UINT32 ComponentId,
1181 const char *Format,
9e1c0880 1182 ...))
0d02842f 1183
9e1c0880 1184ACPI_DBG_DEPENDENT_RETURN_VOID (
0d02842f
SW
1185ACPI_PRINTF_LIKE(6)
1186void ACPI_INTERNAL_VAR_XFACE
1187AcpiDebugPrintRaw (
1188 UINT32 RequestedDebugLevel,
1189 UINT32 LineNumber,
1190 const char *FunctionName,
1191 const char *ModuleName,
1192 UINT32 ComponentId,
1193 const char *Format,
9e1c0880 1194 ...))
0d02842f 1195
267c04fd
SW
1196ACPI_DBG_DEPENDENT_RETURN_VOID (
1197void
1198AcpiTracePoint (
1199 ACPI_TRACE_EVENT_TYPE Type,
1200 BOOLEAN Begin,
1201 UINT8 *Aml,
1202 char *Pathname))
1203
5f39c7e7
SW
1204ACPI_APP_DEPENDENT_RETURN_VOID (
1205ACPI_PRINTF_LIKE(1)
1206void ACPI_INTERNAL_VAR_XFACE
1207AcpiLogError (
1208 const char *Format,
1209 ...))
1210
3cc0afc6
SW
1211ACPI_STATUS
1212AcpiInitializeDebugger (
1213 void);
1214
1215void
1216AcpiTerminateDebugger (
1217 void);
1218
0d02842f 1219#endif /* __ACXFACE_H__ */