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 0x20150410
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 truncate I/O addresses to 16 bits. Provides compatibility
206 * with other ACPI implementations. NOTE: During ACPICA initialization,
207 * this value is set to TRUE if any Windows OSI strings have been
208 * requested by the BIOS.
210 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_TruncateIoAddresses, FALSE);
213 * Disable runtime checking and repair of values returned by control methods.
214 * Use only if the repair is causing a problem on a particular machine.
216 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableAutoRepair, FALSE);
219 * Optionally do not install any SSDTs from the RSDT/XSDT during initialization.
220 * This can be useful for debugging ACPI problems on some machines.
222 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableSsdtTableInstall, FALSE);
225 * We keep track of the latest version of Windows that has been requested by
226 * the BIOS. ACPI 5.0.
228 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_OsiData, 0);
231 * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning
232 * that the ACPI hardware is no longer required. A flag in the FADT indicates
233 * a reduced HW machine, and that flag is duplicated here for convenience.
235 ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_ReducedHardware, FALSE);
238 * This mechanism is used to trace a specified AML method. The method is
239 * traced each time it is executed.
241 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceFlags, 0);
242 ACPI_INIT_GLOBAL (ACPI_NAME, AcpiGbl_TraceMethodName, 0);
245 * Runtime configuration of debug output control masks. We want the debug
246 * switches statically initialized so they are already set when the debugger
249 #ifdef ACPI_DEBUG_OUTPUT
250 ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_DEBUG_DEFAULT);
252 ACPI_INIT_GLOBAL (UINT32, AcpiDbgLevel, ACPI_NORMAL_DEFAULT);
254 ACPI_INIT_GLOBAL (UINT32, AcpiDbgLayer, ACPI_COMPONENT_DEFAULT);
257 * Other miscellaneous globals
259 ACPI_GLOBAL (ACPI_TABLE_FADT, AcpiGbl_FADT);
260 ACPI_GLOBAL (UINT32, AcpiCurrentGpeCount);
261 ACPI_GLOBAL (BOOLEAN, AcpiGbl_SystemAwakeAndRunning);
264 /*****************************************************************************
266 * ACPICA public interface configuration.
268 * Interfaces that are configured out of the ACPICA build are replaced
269 * by inlined stubs by default.
271 ****************************************************************************/
274 * Hardware-reduced prototypes (default: Not hardware reduced).
276 * All ACPICA hardware-related interfaces that use these macros will be
277 * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag
280 * Note: This static build option for reduced hardware is intended to
281 * reduce ACPICA code size if desired or necessary. However, even if this
282 * option is not specified, the runtime behavior of ACPICA is dependent
283 * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set,
284 * the flag will enable similar behavior -- ACPICA will not attempt
285 * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.)
287 #if (!ACPI_REDUCED_HARDWARE)
288 #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
289 ACPI_EXTERNAL_RETURN_STATUS(Prototype)
291 #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
292 ACPI_EXTERNAL_RETURN_OK(Prototype)
294 #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
295 ACPI_EXTERNAL_RETURN_VOID(Prototype)
298 #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
299 static ACPI_INLINE Prototype {return(AE_NOT_CONFIGURED);}
301 #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
302 static ACPI_INLINE Prototype {return(AE_OK);}
304 #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
305 static ACPI_INLINE Prototype {return;}
307 #endif /* !ACPI_REDUCED_HARDWARE */
311 * Error message prototypes (default: error messages enabled).
313 * All interfaces related to error and warning messages
314 * will be configured out of the ACPICA build if the
315 * ACPI_NO_ERROR_MESSAGE flag is defined.
317 #ifndef ACPI_NO_ERROR_MESSAGES
318 #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
322 #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
323 static ACPI_INLINE Prototype {return;}
325 #endif /* ACPI_NO_ERROR_MESSAGES */
329 * Debugging output prototypes (default: no debug output).
331 * All interfaces related to debug output messages
332 * will be configured out of the ACPICA build unless the
333 * ACPI_DEBUG_OUTPUT flag is defined.
335 #ifdef ACPI_DEBUG_OUTPUT
336 #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
340 #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
341 static ACPI_INLINE Prototype {return;}
343 #endif /* ACPI_DEBUG_OUTPUT */
347 * Application prototypes
349 * All interfaces used by application will be configured
350 * out of the ACPICA build unless the ACPI_APPLICATION
353 #ifdef ACPI_APPLICATION
354 #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
358 #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
359 static ACPI_INLINE Prototype {return;}
361 #endif /* ACPI_APPLICATION */
364 /*****************************************************************************
366 * ACPICA public interface prototypes
368 ****************************************************************************/
373 ACPI_EXTERNAL_RETURN_STATUS (
375 AcpiInitializeTables (
376 ACPI_TABLE_DESC *InitialStorage,
377 UINT32 InitialTableCount,
378 BOOLEAN AllowResize))
380 ACPI_EXTERNAL_RETURN_STATUS (
382 AcpiInitializeSubsystem (
385 ACPI_EXTERNAL_RETURN_STATUS (
387 AcpiEnableSubsystem (
390 ACPI_EXTERNAL_RETURN_STATUS (
392 AcpiInitializeObjects (
395 ACPI_EXTERNAL_RETURN_STATUS (
402 * Miscellaneous global interfaces
404 ACPI_HW_DEPENDENT_RETURN_STATUS (
409 ACPI_HW_DEPENDENT_RETURN_STATUS (
414 ACPI_EXTERNAL_RETURN_STATUS (
416 AcpiSubsystemStatus (
419 ACPI_EXTERNAL_RETURN_STATUS (
422 ACPI_BUFFER *RetBuffer))
424 ACPI_EXTERNAL_RETURN_STATUS (
427 ACPI_STATISTICS *Stats))
429 ACPI_EXTERNAL_RETURN_PTR (
431 AcpiFormatException (
432 ACPI_STATUS Exception))
434 ACPI_EXTERNAL_RETURN_STATUS (
436 AcpiPurgeCachedObjects (
439 ACPI_EXTERNAL_RETURN_STATUS (
441 AcpiInstallInterface (
442 ACPI_STRING InterfaceName))
444 ACPI_EXTERNAL_RETURN_STATUS (
446 AcpiRemoveInterface (
447 ACPI_STRING InterfaceName))
449 ACPI_EXTERNAL_RETURN_STATUS (
451 AcpiUpdateInterfaces (
454 ACPI_EXTERNAL_RETURN_UINT32 (
456 AcpiCheckAddressRange (
457 ACPI_ADR_SPACE_TYPE SpaceId,
458 ACPI_PHYSICAL_ADDRESS Address,
462 ACPI_EXTERNAL_RETURN_STATUS (
464 AcpiDecodePldBuffer (
467 ACPI_PLD_INFO **ReturnBuffer))
471 * ACPI table load/unload interfaces
473 ACPI_EXTERNAL_RETURN_STATUS (
476 ACPI_PHYSICAL_ADDRESS Address,
479 ACPI_EXTERNAL_RETURN_STATUS (
482 ACPI_TABLE_HEADER *Table))
484 ACPI_EXTERNAL_RETURN_STATUS (
486 AcpiUnloadParentTable (
489 ACPI_EXTERNAL_RETURN_STATUS (
496 * ACPI table manipulation interfaces
498 ACPI_EXTERNAL_RETURN_STATUS (
500 AcpiReallocateRootTable (
503 ACPI_EXTERNAL_RETURN_STATUS (
505 AcpiFindRootPointer (
506 ACPI_PHYSICAL_ADDRESS *RsdpAddress))
508 ACPI_EXTERNAL_RETURN_STATUS (
511 ACPI_STRING Signature,
513 ACPI_TABLE_HEADER *OutTableHeader))
515 ACPI_EXTERNAL_RETURN_STATUS (
518 ACPI_STRING Signature,
520 ACPI_TABLE_HEADER **OutTable))
522 ACPI_EXTERNAL_RETURN_STATUS (
524 AcpiGetTableByIndex (
526 ACPI_TABLE_HEADER **OutTable))
528 ACPI_EXTERNAL_RETURN_STATUS (
530 AcpiInstallTableHandler (
531 ACPI_TABLE_HANDLER Handler,
534 ACPI_EXTERNAL_RETURN_STATUS (
536 AcpiRemoveTableHandler (
537 ACPI_TABLE_HANDLER Handler))
541 * Namespace and name interfaces
543 ACPI_EXTERNAL_RETURN_STATUS (
546 ACPI_OBJECT_TYPE Type,
547 ACPI_HANDLE StartObject,
549 ACPI_WALK_CALLBACK DescendingCallback,
550 ACPI_WALK_CALLBACK AscendingCallback,
554 ACPI_EXTERNAL_RETURN_STATUS (
558 ACPI_WALK_CALLBACK UserFunction,
562 ACPI_EXTERNAL_RETURN_STATUS (
567 ACPI_BUFFER *RetPathPtr))
569 ACPI_EXTERNAL_RETURN_STATUS (
573 ACPI_STRING Pathname,
574 ACPI_HANDLE *RetHandle))
576 ACPI_EXTERNAL_RETURN_STATUS (
580 ACPI_OBJECT_HANDLER Handler,
583 ACPI_EXTERNAL_RETURN_STATUS (
587 ACPI_OBJECT_HANDLER Handler))
589 ACPI_EXTERNAL_RETURN_STATUS (
593 ACPI_OBJECT_HANDLER Handler,
596 ACPI_EXTERNAL_RETURN_STATUS (
606 * Object manipulation and enumeration
608 ACPI_EXTERNAL_RETURN_STATUS (
612 ACPI_STRING Pathname,
613 ACPI_OBJECT_LIST *ParameterObjects,
614 ACPI_BUFFER *ReturnObjectBuffer))
616 ACPI_EXTERNAL_RETURN_STATUS (
618 AcpiEvaluateObjectTyped (
620 ACPI_STRING Pathname,
621 ACPI_OBJECT_LIST *ExternalParams,
622 ACPI_BUFFER *ReturnBuffer,
623 ACPI_OBJECT_TYPE ReturnType))
625 ACPI_EXTERNAL_RETURN_STATUS (
629 ACPI_DEVICE_INFO **ReturnBuffer))
631 ACPI_EXTERNAL_RETURN_STATUS (
636 ACPI_EXTERNAL_RETURN_STATUS (
639 ACPI_OBJECT_TYPE Type,
642 ACPI_HANDLE *OutHandle))
644 ACPI_EXTERNAL_RETURN_STATUS (
648 ACPI_OBJECT_TYPE *OutType))
650 ACPI_EXTERNAL_RETURN_STATUS (
654 ACPI_HANDLE *OutHandle))
660 ACPI_EXTERNAL_RETURN_STATUS (
662 AcpiInstallInitializationHandler (
663 ACPI_INIT_HANDLER Handler,
666 ACPI_HW_DEPENDENT_RETURN_STATUS (
668 AcpiInstallSciHandler (
669 ACPI_SCI_HANDLER Address,
672 ACPI_HW_DEPENDENT_RETURN_STATUS (
674 AcpiRemoveSciHandler (
675 ACPI_SCI_HANDLER Address))
677 ACPI_HW_DEPENDENT_RETURN_STATUS (
679 AcpiInstallGlobalEventHandler (
680 ACPI_GBL_EVENT_HANDLER Handler,
683 ACPI_HW_DEPENDENT_RETURN_STATUS (
685 AcpiInstallFixedEventHandler (
687 ACPI_EVENT_HANDLER Handler,
690 ACPI_HW_DEPENDENT_RETURN_STATUS (
692 AcpiRemoveFixedEventHandler (
694 ACPI_EVENT_HANDLER Handler))
696 ACPI_HW_DEPENDENT_RETURN_STATUS (
698 AcpiInstallGpeHandler (
699 ACPI_HANDLE GpeDevice,
702 ACPI_GPE_HANDLER Address,
705 ACPI_HW_DEPENDENT_RETURN_STATUS (
707 AcpiInstallGpeRawHandler (
708 ACPI_HANDLE GpeDevice,
711 ACPI_GPE_HANDLER Address,
714 ACPI_HW_DEPENDENT_RETURN_STATUS (
716 AcpiRemoveGpeHandler (
717 ACPI_HANDLE GpeDevice,
719 ACPI_GPE_HANDLER Address))
721 ACPI_EXTERNAL_RETURN_STATUS (
723 AcpiInstallNotifyHandler (
726 ACPI_NOTIFY_HANDLER Handler,
729 ACPI_EXTERNAL_RETURN_STATUS (
731 AcpiRemoveNotifyHandler (
734 ACPI_NOTIFY_HANDLER Handler))
736 ACPI_EXTERNAL_RETURN_STATUS (
738 AcpiInstallAddressSpaceHandler (
740 ACPI_ADR_SPACE_TYPE SpaceId,
741 ACPI_ADR_SPACE_HANDLER Handler,
742 ACPI_ADR_SPACE_SETUP Setup,
745 ACPI_EXTERNAL_RETURN_STATUS (
747 AcpiRemoveAddressSpaceHandler (
749 ACPI_ADR_SPACE_TYPE SpaceId,
750 ACPI_ADR_SPACE_HANDLER Handler))
752 ACPI_EXTERNAL_RETURN_STATUS (
754 AcpiInstallExceptionHandler (
755 ACPI_EXCEPTION_HANDLER Handler))
757 ACPI_EXTERNAL_RETURN_STATUS (
759 AcpiInstallInterfaceHandler (
760 ACPI_INTERFACE_HANDLER Handler))
764 * Global Lock interfaces
766 ACPI_HW_DEPENDENT_RETURN_STATUS (
768 AcpiAcquireGlobalLock (
772 ACPI_HW_DEPENDENT_RETURN_STATUS (
774 AcpiReleaseGlobalLock (
779 * Interfaces to AML mutex objects
781 ACPI_EXTERNAL_RETURN_STATUS (
785 ACPI_STRING Pathname,
788 ACPI_EXTERNAL_RETURN_STATUS (
792 ACPI_STRING Pathname))
796 * Fixed Event interfaces
798 ACPI_HW_DEPENDENT_RETURN_STATUS (
804 ACPI_HW_DEPENDENT_RETURN_STATUS (
810 ACPI_HW_DEPENDENT_RETURN_STATUS (
815 ACPI_HW_DEPENDENT_RETURN_STATUS (
819 ACPI_EVENT_STATUS *EventStatus))
823 * General Purpose Event (GPE) Interfaces
825 ACPI_HW_DEPENDENT_RETURN_STATUS (
830 ACPI_HW_DEPENDENT_RETURN_STATUS (
833 ACPI_HANDLE GpeDevice,
836 ACPI_HW_DEPENDENT_RETURN_STATUS (
839 ACPI_HANDLE GpeDevice,
842 ACPI_HW_DEPENDENT_RETURN_STATUS (
845 ACPI_HANDLE GpeDevice,
848 ACPI_HW_DEPENDENT_RETURN_STATUS (
851 ACPI_HANDLE GpeDevice,
855 ACPI_HW_DEPENDENT_RETURN_STATUS (
858 ACPI_HANDLE GpeDevice,
861 ACPI_HW_DEPENDENT_RETURN_STATUS (
864 ACPI_HANDLE GpeDevice,
867 ACPI_HW_DEPENDENT_RETURN_STATUS (
869 AcpiSetupGpeForWake (
870 ACPI_HANDLE ParentDevice,
871 ACPI_HANDLE GpeDevice,
874 ACPI_HW_DEPENDENT_RETURN_STATUS (
877 ACPI_HANDLE GpeDevice,
881 ACPI_HW_DEPENDENT_RETURN_STATUS (
884 ACPI_HANDLE GpeDevice,
886 ACPI_EVENT_STATUS *EventStatus))
888 ACPI_HW_DEPENDENT_RETURN_STATUS (
893 ACPI_HW_DEPENDENT_RETURN_STATUS (
895 AcpiEnableAllRuntimeGpes (
898 ACPI_HW_DEPENDENT_RETURN_STATUS (
900 AcpiEnableAllWakeupGpes (
903 ACPI_HW_DEPENDENT_RETURN_STATUS (
907 ACPI_HANDLE *GpeDevice))
909 ACPI_HW_DEPENDENT_RETURN_STATUS (
911 AcpiInstallGpeBlock (
912 ACPI_HANDLE GpeDevice,
913 ACPI_GENERIC_ADDRESS *GpeBlockAddress,
914 UINT32 RegisterCount,
915 UINT32 InterruptNumber))
917 ACPI_HW_DEPENDENT_RETURN_STATUS (
920 ACPI_HANDLE GpeDevice))
924 * Resource interfaces
927 ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) (
928 ACPI_RESOURCE *Resource,
931 ACPI_EXTERNAL_RETURN_STATUS (
933 AcpiGetVendorResource (
936 ACPI_VENDOR_UUID *Uuid,
937 ACPI_BUFFER *RetBuffer))
939 ACPI_EXTERNAL_RETURN_STATUS (
941 AcpiGetCurrentResources (
943 ACPI_BUFFER *RetBuffer))
945 ACPI_EXTERNAL_RETURN_STATUS (
947 AcpiGetPossibleResources (
949 ACPI_BUFFER *RetBuffer))
951 ACPI_EXTERNAL_RETURN_STATUS (
953 AcpiGetEventResources (
954 ACPI_HANDLE DeviceHandle,
955 ACPI_BUFFER *RetBuffer))
957 ACPI_EXTERNAL_RETURN_STATUS (
959 AcpiWalkResourceBuffer (
961 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
964 ACPI_EXTERNAL_RETURN_STATUS (
969 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
972 ACPI_EXTERNAL_RETURN_STATUS (
974 AcpiSetCurrentResources (
976 ACPI_BUFFER *InBuffer))
978 ACPI_EXTERNAL_RETURN_STATUS (
980 AcpiGetIrqRoutingTable (
982 ACPI_BUFFER *RetBuffer))
984 ACPI_EXTERNAL_RETURN_STATUS (
986 AcpiResourceToAddress64 (
987 ACPI_RESOURCE *Resource,
988 ACPI_RESOURCE_ADDRESS64 *Out))
990 ACPI_EXTERNAL_RETURN_STATUS (
992 AcpiBufferToResource (
994 UINT16 AmlBufferLength,
995 ACPI_RESOURCE **ResourcePtr))
999 * Hardware (ACPI device) interfaces
1001 ACPI_EXTERNAL_RETURN_STATUS (
1006 ACPI_EXTERNAL_RETURN_STATUS (
1010 ACPI_GENERIC_ADDRESS *Reg))
1012 ACPI_EXTERNAL_RETURN_STATUS (
1016 ACPI_GENERIC_ADDRESS *Reg))
1018 ACPI_HW_DEPENDENT_RETURN_STATUS (
1020 AcpiReadBitRegister (
1022 UINT32 *ReturnValue))
1024 ACPI_HW_DEPENDENT_RETURN_STATUS (
1026 AcpiWriteBitRegister (
1032 * Sleep/Wake interfaces
1034 ACPI_EXTERNAL_RETURN_STATUS (
1036 AcpiGetSleepTypeData (
1041 ACPI_EXTERNAL_RETURN_STATUS (
1043 AcpiEnterSleepStatePrep (
1046 ACPI_EXTERNAL_RETURN_STATUS (
1048 AcpiEnterSleepState (
1051 ACPI_HW_DEPENDENT_RETURN_STATUS (
1053 AcpiEnterSleepStateS4bios (
1056 ACPI_EXTERNAL_RETURN_STATUS (
1058 AcpiLeaveSleepStatePrep (
1061 ACPI_EXTERNAL_RETURN_STATUS (
1063 AcpiLeaveSleepState (
1066 ACPI_HW_DEPENDENT_RETURN_STATUS (
1068 AcpiSetFirmwareWakingVector (
1069 UINT32 PhysicalAddress))
1071 #if ACPI_MACHINE_WIDTH == 64
1072 ACPI_HW_DEPENDENT_RETURN_STATUS (
1074 AcpiSetFirmwareWakingVector64 (
1075 UINT64 PhysicalAddress))
1080 * ACPI Timer interfaces
1082 ACPI_HW_DEPENDENT_RETURN_STATUS (
1084 AcpiGetTimerResolution (
1085 UINT32 *Resolution))
1087 ACPI_HW_DEPENDENT_RETURN_STATUS (
1092 ACPI_HW_DEPENDENT_RETURN_STATUS (
1094 AcpiGetTimerDuration (
1097 UINT32 *TimeElapsed))
1101 * Error/Warning output
1103 ACPI_MSG_DEPENDENT_RETURN_VOID (
1105 void ACPI_INTERNAL_VAR_XFACE
1107 const char *ModuleName,
1112 ACPI_MSG_DEPENDENT_RETURN_VOID (
1114 void ACPI_INTERNAL_VAR_XFACE
1116 const char *ModuleName,
1122 ACPI_MSG_DEPENDENT_RETURN_VOID (
1124 void ACPI_INTERNAL_VAR_XFACE
1126 const char *ModuleName,
1131 ACPI_MSG_DEPENDENT_RETURN_VOID (
1133 void ACPI_INTERNAL_VAR_XFACE
1135 const char *ModuleName,
1140 ACPI_MSG_DEPENDENT_RETURN_VOID (
1142 void ACPI_INTERNAL_VAR_XFACE
1144 const char *ModuleName,
1149 ACPI_MSG_DEPENDENT_RETURN_VOID (
1151 void ACPI_INTERNAL_VAR_XFACE
1153 const char *ModuleName,
1162 ACPI_DBG_DEPENDENT_RETURN_VOID (
1164 void ACPI_INTERNAL_VAR_XFACE
1166 UINT32 RequestedDebugLevel,
1168 const char *FunctionName,
1169 const char *ModuleName,
1174 ACPI_DBG_DEPENDENT_RETURN_VOID (
1176 void ACPI_INTERNAL_VAR_XFACE
1178 UINT32 RequestedDebugLevel,
1180 const char *FunctionName,
1181 const char *ModuleName,
1186 ACPI_APP_DEPENDENT_RETURN_VOID (
1188 void ACPI_INTERNAL_VAR_XFACE
1193 #endif /* __ACXFACE_H__ */