1 /******************************************************************************
3 * Name: acpixf.h - External interfaces to the ACPI subsystem
5 *****************************************************************************/
8 * Copyright (C) 2000 - 2014, 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 0x20140828
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_SIZE *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 AcpiRemoveGpeHandler (
708 ACPI_HANDLE GpeDevice,
710 ACPI_GPE_HANDLER Address))
712 ACPI_EXTERNAL_RETURN_STATUS (
714 AcpiInstallNotifyHandler (
717 ACPI_NOTIFY_HANDLER Handler,
720 ACPI_EXTERNAL_RETURN_STATUS (
722 AcpiRemoveNotifyHandler (
725 ACPI_NOTIFY_HANDLER Handler))
727 ACPI_EXTERNAL_RETURN_STATUS (
729 AcpiInstallAddressSpaceHandler (
731 ACPI_ADR_SPACE_TYPE SpaceId,
732 ACPI_ADR_SPACE_HANDLER Handler,
733 ACPI_ADR_SPACE_SETUP Setup,
736 ACPI_EXTERNAL_RETURN_STATUS (
738 AcpiRemoveAddressSpaceHandler (
740 ACPI_ADR_SPACE_TYPE SpaceId,
741 ACPI_ADR_SPACE_HANDLER Handler))
743 ACPI_EXTERNAL_RETURN_STATUS (
745 AcpiInstallExceptionHandler (
746 ACPI_EXCEPTION_HANDLER Handler))
748 ACPI_EXTERNAL_RETURN_STATUS (
750 AcpiInstallInterfaceHandler (
751 ACPI_INTERFACE_HANDLER Handler))
755 * Global Lock interfaces
757 ACPI_HW_DEPENDENT_RETURN_STATUS (
759 AcpiAcquireGlobalLock (
763 ACPI_HW_DEPENDENT_RETURN_STATUS (
765 AcpiReleaseGlobalLock (
770 * Interfaces to AML mutex objects
772 ACPI_EXTERNAL_RETURN_STATUS (
776 ACPI_STRING Pathname,
779 ACPI_EXTERNAL_RETURN_STATUS (
783 ACPI_STRING Pathname))
787 * Fixed Event interfaces
789 ACPI_HW_DEPENDENT_RETURN_STATUS (
795 ACPI_HW_DEPENDENT_RETURN_STATUS (
801 ACPI_HW_DEPENDENT_RETURN_STATUS (
806 ACPI_HW_DEPENDENT_RETURN_STATUS (
810 ACPI_EVENT_STATUS *EventStatus))
814 * General Purpose Event (GPE) Interfaces
816 ACPI_HW_DEPENDENT_RETURN_STATUS (
821 ACPI_HW_DEPENDENT_RETURN_STATUS (
824 ACPI_HANDLE GpeDevice,
827 ACPI_HW_DEPENDENT_RETURN_STATUS (
830 ACPI_HANDLE GpeDevice,
833 ACPI_HW_DEPENDENT_RETURN_STATUS (
836 ACPI_HANDLE GpeDevice,
839 ACPI_HW_DEPENDENT_RETURN_STATUS (
842 ACPI_HANDLE GpeDevice,
846 ACPI_HW_DEPENDENT_RETURN_STATUS (
849 ACPI_HANDLE GpeDevice,
852 ACPI_HW_DEPENDENT_RETURN_STATUS (
855 ACPI_HANDLE GpeDevice,
858 ACPI_HW_DEPENDENT_RETURN_STATUS (
860 AcpiSetupGpeForWake (
861 ACPI_HANDLE ParentDevice,
862 ACPI_HANDLE GpeDevice,
865 ACPI_HW_DEPENDENT_RETURN_STATUS (
868 ACPI_HANDLE GpeDevice,
872 ACPI_HW_DEPENDENT_RETURN_STATUS (
875 ACPI_HANDLE GpeDevice,
877 ACPI_EVENT_STATUS *EventStatus))
879 ACPI_HW_DEPENDENT_RETURN_STATUS (
884 ACPI_HW_DEPENDENT_RETURN_STATUS (
886 AcpiEnableAllRuntimeGpes (
889 ACPI_HW_DEPENDENT_RETURN_STATUS (
893 ACPI_HANDLE *GpeDevice))
895 ACPI_HW_DEPENDENT_RETURN_STATUS (
897 AcpiInstallGpeBlock (
898 ACPI_HANDLE GpeDevice,
899 ACPI_GENERIC_ADDRESS *GpeBlockAddress,
900 UINT32 RegisterCount,
901 UINT32 InterruptNumber))
903 ACPI_HW_DEPENDENT_RETURN_STATUS (
906 ACPI_HANDLE GpeDevice))
910 * Resource interfaces
913 ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) (
914 ACPI_RESOURCE *Resource,
917 ACPI_EXTERNAL_RETURN_STATUS (
919 AcpiGetVendorResource (
922 ACPI_VENDOR_UUID *Uuid,
923 ACPI_BUFFER *RetBuffer))
925 ACPI_EXTERNAL_RETURN_STATUS (
927 AcpiGetCurrentResources (
929 ACPI_BUFFER *RetBuffer))
931 ACPI_EXTERNAL_RETURN_STATUS (
933 AcpiGetPossibleResources (
935 ACPI_BUFFER *RetBuffer))
937 ACPI_EXTERNAL_RETURN_STATUS (
939 AcpiGetEventResources (
940 ACPI_HANDLE DeviceHandle,
941 ACPI_BUFFER *RetBuffer))
943 ACPI_EXTERNAL_RETURN_STATUS (
945 AcpiWalkResourceBuffer (
947 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
950 ACPI_EXTERNAL_RETURN_STATUS (
955 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
958 ACPI_EXTERNAL_RETURN_STATUS (
960 AcpiSetCurrentResources (
962 ACPI_BUFFER *InBuffer))
964 ACPI_EXTERNAL_RETURN_STATUS (
966 AcpiGetIrqRoutingTable (
968 ACPI_BUFFER *RetBuffer))
970 ACPI_EXTERNAL_RETURN_STATUS (
972 AcpiResourceToAddress64 (
973 ACPI_RESOURCE *Resource,
974 ACPI_RESOURCE_ADDRESS64 *Out))
976 ACPI_EXTERNAL_RETURN_STATUS (
978 AcpiBufferToResource (
980 UINT16 AmlBufferLength,
981 ACPI_RESOURCE **ResourcePtr))
985 * Hardware (ACPI device) interfaces
987 ACPI_EXTERNAL_RETURN_STATUS (
992 ACPI_EXTERNAL_RETURN_STATUS (
996 ACPI_GENERIC_ADDRESS *Reg))
998 ACPI_EXTERNAL_RETURN_STATUS (
1002 ACPI_GENERIC_ADDRESS *Reg))
1004 ACPI_HW_DEPENDENT_RETURN_STATUS (
1006 AcpiReadBitRegister (
1008 UINT32 *ReturnValue))
1010 ACPI_HW_DEPENDENT_RETURN_STATUS (
1012 AcpiWriteBitRegister (
1018 * Sleep/Wake interfaces
1020 ACPI_EXTERNAL_RETURN_STATUS (
1022 AcpiGetSleepTypeData (
1027 ACPI_EXTERNAL_RETURN_STATUS (
1029 AcpiEnterSleepStatePrep (
1032 ACPI_EXTERNAL_RETURN_STATUS (
1034 AcpiEnterSleepState (
1037 ACPI_HW_DEPENDENT_RETURN_STATUS (
1039 AcpiEnterSleepStateS4bios (
1042 ACPI_EXTERNAL_RETURN_STATUS (
1044 AcpiLeaveSleepStatePrep (
1047 ACPI_EXTERNAL_RETURN_STATUS (
1049 AcpiLeaveSleepState (
1052 ACPI_HW_DEPENDENT_RETURN_STATUS (
1054 AcpiSetFirmwareWakingVector (
1055 UINT32 PhysicalAddress))
1057 #if ACPI_MACHINE_WIDTH == 64
1058 ACPI_HW_DEPENDENT_RETURN_STATUS (
1060 AcpiSetFirmwareWakingVector64 (
1061 UINT64 PhysicalAddress))
1066 * ACPI Timer interfaces
1068 ACPI_HW_DEPENDENT_RETURN_STATUS (
1070 AcpiGetTimerResolution (
1071 UINT32 *Resolution))
1073 ACPI_HW_DEPENDENT_RETURN_STATUS (
1078 ACPI_HW_DEPENDENT_RETURN_STATUS (
1080 AcpiGetTimerDuration (
1083 UINT32 *TimeElapsed))
1087 * Error/Warning output
1089 ACPI_MSG_DEPENDENT_RETURN_VOID (
1091 void ACPI_INTERNAL_VAR_XFACE
1093 const char *ModuleName,
1098 ACPI_MSG_DEPENDENT_RETURN_VOID (
1100 void ACPI_INTERNAL_VAR_XFACE
1102 const char *ModuleName,
1108 ACPI_MSG_DEPENDENT_RETURN_VOID (
1110 void ACPI_INTERNAL_VAR_XFACE
1112 const char *ModuleName,
1117 ACPI_MSG_DEPENDENT_RETURN_VOID (
1119 void ACPI_INTERNAL_VAR_XFACE
1121 const char *ModuleName,
1126 ACPI_MSG_DEPENDENT_RETURN_VOID (
1128 void ACPI_INTERNAL_VAR_XFACE
1130 const char *ModuleName,
1135 ACPI_MSG_DEPENDENT_RETURN_VOID (
1137 void ACPI_INTERNAL_VAR_XFACE
1139 const char *ModuleName,
1148 ACPI_DBG_DEPENDENT_RETURN_VOID (
1150 void ACPI_INTERNAL_VAR_XFACE
1152 UINT32 RequestedDebugLevel,
1154 const char *FunctionName,
1155 const char *ModuleName,
1160 ACPI_DBG_DEPENDENT_RETURN_VOID (
1162 void ACPI_INTERNAL_VAR_XFACE
1164 UINT32 RequestedDebugLevel,
1166 const char *FunctionName,
1167 const char *ModuleName,
1172 ACPI_APP_DEPENDENT_RETURN_VOID (
1174 void ACPI_INTERNAL_VAR_XFACE
1179 #endif /* __ACXFACE_H__ */