ReactOS  r74406
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 - 2017, 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 0x20170303
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 support module level code by parsing the entire table as
201  * a TermList. Default is FALSE, do not execute entire table until some
202  * lock order issues are fixed.
203  */
204 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_ParseTableAsTermList, FALSE);
205 
206 /*
207  * Optionally use 32-bit FADT addresses if and when there is a conflict
208  * (address mismatch) between the 32-bit and 64-bit versions of the
209  * address. Although ACPICA adheres to the ACPI specification which
210  * requires the use of the corresponding 64-bit address if it is non-zero,
211  * some machines have been found to have a corrupted non-zero 64-bit
212  * address. Default is FALSE, do not favor the 32-bit addresses.
213  */
214 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFadtAddresses, FALSE);
215 
216 /*
217  * Optionally use 32-bit FACS table addresses.
218  * It is reported that some platforms fail to resume from system suspending
219  * if 64-bit FACS table address is selected:
220  * https://bugzilla.kernel.org/show_bug.cgi?id=74021
221  * Default is TRUE, favor the 32-bit addresses.
222  */
223 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFacsAddresses, TRUE);
224 
225 /*
226  * Optionally truncate I/O addresses to 16 bits. Provides compatibility
227  * with other ACPI implementations. NOTE: During ACPICA initialization,
228  * this value is set to TRUE if any Windows OSI strings have been
229  * requested by the BIOS.
230  */
231 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_TruncateIoAddresses, FALSE);
232 
233 /*
234  * Disable runtime checking and repair of values returned by control methods.
235  * Use only if the repair is causing a problem on a particular machine.
236  */
237 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableAutoRepair, FALSE);
238 
239 /*
240  * Optionally do not install any SSDTs from the RSDT/XSDT during initialization.
241  * This can be useful for debugging ACPI problems on some machines.
242  */
243 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableSsdtTableInstall, FALSE);
244 
245 /*
246  * Optionally enable runtime namespace override.
247  */
248 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_RuntimeNamespaceOverride, TRUE);
249 
250 /*
251  * We keep track of the latest version of Windows that has been requested by
252  * the BIOS. ACPI 5.0.
253  */
254 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_OsiData, 0);
255 
256 /*
257  * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning
258  * that the ACPI hardware is no longer required. A flag in the FADT indicates
259  * a reduced HW machine, and that flag is duplicated here for convenience.
260  */
261 ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_ReducedHardware, FALSE);
262 
263 /*
264  * Maximum number of While() loop iterations before forced method abort.
265  * This mechanism is intended to prevent infinite loops during interpreter
266  * execution within a host kernel.
267  */
268 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_MaxLoopIterations, ACPI_MAX_LOOP_COUNT);
269 
270 /*
271  * This mechanism is used to trace a specified AML method. The method is
272  * traced each time it is executed.
273  */
274 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceFlags, 0);
275 ACPI_INIT_GLOBAL (const char *, AcpiGbl_TraceMethodName, NULL);
276 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLevel, ACPI_TRACE_LEVEL_DEFAULT);
277 ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceDbgLayer, ACPI_TRACE_LAYER_DEFAULT);
278 
279 /*
280  * Runtime configuration of debug output control masks. We want the debug
281  * switches statically initialized so they are already set when the debugger
282  * is entered.
283  */
284 #ifdef ACPI_DEBUG_OUTPUT
286 #else
288 #endif
290 
291 /* Optionally enable timer output with Debug Object output */
292 
293 ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisplayDebugTimer, FALSE);
294 
295 /*
296  * Debugger command handshake globals. Host OSes need to access these
297  * variables to implement their own command handshake mechanism.
298  */
299 #ifdef ACPI_DEBUGGER
300 ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_MethodExecuting, FALSE);
301 ACPI_GLOBAL (char, AcpiGbl_DbLineBuf[ACPI_DB_LINE_BUFFER_SIZE]);
302 #endif
303 
304 /*
305  * Other miscellaneous globals
306  */
307 ACPI_GLOBAL (ACPI_TABLE_FADT, AcpiGbl_FADT);
308 ACPI_GLOBAL (UINT32, AcpiCurrentGpeCount);
309 ACPI_GLOBAL (BOOLEAN, AcpiGbl_SystemAwakeAndRunning);
310 
311 
312 /*****************************************************************************
313  *
314  * ACPICA public interface configuration.
315  *
316  * Interfaces that are configured out of the ACPICA build are replaced
317  * by inlined stubs by default.
318  *
319  ****************************************************************************/
320 
321 /*
322  * Hardware-reduced prototypes (default: Not hardware reduced).
323  *
324  * All ACPICA hardware-related interfaces that use these macros will be
325  * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag
326  * is set to TRUE.
327  *
328  * Note: This static build option for reduced hardware is intended to
329  * reduce ACPICA code size if desired or necessary. However, even if this
330  * option is not specified, the runtime behavior of ACPICA is dependent
331  * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set,
332  * the flag will enable similar behavior -- ACPICA will not attempt
333  * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.)
334  */
335 #if (!ACPI_REDUCED_HARDWARE)
336 #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
337  ACPI_EXTERNAL_RETURN_STATUS(Prototype)
338 
339 #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
340  ACPI_EXTERNAL_RETURN_OK(Prototype)
341 
342 #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
343  ACPI_EXTERNAL_RETURN_VOID(Prototype)
344 
345 #else
346 #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
347  static ACPI_INLINE Prototype {return(AE_NOT_CONFIGURED);}
348 
349 #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
350  static ACPI_INLINE Prototype {return(AE_OK);}
351 
352 #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
353  static ACPI_INLINE Prototype {return;}
354 
355 #endif /* !ACPI_REDUCED_HARDWARE */
356 
357 
358 /*
359  * Error message prototypes (default: error messages enabled).
360  *
361  * All interfaces related to error and warning messages
362  * will be configured out of the ACPICA build if the
363  * ACPI_NO_ERROR_MESSAGE flag is defined.
364  */
365 #ifndef ACPI_NO_ERROR_MESSAGES
366 #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
367  Prototype;
368 
369 #else
370 #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
371  static ACPI_INLINE Prototype {return;}
372 
373 #endif /* ACPI_NO_ERROR_MESSAGES */
374 
375 
376 /*
377  * Debugging output prototypes (default: no debug output).
378  *
379  * All interfaces related to debug output messages
380  * will be configured out of the ACPICA build unless the
381  * ACPI_DEBUG_OUTPUT flag is defined.
382  */
383 #ifdef ACPI_DEBUG_OUTPUT
384 #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
385  Prototype;
386 
387 #else
388 #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
389  static ACPI_INLINE Prototype {return;}
390 
391 #endif /* ACPI_DEBUG_OUTPUT */
392 
393 
394 /*
395  * Application prototypes
396  *
397  * All interfaces used by application will be configured
398  * out of the ACPICA build unless the ACPI_APPLICATION
399  * flag is defined.
400  */
401 #ifdef ACPI_APPLICATION
402 #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
403  Prototype;
404 
405 #else
406 #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
407  static ACPI_INLINE Prototype {return;}
408 
409 #endif /* ACPI_APPLICATION */
410 
411 
412 /*
413  * Debugger prototypes
414  *
415  * All interfaces used by debugger will be configured
416  * out of the ACPICA build unless the ACPI_DEBUGGER
417  * flag is defined.
418  */
419 #ifdef ACPI_DEBUGGER
420 #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
421  ACPI_EXTERNAL_RETURN_OK(Prototype)
422 
423 #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
424  ACPI_EXTERNAL_RETURN_VOID(Prototype)
425 
426 #else
427 #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
428  static ACPI_INLINE Prototype {return(AE_OK);}
429 
430 #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
431  static ACPI_INLINE Prototype {return;}
432 
433 #endif /* ACPI_DEBUGGER */
434 
435 
436 /*****************************************************************************
437  *
438  * ACPICA public interface prototypes
439  *
440  ****************************************************************************/
441 
442 /*
443  * Initialization
444  */
448  ACPI_TABLE_DESC *InitialStorage,
449  UINT32 InitialTableCount,
450  BOOLEAN AllowResize))
451 
455  void))
456 
460  UINT32 Flags))
461 
465  UINT32 Flags))
466 
470  void))
471 
472 
473 /*
474  * Miscellaneous global interfaces
475  */
478 AcpiEnable (
479  void))
480 
483 AcpiDisable (
484  void))
485 
489  void))
490 
494  ACPI_BUFFER *RetBuffer))
495 
499  ACPI_STATISTICS *Stats))
500 
502 const char *
504  ACPI_STATUS Exception))
505 
509  void))
510 
514  ACPI_STRING InterfaceName))
515 
519  ACPI_STRING InterfaceName))
520 
524  UINT8 Action))
525 
527 UINT32
530  ACPI_PHYSICAL_ADDRESS Address,
531  ACPI_SIZE Length,
532  BOOLEAN Warn))
533 
537  UINT8 *InBuffer,
538  ACPI_SIZE Length,
539  ACPI_PLD_INFO **ReturnBuffer))
540 
541 
542 /*
543  * ACPI table load/unload interfaces
544  */
548  ACPI_PHYSICAL_ADDRESS Address,
549  BOOLEAN Physical))
550 
555 
560 
564  void))
565 
566 
567 /*
568  * ACPI table manipulation interfaces
569  */
573  void))
574 
578  ACPI_PHYSICAL_ADDRESS *RsdpAddress))
579 
585  ACPI_TABLE_HEADER *OutTableHeader))
586 
589 AcpiGetTable (
590  ACPI_STRING Signature,
591  UINT32 Instance,
592  ACPI_TABLE_HEADER **OutTable))
593 
595 void
596 AcpiPutTable (
598 
602  UINT32 TableIndex,
603  ACPI_TABLE_HEADER **OutTable))
604 
609  void *Context))
610 
614  ACPI_TABLE_HANDLER Handler))
615 
616 
617 /*
618  * Namespace and name interfaces
619  */
628  void *Context,
629  void **ReturnValue))
630 
634  char *HID,
636  void *Context,
637  void **ReturnValue))
638 
641 AcpiGetName (
644  ACPI_BUFFER *RetPathPtr))
645 
651  ACPI_HANDLE *RetHandle))
652 
656  ACPI_HANDLE Object,
658  void *Data))
659 
663  ACPI_HANDLE Object,
664  ACPI_OBJECT_HANDLER Handler))
665 
668 AcpiGetData (
669  ACPI_HANDLE Object,
670  ACPI_OBJECT_HANDLER Handler,
671  void **Data))
672 
676  const char *Name,
678  UINT32 DebugLayer,
679  UINT32 Flags))
680 
681 
682 /*
683  * Object manipulation and enumeration
684  */
688  ACPI_HANDLE Object,
689  ACPI_STRING Pathname,
691  ACPI_BUFFER *ReturnObjectBuffer))
692 
696  ACPI_HANDLE Object,
697  ACPI_STRING Pathname,
698  ACPI_OBJECT_LIST *ExternalParams,
699  ACPI_BUFFER *ReturnBuffer,
700  ACPI_OBJECT_TYPE ReturnType))
701 
705  ACPI_HANDLE Object,
706  ACPI_DEVICE_INFO **ReturnBuffer))
707 
711  UINT8 *Buffer))
712 
716  ACPI_OBJECT_TYPE Type,
717  ACPI_HANDLE Parent,
719  ACPI_HANDLE *OutHandle))
720 
723 AcpiGetType (
724  ACPI_HANDLE Object,
725  ACPI_OBJECT_TYPE *OutType))
726 
730  ACPI_HANDLE Object,
731  ACPI_HANDLE *OutHandle))
732 
733 
734 /*
735  * Handler interfaces
736  */
740  ACPI_INIT_HANDLER Handler,
741  UINT32 Function))
742 
746  ACPI_SCI_HANDLER Address,
747  void *Context))
748 
752  ACPI_SCI_HANDLER Address))
753 
757  ACPI_GBL_EVENT_HANDLER Handler,
758  void *Context))
759 
763  UINT32 AcpiEvent,
764  ACPI_EVENT_HANDLER Handler,
765  void *Context))
766 
770  UINT32 AcpiEvent,
771  ACPI_EVENT_HANDLER Handler))
772 
776  ACPI_HANDLE GpeDevice,
778  UINT32 Type,
779  ACPI_GPE_HANDLER Address,
780  void *Context))
781 
785  ACPI_HANDLE GpeDevice,
786  UINT32 GpeNumber,
787  UINT32 Type,
788  ACPI_GPE_HANDLER Address,
789  void *Context))
790 
794  ACPI_HANDLE GpeDevice,
795  UINT32 GpeNumber,
796  ACPI_GPE_HANDLER Address))
797 
803  ACPI_NOTIFY_HANDLER Handler,
804  void *Context))
805 
809  ACPI_HANDLE Device,
810  UINT32 HandlerType,
811  ACPI_NOTIFY_HANDLER Handler))
812 
816  ACPI_HANDLE Device,
818  ACPI_ADR_SPACE_HANDLER Handler,
820  void *Context))
821 
825  ACPI_HANDLE Device,
826  ACPI_ADR_SPACE_TYPE SpaceId,
827  ACPI_ADR_SPACE_HANDLER Handler))
828 
832  ACPI_EXCEPTION_HANDLER Handler))
833 
837  ACPI_INTERFACE_HANDLER Handler))
838 
839 
840 /*
841  * Global Lock interfaces
842  */
846  UINT16 Timeout,
847  UINT32 *Handle))
848 
852  UINT32 Handle))
853 
854 
855 /*
856  * Interfaces to AML mutex objects
857  */
862  ACPI_STRING Pathname,
863  UINT16 Timeout))
864 
868  ACPI_HANDLE Handle,
869  ACPI_STRING Pathname))
870 
871 
872 /*
873  * Fixed Event interfaces
874  */
878  UINT32 Event,
879  UINT32 Flags))
880 
884  UINT32 Event,
885  UINT32 Flags))
886 
890  UINT32 Event))
891 
895  UINT32 Event,
896  ACPI_EVENT_STATUS *EventStatus))
897 
898 
899 /*
900  * General Purpose Event (GPE) Interfaces
901  */
905  void))
906 
910  ACPI_HANDLE GpeDevice,
911  UINT32 GpeNumber))
912 
916  ACPI_HANDLE GpeDevice,
917  UINT32 GpeNumber))
918 
921 AcpiClearGpe (
922  ACPI_HANDLE GpeDevice,
923  UINT32 GpeNumber))
924 
927 AcpiSetGpe (
928  ACPI_HANDLE GpeDevice,
929  UINT32 GpeNumber,
930  UINT8 Action))
931 
935  ACPI_HANDLE GpeDevice,
936  UINT32 GpeNumber))
937 
940 AcpiMaskGpe (
941  ACPI_HANDLE GpeDevice,
942  UINT32 GpeNumber,
943  BOOLEAN IsMasked))
944 
948  ACPI_HANDLE GpeDevice,
949  UINT32 GpeNumber))
950 
954  ACPI_HANDLE ParentDevice,
955  ACPI_HANDLE GpeDevice,
956  UINT32 GpeNumber))
957 
961  ACPI_HANDLE GpeDevice,
962  UINT32 GpeNumber,
963  UINT8 Action))
964 
968  ACPI_HANDLE GpeDevice,
969  UINT32 GpeNumber,
970  ACPI_EVENT_STATUS *EventStatus))
971 
975  void))
976 
980  void))
981 
985  void))
986 
990  UINT32 GpeIndex,
991  ACPI_HANDLE *GpeDevice))
992 
996  ACPI_HANDLE GpeDevice,
997  ACPI_GENERIC_ADDRESS *GpeBlockAddress,
998  UINT32 RegisterCount,
999  UINT32 InterruptNumber))
1000 
1004  ACPI_HANDLE GpeDevice))
1005 
1006 
1007 /*
1008  * Resource interfaces
1009  */
1010 typedef
1011 ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) (
1013  void *Context);
1014 
1018  ACPI_HANDLE Device,
1019  char *Name,
1020  ACPI_VENDOR_UUID *Uuid,
1021  ACPI_BUFFER *RetBuffer))
1022 
1026  ACPI_HANDLE Device,
1027  ACPI_BUFFER *RetBuffer))
1028 
1032  ACPI_HANDLE Device,
1033  ACPI_BUFFER *RetBuffer))
1034 
1039  ACPI_BUFFER *RetBuffer))
1040 
1045  ACPI_WALK_RESOURCE_CALLBACK UserFunction,
1046  void *Context))
1047 
1051  ACPI_HANDLE Device,
1052  char *Name,
1053  ACPI_WALK_RESOURCE_CALLBACK UserFunction,
1054  void *Context))
1055 
1059  ACPI_HANDLE Device,
1060  ACPI_BUFFER *InBuffer))
1061 
1065  ACPI_HANDLE Device,
1066  ACPI_BUFFER *RetBuffer))
1067 
1071  ACPI_RESOURCE *Resource,
1073 
1077  UINT8 *AmlBuffer,
1079  ACPI_RESOURCE **ResourcePtr))
1080 
1081 
1082 /*
1083  * Hardware (ACPI device) interfaces
1084  */
1087 AcpiReset (
1088  void))
1089 
1092 AcpiRead (
1093  UINT64 *Value,
1094  ACPI_GENERIC_ADDRESS *Reg))
1095 
1098 AcpiWrite (
1099  UINT64 Value,
1100  ACPI_GENERIC_ADDRESS *Reg))
1101 
1105  UINT32 RegisterId,
1106  UINT32 *ReturnValue))
1107 
1111  UINT32 RegisterId,
1112  UINT32 Value))
1113 
1114 
1115 /*
1116  * Sleep/Wake interfaces
1117  */
1121  UINT8 SleepState,
1123  UINT8 *Slp_TypB))
1124 
1128  UINT8 SleepState))
1129 
1133  UINT8 SleepState))
1134 
1138  void))
1139 
1143  UINT8 SleepState))
1144 
1148  UINT8 SleepState))
1149 
1153  ACPI_PHYSICAL_ADDRESS PhysicalAddress,
1154  ACPI_PHYSICAL_ADDRESS PhysicalAddress64))
1155 
1156 
1157 /*
1158  * ACPI Timer interfaces
1159  */
1163  UINT32 *Resolution))
1164 
1167 AcpiGetTimer (
1168  UINT32 *Ticks))
1169 
1173  UINT32 StartTicks,
1175  UINT32 *TimeElapsed))
1176 
1177 
1178 /*
1179  * Error/Warning output
1180  */
1184 AcpiError (
1185  const char *ModuleName,
1187  const char *Format,
1188  ...))
1189 
1193 AcpiException (
1194  const char *ModuleName,
1195  UINT32 LineNumber,
1197  const char *Format,
1198  ...))
1199 
1203 AcpiWarning (
1204  const char *ModuleName,
1205  UINT32 LineNumber,
1206  const char *Format,
1207  ...))
1208 
1212 AcpiInfo (
1213  const char *Format,
1214  ...))
1215 
1219 AcpiBiosError (
1220  const char *ModuleName,
1221  UINT32 LineNumber,
1222  const char *Format,
1223  ...))
1224 
1229  const char *ModuleName,
1230  UINT32 LineNumber,
1231  const char *Format,
1232  ...))
1233 
1234 
1235 /*
1236  * Debug output
1237  */
1241 AcpiDebugPrint (
1242  UINT32 RequestedDebugLevel,
1243  UINT32 LineNumber,
1244  const char *FunctionName,
1245  const char *ModuleName,
1247  const char *Format,
1248  ...))
1249 
1253 AcpiDebugPrintRaw (
1254  UINT32 RequestedDebugLevel,
1255  UINT32 LineNumber,
1256  const char *FunctionName,
1257  const char *ModuleName,
1258  UINT32 ComponentId,
1259  const char *Format,
1260  ...))
1261 
1263 void
1264 AcpiTracePoint (
1265  ACPI_TRACE_EVENT_TYPE Type,
1266  BOOLEAN Begin,
1267  UINT8 *Aml,
1268  char *Pathname))
1269 
1271 AcpiInitializeDebugger (
1272  void);
1273 
1274 void
1276  void);
1277 
1278 void
1280  char *BatchBuffer);
1281 
1282 void
1284  ACPI_THREAD_ID ThreadId);
1285 
1286 #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:1255
ACPI_STATUS AcpiPurgeCachedObjects(void)
Definition: utxface.c:302
ACPI_STATUS(* ACPI_TABLE_HANDLER)(UINT32 Event, void *Table, void *Context)
Definition: actypes.h:1152
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:624
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:624
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:827
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
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
#define ACPI_MAX_LOOP_COUNT
Definition: acconfig.h:152
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:817
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:613
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:705
ACPI_EFI_DEVICE_PATH ACPI_EFI_HANDLE * Device
Definition: acefiex.h:623
IN OUT PIRP IN ULONG IN WMIENABLEDISABLECONTROL Function
Definition: wmilib.h:37
ACPI_STATUS ACPI_INIT_FUNCTION AcpiEnableSubsystem(UINT32 Flags)
Definition: utxfinit.c:155
ACPI_STATUS ACPI_INIT_FUNCTION AcpiReallocateRootTable(void)
Definition: tbxface.c:183
#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:1035
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:1122
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:717
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:336
#define ACPI_DB_LINE_BUFFER_SIZE
Definition: acconfig.h:251
ULONG DebugLevel
Definition: fbtusb.c:26
ACPI_STATUS ACPI_INIT_FUNCTION AcpiInitializeSubsystem(void)
Definition: utxfinit.c:76
ACPI_STATUS AcpiDisableGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:184
ACPI_STATUS AcpiRemoveTableHandler(ACPI_TABLE_HANDLER Handler)
Definition: tbxface.c:571
#define ACPI_GLOBAL(type, name)
Definition: acpixf.h:79
ACPI_STATUS AcpiSetupGpeForWake(ACPI_HANDLE WakeDevice, ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:421
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_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:786
ACPI_STATUS AcpiGetTable(char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **OutTable)
Definition: tbxface.c:336
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:802
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:203
#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:817
ACPI_STATUS AcpiGetTableByIndex(UINT32 TableIndex, ACPI_TABLE_HEADER **OutTable)
Definition: tbxface.c:456
UINT32 void void ** ReturnValue
Definition: acevents.h:192
const char * AcpiFormatException(ACPI_STATUS Status)
Definition: utexcep.c:70
ACPI_STATUS ACPI_INIT_FUNCTION AcpiLoadTables(void)
Definition: tbxfload.c:69
unsigned int UINT32
char * ACPI_STRING
Definition: actypes.h:458
UINT32(* ACPI_INTERFACE_HANDLER)(ACPI_STRING InterfaceName, UINT32 Supported)
Definition: actypes.h:1209
ACPI_STATUS AcpiRemoveGpeHandler(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, ACPI_GPE_HANDLER Address)
Definition: evxface.c:1071
_Acquires_shared_lock_ _Curr_ PERESOURCE Resource
Definition: exfuncs.h:440
ACPI_STATUS ACPI_INIT_FUNCTION AcpiFindRootPointer(ACPI_PHYSICAL_ADDRESS *TableAddress)
Definition: tbxfroot.c:160
ACPI_STATUS AcpiRemoveFixedEventHandler(UINT32 Event, ACPI_EVENT_HANDLER Handler)
Definition: evxface.c:786
ACPI_STATUS AcpiReleaseGlobalLock(UINT32 Handle)
Definition: evxface.c:1242
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK UserFunction
Definition: acpixf.h:1052
ACPI_STATUS(* ACPI_WALK_CALLBACK)(ACPI_HANDLE Object, UINT32 NestingLevel, void *Context, void **ReturnValue)
Definition: actypes.h:1202
smooth NULL
Definition: ftsmooth.c:464
void ACPI_INTERNAL_VAR_XFACE AcpiBiosWarning(const char *ModuleName, UINT32 LineNumber, const char *Format,...)
Definition: utxferror.c:279
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:1118
ACPI_STATUS ACPI_INIT_FUNCTION AcpiTerminate(void)
Definition: utxface.c:67
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:689
ACPI_STATUS AcpiEnableGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:128
ACPI_STATUS AcpiMarkGpeForWake(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:369
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 AmlBufferLength
Definition: acpixf.h:1078
void(* ACPI_GBL_EVENT_HANDLER)(UINT32 EventType, ACPI_HANDLE Device, UINT32 EventNumber, void *Context)
Definition: actypes.h:1104
ACPI_STATUS AcpiGetDevices(char *HID, ACPI_WALK_CALLBACK UserFunction, void *Context, void **ReturnValue)
Definition: nsxfeval.c:859
ACPI_STATUS AcpiUnloadParentTable(ACPI_HANDLE Object)
Definition: tbxfload.c:400
#define ACPI_COMPONENT_DEFAULT
Definition: acoutput.h:78
#define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype)
Definition: acpixf.h:388
_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:318
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
ACPI_STATUS AcpiDetachData(ACPI_HANDLE ObjHandle, ACPI_OBJECT_HANDLER Handler)
Definition: nsxfeval.c:982
ACPI_TRACE_EVENT_TYPE
Definition: actypes.h:1353
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 ACPI_INIT_FUNCTION AcpiInitializeTables(ACPI_TABLE_DESC *InitialTableArray, UINT32 InitialTableCount, BOOLEAN AllowResize)
Definition: tbxface.c:107
ACPI_STATUS AcpiWrite(UINT64 Value, ACPI_GENERIC_ADDRESS *Reg)
Definition: hwxface.c:239
UINT32 ACPI_EVENT_STATUS
Definition: actypes.h:760
ACPI_STATUS AcpiGetData(ACPI_HANDLE ObjHandle, ACPI_OBJECT_HANDLER Handler, void **Data)
Definition: nsxfeval.c:1038
ACPI_STATUS AcpiRemoveInterface(ACPI_STRING InterfaceName)
Definition: utxface.c:398
ACPI_STATUS AcpiClearEvent(UINT32 Event)
Definition: evxfevnt.c:319
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
#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_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:1174
ACPI_STATUS AcpiEnableAllRuntimeGpes(void)
Definition: evxfgpe.c:842
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS PhysicalAddress
Definition: iotypes.h:1060
void AcpiRunDebugger(char *BatchBuffer)
void(* ACPI_NOTIFY_HANDLER)(ACPI_HANDLE Device, UINT32 Value, void *Context)
Definition: actypes.h:1124
void ACPI_INTERNAL_VAR_XFACE AcpiError(const char *ModuleName, UINT32 LineNumber, const char *Format,...)
Definition: utxferror.c:75
VOID UINTN Length
Definition: acefiex.h:718
ACPI_STATUS AcpiInstallInterface(ACPI_STRING InterfaceName)
Definition: utxface.c:332
ACPI_STATUS AcpiMaskGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, BOOLEAN IsMasked)
Definition: evxfgpe.c:313
ACPI_STATUS AcpiSetGpeWakeMask(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT8 Action)
Definition: evxfgpe.c:570
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:880
ACPI_STATUS AcpiClearGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:656
void ACPI_INTERNAL_VAR_XFACE AcpiBiosError(const char *ModuleName, UINT32 LineNumber, const char *Format,...)
Definition: utxferror.c:240
ACPI_STATUS AcpiReadBitRegister(UINT32 RegisterId, UINT32 *ReturnValue)
Definition: hwxface.c:337
ACPI_STATUS ACPI_INIT_FUNCTION AcpiInitializeObjects(UINT32 Flags)
Definition: utxfinit.c:267
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:657
UINTN UINT8 Value
Definition: acefiex.h:725
ACPI_STATUS(* ACPI_EXCEPTION_HANDLER)(ACPI_STATUS AmlStatus, ACPI_NAME Name, UINT16 Opcode, UINT32 AmlOffset, void *Context)
Definition: actypes.h:1142
ACPI_STATUS(* ACPI_ADR_SPACE_HANDLER)(UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext)
Definition: actypes.h:1170
#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:624
ACPI_STATUS AcpiInstallInitializationHandler(ACPI_INIT_HANDLER Handler, UINT32 Function)
Definition: utxface.c:267
UINT32(* ACPI_SCI_HANDLER)(void *Context)
Definition: actypes.h:1100
ACPI_STATUS AcpiGetObjectInfo(ACPI_HANDLE Handle, ACPI_DEVICE_INFO **ReturnBuffer)
Definition: nsxfname.c:286
ACPI_STATUS AcpiInstallTableHandler(ACPI_TABLE_HANDLER Handler, void *Context)
Definition: tbxface.c:515
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:1113
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:355
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:366
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:1135
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:1195
#define ACPI_INIT_FUNCTION
Definition: acenv.h:390
ACPI_STATUS AcpiReset(void)
Definition: hwxface.c:69
#define ACPI_EXTERNAL_RETURN_VOID(Prototype)
Definition: acpixf.h:105
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:245
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:805
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:1255
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
void AcpiPutTable(ACPI_TABLE_HEADER *Table)
Definition: tbxface.c:407
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:717
ACPI_STATUS ACPI_INIT_FUNCTION AcpiInstallTable(ACPI_PHYSICAL_ADDRESS Address, BOOLEAN Physical)
Definition: tbxfload.c:307
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:1255
#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:643
ACPI_STATUS AcpiFinishGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:759
unsigned long long UINT64
ACPI_STATUS AcpiInstallMethod(UINT8 *Buffer)
Definition: nsxfname.c:573
void AcpiTerminateDebugger(void)
static const WCHAR Signature[]
Definition: parser.c:141
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:1192
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:1114
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:624
void(* ACPI_OBJECT_HANDLER)(ACPI_HANDLE Object, void *Data)
Definition: actypes.h:1130
ACPI_STATUS AcpiInstallGpeBlock(ACPI_HANDLE GpeDevice, ACPI_GENERIC_ADDRESS *GpeBlockAddress, UINT32 RegisterCount, UINT32 InterruptNumber)
Definition: evxfgpe.c:921
ACPI_STATUS AcpiAttachData(ACPI_HANDLE ObjHandle, ACPI_OBJECT_HANDLER Handler, void *Data)
Definition: nsxfeval.c:925
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:689