1 /******************************************************************************
3 * Name: acpixf.h - External interfaces to the ACPI subsystem
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2015, 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 0x20150619
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 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.
202 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFadtAddresses, FALSE);
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.
211 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFacsAddresses, TRUE);
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.
219 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_TruncateIoAddresses, FALSE);
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.
225 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableAutoRepair, FALSE);
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.
231 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableSsdtTableInstall, FALSE);
234 * Optionally enable runtime namespace override.
236 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_RuntimeNamespaceOverride, TRUE);
239 * We keep track of the latest version of Windows that has been requested by
240 * the BIOS. ACPI 5.0.
242 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_OsiData, 0);
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.
249 ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_ReducedHardware, FALSE);
252 * This mechanism is used to trace a specified AML method. The method is
253 * traced each time it is executed.
255 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceFlags, 0);
256 ACPI_INIT_GLOBAL (ACPI_NAME, AcpiGbl_TraceMethodName, 0);
259 * Runtime configuration of debug output control masks. We want the debug
260 * switches statically initialized so they are already set when the debugger
263 #ifdef ACPI_DEBUG_OUTPUT
264 ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_DEBUG_DEFAULT);
266 ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_NORMAL_DEFAULT);
268 ACPI_INIT_GLOBAL (UINT32, AcpiDbgLayer, ACPI_COMPONENT_DEFAULT);
271 * Other miscellaneous globals
273 ACPI_GLOBAL (ACPI_TABLE_FADT, AcpiGbl_FADT);
274 ACPI_GLOBAL (UINT32, AcpiCurrentGpeCount);
275 ACPI_GLOBAL (BOOLEAN, AcpiGbl_SystemAwakeAndRunning);
278 /*****************************************************************************
280 * ACPICA public interface configuration.
282 * Interfaces that are configured out of the ACPICA build are replaced
283 * by inlined stubs by default.
285 ****************************************************************************/
288 * Hardware-reduced prototypes (default: Not hardware reduced).
290 * All ACPICA hardware-related interfaces that use these macros will be
291 * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag
294 * Note: This static build option for reduced hardware is intended to
295 * reduce ACPICA code size if desired or necessary. However, even if this
296 * option is not specified, the runtime behavior of ACPICA is dependent
297 * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set,
298 * the flag will enable similar behavior -- ACPICA will not attempt
299 * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.)
301 #if (!ACPI_REDUCED_HARDWARE)
302 #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
303 ACPI_EXTERNAL_RETURN_STATUS(Prototype)
305 #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
306 ACPI_EXTERNAL_RETURN_OK(Prototype)
308 #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
309 ACPI_EXTERNAL_RETURN_VOID(Prototype)
312 #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
313 static ACPI_INLINE Prototype {return(AE_NOT_CONFIGURED);}
315 #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
316 static ACPI_INLINE Prototype {return(AE_OK);}
318 #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
319 static ACPI_INLINE Prototype {return;}
321 #endif /* !ACPI_REDUCED_HARDWARE */
325 * Error message prototypes (default: error messages enabled).
327 * All interfaces related to error and warning messages
328 * will be configured out of the ACPICA build if the
329 * ACPI_NO_ERROR_MESSAGE flag is defined.
331 #ifndef ACPI_NO_ERROR_MESSAGES
332 #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
336 #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
337 static ACPI_INLINE Prototype {return;}
339 #endif /* ACPI_NO_ERROR_MESSAGES */
343 * Debugging output prototypes (default: no debug output).
345 * All interfaces related to debug output messages
346 * will be configured out of the ACPICA build unless the
347 * ACPI_DEBUG_OUTPUT flag is defined.
349 #ifdef ACPI_DEBUG_OUTPUT
350 #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
354 #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
355 static ACPI_INLINE Prototype {return;}
357 #endif /* ACPI_DEBUG_OUTPUT */
361 * Application prototypes
363 * All interfaces used by application will be configured
364 * out of the ACPICA build unless the ACPI_APPLICATION
367 #ifdef ACPI_APPLICATION
368 #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
372 #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
373 static ACPI_INLINE Prototype {return;}
375 #endif /* ACPI_APPLICATION */
378 /*****************************************************************************
380 * ACPICA public interface prototypes
382 ****************************************************************************/
387 ACPI_EXTERNAL_RETURN_STATUS (
389 AcpiInitializeTables (
390 ACPI_TABLE_DESC *InitialStorage,
391 UINT32 InitialTableCount,
392 BOOLEAN AllowResize))
394 ACPI_EXTERNAL_RETURN_STATUS (
396 AcpiInitializeSubsystem (
399 ACPI_EXTERNAL_RETURN_STATUS (
401 AcpiEnableSubsystem (
404 ACPI_EXTERNAL_RETURN_STATUS (
406 AcpiInitializeObjects (
409 ACPI_EXTERNAL_RETURN_STATUS (
416 * Miscellaneous global interfaces
418 ACPI_HW_DEPENDENT_RETURN_STATUS (
423 ACPI_HW_DEPENDENT_RETURN_STATUS (
428 ACPI_EXTERNAL_RETURN_STATUS (
430 AcpiSubsystemStatus (
433 ACPI_EXTERNAL_RETURN_STATUS (
436 ACPI_BUFFER *RetBuffer))
438 ACPI_EXTERNAL_RETURN_STATUS (
441 ACPI_STATISTICS *Stats))
443 ACPI_EXTERNAL_RETURN_PTR (
445 AcpiFormatException (
446 ACPI_STATUS Exception))
448 ACPI_EXTERNAL_RETURN_STATUS (
450 AcpiPurgeCachedObjects (
453 ACPI_EXTERNAL_RETURN_STATUS (
455 AcpiInstallInterface (
456 ACPI_STRING InterfaceName))
458 ACPI_EXTERNAL_RETURN_STATUS (
460 AcpiRemoveInterface (
461 ACPI_STRING InterfaceName))
463 ACPI_EXTERNAL_RETURN_STATUS (
465 AcpiUpdateInterfaces (
468 ACPI_EXTERNAL_RETURN_UINT32 (
470 AcpiCheckAddressRange (
471 ACPI_ADR_SPACE_TYPE SpaceId,
472 ACPI_PHYSICAL_ADDRESS Address,
476 ACPI_EXTERNAL_RETURN_STATUS (
478 AcpiDecodePldBuffer (
481 ACPI_PLD_INFO **ReturnBuffer))
485 * ACPI table load/unload interfaces
487 ACPI_EXTERNAL_RETURN_STATUS (
490 ACPI_PHYSICAL_ADDRESS Address,
493 ACPI_EXTERNAL_RETURN_STATUS (
496 ACPI_TABLE_HEADER *Table))
498 ACPI_EXTERNAL_RETURN_STATUS (
500 AcpiUnloadParentTable (
503 ACPI_EXTERNAL_RETURN_STATUS (
510 * ACPI table manipulation interfaces
512 ACPI_EXTERNAL_RETURN_STATUS (
514 AcpiReallocateRootTable (
517 ACPI_EXTERNAL_RETURN_STATUS (
519 AcpiFindRootPointer (
520 ACPI_PHYSICAL_ADDRESS *RsdpAddress))
522 ACPI_EXTERNAL_RETURN_STATUS (
525 ACPI_STRING Signature,
527 ACPI_TABLE_HEADER *OutTableHeader))
529 ACPI_EXTERNAL_RETURN_STATUS (
532 ACPI_STRING Signature,
534 ACPI_TABLE_HEADER **OutTable))
536 ACPI_EXTERNAL_RETURN_STATUS (
538 AcpiGetTableByIndex (
540 ACPI_TABLE_HEADER **OutTable))
542 ACPI_EXTERNAL_RETURN_STATUS (
544 AcpiInstallTableHandler (
545 ACPI_TABLE_HANDLER Handler,
548 ACPI_EXTERNAL_RETURN_STATUS (
550 AcpiRemoveTableHandler (
551 ACPI_TABLE_HANDLER Handler))
555 * Namespace and name interfaces
557 ACPI_EXTERNAL_RETURN_STATUS (
560 ACPI_OBJECT_TYPE Type,
561 ACPI_HANDLE StartObject,
563 ACPI_WALK_CALLBACK DescendingCallback,
564 ACPI_WALK_CALLBACK AscendingCallback,
568 ACPI_EXTERNAL_RETURN_STATUS (
572 ACPI_WALK_CALLBACK UserFunction,
576 ACPI_EXTERNAL_RETURN_STATUS (
581 ACPI_BUFFER *RetPathPtr))
583 ACPI_EXTERNAL_RETURN_STATUS (
587 ACPI_STRING Pathname,
588 ACPI_HANDLE *RetHandle))
590 ACPI_EXTERNAL_RETURN_STATUS (
594 ACPI_OBJECT_HANDLER Handler,
597 ACPI_EXTERNAL_RETURN_STATUS (
601 ACPI_OBJECT_HANDLER Handler))
603 ACPI_EXTERNAL_RETURN_STATUS (
607 ACPI_OBJECT_HANDLER Handler,
610 ACPI_EXTERNAL_RETURN_STATUS (
620 * Object manipulation and enumeration
622 ACPI_EXTERNAL_RETURN_STATUS (
626 ACPI_STRING Pathname,
627 ACPI_OBJECT_LIST *ParameterObjects,
628 ACPI_BUFFER *ReturnObjectBuffer))
630 ACPI_EXTERNAL_RETURN_STATUS (
632 AcpiEvaluateObjectTyped (
634 ACPI_STRING Pathname,
635 ACPI_OBJECT_LIST *ExternalParams,
636 ACPI_BUFFER *ReturnBuffer,
637 ACPI_OBJECT_TYPE ReturnType))
639 ACPI_EXTERNAL_RETURN_STATUS (
643 ACPI_DEVICE_INFO **ReturnBuffer))
645 ACPI_EXTERNAL_RETURN_STATUS (
650 ACPI_EXTERNAL_RETURN_STATUS (
653 ACPI_OBJECT_TYPE Type,
656 ACPI_HANDLE *OutHandle))
658 ACPI_EXTERNAL_RETURN_STATUS (
662 ACPI_OBJECT_TYPE *OutType))
664 ACPI_EXTERNAL_RETURN_STATUS (
668 ACPI_HANDLE *OutHandle))
674 ACPI_EXTERNAL_RETURN_STATUS (
676 AcpiInstallInitializationHandler (
677 ACPI_INIT_HANDLER Handler,
680 ACPI_HW_DEPENDENT_RETURN_STATUS (
682 AcpiInstallSciHandler (
683 ACPI_SCI_HANDLER Address,
686 ACPI_HW_DEPENDENT_RETURN_STATUS (
688 AcpiRemoveSciHandler (
689 ACPI_SCI_HANDLER Address))
691 ACPI_HW_DEPENDENT_RETURN_STATUS (
693 AcpiInstallGlobalEventHandler (
694 ACPI_GBL_EVENT_HANDLER Handler,
697 ACPI_HW_DEPENDENT_RETURN_STATUS (
699 AcpiInstallFixedEventHandler (
701 ACPI_EVENT_HANDLER Handler,
704 ACPI_HW_DEPENDENT_RETURN_STATUS (
706 AcpiRemoveFixedEventHandler (
708 ACPI_EVENT_HANDLER Handler))
710 ACPI_HW_DEPENDENT_RETURN_STATUS (
712 AcpiInstallGpeHandler (
713 ACPI_HANDLE GpeDevice,
716 ACPI_GPE_HANDLER Address,
719 ACPI_HW_DEPENDENT_RETURN_STATUS (
721 AcpiInstallGpeRawHandler (
722 ACPI_HANDLE GpeDevice,
725 ACPI_GPE_HANDLER Address,
728 ACPI_HW_DEPENDENT_RETURN_STATUS (
730 AcpiRemoveGpeHandler (
731 ACPI_HANDLE GpeDevice,
733 ACPI_GPE_HANDLER Address))
735 ACPI_EXTERNAL_RETURN_STATUS (
737 AcpiInstallNotifyHandler (
740 ACPI_NOTIFY_HANDLER Handler,
743 ACPI_EXTERNAL_RETURN_STATUS (
745 AcpiRemoveNotifyHandler (
748 ACPI_NOTIFY_HANDLER Handler))
750 ACPI_EXTERNAL_RETURN_STATUS (
752 AcpiInstallAddressSpaceHandler (
754 ACPI_ADR_SPACE_TYPE SpaceId,
755 ACPI_ADR_SPACE_HANDLER Handler,
756 ACPI_ADR_SPACE_SETUP Setup,
759 ACPI_EXTERNAL_RETURN_STATUS (
761 AcpiRemoveAddressSpaceHandler (
763 ACPI_ADR_SPACE_TYPE SpaceId,
764 ACPI_ADR_SPACE_HANDLER Handler))
766 ACPI_EXTERNAL_RETURN_STATUS (
768 AcpiInstallExceptionHandler (
769 ACPI_EXCEPTION_HANDLER Handler))
771 ACPI_EXTERNAL_RETURN_STATUS (
773 AcpiInstallInterfaceHandler (
774 ACPI_INTERFACE_HANDLER Handler))
778 * Global Lock interfaces
780 ACPI_HW_DEPENDENT_RETURN_STATUS (
782 AcpiAcquireGlobalLock (
786 ACPI_HW_DEPENDENT_RETURN_STATUS (
788 AcpiReleaseGlobalLock (
793 * Interfaces to AML mutex objects
795 ACPI_EXTERNAL_RETURN_STATUS (
799 ACPI_STRING Pathname,
802 ACPI_EXTERNAL_RETURN_STATUS (
806 ACPI_STRING Pathname))
810 * Fixed Event interfaces
812 ACPI_HW_DEPENDENT_RETURN_STATUS (
818 ACPI_HW_DEPENDENT_RETURN_STATUS (
824 ACPI_HW_DEPENDENT_RETURN_STATUS (
829 ACPI_HW_DEPENDENT_RETURN_STATUS (
833 ACPI_EVENT_STATUS *EventStatus))
837 * General Purpose Event (GPE) Interfaces
839 ACPI_HW_DEPENDENT_RETURN_STATUS (
844 ACPI_HW_DEPENDENT_RETURN_STATUS (
847 ACPI_HANDLE GpeDevice,
850 ACPI_HW_DEPENDENT_RETURN_STATUS (
853 ACPI_HANDLE GpeDevice,
856 ACPI_HW_DEPENDENT_RETURN_STATUS (
859 ACPI_HANDLE GpeDevice,
862 ACPI_HW_DEPENDENT_RETURN_STATUS (
865 ACPI_HANDLE GpeDevice,
869 ACPI_HW_DEPENDENT_RETURN_STATUS (
872 ACPI_HANDLE GpeDevice,
875 ACPI_HW_DEPENDENT_RETURN_STATUS (
878 ACPI_HANDLE GpeDevice,
881 ACPI_HW_DEPENDENT_RETURN_STATUS (
883 AcpiSetupGpeForWake (
884 ACPI_HANDLE ParentDevice,
885 ACPI_HANDLE GpeDevice,
888 ACPI_HW_DEPENDENT_RETURN_STATUS (
891 ACPI_HANDLE GpeDevice,
895 ACPI_HW_DEPENDENT_RETURN_STATUS (
898 ACPI_HANDLE GpeDevice,
900 ACPI_EVENT_STATUS *EventStatus))
902 ACPI_HW_DEPENDENT_RETURN_STATUS (
907 ACPI_HW_DEPENDENT_RETURN_STATUS (
909 AcpiEnableAllRuntimeGpes (
912 ACPI_HW_DEPENDENT_RETURN_STATUS (
914 AcpiEnableAllWakeupGpes (
917 ACPI_HW_DEPENDENT_RETURN_STATUS (
921 ACPI_HANDLE *GpeDevice))
923 ACPI_HW_DEPENDENT_RETURN_STATUS (
925 AcpiInstallGpeBlock (
926 ACPI_HANDLE GpeDevice,
927 ACPI_GENERIC_ADDRESS *GpeBlockAddress,
928 UINT32 RegisterCount,
929 UINT32 InterruptNumber))
931 ACPI_HW_DEPENDENT_RETURN_STATUS (
934 ACPI_HANDLE GpeDevice))
938 * Resource interfaces
941 ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) (
942 ACPI_RESOURCE *Resource,
945 ACPI_EXTERNAL_RETURN_STATUS (
947 AcpiGetVendorResource (
950 ACPI_VENDOR_UUID *Uuid,
951 ACPI_BUFFER *RetBuffer))
953 ACPI_EXTERNAL_RETURN_STATUS (
955 AcpiGetCurrentResources (
957 ACPI_BUFFER *RetBuffer))
959 ACPI_EXTERNAL_RETURN_STATUS (
961 AcpiGetPossibleResources (
963 ACPI_BUFFER *RetBuffer))
965 ACPI_EXTERNAL_RETURN_STATUS (
967 AcpiGetEventResources (
968 ACPI_HANDLE DeviceHandle,
969 ACPI_BUFFER *RetBuffer))
971 ACPI_EXTERNAL_RETURN_STATUS (
973 AcpiWalkResourceBuffer (
975 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
978 ACPI_EXTERNAL_RETURN_STATUS (
983 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
986 ACPI_EXTERNAL_RETURN_STATUS (
988 AcpiSetCurrentResources (
990 ACPI_BUFFER *InBuffer))
992 ACPI_EXTERNAL_RETURN_STATUS (
994 AcpiGetIrqRoutingTable (
996 ACPI_BUFFER *RetBuffer))
998 ACPI_EXTERNAL_RETURN_STATUS (
1000 AcpiResourceToAddress64 (
1001 ACPI_RESOURCE *Resource,
1002 ACPI_RESOURCE_ADDRESS64 *Out))
1004 ACPI_EXTERNAL_RETURN_STATUS (
1006 AcpiBufferToResource (
1008 UINT16 AmlBufferLength,
1009 ACPI_RESOURCE **ResourcePtr))
1013 * Hardware (ACPI device) interfaces
1015 ACPI_EXTERNAL_RETURN_STATUS (
1020 ACPI_EXTERNAL_RETURN_STATUS (
1024 ACPI_GENERIC_ADDRESS *Reg))
1026 ACPI_EXTERNAL_RETURN_STATUS (
1030 ACPI_GENERIC_ADDRESS *Reg))
1032 ACPI_HW_DEPENDENT_RETURN_STATUS (
1034 AcpiReadBitRegister (
1036 UINT32 *ReturnValue))
1038 ACPI_HW_DEPENDENT_RETURN_STATUS (
1040 AcpiWriteBitRegister (
1046 * Sleep/Wake interfaces
1048 ACPI_EXTERNAL_RETURN_STATUS (
1050 AcpiGetSleepTypeData (
1055 ACPI_EXTERNAL_RETURN_STATUS (
1057 AcpiEnterSleepStatePrep (
1060 ACPI_EXTERNAL_RETURN_STATUS (
1062 AcpiEnterSleepState (
1065 ACPI_HW_DEPENDENT_RETURN_STATUS (
1067 AcpiEnterSleepStateS4bios (
1070 ACPI_EXTERNAL_RETURN_STATUS (
1072 AcpiLeaveSleepStatePrep (
1075 ACPI_EXTERNAL_RETURN_STATUS (
1077 AcpiLeaveSleepState (
1080 ACPI_HW_DEPENDENT_RETURN_STATUS (
1082 AcpiSetFirmwareWakingVector (
1083 ACPI_PHYSICAL_ADDRESS PhysicalAddress,
1084 ACPI_PHYSICAL_ADDRESS PhysicalAddress64))
1088 * ACPI Timer interfaces
1090 ACPI_HW_DEPENDENT_RETURN_STATUS (
1092 AcpiGetTimerResolution (
1093 UINT32 *Resolution))
1095 ACPI_HW_DEPENDENT_RETURN_STATUS (
1100 ACPI_HW_DEPENDENT_RETURN_STATUS (
1102 AcpiGetTimerDuration (
1105 UINT32 *TimeElapsed))
1109 * Error/Warning output
1111 ACPI_MSG_DEPENDENT_RETURN_VOID (
1113 void ACPI_INTERNAL_VAR_XFACE
1115 const char *ModuleName,
1120 ACPI_MSG_DEPENDENT_RETURN_VOID (
1122 void ACPI_INTERNAL_VAR_XFACE
1124 const char *ModuleName,
1130 ACPI_MSG_DEPENDENT_RETURN_VOID (
1132 void ACPI_INTERNAL_VAR_XFACE
1134 const char *ModuleName,
1139 ACPI_MSG_DEPENDENT_RETURN_VOID (
1141 void ACPI_INTERNAL_VAR_XFACE
1143 const char *ModuleName,
1148 ACPI_MSG_DEPENDENT_RETURN_VOID (
1150 void ACPI_INTERNAL_VAR_XFACE
1152 const char *ModuleName,
1157 ACPI_MSG_DEPENDENT_RETURN_VOID (
1159 void ACPI_INTERNAL_VAR_XFACE
1161 const char *ModuleName,
1170 ACPI_DBG_DEPENDENT_RETURN_VOID (
1172 void ACPI_INTERNAL_VAR_XFACE
1174 UINT32 RequestedDebugLevel,
1176 const char *FunctionName,
1177 const char *ModuleName,
1182 ACPI_DBG_DEPENDENT_RETURN_VOID (
1184 void ACPI_INTERNAL_VAR_XFACE
1186 UINT32 RequestedDebugLevel,
1188 const char *FunctionName,
1189 const char *ModuleName,
1194 ACPI_APP_DEPENDENT_RETURN_VOID (
1196 void ACPI_INTERNAL_VAR_XFACE
1201 #endif /* __ACXFACE_H__ */