ReactOS  r73890
acpixf.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Name: acpixf.h - External interfaces to the ACPI subsystem
4  *
5  *****************************************************************************/
6 
7 /*
8  * Copyright (C) 2000 - 2016, Intel Corp.
9  * All rights reserved.
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions
13  * are met:
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.
25  *
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.
29  *
30  * NO WARRANTY
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.
42  */
43 
44 #ifndef __ACXFACE_H__
45 #define __ACXFACE_H__
46 
47 /* Current ACPICA subsystem version in YYYYMMDD format */
48 
49 #define ACPI_CA_VERSION 0x20160318
50 
51 #include "acconfig.h"
52 #include "actypes.h"
53 #include "actbl.h"
54 #include "acbuffer.h"
55 
56 
57 /*****************************************************************************
58  *
59  * Macros used for ACPICA globals and configuration
60  *
61  ****************************************************************************/
62 
63 /*
64  * Ensure that global variables are defined and initialized only once.
65  *
66  * The use of these macros allows for a single list of globals (here)
67  * in order to simplify maintenance of the code.
68  */
69 #ifdef DEFINE_ACPI_GLOBALS
70 #define ACPI_GLOBAL(type,name) \
71  extern type name; \
72  type name
73 
74 #define ACPI_INIT_GLOBAL(type,name,value) \
75  type name=value
76 
77 #else
78 #ifndef ACPI_GLOBAL
79 #define ACPI_GLOBAL(type,name) \
80  extern type name
81 #endif
82 
83 #ifndef ACPI_INIT_GLOBAL
84 #define ACPI_INIT_GLOBAL(type,name,value) \
85  extern type name
86 #endif
87 #endif
88 
89 /*
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.
93  */
94 #ifndef ACPI_EXTERNAL_RETURN_STATUS
95 #define ACPI_EXTERNAL_RETURN_STATUS(Prototype) \
96  Prototype;
97 #endif
98 
99 #ifndef ACPI_EXTERNAL_RETURN_OK
100 #define ACPI_EXTERNAL_RETURN_OK(Prototype) \
101  Prototype;
102 #endif
103 
104 #ifndef ACPI_EXTERNAL_RETURN_VOID
105 #define ACPI_EXTERNAL_RETURN_VOID(Prototype) \
106  Prototype;
107 #endif
108 
109 #ifndef ACPI_EXTERNAL_RETURN_UINT32
110 #define ACPI_EXTERNAL_RETURN_UINT32(Prototype) \
111  Prototype;
112 #endif
113 
114 #ifndef ACPI_EXTERNAL_RETURN_PTR
115 #define ACPI_EXTERNAL_RETURN_PTR(Prototype) \
116  Prototype;
117 #endif
118 
119 
120 /*****************************************************************************
121  *
122  * Public globals and runtime configuration options
123  *
124  ****************************************************************************/
125 
126 /*
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.
130  *
131  * Currently, these features are enabled by this flag:
132  *
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
139  */
140 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableInterpreterSlack, FALSE);
141 
142 /*
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.
148  */
149 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_AutoSerializeMethods, TRUE);
150 
151 /*
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.
155  */
156 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_CreateOsiMethod, TRUE);
157 
158 /*
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.
161  */
162 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_UseDefaultRegisterWidths, TRUE);
163 
164 /*
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
169  * verification.
170  */
171 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_VerifyTableChecksum, TRUE);
172 
173 /*
174  * Optionally enable output from the AML Debug Object.
175  */
176 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableAmlDebugObject, FALSE);
177 
178 /*
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
182  * the DSDT.
183  */
184 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_CopyDsdtLocally, FALSE);
185 
186 /*
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.
191  */
192 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DoNotUseXsdt, FALSE);
193 
194 /*
195  * Optionally support group module level code.
196  */
197 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_GroupModuleLevelCode, FALSE);
198 
199 /*
200  * Optionally use 32-bit FADT addresses if and when there is a conflict
201  * (address mismatch) between the 32-bit and 64-bit versions of the
202  * address. Although ACPICA adheres to the ACPI specification which
203  * requires the use of the corresponding 64-bit address if it is non-zero,
204  * some machines have been found to have a corrupted non-zero 64-bit
205  * address. Default is FALSE, do not favor the 32-bit addresses.
206  */
207 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFadtAddresses, FALSE);
208 
209 /*
210  * Optionally use 32-bit FACS table addresses.
211  * It is reported that some platforms fail to resume from system suspending
212  * if 64-bit FACS table address is selected:
213  * https://bugzilla.kernel.org/show_bug.cgi?id=74021
214  * Default is TRUE, favor the 32-bit addresses.
215  */
216 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFacsAddresses, TRUE);
217 
218 /*
219  * Optionally truncate I/O addresses to 16 bits. Provides compatibility
220  * with other ACPI implementations. NOTE: During ACPICA initialization,
221  * this value is set to TRUE if any Windows OSI strings have been
222  * requested by the BIOS.
223  */
224 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_TruncateIoAddresses, FALSE);
225 
226 /*
227  * Disable runtime checking and repair of values returned by control methods.
228  * Use only if the repair is causing a problem on a particular machine.
229  */
230 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableAutoRepair, FALSE);
231 
232 /*
233  * Optionally do not install any SSDTs from the RSDT/XSDT during initialization.
234  * This can be useful for debugging ACPI problems on some machines.
235  */
236 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableSsdtTableInstall, FALSE);
237 
238 /*
239  * Optionally enable runtime namespace override.
240  */
241 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_RuntimeNamespaceOverride, TRUE);
242 
243 /*
244  * We keep track of the latest version of Windows that has been requested by
245  * the BIOS. ACPI 5.0.
246  */
247 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_OsiData, 0);
248 
249 /*
250  * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning
251  * that the ACPI hardware is no longer required. A flag in the FADT indicates
252  * a reduced HW machine, and that flag is duplicated here for convenience.
253  */
254 ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_ReducedHardware, FALSE);
255 
256 /*
257  * This mechanism is used to trace a specified AML method. The method is
258  * traced each time it is executed.
259  */
260 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceFlags, 0);
261 ACPI_INIT_GLOBAL (const char *, AcpiGbl_TraceMethodName, NULL);
262 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLevel, ACPI_TRACE_LEVEL_DEFAULT);
263 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLayer, ACPI_TRACE_LAYER_DEFAULT);
264 
265 /*
266  * Runtime configuration of debug output control masks. We want the debug
267  * switches statically initialized so they are already set when the debugger
268  * is entered.
269  */
270 #ifdef ACPI_DEBUG_OUTPUT
272 #else
274 #endif
276 
277 /* Optionally enable timer output with Debug Object output */
278 
279 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisplayDebugTimer, FALSE);
280 
281 /*
282  * Other miscellaneous globals
283  */
284 ACPI_GLOBAL (ACPI_TABLE_FADT, AcpiGbl_FADT);
285 ACPI_GLOBAL (UINT32, AcpiCurrentGpeCount);
286 ACPI_GLOBAL (BOOLEAN, AcpiGbl_SystemAwakeAndRunning);
287 
288 
289 /*****************************************************************************
290  *
291  * ACPICA public interface configuration.
292  *
293  * Interfaces that are configured out of the ACPICA build are replaced
294  * by inlined stubs by default.
295  *
296  ****************************************************************************/
297 
298 /*
299  * Hardware-reduced prototypes (default: Not hardware reduced).
300  *
301  * All ACPICA hardware-related interfaces that use these macros will be
302  * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag
303  * is set to TRUE.
304  *
305  * Note: This static build option for reduced hardware is intended to
306  * reduce ACPICA code size if desired or necessary. However, even if this
307  * option is not specified, the runtime behavior of ACPICA is dependent
308  * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set,
309  * the flag will enable similar behavior -- ACPICA will not attempt
310  * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.)
311  */
312 #if (!ACPI_REDUCED_HARDWARE)
313 #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
314  ACPI_EXTERNAL_RETURN_STATUS(Prototype)
315 
316 #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
317  ACPI_EXTERNAL_RETURN_OK(Prototype)
318 
319 #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
320  ACPI_EXTERNAL_RETURN_VOID(Prototype)
321 
322 #else
323 #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
324  static ACPI_INLINE Prototype {return(AE_NOT_CONFIGURED);}
325 
326 #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
327  static ACPI_INLINE Prototype {return(AE_OK);}
328 
329 #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
330  static ACPI_INLINE Prototype {return;}
331 
332 #endif /* !ACPI_REDUCED_HARDWARE */
333 
334 
335 /*
336  * Error message prototypes (default: error messages enabled).
337  *
338  * All interfaces related to error and warning messages
339  * will be configured out of the ACPICA build if the
340  * ACPI_NO_ERROR_MESSAGE flag is defined.
341  */
342 #ifndef ACPI_NO_ERROR_MESSAGES
343 #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
344  Prototype;
345 
346 #else
347 #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
348  static ACPI_INLINE Prototype {return;}
349 
350 #endif /* ACPI_NO_ERROR_MESSAGES */
351 
352 
353 /*
354  * Debugging output prototypes (default: no debug output).
355  *
356  * All interfaces related to debug output messages
357  * will be configured out of the ACPICA build unless the
358  * ACPI_DEBUG_OUTPUT flag is defined.
359  */
360 #ifdef ACPI_DEBUG_OUTPUT
361 #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
362  Prototype;
363 
364 #else
365 #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
366  static ACPI_INLINE Prototype {return;}
367 
368 #endif /* ACPI_DEBUG_OUTPUT */
369 
370 
371 /*
372  * Application prototypes
373  *
374  * All interfaces used by application will be configured
375  * out of the ACPICA build unless the ACPI_APPLICATION
376  * flag is defined.
377  */
378 #ifdef ACPI_APPLICATION
379 #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
380  Prototype;
381 
382 #else
383 #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
384  static ACPI_INLINE Prototype {return;}
385 
386 #endif /* ACPI_APPLICATION */
387 
388 
389 /*
390  * Debugger prototypes
391  *
392  * All interfaces used by debugger will be configured
393  * out of the ACPICA build unless the ACPI_DEBUGGER
394  * flag is defined.
395  */
396 #ifdef ACPI_DEBUGGER
397 #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
398  ACPI_EXTERNAL_RETURN_OK(Prototype)
399 
400 #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
401  ACPI_EXTERNAL_RETURN_VOID(Prototype)
402 
403 #else
404 #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
405  static ACPI_INLINE Prototype {return(AE_OK);}
406 
407 #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
408  static ACPI_INLINE Prototype {return;}
409 
410 #endif /* ACPI_DEBUGGER */
411 
412 
413 /*****************************************************************************
414  *
415  * ACPICA public interface prototypes
416  *
417  ****************************************************************************/
418 
419 /*
420  * Initialization
421  */
425  ACPI_TABLE_DESC *InitialStorage,
426  UINT32 InitialTableCount,
427  BOOLEAN AllowResize))
428 
432  void))
433 
437  UINT32 Flags))
438 
442  UINT32 Flags))
443 
447  void))
448 
449 
450 /*
451  * Miscellaneous global interfaces
452  */
455 AcpiEnable (
456  void))
457 
460 AcpiDisable (
461  void))
462 
466  void))
467 
471  ACPI_BUFFER *RetBuffer))
472 
476  ACPI_STATISTICS *Stats))
477 
479 const char *
481  ACPI_STATUS Exception))
482 
486  void))
487 
491  ACPI_STRING InterfaceName))
492 
496  ACPI_STRING InterfaceName))
497 
501  UINT8 Action))
502 
504 UINT32
507  ACPI_PHYSICAL_ADDRESS Address,
508  ACPI_SIZE Length,
509  BOOLEAN Warn))
510 
514  UINT8 *InBuffer,
515  ACPI_SIZE Length,
516  ACPI_PLD_INFO **ReturnBuffer))
517 
518 
519 /*
520  * ACPI table load/unload interfaces
521  */
525  ACPI_PHYSICAL_ADDRESS Address,
526  BOOLEAN Physical))
527 
532 
537 
541  void))
542 
543 
544 /*
545  * ACPI table manipulation interfaces
546  */
550  void))
551 
555  ACPI_PHYSICAL_ADDRESS *RsdpAddress))
556 
562  ACPI_TABLE_HEADER *OutTableHeader))
563 
566 AcpiGetTable (
567  ACPI_STRING Signature,
568  UINT32 Instance,
569  ACPI_TABLE_HEADER **OutTable))
570 
574  UINT32 TableIndex,
575  ACPI_TABLE_HEADER **OutTable))
576 
581  void *Context))
582 
586  ACPI_TABLE_HANDLER Handler))
587 
588 
589 /*
590  * Namespace and name interfaces
591  */
600  void *Context,
601  void **ReturnValue))
602 
606  char *HID,
608  void *Context,
609  void **ReturnValue))
610 
613 AcpiGetName (
616  ACPI_BUFFER *RetPathPtr))
617 
623  ACPI_HANDLE *RetHandle))
624 
628  ACPI_HANDLE Object,
630  void *Data))
631 
635  ACPI_HANDLE Object,
636  ACPI_OBJECT_HANDLER Handler))
637 
640 AcpiGetData (
641  ACPI_HANDLE Object,
642  ACPI_OBJECT_HANDLER Handler,
643  void **Data))
644 
648  const char *Name,
650  UINT32 DebugLayer,
651  UINT32 Flags))
652 
653 
654 /*
655  * Object manipulation and enumeration
656  */
660  ACPI_HANDLE Object,
661  ACPI_STRING Pathname,
663  ACPI_BUFFER *ReturnObjectBuffer))
664 
668  ACPI_HANDLE Object,
669  ACPI_STRING Pathname,
670  ACPI_OBJECT_LIST *ExternalParams,
671  ACPI_BUFFER *ReturnBuffer,
672  ACPI_OBJECT_TYPE ReturnType))
673 
677  ACPI_HANDLE Object,
678  ACPI_DEVICE_INFO **ReturnBuffer))
679 
683  UINT8 *Buffer))
684 
688  ACPI_OBJECT_TYPE Type,
689  ACPI_HANDLE Parent,
691  ACPI_HANDLE *OutHandle))
692 
695 AcpiGetType (
696  ACPI_HANDLE Object,
697  ACPI_OBJECT_TYPE *OutType))
698 
702  ACPI_HANDLE Object,
703  ACPI_HANDLE *OutHandle))
704 
705 
706 /*
707  * Handler interfaces
708  */
712  ACPI_INIT_HANDLER Handler,
713  UINT32 Function))
714 
718  ACPI_SCI_HANDLER Address,
719  void *Context))
720 
724  ACPI_SCI_HANDLER Address))
725 
729  ACPI_GBL_EVENT_HANDLER Handler,
730  void *Context))
731 
735  UINT32 AcpiEvent,
736  ACPI_EVENT_HANDLER Handler,
737  void *Context))
738 
742  UINT32 AcpiEvent,
743  ACPI_EVENT_HANDLER Handler))
744 
750  UINT32 Type,
751  ACPI_GPE_HANDLER Address,
752  void *Context))
753 
757  ACPI_HANDLE GpeDevice,
758  UINT32 GpeNumber,
759  UINT32 Type,
760  ACPI_GPE_HANDLER Address,
761  void *Context))
762 
766  ACPI_HANDLE GpeDevice,
767  UINT32 GpeNumber,
768  ACPI_GPE_HANDLER Address))
769 
775  ACPI_NOTIFY_HANDLER Handler,
776  void *Context))
777 
781  ACPI_HANDLE Device,
782  UINT32 HandlerType,
783  ACPI_NOTIFY_HANDLER Handler))
784 
788  ACPI_HANDLE Device,
790  ACPI_ADR_SPACE_HANDLER Handler,
792  void *Context))
793 
797  ACPI_HANDLE Device,
798  ACPI_ADR_SPACE_TYPE SpaceId,
799  ACPI_ADR_SPACE_HANDLER Handler))
800 
804  ACPI_EXCEPTION_HANDLER Handler))
805 
809  ACPI_INTERFACE_HANDLER Handler))
810 
811 
812 /*
813  * Global Lock interfaces
814  */
818  UINT16 Timeout,
819  UINT32 *Handle))
820 
824  UINT32 Handle))
825 
826 
827 /*
828  * Interfaces to AML mutex objects
829  */
834  ACPI_STRING Pathname,
835  UINT16 Timeout))
836 
840  ACPI_HANDLE Handle,
841  ACPI_STRING Pathname))
842 
843 
844 /*
845  * Fixed Event interfaces
846  */
850  UINT32 Event,
851  UINT32 Flags))
852 
856  UINT32 Event,
857  UINT32 Flags))
858 
862  UINT32 Event))
863 
867  UINT32 Event,
868  ACPI_EVENT_STATUS *EventStatus))
869 
870 
871 /*
872  * General Purpose Event (GPE) Interfaces
873  */
877  void))
878 
882  ACPI_HANDLE GpeDevice,
883  UINT32 GpeNumber))
884 
888  ACPI_HANDLE GpeDevice,
889  UINT32 GpeNumber))
890 
893 AcpiClearGpe (
894  ACPI_HANDLE GpeDevice,
895  UINT32 GpeNumber))
896 
899 AcpiSetGpe (
900  ACPI_HANDLE GpeDevice,
901  UINT32 GpeNumber,
902  UINT8 Action))
903 
907  ACPI_HANDLE GpeDevice,
908  UINT32 GpeNumber))
909 
913  ACPI_HANDLE GpeDevice,
914  UINT32 GpeNumber))
915 
919  ACPI_HANDLE ParentDevice,
920  ACPI_HANDLE GpeDevice,
921  UINT32 GpeNumber))
922 
926  ACPI_HANDLE GpeDevice,
927  UINT32 GpeNumber,
928  UINT8 Action))
929 
933  ACPI_HANDLE GpeDevice,
934  UINT32 GpeNumber,
935  ACPI_EVENT_STATUS *EventStatus))
936 
940  void))
941 
945  void))
946 
950  void))
951 
955  UINT32 GpeIndex,
956  ACPI_HANDLE *GpeDevice))
957 
961  ACPI_HANDLE GpeDevice,
962  ACPI_GENERIC_ADDRESS *GpeBlockAddress,
963  UINT32 RegisterCount,
964  UINT32 InterruptNumber))
965 
969  ACPI_HANDLE GpeDevice))
970 
971 
972 /*
973  * Resource interfaces
974  */
975 typedef
976 ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) (
978  void *Context);
979 
983  ACPI_HANDLE Device,
984  char *Name,
985  ACPI_VENDOR_UUID *Uuid,
986  ACPI_BUFFER *RetBuffer))
987 
991  ACPI_HANDLE Device,
992  ACPI_BUFFER *RetBuffer))
993 
997  ACPI_HANDLE Device,
998  ACPI_BUFFER *RetBuffer))
999 
1004  ACPI_BUFFER *RetBuffer))
1005 
1010  ACPI_WALK_RESOURCE_CALLBACK UserFunction,
1011  void *Context))
1012 
1016  ACPI_HANDLE Device,
1017  char *Name,
1018  ACPI_WALK_RESOURCE_CALLBACK UserFunction,
1019  void *Context))
1020 
1024  ACPI_HANDLE Device,
1025  ACPI_BUFFER *InBuffer))
1026 
1030  ACPI_HANDLE Device,
1031  ACPI_BUFFER *RetBuffer))
1032 
1036  ACPI_RESOURCE *Resource,
1038 
1042  UINT8 *AmlBuffer,
1044  ACPI_RESOURCE **ResourcePtr))
1045 
1046 
1047 /*
1048  * Hardware (ACPI device) interfaces
1049  */
1052 AcpiReset (
1053  void))
1054 
1057 AcpiRead (
1058  UINT64 *Value,
1059  ACPI_GENERIC_ADDRESS *Reg))
1060 
1063 AcpiWrite (
1064  UINT64 Value,
1065  ACPI_GENERIC_ADDRESS *Reg))
1066 
1070  UINT32 RegisterId,
1071  UINT32 *ReturnValue))
1072 
1076  UINT32 RegisterId,
1077  UINT32 Value))
1078 
1079 
1080 /*
1081  * Sleep/Wake interfaces
1082  */
1086  UINT8 SleepState,
1088  UINT8 *Slp_TypB))
1089 
1093  UINT8 SleepState))
1094 
1098  UINT8 SleepState))
1099 
1103  void))
1104 
1108  UINT8 SleepState))
1109 
1113  UINT8 SleepState))
1114 
1118  ACPI_PHYSICAL_ADDRESS PhysicalAddress,
1119  ACPI_PHYSICAL_ADDRESS PhysicalAddress64))
1120 
1121 
1122 /*
1123  * ACPI Timer interfaces
1124  */
1128  UINT32 *Resolution))
1129 
1132 AcpiGetTimer (
1133  UINT32 *Ticks))
1134 
1138  UINT32 StartTicks,
1140  UINT32 *TimeElapsed))
1141 
1142 
1143 /*
1144  * Error/Warning output
1145  */
1149 AcpiError (
1150  const char *ModuleName,
1152  const char *Format,
1153  ...))
1154 
1158 AcpiException (
1159  const char *ModuleName,
1160  UINT32 LineNumber,
1162  const char *Format,
1163  ...))
1164 
1168 AcpiWarning (
1169  const char *ModuleName,
1170  UINT32 LineNumber,
1171  const char *Format,
1172  ...))
1173 
1177 AcpiInfo (
1178  const char *Format,
1179  ...))
1180 
1184 AcpiBiosError (
1185  const char *ModuleName,
1186  UINT32 LineNumber,
1187  const char *Format,
1188  ...))
1189 
1194  const char *ModuleName,
1195  UINT32 LineNumber,
1196  const char *Format,
1197  ...))
1198 
1199 
1200 /*
1201  * Debug output
1202  */
1206 AcpiDebugPrint (
1207  UINT32 RequestedDebugLevel,
1208  UINT32 LineNumber,
1209  const char *FunctionName,
1210  const char *ModuleName,
1212  const char *Format,
1213  ...))
1214 
1218 AcpiDebugPrintRaw (
1219  UINT32 RequestedDebugLevel,
1220  UINT32 LineNumber,
1221  const char *FunctionName,
1222  const char *ModuleName,
1223  UINT32 ComponentId,
1224  const char *Format,
1225  ...))
1226 
1228 void
1229 AcpiTracePoint (
1230  ACPI_TRACE_EVENT_TYPE Type,
1231  BOOLEAN Begin,
1232  UINT8 *Aml,
1233  char *Pathname))
1234 
1238 AcpiLogError (
1239  const char *Format,
1240  ...))
1241 
1244  void);
1245 
1246 void
1248  void);
1249 
1250 void
1252  ACPI_THREAD_ID ThreadId);
1253 
1254 #endif /* __ACXFACE_H__ */
ACPI_STATUS AcpiWalkResourceBuffer(ACPI_BUFFER *Buffer, ACPI_WALK_RESOURCE_CALLBACK UserFunction, void *Context)
Definition: rsxface.c:606
ACPI_STATUS AcpiRemoveSciHandler(ACPI_SCI_HANDLER Address)
Definition: evxface.c:565
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 const char UINT32 const char const char * ModuleName
Definition: acpixf.h:1220
ACPI_STATUS AcpiPurgeCachedObjects(void)
Definition: utxface.c:302
ACPI_STATUS(* ACPI_TABLE_HANDLER)(UINT32 Event, void *Table, void *Context)
Definition: actypes.h:1156
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK AscendingCallback
Definition: acpixf.h:596
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK DescendingCallback
Definition: acpixf.h:596
ACPI_STATUS AcpiInitializeSubsystem(void)
Definition: utxfinit.c:76
ACPI_STATUS AcpiRemoveNotifyHandler(ACPI_HANDLE Device, UINT32 HandlerType, ACPI_NOTIFY_HANDLER Handler)
Definition: evxface.c:273
PVOID ULONG Address
Definition: oprghdlr.h:14
UINT8 ACPI_ADR_SPACE_TYPE
Definition: actypes.h:824
void ACPI_INTERNAL_VAR_XFACE AcpiException(const char *ModuleName, UINT32 LineNumber, ACPI_STATUS Status, const char *Format,...)
Definition: utxferror.c:115
_Inout_ PUSB_DEVICE_HANDLE DeviceHandle
Definition: hubbusif.h:121
#define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype)
Definition: acpixf.h:383
Type
Definition: Type.h:6
ACPI_STATUS AcpiReleaseMutex(ACPI_HANDLE Handle, ACPI_STRING Pathname)
Definition: utxfmutex.c:191
ACPI_STATUS AcpiWriteBitRegister(UINT32 RegisterId, UINT32 Value)
Definition: hwxface.c:406
ACPI_STATUS AcpiInitializeObjects(UINT32 Flags)
Definition: utxfinit.c:267
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE ACPI_HANDLE ACPI_HANDLE *OutHandle ACPI_HANDLE *OutHandle void *Context void *Context ACPI_EVENT_HANDLER Handler UINT32 UINT32 ACPI_GPE_HANDLER void *Context UINT32 ACPI_NOTIFY_HANDLER void *Context ACPI_ADR_SPACE_TYPE ACPI_ADR_SPACE_HANDLER ACPI_ADR_SPACE_SETUP Setup
Definition: acpixf.h:789
ACPI_STATUS AcpiGetIrqRoutingTable(ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer)
Definition: rsxface.c:174
ACPI_STATUS AcpiInstallGpeRawHandler(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT32 Type, ACPI_GPE_HANDLER Address, void *Context)
Definition: evxface.c:1033
ACPI_STATUS AcpiGetTimerDuration(UINT32 StartTicks, UINT32 EndTicks, UINT32 *TimeElapsed)
Definition: hwtimer.c:164
ACPI_STATUS AcpiWalkNamespace(ACPI_OBJECT_TYPE Type, ACPI_HANDLE StartObject, UINT32 MaxDepth, ACPI_WALK_CALLBACK DescendingCallback, ACPI_WALK_CALLBACK AscendingCallback, void *Context, void **ReturnValue)
Definition: nsxfeval.c:609
ACPI_STATUS AcpiDecodePldBuffer(UINT8 *InBuffer, ACPI_SIZE Length, ACPI_PLD_INFO **ReturnBuffer)
Definition: utxface.c:566
ACPI_STATUS AcpiInstallFixedEventHandler(UINT32 Event, ACPI_EVENT_HANDLER Handler, void *Context)
Definition: evxface.c:707
ACPI_STATUS AcpiGetGpeStatus(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, ACPI_EVENT_STATUS *EventStatus)
Definition: evxfgpe.c:653
IN OUT PIRP IN ULONG IN WMIENABLEDISABLECONTROL Function
Definition: wmilib.h:37
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE ACPI_HANDLE ACPI_HANDLE *OutHandle ACPI_HANDLE *OutHandle void *Context void *Context ACPI_EVENT_HANDLER Handler UINT32 GpeNumber
Definition: acpixf.h:758
#define ACPI_EXTERNAL_RETURN_PTR(Prototype)
Definition: acpixf.h:115
ACPI_STATUS AcpiAcquireMutex(ACPI_HANDLE Handle, ACPI_STRING Pathname, UINT16 Timeout)
Definition: utxfmutex.c:149
#define TRUE
Definition: numbers.c:17
ACPI_STATUS AcpiInstallInterfaceHandler(ACPI_INTERFACE_HANDLER Handler)
Definition: utxface.c:442
ACPI_STATUS AcpiSetFirmwareWakingVector(ACPI_PHYSICAL_ADDRESS PhysicalAddress, ACPI_PHYSICAL_ADDRESS PhysicalAddress64)
Definition: hwxfsleep.c:165
ACPI_STATUS AcpiRemoveGpeBlock(ACPI_HANDLE GpeDevice)
Definition: evxfgpe.c:983
ACPI_STATUS AcpiInstallSciHandler(ACPI_SCI_HANDLER Address, void *Context)
Definition: evxface.c:477
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 * Slp_TypA
Definition: acpixf.h:1087
ACPI_STATUS AcpiEnableSubsystem(UINT32 Flags)
Definition: utxfinit.c:155
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE Parent
Definition: acpixf.h:689
ACPI_STATUS AcpiGetParent(ACPI_HANDLE Handle, ACPI_HANDLE *RetHandle)
Definition: nsxfobj.c:131
#define ACPI_TRACE_LAYER_DEFAULT
Definition: acoutput.h:202
UINT32 ACPI_STATUS
Definition: actypes.h:456
#define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype)
Definition: acpixf.h:313
ACPI_STATUS AcpiInstallTable(ACPI_PHYSICAL_ADDRESS Address, BOOLEAN Physical)
Definition: tbxfload.c:304
ULONG DebugLevel
Definition: fbtusb.c:26
ACPI_STATUS AcpiDisableGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:184
ACPI_STATUS AcpiRemoveTableHandler(ACPI_TABLE_HANDLER Handler)
Definition: tbxface.c:494
#define ACPI_GLOBAL(type, name)
Definition: acpixf.h:79
ACPI_STATUS AcpiSetupGpeForWake(ACPI_HANDLE WakeDevice, ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:369
ACPI_STATUS AcpiEnableEvent(UINT32 Event, UINT32 Flags)
Definition: evxfevnt.c:190
#define ACPI_EXTERNAL_RETURN_UINT32(Prototype)
Definition: acpixf.h:110
ACPI_STATUS AcpiUpdateAllGpes(void)
Definition: evxfgpe.c:79
ACPI_STATUS AcpiGetTableByIndex(UINT32 TableIndex, ACPI_TABLE_HEADER **Table)
Definition: tbxface.c:376
ACPI_STATUS AcpiGetTable(char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **OutTable)
Definition: tbxface.c:314
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE ACPI_HANDLE ACPI_HANDLE *OutHandle ACPI_HANDLE *OutHandle void *Context void *Context ACPI_EVENT_HANDLER Handler UINT32 UINT32 ACPI_GPE_HANDLER void *Context UINT32 HandlerType
Definition: acpixf.h:774
ACPI_STATUS AcpiGetSleepTypeData(UINT8 SleepState, UINT8 *SleepTypeA, UINT8 *SleepTypeB)
Definition: hwxface.c:535
ACPI_STATUS AcpiGetStatistics(ACPI_STATISTICS *Stats)
Definition: utxface.c:221
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
void ACPI_INTERNAL_VAR_XFACE AcpiInfo(const char *Format,...)
Definition: utxferror.c:207
#define ACPI_PRINTF_LIKE(c)
Definition: actypes.h:313
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE ACPI_HANDLE ACPI_HANDLE *OutHandle ACPI_HANDLE *OutHandle void *Context void *Context ACPI_EVENT_HANDLER Handler UINT32 UINT32 ACPI_GPE_HANDLER void *Context UINT32 ACPI_NOTIFY_HANDLER void *Context ACPI_ADR_SPACE_TYPE SpaceId
Definition: acpixf.h:789
UINT32 void void ** ReturnValue
Definition: acevents.h:187
const char * AcpiFormatException(ACPI_STATUS Status)
Definition: utexcep.c:70
unsigned int UINT32
char * ACPI_STRING
Definition: actypes.h:458
UINT32(* ACPI_INTERFACE_HANDLER)(ACPI_STRING InterfaceName, UINT32 Supported)
Definition: actypes.h:1208
ACPI_STATUS AcpiRemoveGpeHandler(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, ACPI_GPE_HANDLER Address)
Definition: evxface.c:1071
#define NULL
Definition: mystdio.h:57
_Acquires_shared_lock_ _Curr_ PERESOURCE Resource
Definition: exfuncs.h:440
ACPI_STATUS AcpiRemoveFixedEventHandler(UINT32 Event, ACPI_EVENT_HANDLER Handler)
Definition: evxface.c:786
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE ACPI_HANDLE ACPI_HANDLE *OutHandle ACPI_HANDLE *OutHandle void *Context void *Context ACPI_EVENT_HANDLER Handler UINT32 UINT32 ACPI_GPE_HANDLER void *Context UINT32 ACPI_NOTIFY_HANDLER void *Context ACPI_ADR_SPACE_TYPE ACPI_ADR_SPACE_HANDLER ACPI_ADR_SPACE_SETUP void *Context UINT32 *Handle ACPI_STRING UINT16 Timeout UINT32 Flags ACPI_EVENT_STATUS *EventStatus UINT32 GpeNumber UINT32 GpeNumber UINT32 GpeNumber ACPI_HANDLE GpeDevice
Definition: acpixf.h:920
ACPI_STATUS AcpiReleaseGlobalLock(UINT32 Handle)
Definition: evxface.c:1242
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK UserFunction
Definition: acpixf.h:1017
ACPI_STATUS(* ACPI_WALK_CALLBACK)(ACPI_HANDLE Object, UINT32 NestingLevel, void *Context, void **ReturnValue)
Definition: actypes.h:1201
void ACPI_INTERNAL_VAR_XFACE AcpiBiosWarning(const char *ModuleName, UINT32 LineNumber, const char *Format,...)
Definition: utxferror.c:283
ACPI_STATUS AcpiGetVendorResource(ACPI_HANDLE DeviceHandle, char *Name, ACPI_VENDOR_UUID *Uuid, ACPI_BUFFER *RetBuffer)
Definition: rsxface.c:486
ACPI_STATUS AcpiGetEventStatus(UINT32 Event, ACPI_EVENT_STATUS *EventStatus)
Definition: evxfevnt.c:364
UINT32 ACPI_OBJECT_TYPE
Definition: actypes.h:657
Definition: bufpool.h:45
UINT32(* ACPI_GPE_HANDLER)(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, void *Context)
Definition: actypes.h:1122
ACPI_STATUS AcpiInstallAddressSpaceHandler(ACPI_HANDLE Device, ACPI_ADR_SPACE_TYPE SpaceId, ACPI_ADR_SPACE_HANDLER Handler, ACPI_ADR_SPACE_SETUP Setup, void *Context)
Definition: evxfregn.c:79
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST * ParameterObjects
Definition: acpixf.h:661
ACPI_STATUS AcpiEnableGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:128
ACPI_STATUS AcpiMarkGpeForWake(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:317
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 AmlBufferLength
Definition: acpixf.h:1043
void(* ACPI_GBL_EVENT_HANDLER)(UINT32 EventType, ACPI_HANDLE Device, UINT32 EventNumber, void *Context)
Definition: actypes.h:1108
ACPI_STATUS AcpiGetDevices(char *HID, ACPI_WALK_CALLBACK UserFunction, void *Context, void **ReturnValue)
Definition: nsxfeval.c:855
ACPI_STATUS AcpiUnloadParentTable(ACPI_HANDLE Object)
Definition: tbxfload.c:438
#define ACPI_COMPONENT_DEFAULT
Definition: acoutput.h:78
#define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype)
Definition: acpixf.h:365
_In_ HANDLE Handle
Definition: extypes.h:390
ACPI_STATUS AcpiGetName(ACPI_HANDLE Handle, UINT32 NameType, ACPI_BUFFER *Buffer)
Definition: nsxfname.c:173
unsigned char BOOLEAN
#define ACPI_INTERNAL_VAR_XFACE
Definition: acenv.h:305
ACPI_STATUS AcpiSetGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT8 Action)
Definition: evxfgpe.c:243
#define ACPI_NORMAL_DEFAULT
Definition: acoutput.h:186
#define const
Definition: zconf.h:230
EFI_DEVICE_PATH EFI_HANDLE * Device
Definition: acefiex.h:571
ACPI_STATUS AcpiDetachData(ACPI_HANDLE ObjHandle, ACPI_OBJECT_HANDLER Handler)
Definition: nsxfeval.c:978
ACPI_TRACE_EVENT_TYPE
Definition: actypes.h:1352
ACPI_STATUS AcpiSetCurrentResources(ACPI_HANDLE DeviceHandle, ACPI_BUFFER *InBuffer)
Definition: rsxface.c:318
ACPI_STATUS AcpiGetTimer(UINT32 *Ticks)
Definition: hwtimer.c:106
Definition: video.h:581
_In_ PLIST_ENTRY _In_ PSTRING _In_ USHORT _In_opt_ PSTRING _In_opt_ PSTRING _In_ ULONG _In_ ULONG Action
Definition: fsrtlfuncs.h:738
ACPI_STATUS AcpiWrite(UINT64 Value, ACPI_GENERIC_ADDRESS *Reg)
Definition: hwxface.c:239
UINT32 ACPI_EVENT_STATUS
Definition: actypes.h:759
ACPI_STATUS AcpiGetData(ACPI_HANDLE ObjHandle, ACPI_OBJECT_HANDLER Handler, void **Data)
Definition: nsxfeval.c:1034
ACPI_STATUS AcpiRemoveInterface(ACPI_STRING InterfaceName)
Definition: utxface.c:398
ACPI_STATUS AcpiClearEvent(UINT32 Event)
Definition: evxfevnt.c:319
ACPI_STATUS AcpiFindRootPointer(ACPI_PHYSICAL_ADDRESS *TableAddress)
Definition: tbxfroot.c:160
ACPI_STATUS AcpiGetPossibleResources(ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer)
Definition: rsxface.c:273
ACPI_STATUS AcpiGetNextObject(ACPI_OBJECT_TYPE Type, ACPI_HANDLE Parent, ACPI_HANDLE Child, ACPI_HANDLE *RetHandle)
Definition: nsxfobj.c:208
ACPI_STATUS AcpiLoadTables(void)
Definition: tbxfload.c:69
#define ACPI_TRACE_LEVEL_DEFAULT
Definition: acoutput.h:201
ACPI_STATUS AcpiGetHandle(ACPI_HANDLE Parent, ACPI_STRING Pathname, ACPI_HANDLE *RetHandle)
Definition: nsxfname.c:85
ACPI_STATUS AcpiRemoveAddressSpaceHandler(ACPI_HANDLE Device, ACPI_ADR_SPACE_TYPE SpaceId, ACPI_ADR_SPACE_HANDLER Handler)
Definition: evxfregn.c:152
static IUnknown Object
Definition: main.c:512
ACPI_STATUS AcpiInitializeTables(ACPI_TABLE_DESC *InitialTableArray, UINT32 InitialTableCount, BOOLEAN AllowResize)
Definition: tbxface.c:107
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 EndTicks
Definition: acpixf.h:1139
ACPI_STATUS AcpiEnableAllRuntimeGpes(void)
Definition: evxfgpe.c:790
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS PhysicalAddress
Definition: iotypes.h:1060
ACPI_STATUS AcpiReallocateRootTable(void)
Definition: tbxface.c:183
void(* ACPI_NOTIFY_HANDLER)(ACPI_HANDLE Device, UINT32 Value, void *Context)
Definition: actypes.h:1128
void ACPI_INTERNAL_VAR_XFACE AcpiError(const char *ModuleName, UINT32 LineNumber, const char *Format,...)
Definition: utxferror.c:75
VOID UINTN Length
Definition: acefiex.h:666
ACPI_STATUS AcpiInstallInterface(ACPI_STRING InterfaceName)
Definition: utxface.c:332
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 const char UINT32 const char const char UINT32 const char ACPI_STATUS AcpiInitializeDebugger(void)
ACPI_STATUS AcpiSetGpeWakeMask(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT8 Action)
Definition: evxfgpe.c:518
ACPI_STATUS AcpiEvaluateObjectTyped(ACPI_HANDLE Handle, ACPI_STRING Pathname, ACPI_OBJECT_LIST *ExternalParams, ACPI_BUFFER *ReturnBuffer, ACPI_OBJECT_TYPE ReturnType)
Definition: nsxfeval.c:85
ACPI_STATUS AcpiEnableAllWakeupGpes(void)
Definition: evxfgpe.c:828
ACPI_STATUS AcpiClearGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:604
void ACPI_INTERNAL_VAR_XFACE AcpiBiosError(const char *ModuleName, UINT32 LineNumber, const char *Format,...)
Definition: utxferror.c:244
ACPI_STATUS AcpiReadBitRegister(UINT32 RegisterId, UINT32 *ReturnValue)
Definition: hwxface.c:337
ACPI_STATUS AcpiGetSystemInfo(ACPI_BUFFER *OutBuffer)
Definition: utxface.c:145
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER Handler
Definition: acpixf.h:629
UINTN UINT8 Value
Definition: acefiex.h:673
ACPI_STATUS(* ACPI_EXCEPTION_HANDLER)(ACPI_STATUS AmlStatus, ACPI_NAME Name, UINT16 Opcode, UINT32 AmlOffset, void *Context)
Definition: actypes.h:1146
ACPI_STATUS(* ACPI_ADR_SPACE_HANDLER)(UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext)
Definition: actypes.h:1169
#define ACPI_DEBUG_DEFAULT
Definition: acoutput.h:185
Status
Definition: gdiplustypes.h:24
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE StartObject
Definition: acpixf.h:596
ACPI_STATUS AcpiInstallInitializationHandler(ACPI_INIT_HANDLER Handler, UINT32 Function)
Definition: utxface.c:267
UINT32(* ACPI_SCI_HANDLER)(void *Context)
Definition: actypes.h:1104
ACPI_STATUS AcpiGetObjectInfo(ACPI_HANDLE Handle, ACPI_DEVICE_INFO **ReturnBuffer)
Definition: nsxfname.c:308
ACPI_STATUS AcpiInstallTableHandler(ACPI_TABLE_HANDLER Handler, void *Context)
Definition: tbxface.c:438
ACPI_STATUS AcpiRead(UINT64 *ReturnValue, ACPI_GENERIC_ADDRESS *Reg)
Definition: hwxface.c:138
static ULONG Timeout
Definition: ping.c:61
ACPI_STATUS AcpiUpdateInterfaces(UINT8 Action)
Definition: utxface.c:485
ACPI_STATUS AcpiGetGpeDevice(UINT32 Index, ACPI_HANDLE *GpeDevice)
Definition: evxfgpe.c:1061
ACPI_STATUS AcpiSubsystemStatus(void)
Definition: utxface.c:109
ACPI_STATUS AcpiAcquireGlobalLock(UINT16 Timeout, UINT32 *Handle)
Definition: evxface.c:1196
ACPI_STATUS AcpiLoadTable(ACPI_TABLE_HEADER *Table)
Definition: tbxfload.c:352
ACPI_STATUS AcpiDebugTrace(const char *Name, UINT32 DebugLevel, UINT32 DebugLayer, UINT32 Flags)
Definition: psxface.c:81
ACPI_STATUS AcpiEvaluateObject(ACPI_HANDLE Handle, ACPI_STRING Pathname, ACPI_OBJECT_LIST *ExternalParams, ACPI_BUFFER *ReturnBuffer)
Definition: nsxfeval.c:190
#define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype)
Definition: acpixf.h:343
UINT32 AcpiCheckAddressRange(ACPI_ADR_SPACE_TYPE SpaceId, ACPI_PHYSICAL_ADDRESS Address, ACPI_SIZE Length, BOOLEAN Warn)
Definition: utxface.c:521
void ACPI_INTERNAL_VAR_XFACE AcpiWarning(const char *ModuleName, UINT32 LineNumber, const char *Format,...)
Definition: utxferror.c:166
ACPI_STATUS(* ACPI_INIT_HANDLER)(ACPI_HANDLE Object, UINT32 Function)
Definition: actypes.h:1139
unsigned short UINT16
ACPI_STATUS AcpiEnterSleepStateS4bios(void)
Definition: hwxfsleep.c:198
IN PVOID Instance
Definition: pci.h:359
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 LineNumber
Definition: acpixf.h:1160
ACPI_STATUS AcpiReset(void)
Definition: hwxface.c:69
ACPI_STATUS AcpiGetType(ACPI_HANDLE Handle, ACPI_OBJECT_TYPE *RetType)
Definition: nsxfobj.c:69
ACPI_STATUS AcpiEnable(void)
Definition: evxfevnt.c:68
ACPI_STATUS AcpiGetTableHeader(char *Signature, UINT32 Instance, ACPI_TABLE_HEADER *OutTableHeader)
Definition: tbxface.c:228
ACPI_STATUS AcpiInstallNotifyHandler(ACPI_HANDLE Device, UINT32 HandlerType, ACPI_NOTIFY_HANDLER Handler, void *Context)
Definition: evxface.c:96
ACPI_STATUS AcpiDisableAllGpes(void)
Definition: evxfgpe.c:753
ACPI_STATUS AcpiTerminate(void)
Definition: utxface.c:67
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 const char UINT32 const char * FunctionName
Definition: acpixf.h:1220
ACPI_STATUS AcpiInstallExceptionHandler(ACPI_EXCEPTION_HANDLER Handler)
Definition: evxface.c:427
void AcpiSetDebuggerThreadId(ACPI_THREAD_ID ThreadId)
#define FALSE
Definition: numbers.c:16
static BYTE Resolution
Definition: mouse.c:35
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING ACPI_OBJECT_LIST ACPI_BUFFER *ReturnObjectBuffer ACPI_DEVICE_INFO **ReturnBuffer ACPI_HANDLE ACPI_HANDLE Child
Definition: acpixf.h:689
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 const char UINT32 const char const char UINT32 ComponentId
Definition: acpixf.h:1220
#define ACPI_INIT_GLOBAL(type, name, value)
Definition: acpixf.h:84
ACPI_STATUS AcpiGetTimerResolution(UINT32 *Resolution)
Definition: hwtimer.c:67
ACPI_STATUS AcpiInstallGpeHandler(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT32 Type, ACPI_GPE_HANDLER Address, void *Context)
Definition: evxface.c:992
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 NameType
Definition: acpixf.h:615
ACPI_STATUS AcpiFinishGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:707
unsigned long long UINT64
ACPI_STATUS AcpiInstallMethod(UINT8 *Buffer)
Definition: nsxfname.c:595
void AcpiTerminateDebugger(void)
static const WCHAR Signature[]
Definition: parser.c:140
unsigned char UINT8
ACPI_STATUS AcpiLeaveSleepState(UINT8 SleepState)
Definition: hwxfsleep.c:488
ACPI_STATUS AcpiInstallGlobalEventHandler(ACPI_GBL_EVENT_HANDLER Handler, void *Context)
Definition: evxface.c:647
ACPI_STATUS(* ACPI_ADR_SPACE_SETUP)(ACPI_HANDLE RegionHandle, UINT32 Function, void *HandlerContext, void **RegionContext)
Definition: actypes.h:1191
ACPI_STATUS AcpiGetCurrentResources(ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer)
Definition: rsxface.c:225
ACPI_STATUS AcpiGetEventResources(ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer)
Definition: rsxface.c:373
UINT32(* ACPI_EVENT_HANDLER)(void *Context)
Definition: actypes.h:1118
ACPI_STATUS AcpiWalkResources(ACPI_HANDLE DeviceHandle, char *Name, ACPI_WALK_RESOURCE_CALLBACK UserFunction, void *Context)
Definition: rsxface.c:704
ACPI_STATUS AcpiLeaveSleepStatePrep(UINT8 SleepState)
Definition: hwxfsleep.c:458
#define ACPI_THREAD_ID
Definition: actypes.h:144
ACPI_STATUS AcpiBufferToResource(UINT8 *AmlBuffer, UINT16 AmlBufferLength, ACPI_RESOURCE **ResourcePtr)
Definition: rscreate.c:68
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 MaxDepth
Definition: acpixf.h:596
void(* ACPI_OBJECT_HANDLER)(ACPI_HANDLE Object, void *Data)
Definition: actypes.h:1134
ACPI_STATUS AcpiInstallGpeBlock(ACPI_HANDLE GpeDevice, ACPI_GENERIC_ADDRESS *GpeBlockAddress, UINT32 RegisterCount, UINT32 InterruptNumber)
Definition: evxfgpe.c:869
ACPI_STATUS AcpiAttachData(ACPI_HANDLE ObjHandle, ACPI_OBJECT_HANDLER Handler, void *Data)
Definition: nsxfeval.c:921
ACPI_STATUS AcpiDisable(void)
Definition: evxfevnt.c:132
ACPI_STATUS AcpiEnterSleepStatePrep(UINT8 SleepState)
Definition: hwxfsleep.c:334
ACPI_STATUS AcpiEnterSleepState(UINT8 SleepState)
Definition: hwxfsleep.c:418
ACPI_STATUS AcpiResourceToAddress64(ACPI_RESOURCE *Resource, ACPI_RESOURCE_ADDRESS64 *Out)
Definition: rsxface.c:417
ACPI_STATUS AcpiDisableEvent(UINT32 Event, UINT32 Flags)
Definition: evxfevnt.c:256
#define ACPI_EXTERNAL_RETURN_STATUS(Prototype)
Definition: acpixf.h:95
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn BOOLEAN Physical UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK void void **ReturnValue UINT32 ACPI_BUFFER *RetPathPtr ACPI_OBJECT_HANDLER void *Data ACPI_OBJECT_HANDLER void **Data ACPI_STRING Pathname
Definition: acpixf.h:661