1 /******************************************************************************
3 * Name: acpixf.h - External interfaces to the ACPI subsystem
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2016, Intel Corp.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
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.
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.
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.
47 /* Current ACPICA subsystem version in YYYYMMDD format */
49 #define ACPI_CA_VERSION 0x20160831
57 /*****************************************************************************
59 * Macros used for ACPICA globals and configuration
61 ****************************************************************************/
64 * Ensure that global variables are defined and initialized only once.
66 * The use of these macros allows for a single list of globals (here)
67 * in order to simplify maintenance of the code.
69 #ifdef DEFINE_ACPI_GLOBALS
70 #define ACPI_GLOBAL(type,name) \
74 #define ACPI_INIT_GLOBAL(type,name,value) \
79 #define ACPI_GLOBAL(type,name) \
83 #ifndef ACPI_INIT_GLOBAL
84 #define ACPI_INIT_GLOBAL(type,name,value) \
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.
94 #ifndef ACPI_EXTERNAL_RETURN_STATUS
95 #define ACPI_EXTERNAL_RETURN_STATUS(Prototype) \
99 #ifndef ACPI_EXTERNAL_RETURN_OK
100 #define ACPI_EXTERNAL_RETURN_OK(Prototype) \
104 #ifndef ACPI_EXTERNAL_RETURN_VOID
105 #define ACPI_EXTERNAL_RETURN_VOID(Prototype) \
109 #ifndef ACPI_EXTERNAL_RETURN_UINT32
110 #define ACPI_EXTERNAL_RETURN_UINT32(Prototype) \
114 #ifndef ACPI_EXTERNAL_RETURN_PTR
115 #define ACPI_EXTERNAL_RETURN_PTR(Prototype) \
120 /*****************************************************************************
122 * Public globals and runtime configuration options
124 ****************************************************************************/
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.
131 * Currently, these features are enabled by this flag:
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
140 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableInterpreterSlack, FALSE);
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.
149 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_AutoSerializeMethods, TRUE);
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.
156 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_CreateOsiMethod, TRUE);
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.
162 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_UseDefaultRegisterWidths, TRUE);
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
171 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_VerifyTableChecksum, TRUE);
174 * Optionally enable output from the AML Debug Object.
176 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableAmlDebugObject, FALSE);
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
184 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_CopyDsdtLocally, FALSE);
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.
192 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DoNotUseXsdt, FALSE);
195 * Optionally support group module level code.
197 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_GroupModuleLevelCode, FALSE);
200 * Optionally support module level code by parsing the entire table as
201 * a TermList. Default is FALSE, do not execute entire table until some
202 * lock order issues are fixed.
204 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_ParseTableAsTermList, FALSE);
207 * Optionally use 32-bit FADT addresses if and when there is a conflict
208 * (address mismatch) between the 32-bit and 64-bit versions of the
209 * address. Although ACPICA adheres to the ACPI specification which
210 * requires the use of the corresponding 64-bit address if it is non-zero,
211 * some machines have been found to have a corrupted non-zero 64-bit
212 * address. Default is FALSE, do not favor the 32-bit addresses.
214 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFadtAddresses, FALSE);
217 * Optionally use 32-bit FACS table addresses.
218 * It is reported that some platforms fail to resume from system suspending
219 * if 64-bit FACS table address is selected:
220 * https://bugzilla.kernel.org/show_bug.cgi?id=74021
221 * Default is TRUE, favor the 32-bit addresses.
223 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFacsAddresses, TRUE);
226 * Optionally truncate I/O addresses to 16 bits. Provides compatibility
227 * with other ACPI implementations. NOTE: During ACPICA initialization,
228 * this value is set to TRUE if any Windows OSI strings have been
229 * requested by the BIOS.
231 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_TruncateIoAddresses, FALSE);
234 * Disable runtime checking and repair of values returned by control methods.
235 * Use only if the repair is causing a problem on a particular machine.
237 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableAutoRepair, FALSE);
240 * Optionally do not install any SSDTs from the RSDT/XSDT during initialization.
241 * This can be useful for debugging ACPI problems on some machines.
243 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableSsdtTableInstall, FALSE);
246 * Optionally enable runtime namespace override.
248 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_RuntimeNamespaceOverride, TRUE);
251 * We keep track of the latest version of Windows that has been requested by
252 * the BIOS. ACPI 5.0.
254 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_OsiData, 0);
257 * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning
258 * that the ACPI hardware is no longer required. A flag in the FADT indicates
259 * a reduced HW machine, and that flag is duplicated here for convenience.
261 ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_ReducedHardware, FALSE);
264 * This mechanism is used to trace a specified AML method. The method is
265 * traced each time it is executed.
267 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceFlags, 0);
268 ACPI_INIT_GLOBAL (const char *, AcpiGbl_TraceMethodName, NULL);
269 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLevel, ACPI_TRACE_LEVEL_DEFAULT);
270 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLayer, ACPI_TRACE_LAYER_DEFAULT);
273 * Runtime configuration of debug output control masks. We want the debug
274 * switches statically initialized so they are already set when the debugger
277 #ifdef ACPI_DEBUG_OUTPUT
278 ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_DEBUG_DEFAULT);
280 ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_NORMAL_DEFAULT);
282 ACPI_INIT_GLOBAL (UINT32, AcpiDbgLayer, ACPI_COMPONENT_DEFAULT);
284 /* Optionally enable timer output with Debug Object output */
286 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisplayDebugTimer, FALSE);
289 * Other miscellaneous globals
291 ACPI_GLOBAL (ACPI_TABLE_FADT, AcpiGbl_FADT);
292 ACPI_GLOBAL (UINT32, AcpiCurrentGpeCount);
293 ACPI_GLOBAL (BOOLEAN, AcpiGbl_SystemAwakeAndRunning);
296 /*****************************************************************************
298 * ACPICA public interface configuration.
300 * Interfaces that are configured out of the ACPICA build are replaced
301 * by inlined stubs by default.
303 ****************************************************************************/
306 * Hardware-reduced prototypes (default: Not hardware reduced).
308 * All ACPICA hardware-related interfaces that use these macros will be
309 * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag
312 * Note: This static build option for reduced hardware is intended to
313 * reduce ACPICA code size if desired or necessary. However, even if this
314 * option is not specified, the runtime behavior of ACPICA is dependent
315 * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set,
316 * the flag will enable similar behavior -- ACPICA will not attempt
317 * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.)
319 #if (!ACPI_REDUCED_HARDWARE)
320 #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
321 ACPI_EXTERNAL_RETURN_STATUS(Prototype)
323 #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
324 ACPI_EXTERNAL_RETURN_OK(Prototype)
326 #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
327 ACPI_EXTERNAL_RETURN_VOID(Prototype)
330 #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
331 static ACPI_INLINE Prototype {return(AE_NOT_CONFIGURED);}
333 #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
334 static ACPI_INLINE Prototype {return(AE_OK);}
336 #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
337 static ACPI_INLINE Prototype {return;}
339 #endif /* !ACPI_REDUCED_HARDWARE */
343 * Error message prototypes (default: error messages enabled).
345 * All interfaces related to error and warning messages
346 * will be configured out of the ACPICA build if the
347 * ACPI_NO_ERROR_MESSAGE flag is defined.
349 #ifndef ACPI_NO_ERROR_MESSAGES
350 #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
354 #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
355 static ACPI_INLINE Prototype {return;}
357 #endif /* ACPI_NO_ERROR_MESSAGES */
361 * Debugging output prototypes (default: no debug output).
363 * All interfaces related to debug output messages
364 * will be configured out of the ACPICA build unless the
365 * ACPI_DEBUG_OUTPUT flag is defined.
367 #ifdef ACPI_DEBUG_OUTPUT
368 #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
372 #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
373 static ACPI_INLINE Prototype {return;}
375 #endif /* ACPI_DEBUG_OUTPUT */
379 * Application prototypes
381 * All interfaces used by application will be configured
382 * out of the ACPICA build unless the ACPI_APPLICATION
385 #ifdef ACPI_APPLICATION
386 #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
390 #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
391 static ACPI_INLINE Prototype {return;}
393 #endif /* ACPI_APPLICATION */
397 * Debugger prototypes
399 * All interfaces used by debugger will be configured
400 * out of the ACPICA build unless the ACPI_DEBUGGER
404 #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
405 ACPI_EXTERNAL_RETURN_OK(Prototype)
407 #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
408 ACPI_EXTERNAL_RETURN_VOID(Prototype)
411 #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
412 static ACPI_INLINE Prototype {return(AE_OK);}
414 #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
415 static ACPI_INLINE Prototype {return;}
417 #endif /* ACPI_DEBUGGER */
420 /*****************************************************************************
422 * ACPICA public interface prototypes
424 ****************************************************************************/
429 ACPI_EXTERNAL_RETURN_STATUS (
430 ACPI_STATUS ACPI_INIT_FUNCTION
431 AcpiInitializeTables (
432 ACPI_TABLE_DESC *InitialStorage,
433 UINT32 InitialTableCount,
434 BOOLEAN AllowResize))
436 ACPI_EXTERNAL_RETURN_STATUS (
437 ACPI_STATUS ACPI_INIT_FUNCTION
438 AcpiInitializeSubsystem (
441 ACPI_EXTERNAL_RETURN_STATUS (
442 ACPI_STATUS ACPI_INIT_FUNCTION
443 AcpiEnableSubsystem (
446 ACPI_EXTERNAL_RETURN_STATUS (
447 ACPI_STATUS ACPI_INIT_FUNCTION
448 AcpiInitializeObjects (
451 ACPI_EXTERNAL_RETURN_STATUS (
452 ACPI_STATUS ACPI_INIT_FUNCTION
458 * Miscellaneous global interfaces
460 ACPI_HW_DEPENDENT_RETURN_STATUS (
465 ACPI_HW_DEPENDENT_RETURN_STATUS (
470 ACPI_EXTERNAL_RETURN_STATUS (
472 AcpiSubsystemStatus (
475 ACPI_EXTERNAL_RETURN_STATUS (
478 ACPI_BUFFER *RetBuffer))
480 ACPI_EXTERNAL_RETURN_STATUS (
483 ACPI_STATISTICS *Stats))
485 ACPI_EXTERNAL_RETURN_PTR (
487 AcpiFormatException (
488 ACPI_STATUS Exception))
490 ACPI_EXTERNAL_RETURN_STATUS (
492 AcpiPurgeCachedObjects (
495 ACPI_EXTERNAL_RETURN_STATUS (
497 AcpiInstallInterface (
498 ACPI_STRING InterfaceName))
500 ACPI_EXTERNAL_RETURN_STATUS (
502 AcpiRemoveInterface (
503 ACPI_STRING InterfaceName))
505 ACPI_EXTERNAL_RETURN_STATUS (
507 AcpiUpdateInterfaces (
510 ACPI_EXTERNAL_RETURN_UINT32 (
512 AcpiCheckAddressRange (
513 ACPI_ADR_SPACE_TYPE SpaceId,
514 ACPI_PHYSICAL_ADDRESS Address,
518 ACPI_EXTERNAL_RETURN_STATUS (
520 AcpiDecodePldBuffer (
523 ACPI_PLD_INFO **ReturnBuffer))
527 * ACPI table load/unload interfaces
529 ACPI_EXTERNAL_RETURN_STATUS (
530 ACPI_STATUS ACPI_INIT_FUNCTION
532 ACPI_PHYSICAL_ADDRESS Address,
535 ACPI_EXTERNAL_RETURN_STATUS (
538 ACPI_TABLE_HEADER *Table))
540 ACPI_EXTERNAL_RETURN_STATUS (
542 AcpiUnloadParentTable (
545 ACPI_EXTERNAL_RETURN_STATUS (
546 ACPI_STATUS ACPI_INIT_FUNCTION
552 * ACPI table manipulation interfaces
554 ACPI_EXTERNAL_RETURN_STATUS (
555 ACPI_STATUS ACPI_INIT_FUNCTION
556 AcpiReallocateRootTable (
559 ACPI_EXTERNAL_RETURN_STATUS (
560 ACPI_STATUS ACPI_INIT_FUNCTION
561 AcpiFindRootPointer (
562 ACPI_PHYSICAL_ADDRESS *RsdpAddress))
564 ACPI_EXTERNAL_RETURN_STATUS (
567 ACPI_STRING Signature,
569 ACPI_TABLE_HEADER *OutTableHeader))
571 ACPI_EXTERNAL_RETURN_STATUS (
574 ACPI_STRING Signature,
576 ACPI_TABLE_HEADER **OutTable))
578 ACPI_EXTERNAL_RETURN_STATUS (
580 AcpiGetTableByIndex (
582 ACPI_TABLE_HEADER **OutTable))
584 ACPI_EXTERNAL_RETURN_STATUS (
586 AcpiInstallTableHandler (
587 ACPI_TABLE_HANDLER Handler,
590 ACPI_EXTERNAL_RETURN_STATUS (
592 AcpiRemoveTableHandler (
593 ACPI_TABLE_HANDLER Handler))
597 * Namespace and name interfaces
599 ACPI_EXTERNAL_RETURN_STATUS (
602 ACPI_OBJECT_TYPE Type,
603 ACPI_HANDLE StartObject,
605 ACPI_WALK_CALLBACK DescendingCallback,
606 ACPI_WALK_CALLBACK AscendingCallback,
610 ACPI_EXTERNAL_RETURN_STATUS (
614 ACPI_WALK_CALLBACK UserFunction,
618 ACPI_EXTERNAL_RETURN_STATUS (
623 ACPI_BUFFER *RetPathPtr))
625 ACPI_EXTERNAL_RETURN_STATUS (
629 ACPI_STRING Pathname,
630 ACPI_HANDLE *RetHandle))
632 ACPI_EXTERNAL_RETURN_STATUS (
636 ACPI_OBJECT_HANDLER Handler,
639 ACPI_EXTERNAL_RETURN_STATUS (
643 ACPI_OBJECT_HANDLER Handler))
645 ACPI_EXTERNAL_RETURN_STATUS (
649 ACPI_OBJECT_HANDLER Handler,
652 ACPI_EXTERNAL_RETURN_STATUS (
662 * Object manipulation and enumeration
664 ACPI_EXTERNAL_RETURN_STATUS (
668 ACPI_STRING Pathname,
669 ACPI_OBJECT_LIST *ParameterObjects,
670 ACPI_BUFFER *ReturnObjectBuffer))
672 ACPI_EXTERNAL_RETURN_STATUS (
674 AcpiEvaluateObjectTyped (
676 ACPI_STRING Pathname,
677 ACPI_OBJECT_LIST *ExternalParams,
678 ACPI_BUFFER *ReturnBuffer,
679 ACPI_OBJECT_TYPE ReturnType))
681 ACPI_EXTERNAL_RETURN_STATUS (
685 ACPI_DEVICE_INFO **ReturnBuffer))
687 ACPI_EXTERNAL_RETURN_STATUS (
692 ACPI_EXTERNAL_RETURN_STATUS (
695 ACPI_OBJECT_TYPE Type,
698 ACPI_HANDLE *OutHandle))
700 ACPI_EXTERNAL_RETURN_STATUS (
704 ACPI_OBJECT_TYPE *OutType))
706 ACPI_EXTERNAL_RETURN_STATUS (
710 ACPI_HANDLE *OutHandle))
716 ACPI_EXTERNAL_RETURN_STATUS (
718 AcpiInstallInitializationHandler (
719 ACPI_INIT_HANDLER Handler,
722 ACPI_HW_DEPENDENT_RETURN_STATUS (
724 AcpiInstallSciHandler (
725 ACPI_SCI_HANDLER Address,
728 ACPI_HW_DEPENDENT_RETURN_STATUS (
730 AcpiRemoveSciHandler (
731 ACPI_SCI_HANDLER Address))
733 ACPI_HW_DEPENDENT_RETURN_STATUS (
735 AcpiInstallGlobalEventHandler (
736 ACPI_GBL_EVENT_HANDLER Handler,
739 ACPI_HW_DEPENDENT_RETURN_STATUS (
741 AcpiInstallFixedEventHandler (
743 ACPI_EVENT_HANDLER Handler,
746 ACPI_HW_DEPENDENT_RETURN_STATUS (
748 AcpiRemoveFixedEventHandler (
750 ACPI_EVENT_HANDLER Handler))
752 ACPI_HW_DEPENDENT_RETURN_STATUS (
754 AcpiInstallGpeHandler (
755 ACPI_HANDLE GpeDevice,
758 ACPI_GPE_HANDLER Address,
761 ACPI_HW_DEPENDENT_RETURN_STATUS (
763 AcpiInstallGpeRawHandler (
764 ACPI_HANDLE GpeDevice,
767 ACPI_GPE_HANDLER Address,
770 ACPI_HW_DEPENDENT_RETURN_STATUS (
772 AcpiRemoveGpeHandler (
773 ACPI_HANDLE GpeDevice,
775 ACPI_GPE_HANDLER Address))
777 ACPI_EXTERNAL_RETURN_STATUS (
779 AcpiInstallNotifyHandler (
782 ACPI_NOTIFY_HANDLER Handler,
785 ACPI_EXTERNAL_RETURN_STATUS (
787 AcpiRemoveNotifyHandler (
790 ACPI_NOTIFY_HANDLER Handler))
792 ACPI_EXTERNAL_RETURN_STATUS (
794 AcpiInstallAddressSpaceHandler (
796 ACPI_ADR_SPACE_TYPE SpaceId,
797 ACPI_ADR_SPACE_HANDLER Handler,
798 ACPI_ADR_SPACE_SETUP Setup,
801 ACPI_EXTERNAL_RETURN_STATUS (
803 AcpiRemoveAddressSpaceHandler (
805 ACPI_ADR_SPACE_TYPE SpaceId,
806 ACPI_ADR_SPACE_HANDLER Handler))
808 ACPI_EXTERNAL_RETURN_STATUS (
810 AcpiInstallExceptionHandler (
811 ACPI_EXCEPTION_HANDLER Handler))
813 ACPI_EXTERNAL_RETURN_STATUS (
815 AcpiInstallInterfaceHandler (
816 ACPI_INTERFACE_HANDLER Handler))
820 * Global Lock interfaces
822 ACPI_HW_DEPENDENT_RETURN_STATUS (
824 AcpiAcquireGlobalLock (
828 ACPI_HW_DEPENDENT_RETURN_STATUS (
830 AcpiReleaseGlobalLock (
835 * Interfaces to AML mutex objects
837 ACPI_EXTERNAL_RETURN_STATUS (
841 ACPI_STRING Pathname,
844 ACPI_EXTERNAL_RETURN_STATUS (
848 ACPI_STRING Pathname))
852 * Fixed Event interfaces
854 ACPI_HW_DEPENDENT_RETURN_STATUS (
860 ACPI_HW_DEPENDENT_RETURN_STATUS (
866 ACPI_HW_DEPENDENT_RETURN_STATUS (
871 ACPI_HW_DEPENDENT_RETURN_STATUS (
875 ACPI_EVENT_STATUS *EventStatus))
879 * General Purpose Event (GPE) Interfaces
881 ACPI_HW_DEPENDENT_RETURN_STATUS (
886 ACPI_HW_DEPENDENT_RETURN_STATUS (
889 ACPI_HANDLE GpeDevice,
892 ACPI_HW_DEPENDENT_RETURN_STATUS (
895 ACPI_HANDLE GpeDevice,
898 ACPI_HW_DEPENDENT_RETURN_STATUS (
901 ACPI_HANDLE GpeDevice,
904 ACPI_HW_DEPENDENT_RETURN_STATUS (
907 ACPI_HANDLE GpeDevice,
911 ACPI_HW_DEPENDENT_RETURN_STATUS (
914 ACPI_HANDLE GpeDevice,
917 ACPI_HW_DEPENDENT_RETURN_STATUS (
920 ACPI_HANDLE GpeDevice,
924 ACPI_HW_DEPENDENT_RETURN_STATUS (
927 ACPI_HANDLE GpeDevice,
930 ACPI_HW_DEPENDENT_RETURN_STATUS (
932 AcpiSetupGpeForWake (
933 ACPI_HANDLE ParentDevice,
934 ACPI_HANDLE GpeDevice,
937 ACPI_HW_DEPENDENT_RETURN_STATUS (
940 ACPI_HANDLE GpeDevice,
944 ACPI_HW_DEPENDENT_RETURN_STATUS (
947 ACPI_HANDLE GpeDevice,
949 ACPI_EVENT_STATUS *EventStatus))
951 ACPI_HW_DEPENDENT_RETURN_STATUS (
956 ACPI_HW_DEPENDENT_RETURN_STATUS (
958 AcpiEnableAllRuntimeGpes (
961 ACPI_HW_DEPENDENT_RETURN_STATUS (
963 AcpiEnableAllWakeupGpes (
966 ACPI_HW_DEPENDENT_RETURN_STATUS (
970 ACPI_HANDLE *GpeDevice))
972 ACPI_HW_DEPENDENT_RETURN_STATUS (
974 AcpiInstallGpeBlock (
975 ACPI_HANDLE GpeDevice,
976 ACPI_GENERIC_ADDRESS *GpeBlockAddress,
977 UINT32 RegisterCount,
978 UINT32 InterruptNumber))
980 ACPI_HW_DEPENDENT_RETURN_STATUS (
983 ACPI_HANDLE GpeDevice))
987 * Resource interfaces
990 ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) (
991 ACPI_RESOURCE *Resource,
994 ACPI_EXTERNAL_RETURN_STATUS (
996 AcpiGetVendorResource (
999 ACPI_VENDOR_UUID *Uuid,
1000 ACPI_BUFFER *RetBuffer))
1002 ACPI_EXTERNAL_RETURN_STATUS (
1004 AcpiGetCurrentResources (
1006 ACPI_BUFFER *RetBuffer))
1008 ACPI_EXTERNAL_RETURN_STATUS (
1010 AcpiGetPossibleResources (
1012 ACPI_BUFFER *RetBuffer))
1014 ACPI_EXTERNAL_RETURN_STATUS (
1016 AcpiGetEventResources (
1017 ACPI_HANDLE DeviceHandle,
1018 ACPI_BUFFER *RetBuffer))
1020 ACPI_EXTERNAL_RETURN_STATUS (
1022 AcpiWalkResourceBuffer (
1023 ACPI_BUFFER *Buffer,
1024 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
1027 ACPI_EXTERNAL_RETURN_STATUS (
1032 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
1035 ACPI_EXTERNAL_RETURN_STATUS (
1037 AcpiSetCurrentResources (
1039 ACPI_BUFFER *InBuffer))
1041 ACPI_EXTERNAL_RETURN_STATUS (
1043 AcpiGetIrqRoutingTable (
1045 ACPI_BUFFER *RetBuffer))
1047 ACPI_EXTERNAL_RETURN_STATUS (
1049 AcpiResourceToAddress64 (
1050 ACPI_RESOURCE *Resource,
1051 ACPI_RESOURCE_ADDRESS64 *Out))
1053 ACPI_EXTERNAL_RETURN_STATUS (
1055 AcpiBufferToResource (
1057 UINT16 AmlBufferLength,
1058 ACPI_RESOURCE **ResourcePtr))
1062 * Hardware (ACPI device) interfaces
1064 ACPI_EXTERNAL_RETURN_STATUS (
1069 ACPI_EXTERNAL_RETURN_STATUS (
1073 ACPI_GENERIC_ADDRESS *Reg))
1075 ACPI_EXTERNAL_RETURN_STATUS (
1079 ACPI_GENERIC_ADDRESS *Reg))
1081 ACPI_HW_DEPENDENT_RETURN_STATUS (
1083 AcpiReadBitRegister (
1085 UINT32 *ReturnValue))
1087 ACPI_HW_DEPENDENT_RETURN_STATUS (
1089 AcpiWriteBitRegister (
1095 * Sleep/Wake interfaces
1097 ACPI_EXTERNAL_RETURN_STATUS (
1099 AcpiGetSleepTypeData (
1104 ACPI_EXTERNAL_RETURN_STATUS (
1106 AcpiEnterSleepStatePrep (
1109 ACPI_EXTERNAL_RETURN_STATUS (
1111 AcpiEnterSleepState (
1114 ACPI_HW_DEPENDENT_RETURN_STATUS (
1116 AcpiEnterSleepStateS4bios (
1119 ACPI_EXTERNAL_RETURN_STATUS (
1121 AcpiLeaveSleepStatePrep (
1124 ACPI_EXTERNAL_RETURN_STATUS (
1126 AcpiLeaveSleepState (
1129 ACPI_HW_DEPENDENT_RETURN_STATUS (
1131 AcpiSetFirmwareWakingVector (
1132 ACPI_PHYSICAL_ADDRESS PhysicalAddress,
1133 ACPI_PHYSICAL_ADDRESS PhysicalAddress64))
1137 * ACPI Timer interfaces
1139 ACPI_HW_DEPENDENT_RETURN_STATUS (
1141 AcpiGetTimerResolution (
1142 UINT32 *Resolution))
1144 ACPI_HW_DEPENDENT_RETURN_STATUS (
1149 ACPI_HW_DEPENDENT_RETURN_STATUS (
1151 AcpiGetTimerDuration (
1154 UINT32 *TimeElapsed))
1158 * Error/Warning output
1160 ACPI_MSG_DEPENDENT_RETURN_VOID (
1162 void ACPI_INTERNAL_VAR_XFACE
1164 const char *ModuleName,
1169 ACPI_MSG_DEPENDENT_RETURN_VOID (
1171 void ACPI_INTERNAL_VAR_XFACE
1173 const char *ModuleName,
1179 ACPI_MSG_DEPENDENT_RETURN_VOID (
1181 void ACPI_INTERNAL_VAR_XFACE
1183 const char *ModuleName,
1188 ACPI_MSG_DEPENDENT_RETURN_VOID (
1190 void ACPI_INTERNAL_VAR_XFACE
1195 ACPI_MSG_DEPENDENT_RETURN_VOID (
1197 void ACPI_INTERNAL_VAR_XFACE
1199 const char *ModuleName,
1204 ACPI_MSG_DEPENDENT_RETURN_VOID (
1206 void ACPI_INTERNAL_VAR_XFACE
1208 const char *ModuleName,
1217 ACPI_DBG_DEPENDENT_RETURN_VOID (
1219 void ACPI_INTERNAL_VAR_XFACE
1221 UINT32 RequestedDebugLevel,
1223 const char *FunctionName,
1224 const char *ModuleName,
1229 ACPI_DBG_DEPENDENT_RETURN_VOID (
1231 void ACPI_INTERNAL_VAR_XFACE
1233 UINT32 RequestedDebugLevel,
1235 const char *FunctionName,
1236 const char *ModuleName,
1241 ACPI_DBG_DEPENDENT_RETURN_VOID (
1244 ACPI_TRACE_EVENT_TYPE Type,
1250 AcpiInitializeDebugger (
1254 AcpiTerminateDebugger (
1258 AcpiSetDebuggerThreadId (
1259 ACPI_THREAD_ID ThreadId);
1261 #endif /* __ACXFACE_H__ */