1 /******************************************************************************
3 * Name: acpixf.h - External interfaces to the ACPI subsystem
5 *****************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2018, Intel Corp.
12 * All rights reserved.
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
72 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
114 *****************************************************************************
116 * Alternatively, you may choose to be licensed under the terms of the
119 * Redistribution and use in source and binary forms, with or without
120 * modification, are permitted provided that the following conditions
122 * 1. Redistributions of source code must retain the above copyright
123 * notice, this list of conditions, and the following disclaimer,
124 * without modification.
125 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126 * substantially similar to the "NO WARRANTY" disclaimer below
127 * ("Disclaimer") and any redistribution must be conditioned upon
128 * including a substantially similar Disclaimer requirement for further
129 * binary redistribution.
130 * 3. Neither the names of the above-listed copyright holders nor the names
131 * of any contributors may be used to endorse or promote products derived
132 * from this software without specific prior written permission.
134 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
146 * Alternatively, you may choose to be licensed under the terms of the
147 * GNU General Public License ("GPL") version 2 as published by the Free
148 * Software Foundation.
150 *****************************************************************************/
152 #ifndef __ACXFACE_H__
153 #define __ACXFACE_H__
155 /* Current ACPICA subsystem version in YYYYMMDD format */
157 #define ACPI_CA_VERSION 0x20181213
159 #include "acconfig.h"
162 #include "acbuffer.h"
165 /*****************************************************************************
167 * Macros used for ACPICA globals and configuration
169 ****************************************************************************/
172 * Ensure that global variables are defined and initialized only once.
174 * The use of these macros allows for a single list of globals (here)
175 * in order to simplify maintenance of the code.
177 #ifdef DEFINE_ACPI_GLOBALS
178 #define ACPI_GLOBAL(type,name) \
182 #define ACPI_INIT_GLOBAL(type,name,value) \
187 #define ACPI_GLOBAL(type,name) \
191 #ifndef ACPI_INIT_GLOBAL
192 #define ACPI_INIT_GLOBAL(type,name,value) \
198 * These macros configure the various ACPICA interfaces. They are
199 * useful for generating stub inline functions for features that are
200 * configured out of the current kernel or ACPICA application.
202 #ifndef ACPI_EXTERNAL_RETURN_STATUS
203 #define ACPI_EXTERNAL_RETURN_STATUS(Prototype) \
207 #ifndef ACPI_EXTERNAL_RETURN_OK
208 #define ACPI_EXTERNAL_RETURN_OK(Prototype) \
212 #ifndef ACPI_EXTERNAL_RETURN_VOID
213 #define ACPI_EXTERNAL_RETURN_VOID(Prototype) \
217 #ifndef ACPI_EXTERNAL_RETURN_UINT32
218 #define ACPI_EXTERNAL_RETURN_UINT32(Prototype) \
222 #ifndef ACPI_EXTERNAL_RETURN_PTR
223 #define ACPI_EXTERNAL_RETURN_PTR(Prototype) \
228 /*****************************************************************************
230 * Public globals and runtime configuration options
232 ****************************************************************************/
235 * Enable "slack mode" of the AML interpreter? Default is FALSE, and the
236 * interpreter strictly follows the ACPI specification. Setting to TRUE
237 * allows the interpreter to ignore certain errors and/or bad AML constructs.
239 * Currently, these features are enabled by this flag:
241 * 1) Allow "implicit return" of last value in a control method
242 * 2) Allow access beyond the end of an operation region
243 * 3) Allow access to uninitialized locals/args (auto-init to integer 0)
244 * 4) Allow ANY object type to be a source operand for the Store() operator
245 * 5) Allow unresolved references (invalid target name) in package objects
246 * 6) Enable warning messages for behavior that is not ACPI spec compliant
248 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableInterpreterSlack, FALSE);
251 * Automatically serialize all methods that create named objects? Default
252 * is TRUE, meaning that all NonSerialized methods are scanned once at
253 * table load time to determine those that create named objects. Methods
254 * that create named objects are marked Serialized in order to prevent
255 * possible run-time problems if they are entered by more than one thread.
257 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_AutoSerializeMethods, TRUE);
260 * Create the predefined _OSI method in the namespace? Default is TRUE
261 * because ACPICA is fully compatible with other ACPI implementations.
262 * Changing this will revert ACPICA (and machine ASL) to pre-OSI behavior.
264 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_CreateOsiMethod, TRUE);
267 * Optionally use default values for the ACPI register widths. Set this to
268 * TRUE to use the defaults, if an FADT contains incorrect widths/lengths.
270 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_UseDefaultRegisterWidths, TRUE);
273 * Whether or not to validate (map) an entire table to verify
274 * checksum/duplication in early stage before install. Set this to TRUE to
275 * allow early table validation before install it to the table manager.
276 * Note that enabling this option causes errors to happen in some OSPMs
277 * during early initialization stages. Default behavior is to allow such
280 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableTableValidation, TRUE);
283 * Optionally enable output from the AML Debug Object.
285 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableAmlDebugObject, FALSE);
288 * Optionally copy the entire DSDT to local memory (instead of simply
289 * mapping it.) There are some BIOSs that corrupt or replace the original
290 * DSDT, creating the need for this option. Default is FALSE, do not copy
293 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_CopyDsdtLocally, FALSE);
296 * Optionally ignore an XSDT if present and use the RSDT instead.
297 * Although the ACPI specification requires that an XSDT be used instead
298 * of the RSDT, the XSDT has been found to be corrupt or ill-formed on
299 * some machines. Default behavior is to use the XSDT if present.
301 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DoNotUseXsdt, FALSE);
304 * Optionally support module level code by parsing an entire table as
305 * a method as it is loaded. Default is TRUE.
306 * NOTE, this is essentially obsolete and will be removed soon
309 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_ExecuteTablesAsMethods, TRUE);
312 * Optionally use 32-bit FADT addresses if and when there is a conflict
313 * (address mismatch) between the 32-bit and 64-bit versions of the
314 * address. Although ACPICA adheres to the ACPI specification which
315 * requires the use of the corresponding 64-bit address if it is non-zero,
316 * some machines have been found to have a corrupted non-zero 64-bit
317 * address. Default is FALSE, do not favor the 32-bit addresses.
319 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFadtAddresses, FALSE);
322 * Optionally use 32-bit FACS table addresses.
323 * It is reported that some platforms fail to resume from system suspending
324 * if 64-bit FACS table address is selected:
325 * https://bugzilla.kernel.org/show_bug.cgi?id=74021
326 * Default is TRUE, favor the 32-bit addresses.
328 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFacsAddresses, TRUE);
331 * Optionally truncate I/O addresses to 16 bits. Provides compatibility
332 * with other ACPI implementations. NOTE: During ACPICA initialization,
333 * this value is set to TRUE if any Windows OSI strings have been
334 * requested by the BIOS.
336 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_TruncateIoAddresses, FALSE);
339 * Disable runtime checking and repair of values returned by control methods.
340 * Use only if the repair is causing a problem on a particular machine.
342 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableAutoRepair, FALSE);
345 * Optionally do not install any SSDTs from the RSDT/XSDT during initialization.
346 * This can be useful for debugging ACPI problems on some machines.
348 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableSsdtTableInstall, FALSE);
351 * Optionally enable runtime namespace override.
353 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_RuntimeNamespaceOverride, TRUE);
356 * We keep track of the latest version of Windows that has been requested by
357 * the BIOS. ACPI 5.0.
359 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_OsiData, 0);
362 * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning
363 * that the ACPI hardware is no longer required. A flag in the FADT indicates
364 * a reduced HW machine, and that flag is duplicated here for convenience.
366 ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_ReducedHardware, FALSE);
369 * Maximum timeout for While() loop iterations before forced method abort.
370 * This mechanism is intended to prevent infinite loops during interpreter
371 * execution within a host kernel.
373 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_MaxLoopIterations, ACPI_MAX_LOOP_TIMEOUT);
376 * Optionally ignore AE_NOT_FOUND errors from named reference package elements
377 * during DSDT/SSDT table loading. This reduces error "noise" in platforms
378 * whose firmware is carrying around a bunch of unused package objects that
379 * refer to non-existent named objects. However, If the AML actually tries to
380 * use such a package, the unresolved element(s) will be replaced with NULL
383 ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_IgnorePackageResolutionErrors, FALSE);
386 * This mechanism is used to trace a specified AML method. The method is
387 * traced each time it is executed.
389 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceFlags, 0);
390 ACPI_INIT_GLOBAL (const char *, AcpiGbl_TraceMethodName, NULL);
391 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLevel, ACPI_TRACE_LEVEL_DEFAULT);
392 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLayer, ACPI_TRACE_LAYER_DEFAULT);
395 * Runtime configuration of debug output control masks. We want the debug
396 * switches statically initialized so they are already set when the debugger
399 #ifdef ACPI_DEBUG_OUTPUT
400 ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_DEBUG_DEFAULT);
402 ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_NORMAL_DEFAULT);
404 ACPI_INIT_GLOBAL (UINT32, AcpiDbgLayer, ACPI_COMPONENT_DEFAULT);
406 /* Optionally enable timer output with Debug Object output */
408 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisplayDebugTimer, FALSE);
411 * Debugger command handshake globals. Host OSes need to access these
412 * variables to implement their own command handshake mechanism.
415 ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_MethodExecuting, FALSE);
416 ACPI_GLOBAL (char, AcpiGbl_DbLineBuf[ACPI_DB_LINE_BUFFER_SIZE]);
420 * Other miscellaneous globals
422 ACPI_GLOBAL (ACPI_TABLE_FADT, AcpiGbl_FADT);
423 ACPI_GLOBAL (UINT32, AcpiCurrentGpeCount);
424 ACPI_GLOBAL (BOOLEAN, AcpiGbl_SystemAwakeAndRunning);
427 /*****************************************************************************
429 * ACPICA public interface configuration.
431 * Interfaces that are configured out of the ACPICA build are replaced
432 * by inlined stubs by default.
434 ****************************************************************************/
437 * Hardware-reduced prototypes (default: Not hardware reduced).
439 * All ACPICA hardware-related interfaces that use these macros will be
440 * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag
443 * Note: This static build option for reduced hardware is intended to
444 * reduce ACPICA code size if desired or necessary. However, even if this
445 * option is not specified, the runtime behavior of ACPICA is dependent
446 * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set,
447 * the flag will enable similar behavior -- ACPICA will not attempt
448 * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.)
450 #if (!ACPI_REDUCED_HARDWARE)
451 #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
452 ACPI_EXTERNAL_RETURN_STATUS(Prototype)
454 #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
455 ACPI_EXTERNAL_RETURN_OK(Prototype)
457 #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
458 ACPI_EXTERNAL_RETURN_VOID(Prototype)
461 #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
462 static ACPI_INLINE Prototype {return(AE_NOT_CONFIGURED);}
464 #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
465 static ACPI_INLINE Prototype {return(AE_OK);}
467 #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
468 static ACPI_INLINE Prototype {return;}
470 #endif /* !ACPI_REDUCED_HARDWARE */
474 * Error message prototypes (default: error messages enabled).
476 * All interfaces related to error and warning messages
477 * will be configured out of the ACPICA build if the
478 * ACPI_NO_ERROR_MESSAGE flag is defined.
480 #ifndef ACPI_NO_ERROR_MESSAGES
481 #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
485 #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
486 static ACPI_INLINE Prototype {return;}
488 #endif /* ACPI_NO_ERROR_MESSAGES */
492 * Debugging output prototypes (default: no debug output).
494 * All interfaces related to debug output messages
495 * will be configured out of the ACPICA build unless the
496 * ACPI_DEBUG_OUTPUT flag is defined.
498 #ifdef ACPI_DEBUG_OUTPUT
499 #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
503 #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
504 static ACPI_INLINE Prototype {return;}
506 #endif /* ACPI_DEBUG_OUTPUT */
510 * Application prototypes
512 * All interfaces used by application will be configured
513 * out of the ACPICA build unless the ACPI_APPLICATION
516 #ifdef ACPI_APPLICATION
517 #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
521 #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
522 static ACPI_INLINE Prototype {return;}
524 #endif /* ACPI_APPLICATION */
528 * Debugger prototypes
530 * All interfaces used by debugger will be configured
531 * out of the ACPICA build unless the ACPI_DEBUGGER
535 #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
536 ACPI_EXTERNAL_RETURN_OK(Prototype)
538 #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
539 ACPI_EXTERNAL_RETURN_VOID(Prototype)
542 #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
543 static ACPI_INLINE Prototype {return(AE_OK);}
545 #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
546 static ACPI_INLINE Prototype {return;}
548 #endif /* ACPI_DEBUGGER */
551 /*****************************************************************************
553 * ACPICA public interface prototypes
555 ****************************************************************************/
560 ACPI_EXTERNAL_RETURN_STATUS (
561 ACPI_STATUS ACPI_INIT_FUNCTION
562 AcpiInitializeTables (
563 ACPI_TABLE_DESC *InitialStorage,
564 UINT32 InitialTableCount,
565 BOOLEAN AllowResize))
567 ACPI_EXTERNAL_RETURN_STATUS (
568 ACPI_STATUS ACPI_INIT_FUNCTION
569 AcpiInitializeSubsystem (
572 ACPI_EXTERNAL_RETURN_STATUS (
573 ACPI_STATUS ACPI_INIT_FUNCTION
574 AcpiEnableSubsystem (
577 ACPI_EXTERNAL_RETURN_STATUS (
578 ACPI_STATUS ACPI_INIT_FUNCTION
579 AcpiInitializeObjects (
582 ACPI_EXTERNAL_RETURN_STATUS (
583 ACPI_STATUS ACPI_INIT_FUNCTION
589 * Miscellaneous global interfaces
591 ACPI_HW_DEPENDENT_RETURN_STATUS (
596 ACPI_HW_DEPENDENT_RETURN_STATUS (
601 ACPI_EXTERNAL_RETURN_STATUS (
603 AcpiSubsystemStatus (
606 ACPI_EXTERNAL_RETURN_STATUS (
609 ACPI_BUFFER *RetBuffer))
611 ACPI_EXTERNAL_RETURN_STATUS (
614 ACPI_STATISTICS *Stats))
616 ACPI_EXTERNAL_RETURN_PTR (
618 AcpiFormatException (
619 ACPI_STATUS Exception))
621 ACPI_EXTERNAL_RETURN_STATUS (
623 AcpiPurgeCachedObjects (
626 ACPI_EXTERNAL_RETURN_STATUS (
628 AcpiInstallInterface (
629 ACPI_STRING InterfaceName))
631 ACPI_EXTERNAL_RETURN_STATUS (
633 AcpiRemoveInterface (
634 ACPI_STRING InterfaceName))
636 ACPI_EXTERNAL_RETURN_STATUS (
638 AcpiUpdateInterfaces (
641 ACPI_EXTERNAL_RETURN_UINT32 (
643 AcpiCheckAddressRange (
644 ACPI_ADR_SPACE_TYPE SpaceId,
645 ACPI_PHYSICAL_ADDRESS Address,
649 ACPI_EXTERNAL_RETURN_STATUS (
651 AcpiDecodePldBuffer (
654 ACPI_PLD_INFO **ReturnBuffer))
658 * ACPI table load/unload interfaces
660 ACPI_EXTERNAL_RETURN_STATUS (
661 ACPI_STATUS ACPI_INIT_FUNCTION
663 ACPI_PHYSICAL_ADDRESS Address,
666 ACPI_EXTERNAL_RETURN_STATUS (
669 ACPI_TABLE_HEADER *Table))
671 ACPI_EXTERNAL_RETURN_STATUS (
673 AcpiUnloadParentTable (
676 ACPI_EXTERNAL_RETURN_STATUS (
677 ACPI_STATUS ACPI_INIT_FUNCTION
683 * ACPI table manipulation interfaces
685 ACPI_EXTERNAL_RETURN_STATUS (
686 ACPI_STATUS ACPI_INIT_FUNCTION
687 AcpiReallocateRootTable (
690 ACPI_EXTERNAL_RETURN_STATUS (
691 ACPI_STATUS ACPI_INIT_FUNCTION
692 AcpiFindRootPointer (
693 ACPI_PHYSICAL_ADDRESS *RsdpAddress))
695 ACPI_EXTERNAL_RETURN_STATUS (
698 ACPI_STRING Signature,
700 ACPI_TABLE_HEADER *OutTableHeader))
702 ACPI_EXTERNAL_RETURN_STATUS (
705 ACPI_STRING Signature,
707 ACPI_TABLE_HEADER **OutTable))
709 ACPI_EXTERNAL_RETURN_VOID (
712 ACPI_TABLE_HEADER *Table))
714 ACPI_EXTERNAL_RETURN_STATUS (
716 AcpiGetTableByIndex (
718 ACPI_TABLE_HEADER **OutTable))
720 ACPI_EXTERNAL_RETURN_STATUS (
722 AcpiInstallTableHandler (
723 ACPI_TABLE_HANDLER Handler,
726 ACPI_EXTERNAL_RETURN_STATUS (
728 AcpiRemoveTableHandler (
729 ACPI_TABLE_HANDLER Handler))
733 * Namespace and name interfaces
735 ACPI_EXTERNAL_RETURN_STATUS (
738 ACPI_OBJECT_TYPE Type,
739 ACPI_HANDLE StartObject,
741 ACPI_WALK_CALLBACK DescendingCallback,
742 ACPI_WALK_CALLBACK AscendingCallback,
746 ACPI_EXTERNAL_RETURN_STATUS (
750 ACPI_WALK_CALLBACK UserFunction,
754 ACPI_EXTERNAL_RETURN_STATUS (
759 ACPI_BUFFER *RetPathPtr))
761 ACPI_EXTERNAL_RETURN_STATUS (
765 ACPI_STRING Pathname,
766 ACPI_HANDLE *RetHandle))
768 ACPI_EXTERNAL_RETURN_STATUS (
772 ACPI_OBJECT_HANDLER Handler,
775 ACPI_EXTERNAL_RETURN_STATUS (
779 ACPI_OBJECT_HANDLER Handler))
781 ACPI_EXTERNAL_RETURN_STATUS (
785 ACPI_OBJECT_HANDLER Handler,
788 ACPI_EXTERNAL_RETURN_STATUS (
798 * Object manipulation and enumeration
800 ACPI_EXTERNAL_RETURN_STATUS (
804 ACPI_STRING Pathname,
805 ACPI_OBJECT_LIST *ParameterObjects,
806 ACPI_BUFFER *ReturnObjectBuffer))
808 ACPI_EXTERNAL_RETURN_STATUS (
810 AcpiEvaluateObjectTyped (
812 ACPI_STRING Pathname,
813 ACPI_OBJECT_LIST *ExternalParams,
814 ACPI_BUFFER *ReturnBuffer,
815 ACPI_OBJECT_TYPE ReturnType))
817 ACPI_EXTERNAL_RETURN_STATUS (
821 ACPI_DEVICE_INFO **ReturnBuffer))
823 ACPI_EXTERNAL_RETURN_STATUS (
828 ACPI_EXTERNAL_RETURN_STATUS (
831 ACPI_OBJECT_TYPE Type,
834 ACPI_HANDLE *OutHandle))
836 ACPI_EXTERNAL_RETURN_STATUS (
840 ACPI_OBJECT_TYPE *OutType))
842 ACPI_EXTERNAL_RETURN_STATUS (
846 ACPI_HANDLE *OutHandle))
852 ACPI_EXTERNAL_RETURN_STATUS (
854 AcpiInstallInitializationHandler (
855 ACPI_INIT_HANDLER Handler,
858 ACPI_HW_DEPENDENT_RETURN_STATUS (
860 AcpiInstallSciHandler (
861 ACPI_SCI_HANDLER Address,
864 ACPI_HW_DEPENDENT_RETURN_STATUS (
866 AcpiRemoveSciHandler (
867 ACPI_SCI_HANDLER Address))
869 ACPI_HW_DEPENDENT_RETURN_STATUS (
871 AcpiInstallGlobalEventHandler (
872 ACPI_GBL_EVENT_HANDLER Handler,
875 ACPI_HW_DEPENDENT_RETURN_STATUS (
877 AcpiInstallFixedEventHandler (
879 ACPI_EVENT_HANDLER Handler,
882 ACPI_HW_DEPENDENT_RETURN_STATUS (
884 AcpiRemoveFixedEventHandler (
886 ACPI_EVENT_HANDLER Handler))
888 ACPI_HW_DEPENDENT_RETURN_STATUS (
890 AcpiInstallGpeHandler (
891 ACPI_HANDLE GpeDevice,
894 ACPI_GPE_HANDLER Address,
897 ACPI_HW_DEPENDENT_RETURN_STATUS (
899 AcpiInstallGpeRawHandler (
900 ACPI_HANDLE GpeDevice,
903 ACPI_GPE_HANDLER Address,
906 ACPI_HW_DEPENDENT_RETURN_STATUS (
908 AcpiRemoveGpeHandler (
909 ACPI_HANDLE GpeDevice,
911 ACPI_GPE_HANDLER Address))
913 ACPI_EXTERNAL_RETURN_STATUS (
915 AcpiInstallNotifyHandler (
918 ACPI_NOTIFY_HANDLER Handler,
921 ACPI_EXTERNAL_RETURN_STATUS (
923 AcpiRemoveNotifyHandler (
926 ACPI_NOTIFY_HANDLER Handler))
928 ACPI_EXTERNAL_RETURN_STATUS (
930 AcpiInstallAddressSpaceHandler (
932 ACPI_ADR_SPACE_TYPE SpaceId,
933 ACPI_ADR_SPACE_HANDLER Handler,
934 ACPI_ADR_SPACE_SETUP Setup,
937 ACPI_EXTERNAL_RETURN_STATUS (
939 AcpiRemoveAddressSpaceHandler (
941 ACPI_ADR_SPACE_TYPE SpaceId,
942 ACPI_ADR_SPACE_HANDLER Handler))
944 ACPI_EXTERNAL_RETURN_STATUS (
946 AcpiInstallExceptionHandler (
947 ACPI_EXCEPTION_HANDLER Handler))
949 ACPI_EXTERNAL_RETURN_STATUS (
951 AcpiInstallInterfaceHandler (
952 ACPI_INTERFACE_HANDLER Handler))
956 * Global Lock interfaces
958 ACPI_HW_DEPENDENT_RETURN_STATUS (
960 AcpiAcquireGlobalLock (
964 ACPI_HW_DEPENDENT_RETURN_STATUS (
966 AcpiReleaseGlobalLock (
971 * Interfaces to AML mutex objects
973 ACPI_EXTERNAL_RETURN_STATUS (
977 ACPI_STRING Pathname,
980 ACPI_EXTERNAL_RETURN_STATUS (
984 ACPI_STRING Pathname))
988 * Fixed Event interfaces
990 ACPI_HW_DEPENDENT_RETURN_STATUS (
996 ACPI_HW_DEPENDENT_RETURN_STATUS (
1002 ACPI_HW_DEPENDENT_RETURN_STATUS (
1007 ACPI_HW_DEPENDENT_RETURN_STATUS (
1009 AcpiGetEventStatus (
1011 ACPI_EVENT_STATUS *EventStatus))
1015 * General Purpose Event (GPE) Interfaces
1017 ACPI_HW_DEPENDENT_RETURN_STATUS (
1022 ACPI_HW_DEPENDENT_RETURN_STATUS (
1025 ACPI_HANDLE GpeDevice,
1028 ACPI_HW_DEPENDENT_RETURN_STATUS (
1031 ACPI_HANDLE GpeDevice,
1034 ACPI_HW_DEPENDENT_RETURN_STATUS (
1037 ACPI_HANDLE GpeDevice,
1040 ACPI_HW_DEPENDENT_RETURN_STATUS (
1043 ACPI_HANDLE GpeDevice,
1047 ACPI_HW_DEPENDENT_RETURN_STATUS (
1050 ACPI_HANDLE GpeDevice,
1053 ACPI_HW_DEPENDENT_RETURN_STATUS (
1056 ACPI_HANDLE GpeDevice,
1060 ACPI_HW_DEPENDENT_RETURN_STATUS (
1062 AcpiMarkGpeForWake (
1063 ACPI_HANDLE GpeDevice,
1066 ACPI_HW_DEPENDENT_RETURN_STATUS (
1068 AcpiSetupGpeForWake (
1069 ACPI_HANDLE ParentDevice,
1070 ACPI_HANDLE GpeDevice,
1073 ACPI_HW_DEPENDENT_RETURN_STATUS (
1075 AcpiSetGpeWakeMask (
1076 ACPI_HANDLE GpeDevice,
1080 ACPI_HW_DEPENDENT_RETURN_STATUS (
1083 ACPI_HANDLE GpeDevice,
1085 ACPI_EVENT_STATUS *EventStatus))
1087 ACPI_HW_DEPENDENT_RETURN_STATUS (
1089 AcpiDisableAllGpes (
1092 ACPI_HW_DEPENDENT_RETURN_STATUS (
1094 AcpiEnableAllRuntimeGpes (
1097 ACPI_HW_DEPENDENT_RETURN_STATUS (
1099 AcpiEnableAllWakeupGpes (
1102 ACPI_HW_DEPENDENT_RETURN_STATUS (
1106 ACPI_HANDLE *GpeDevice))
1108 ACPI_HW_DEPENDENT_RETURN_STATUS (
1110 AcpiInstallGpeBlock (
1111 ACPI_HANDLE GpeDevice,
1112 ACPI_GENERIC_ADDRESS *GpeBlockAddress,
1113 UINT32 RegisterCount,
1114 UINT32 InterruptNumber))
1116 ACPI_HW_DEPENDENT_RETURN_STATUS (
1118 AcpiRemoveGpeBlock (
1119 ACPI_HANDLE GpeDevice))
1123 * Resource interfaces
1126 ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) (
1127 ACPI_RESOURCE *Resource,
1130 ACPI_EXTERNAL_RETURN_STATUS (
1132 AcpiGetVendorResource (
1135 ACPI_VENDOR_UUID *Uuid,
1136 ACPI_BUFFER *RetBuffer))
1138 ACPI_EXTERNAL_RETURN_STATUS (
1140 AcpiGetCurrentResources (
1142 ACPI_BUFFER *RetBuffer))
1144 ACPI_EXTERNAL_RETURN_STATUS (
1146 AcpiGetPossibleResources (
1148 ACPI_BUFFER *RetBuffer))
1150 ACPI_EXTERNAL_RETURN_STATUS (
1152 AcpiGetEventResources (
1153 ACPI_HANDLE DeviceHandle,
1154 ACPI_BUFFER *RetBuffer))
1156 ACPI_EXTERNAL_RETURN_STATUS (
1158 AcpiWalkResourceBuffer (
1159 ACPI_BUFFER *Buffer,
1160 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
1163 ACPI_EXTERNAL_RETURN_STATUS (
1168 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
1171 ACPI_EXTERNAL_RETURN_STATUS (
1173 AcpiSetCurrentResources (
1175 ACPI_BUFFER *InBuffer))
1177 ACPI_EXTERNAL_RETURN_STATUS (
1179 AcpiGetIrqRoutingTable (
1181 ACPI_BUFFER *RetBuffer))
1183 ACPI_EXTERNAL_RETURN_STATUS (
1185 AcpiResourceToAddress64 (
1186 ACPI_RESOURCE *Resource,
1187 ACPI_RESOURCE_ADDRESS64 *Out))
1189 ACPI_EXTERNAL_RETURN_STATUS (
1191 AcpiBufferToResource (
1193 UINT16 AmlBufferLength,
1194 ACPI_RESOURCE **ResourcePtr))
1198 * Hardware (ACPI device) interfaces
1200 ACPI_EXTERNAL_RETURN_STATUS (
1205 ACPI_EXTERNAL_RETURN_STATUS (
1209 ACPI_GENERIC_ADDRESS *Reg))
1211 ACPI_EXTERNAL_RETURN_STATUS (
1215 ACPI_GENERIC_ADDRESS *Reg))
1217 ACPI_HW_DEPENDENT_RETURN_STATUS (
1219 AcpiReadBitRegister (
1221 UINT32 *ReturnValue))
1223 ACPI_HW_DEPENDENT_RETURN_STATUS (
1225 AcpiWriteBitRegister (
1231 * Sleep/Wake interfaces
1233 ACPI_EXTERNAL_RETURN_STATUS (
1235 AcpiGetSleepTypeData (
1240 ACPI_EXTERNAL_RETURN_STATUS (
1242 AcpiEnterSleepStatePrep (
1245 ACPI_EXTERNAL_RETURN_STATUS (
1247 AcpiEnterSleepState (
1250 ACPI_HW_DEPENDENT_RETURN_STATUS (
1252 AcpiEnterSleepStateS4bios (
1255 ACPI_EXTERNAL_RETURN_STATUS (
1257 AcpiLeaveSleepStatePrep (
1260 ACPI_EXTERNAL_RETURN_STATUS (
1262 AcpiLeaveSleepState (
1265 ACPI_HW_DEPENDENT_RETURN_STATUS (
1267 AcpiSetFirmwareWakingVector (
1268 ACPI_PHYSICAL_ADDRESS PhysicalAddress,
1269 ACPI_PHYSICAL_ADDRESS PhysicalAddress64))
1273 * ACPI Timer interfaces
1275 ACPI_HW_DEPENDENT_RETURN_STATUS (
1277 AcpiGetTimerResolution (
1278 UINT32 *Resolution))
1280 ACPI_HW_DEPENDENT_RETURN_STATUS (
1285 ACPI_HW_DEPENDENT_RETURN_STATUS (
1287 AcpiGetTimerDuration (
1290 UINT32 *TimeElapsed))
1294 * Error/Warning output
1296 ACPI_MSG_DEPENDENT_RETURN_VOID (
1298 void ACPI_INTERNAL_VAR_XFACE
1300 const char *ModuleName,
1305 ACPI_MSG_DEPENDENT_RETURN_VOID (
1307 void ACPI_INTERNAL_VAR_XFACE
1309 const char *ModuleName,
1315 ACPI_MSG_DEPENDENT_RETURN_VOID (
1317 void ACPI_INTERNAL_VAR_XFACE
1319 const char *ModuleName,
1324 ACPI_MSG_DEPENDENT_RETURN_VOID (
1326 void ACPI_INTERNAL_VAR_XFACE
1331 ACPI_MSG_DEPENDENT_RETURN_VOID (
1333 void ACPI_INTERNAL_VAR_XFACE
1335 const char *ModuleName,
1340 ACPI_MSG_DEPENDENT_RETURN_VOID (
1342 void ACPI_INTERNAL_VAR_XFACE
1344 const char *ModuleName,
1353 ACPI_DBG_DEPENDENT_RETURN_VOID (
1355 void ACPI_INTERNAL_VAR_XFACE
1357 UINT32 RequestedDebugLevel,
1359 const char *FunctionName,
1360 const char *ModuleName,
1365 ACPI_DBG_DEPENDENT_RETURN_VOID (
1367 void ACPI_INTERNAL_VAR_XFACE
1369 UINT32 RequestedDebugLevel,
1371 const char *FunctionName,
1372 const char *ModuleName,
1377 ACPI_DBG_DEPENDENT_RETURN_VOID (
1380 ACPI_TRACE_EVENT_TYPE Type,
1386 AcpiInitializeDebugger (
1390 AcpiTerminateDebugger (
1398 AcpiSetDebuggerThreadId (
1399 ACPI_THREAD_ID ThreadId);
1401 #endif /* __ACXFACE_H__ */