ReactOS 0.4.16-dev-258-g81860b4
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 - 2022, 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 MERCHANTABILITY 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 0x20221020
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 */
140ACPI_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 */
149ACPI_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 */
156ACPI_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 */
162ACPI_INIT_GLOBAL (UINT8, AcpiGbl_UseDefaultRegisterWidths, TRUE);
163
164/*
165 * Whether or not to validate (map) an entire table to verify
166 * checksum/duplication in early stage before install. Set this to TRUE to
167 * allow early table validation before install it to the table manager.
168 * Note that enabling this option causes errors to happen in some OSPMs
169 * during early initialization stages. Default behavior is to allow such
170 * validation.
171 */
172ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableTableValidation, TRUE);
173
174/*
175 * Optionally enable output from the AML Debug Object.
176 */
177ACPI_INIT_GLOBAL (UINT8, AcpiGbl_EnableAmlDebugObject, FALSE);
178
179/*
180 * Optionally copy the entire DSDT to local memory (instead of simply
181 * mapping it.) There are some BIOSs that corrupt or replace the original
182 * DSDT, creating the need for this option. Default is FALSE, do not copy
183 * the DSDT.
184 */
185ACPI_INIT_GLOBAL (UINT8, AcpiGbl_CopyDsdtLocally, FALSE);
186
187/*
188 * Optionally ignore an XSDT if present and use the RSDT instead.
189 * Although the ACPI specification requires that an XSDT be used instead
190 * of the RSDT, the XSDT has been found to be corrupt or ill-formed on
191 * some machines. Default behavior is to use the XSDT if present.
192 */
193ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DoNotUseXsdt, FALSE);
194
195/*
196 * Optionally use 32-bit FADT addresses if and when there is a conflict
197 * (address mismatch) between the 32-bit and 64-bit versions of the
198 * address. Although ACPICA adheres to the ACPI specification which
199 * requires the use of the corresponding 64-bit address if it is non-zero,
200 * some machines have been found to have a corrupted non-zero 64-bit
201 * address. Default is FALSE, do not favor the 32-bit addresses.
202 */
203ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFadtAddresses, FALSE);
204
205/*
206 * Optionally use 32-bit FACS table addresses.
207 * It is reported that some platforms fail to resume from system suspending
208 * if 64-bit FACS table address is selected:
209 * https://bugzilla.kernel.org/show_bug.cgi?id=74021
210 * Default is TRUE, favor the 32-bit addresses.
211 */
212ACPI_INIT_GLOBAL (UINT8, AcpiGbl_Use32BitFacsAddresses, TRUE);
213
214/*
215 * Optionally truncate I/O addresses to 16 bits. Provides compatibility
216 * with other ACPI implementations. NOTE: During ACPICA initialization,
217 * this value is set to TRUE if any Windows OSI strings have been
218 * requested by the BIOS.
219 */
220ACPI_INIT_GLOBAL (UINT8, AcpiGbl_TruncateIoAddresses, FALSE);
221
222/*
223 * Disable runtime checking and repair of values returned by control methods.
224 * Use only if the repair is causing a problem on a particular machine.
225 */
226ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableAutoRepair, FALSE);
227
228/*
229 * Optionally do not install any SSDTs from the RSDT/XSDT during initialization.
230 * This can be useful for debugging ACPI problems on some machines.
231 */
232ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisableSsdtTableInstall, FALSE);
233
234/*
235 * Optionally enable runtime namespace override.
236 */
237ACPI_INIT_GLOBAL (UINT8, AcpiGbl_RuntimeNamespaceOverride, TRUE);
238
239/*
240 * We keep track of the latest version of Windows that has been requested by
241 * the BIOS. ACPI 5.0.
242 */
243ACPI_INIT_GLOBAL (UINT8, AcpiGbl_OsiData, 0);
244
245/*
246 * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning
247 * that the ACPI hardware is no longer required. A flag in the FADT indicates
248 * a reduced HW machine, and that flag is duplicated here for convenience.
249 */
250ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_ReducedHardware, FALSE);
251
252/*
253 * Maximum timeout for While() loop iterations before forced method abort.
254 * This mechanism is intended to prevent infinite loops during interpreter
255 * execution within a host kernel.
256 */
257ACPI_INIT_GLOBAL (UINT32, AcpiGbl_MaxLoopIterations, ACPI_MAX_LOOP_TIMEOUT);
258
259/*
260 * Optionally ignore AE_NOT_FOUND errors from named reference package elements
261 * during DSDT/SSDT table loading. This reduces error "noise" in platforms
262 * whose firmware is carrying around a bunch of unused package objects that
263 * refer to non-existent named objects. However, If the AML actually tries to
264 * use such a package, the unresolved element(s) will be replaced with NULL
265 * elements.
266 */
267ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_IgnorePackageResolutionErrors, FALSE);
268
269/*
270 * This mechanism is used to trace a specified AML method. The method is
271 * traced each time it is executed.
272 */
273ACPI_INIT_GLOBAL (UINT32, AcpiGbl_TraceFlags, 0);
274ACPI_INIT_GLOBAL (const char *, AcpiGbl_TraceMethodName, NULL);
277
278/*
279 * Runtime configuration of debug output control masks. We want the debug
280 * switches statically initialized so they are already set when the debugger
281 * is entered.
282 */
283#ifdef ACPI_DEBUG_OUTPUT
285#else
287#endif
289
290/* Optionally enable timer output with Debug Object output */
291
292ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DisplayDebugTimer, FALSE);
293
294/*
295 * Debugger command handshake globals. Host OSes need to access these
296 * variables to implement their own command handshake mechanism.
297 */
298#ifdef ACPI_DEBUGGER
299ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_MethodExecuting, FALSE);
300ACPI_GLOBAL (char, AcpiGbl_DbLineBuf[ACPI_DB_LINE_BUFFER_SIZE]);
301#endif
302
303/*
304 * Other miscellaneous globals
305 */
307ACPI_GLOBAL (UINT32, AcpiCurrentGpeCount);
308ACPI_GLOBAL (BOOLEAN, AcpiGbl_SystemAwakeAndRunning);
309
310
311/*****************************************************************************
312 *
313 * ACPICA public interface configuration.
314 *
315 * Interfaces that are configured out of the ACPICA build are replaced
316 * by inlined stubs by default.
317 *
318 ****************************************************************************/
319
320/*
321 * Hardware-reduced prototypes (default: Not hardware reduced).
322 *
323 * All ACPICA hardware-related interfaces that use these macros will be
324 * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag
325 * is set to TRUE.
326 *
327 * Note: This static build option for reduced hardware is intended to
328 * reduce ACPICA code size if desired or necessary. However, even if this
329 * option is not specified, the runtime behavior of ACPICA is dependent
330 * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set,
331 * the flag will enable similar behavior -- ACPICA will not attempt
332 * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.)
333 */
334#if (!ACPI_REDUCED_HARDWARE)
335#define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
336 ACPI_EXTERNAL_RETURN_STATUS(Prototype)
337
338#define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
339 ACPI_EXTERNAL_RETURN_OK(Prototype)
340
341#define ACPI_HW_DEPENDENT_RETURN_UINT32(prototype) \
342 ACPI_EXTERNAL_RETURN_UINT32(prototype)
343
344#define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
345 ACPI_EXTERNAL_RETURN_VOID(Prototype)
346
347#else
348#define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
349 static ACPI_INLINE Prototype {return(AE_NOT_CONFIGURED);}
350
351#define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
352 static ACPI_INLINE Prototype {return(AE_OK);}
353
354#define ACPI_HW_DEPENDENT_RETURN_UINT32(prototype) \
355 static ACPI_INLINE prototype {return(0);}
356
357#define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
358 static ACPI_INLINE Prototype {return;}
359
360#endif /* !ACPI_REDUCED_HARDWARE */
361
362
363/*
364 * Error message prototypes (default: error messages enabled).
365 *
366 * All interfaces related to error and warning messages
367 * will be configured out of the ACPICA build if the
368 * ACPI_NO_ERROR_MESSAGE flag is defined.
369 */
370#ifndef ACPI_NO_ERROR_MESSAGES
371#define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
372 Prototype;
373
374#else
375#define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
376 static ACPI_INLINE Prototype {return;}
377
378#endif /* ACPI_NO_ERROR_MESSAGES */
379
380
381/*
382 * Debugging output prototypes (default: no debug output).
383 *
384 * All interfaces related to debug output messages
385 * will be configured out of the ACPICA build unless the
386 * ACPI_DEBUG_OUTPUT flag is defined.
387 */
388#ifdef ACPI_DEBUG_OUTPUT
389#define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
390 Prototype;
391
392#else
393#define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
394 static ACPI_INLINE Prototype {return;}
395
396#endif /* ACPI_DEBUG_OUTPUT */
397
398
399/*
400 * Application prototypes
401 *
402 * All interfaces used by application will be configured
403 * out of the ACPICA build unless the ACPI_APPLICATION
404 * flag is defined.
405 */
406#ifdef ACPI_APPLICATION
407#define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
408 Prototype;
409
410#else
411#define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
412 static ACPI_INLINE Prototype {return;}
413
414#endif /* ACPI_APPLICATION */
415
416
417/*
418 * Debugger prototypes
419 *
420 * All interfaces used by debugger will be configured
421 * out of the ACPICA build unless the ACPI_DEBUGGER
422 * flag is defined.
423 */
424#ifdef ACPI_DEBUGGER
425#define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
426 ACPI_EXTERNAL_RETURN_OK(Prototype)
427
428#define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
429 ACPI_EXTERNAL_RETURN_VOID(Prototype)
430
431#else
432#define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
433 static ACPI_INLINE Prototype {return(AE_OK);}
434
435#define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
436 static ACPI_INLINE Prototype {return;}
437
438#endif /* ACPI_DEBUGGER */
439
440
441/*****************************************************************************
442 *
443 * ACPICA public interface prototypes
444 *
445 ****************************************************************************/
446
447/*
448 * Initialization
449 */
453 ACPI_TABLE_DESC *InitialStorage,
454 UINT32 InitialTableCount,
455 BOOLEAN AllowResize))
456
460 void))
461
465 UINT32 Flags))
466
470 UINT32 Flags))
471
475 void))
476
477
478/*
479 * Miscellaneous global interfaces
480 */
484 void))
485
489 void))
490
494 void))
495
499 ACPI_BUFFER *RetBuffer))
500
504 ACPI_STATISTICS *Stats))
505
507const char *
509 ACPI_STATUS Exception))
510
514 void))
515
519 ACPI_STRING InterfaceName))
520
524 ACPI_STRING InterfaceName))
525
529 UINT8 Action))
530
532UINT32
535 ACPI_PHYSICAL_ADDRESS Address,
536 ACPI_SIZE Length,
537 BOOLEAN Warn))
538
542 UINT8 *InBuffer,
543 ACPI_SIZE Length,
544 ACPI_PLD_INFO **ReturnBuffer))
545
546
547/*
548 * ACPI table load/unload interfaces
549 */
554
558 ACPI_PHYSICAL_ADDRESS Address))
559
564 UINT32 *TableIdx))
565
569 UINT32 TableIndex))
570
575
579 void))
580
581
582/*
583 * ACPI table manipulation interfaces
584 */
588 void))
589
593 ACPI_PHYSICAL_ADDRESS *RsdpAddress))
594
600 ACPI_TABLE_HEADER *OutTableHeader))
601
607 ACPI_TABLE_HEADER **OutTable))
608
610void
613
617 UINT32 TableIndex,
618 ACPI_TABLE_HEADER **OutTable))
619
624 void *Context))
625
630
631
632/*
633 * Namespace and name interfaces
634 */
643 void *Context,
644 void **ReturnValue))
645
649 char *HID,
651 void *Context,
652 void **ReturnValue))
653
659 ACPI_BUFFER *RetPathPtr))
660
666 ACPI_HANDLE *RetHandle))
667
673 void *Data))
674
680
686 void **Data))
687
691 const char *Name,
693 UINT32 DebugLayer,
694 UINT32 Flags))
695
696
697/*
698 * Object manipulation and enumeration
699 */
706 ACPI_BUFFER *ReturnObjectBuffer))
707
713 ACPI_OBJECT_LIST *ExternalParams,
714 ACPI_BUFFER *ReturnBuffer,
715 ACPI_OBJECT_TYPE ReturnType))
716
721 ACPI_DEVICE_INFO **ReturnBuffer))
722
726 UINT8 *Buffer))
727
734 ACPI_HANDLE *OutHandle))
735
741
746 ACPI_HANDLE *OutHandle))
747
748
749/*
750 * Handler interfaces
751 */
757
762 void *Context))
763
768
773 void *Context))
774
778 UINT32 AcpiEvent,
780 void *Context))
781
785 UINT32 AcpiEvent,
787
791 ACPI_HANDLE GpeDevice,
793 UINT32 Type,
795 void *Context))
796
800 ACPI_HANDLE GpeDevice,
804 void *Context))
805
809 ACPI_HANDLE GpeDevice,
812
819 void *Context))
820
827
835 void *Context))
836
843
848
853
854
855/*
856 * Global Lock interfaces
857 */
862 UINT32 *Handle))
863
867 UINT32 Handle))
868
869
870/*
871 * Interfaces to AML mutex objects
872 */
879
885
886
887/*
888 * Fixed Event interfaces
889 */
894 UINT32 Flags))
895
900 UINT32 Flags))
901
905 UINT32 Event))
906
911 ACPI_EVENT_STATUS *EventStatus))
912
913
914/*
915 * General Purpose Event (GPE) Interfaces
916 */
920 void))
921
925 ACPI_HANDLE GpeDevice,
927
931 ACPI_HANDLE GpeDevice,
933
937 ACPI_HANDLE GpeDevice,
939
943 ACPI_HANDLE GpeDevice,
945 UINT8 Action))
946
950 ACPI_HANDLE GpeDevice,
952
956 ACPI_HANDLE GpeDevice,
958 BOOLEAN IsMasked))
959
963 ACPI_HANDLE GpeDevice,
965
970 ACPI_HANDLE GpeDevice,
972
976 ACPI_HANDLE GpeDevice,
978 UINT8 Action))
979
983 ACPI_HANDLE GpeDevice,
985 ACPI_EVENT_STATUS *EventStatus))
986
988UINT32
990 ACPI_HANDLE GpeDevice,
992
996 void))
997
1001 void))
1002
1006 void))
1007
1010 void))
1011
1015 UINT32 GpeIndex,
1016 ACPI_HANDLE *GpeDevice))
1017
1021 ACPI_HANDLE GpeDevice,
1022 ACPI_GENERIC_ADDRESS *GpeBlockAddress,
1023 UINT32 RegisterCount,
1024 UINT32 InterruptNumber))
1025
1029 ACPI_HANDLE GpeDevice))
1030
1031
1032/*
1033 * Resource interfaces
1034 */
1035typedef
1036ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) (
1038 void *Context);
1039
1044 char *Name,
1045 ACPI_VENDOR_UUID *Uuid,
1046 ACPI_BUFFER *RetBuffer))
1047
1052 ACPI_BUFFER *RetBuffer))
1053
1058 ACPI_BUFFER *RetBuffer))
1059
1064 ACPI_BUFFER *RetBuffer))
1065
1070 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
1071 void *Context))
1072
1077 char *Name,
1078 ACPI_WALK_RESOURCE_CALLBACK UserFunction,
1079 void *Context))
1080
1085 ACPI_BUFFER *InBuffer))
1086
1091 ACPI_BUFFER *RetBuffer))
1092
1098
1102 UINT8 *AmlBuffer,
1104 ACPI_RESOURCE **ResourcePtr))
1105
1106
1107/*
1108 * Hardware (ACPI device) interfaces
1109 */
1112AcpiReset (
1113 void))
1114
1117AcpiRead (
1118 UINT64 *Value,
1120
1123AcpiWrite (
1124 UINT64 Value,
1126
1130 UINT32 RegisterId,
1132
1136 UINT32 RegisterId,
1137 UINT32 Value))
1138
1139
1140/*
1141 * Sleep/Wake interfaces
1142 */
1146 UINT8 SleepState,
1148 UINT8 *Slp_TypB))
1149
1153 UINT8 SleepState))
1154
1158 UINT8 SleepState))
1159
1163 void))
1164
1168 UINT8 SleepState))
1169
1173 UINT8 SleepState))
1174
1178 ACPI_PHYSICAL_ADDRESS PhysicalAddress,
1179 ACPI_PHYSICAL_ADDRESS PhysicalAddress64))
1180
1181
1182/*
1183 * ACPI Timer interfaces
1184 */
1189
1193 UINT32 *Ticks))
1194
1198 UINT32 StartTicks,
1200 UINT32 *TimeElapsed))
1201
1202
1203/*
1204 * Error/Warning output
1205 */
1209AcpiError (
1210 const char *ModuleName,
1212 const char *Format,
1213 ...))
1214
1219 const char *ModuleName,
1223 ...))
1224
1229 const char *ModuleName,
1231 const char *Format,
1232 ...))
1233
1237AcpiInfo (
1238 const char *Format,
1239 ...))
1240
1245 const char *ModuleName,
1247 const char *Format,
1248 ...))
1249
1254 const char *ModuleName,
1257 const char *Format,
1258 ...))
1259
1264 const char *ModuleName,
1266 const char *Format,
1267 ...))
1268
1269
1270/*
1271 * Debug output
1272 */
1276AcpiDebugPrint (
1277 UINT32 RequestedDebugLevel,
1282 const char *Format,
1283 ...))
1284
1288AcpiDebugPrintRaw (
1289 UINT32 RequestedDebugLevel,
1291 const char *FunctionName,
1292 const char *ModuleName,
1294 const char *Format,
1295 ...))
1296
1298void
1299AcpiTracePoint (
1303 char *Pathname))
1304
1307 void);
1308
1309void
1311 void);
1312
1313void
1315 char *BatchBuffer);
1316
1317void
1319 ACPI_THREAD_ID ThreadId);
1320
1321#endif /* __ACXFACE_H__ */
unsigned short UINT16
unsigned char BOOLEAN
unsigned long long UINT64
unsigned char UINT8
unsigned int UINT32
Type
Definition: Type.h:7
#define ACPI_INIT_FUNCTION
Definition: acenv.h:410
#define ACPI_INTERNAL_VAR_XFACE
Definition: acenv.h:338
UINT32 void void ** ReturnValue
Definition: acevents.h:216
#define ACPI_TRACE_LAYER_DEFAULT
Definition: acoutput.h:206
#define ACPI_NORMAL_DEFAULT
Definition: acoutput.h:190
#define ACPI_DEBUG_DEFAULT
Definition: acoutput.h:189
#define ACPI_COMPONENT_DEFAULT
Definition: acoutput.h:78
#define ACPI_TRACE_LEVEL_DEFAULT
Definition: acoutput.h:205
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK DescendingCallback
Definition: acpixf.h:641
void AcpiTerminateDebugger(void)
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:1220
#define ACPI_EXTERNAL_RETURN_UINT32(Prototype)
Definition: acpixf.h:110
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 ACPI_STATUS const char UINT32 const char const char UINT32 const char BOOLEAN Begin
Definition: acpixf.h:1301
void AcpiRunDebugger(char *BatchBuffer)
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 AmlBufferLength
Definition: acpixf.h:1103
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx 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:834
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE StartObject
Definition: acpixf.h:639
#define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype)
Definition: acpixf.h:393
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx 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:705
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx 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:658
#define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype)
Definition: acpixf.h:371
#define ACPI_EXTERNAL_RETURN_STATUS(Prototype)
Definition: acpixf.h:95
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 ACPI_STATUS const char UINT32 const char const char * ModuleName
Definition: acpixf.h:1280
#define ACPI_INIT_GLOBAL(type, name, value)
Definition: acpixf.h:84
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx 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:832
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx 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:817
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 ACPI_STATUS const char UINT32 const char const char UINT32 const char BOOLEAN UINT8 char *Pathname ACPI_STATUS AcpiInitializeDebugger(void)
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK UserFunction
Definition: acpixf.h:1078
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx 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:704
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:1147
#define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype)
Definition: acpixf.h:335
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 ACPI_WALK_CALLBACK ACPI_WALK_CALLBACK AscendingCallback
Definition: acpixf.h:642
#define ACPI_EXTERNAL_RETURN_PTR(Prototype)
Definition: acpixf.h:115
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 ACPI_STATUS const char UINT32 const char const char UINT32 ComponentId
Definition: acpixf.h:1281
#define ACPI_EXTERNAL_RETURN_VOID(Prototype)
Definition: acpixf.h:105
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx 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:672
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:1199
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx 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:732
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx UINT32 ACPI_TABLE_HEADER *OutTableHeader ACPI_TABLE_HEADER **OutTable ACPI_HANDLE UINT32 MaxDepth
Definition: acpixf.h:640
void AcpiSetDebuggerThreadId(ACPI_THREAD_ID ThreadId)
#define ACPI_GLOBAL(type, name)
Definition: acpixf.h:79
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 ACPI_STATUS const char UINT32 const char const char UINT32 const char BOOLEAN UINT8 * Aml
Definition: acpixf.h:1302
#define ACPI_HW_DEPENDENT_RETURN_UINT32(prototype)
Definition: acpixf.h:341
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 ACPI_STATUS const char UINT32 const char * FunctionName
Definition: acpixf.h:1279
ACPI_PHYSICAL_ADDRESS Address
Definition: acpixf.h:535
ACPI_PHYSICAL_ADDRESS ACPI_SIZE BOOLEAN Warn UINT32 *TableIdx 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:801
void(* ACPI_OBJECT_HANDLER)(ACPI_HANDLE Object, void *Data)
Definition: actypes.h:1163
UINT32 ACPI_OBJECT_TYPE
Definition: actypes.h:685
UINT8 ACPI_ADR_SPACE_TYPE
Definition: actypes.h:859
char * ACPI_STRING
Definition: actypes.h:462
ACPI_STATUS(* ACPI_EXCEPTION_HANDLER)(ACPI_STATUS AmlStatus, ACPI_NAME Name, UINT16 Opcode, UINT32 AmlOffset, void *Context)
Definition: actypes.h:1175
ACPI_STATUS(* ACPI_ADR_SPACE_SETUP)(ACPI_HANDLE RegionHandle, UINT32 Function, void *HandlerContext, void **RegionContext)
Definition: actypes.h:1239
UINT32 ACPI_STATUS
Definition: actypes.h:460
#define ACPI_PRINTF_LIKE(c)
Definition: actypes.h:315
ACPI_STATUS(* ACPI_TABLE_HANDLER)(UINT32 Event, void *Table, void *Context)
Definition: actypes.h:1185
UINT32(* ACPI_SCI_HANDLER)(void *Context)
Definition: actypes.h:1133
ACPI_STATUS(* ACPI_ADR_SPACE_HANDLER)(UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 BitWidth, UINT64 *Value, void *HandlerContext, void *RegionContext)
Definition: actypes.h:1203
UINT32 ACPI_EVENT_STATUS
Definition: actypes.h:790
void(* ACPI_NOTIFY_HANDLER)(ACPI_HANDLE Device, UINT32 Value, void *Context)
Definition: actypes.h:1157
UINT32(* ACPI_GPE_HANDLER)(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, void *Context)
Definition: actypes.h:1151
ACPI_STATUS(* ACPI_WALK_CALLBACK)(ACPI_HANDLE Object, UINT32 NestingLevel, void *Context, void **ReturnValue)
Definition: actypes.h:1249
UINT32(* ACPI_EVENT_HANDLER)(void *Context)
Definition: actypes.h:1147
void(* ACPI_GBL_EVENT_HANDLER)(UINT32 EventType, ACPI_HANDLE Device, UINT32 EventNumber, void *Context)
Definition: actypes.h:1137
#define ACPI_THREAD_ID
Definition: actypes.h:144
ACPI_STATUS(* ACPI_INIT_HANDLER)(ACPI_HANDLE Object, UINT32 Function)
Definition: actypes.h:1168
ACPI_TRACE_EVENT_TYPE
Definition: actypes.h:1413
UINT32(* ACPI_INTERFACE_HANDLER)(ACPI_STRING InterfaceName, UINT32 Supported)
Definition: actypes.h:1256
_Acquires_exclusive_lock_ Resource _Acquires_shared_lock_ Resource _Inout_ PERESOURCE Resource
Definition: cdprocs.h:843
_In_ CDROM_SCAN_FOR_SPECIAL_INFO _In_ PCDROM_SCAN_FOR_SPECIAL_HANDLER Function
Definition: cdrom.h:1156
Definition: bufpool.h:45
@ Out
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
static const WCHAR Signature[]
Definition: parser.c:141
#define ACPI_MAX_LOOP_TIMEOUT
Definition: acconfig.h:152
#define ACPI_DB_LINE_BUFFER_SIZE
Definition: acconfig.h:264
ACPI_STATUS AcpiInstallExceptionHandler(ACPI_EXCEPTION_HANDLER Handler)
Definition: evxface.c:427
ACPI_STATUS AcpiInstallGpeHandler(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT32 Type, ACPI_GPE_HANDLER Address, void *Context)
Definition: evxface.c:992
ACPI_STATUS AcpiRemoveNotifyHandler(ACPI_HANDLE Device, UINT32 HandlerType, ACPI_NOTIFY_HANDLER Handler)
Definition: evxface.c:273
ACPI_STATUS AcpiInstallGlobalEventHandler(ACPI_GBL_EVENT_HANDLER Handler, void *Context)
Definition: evxface.c:647
ACPI_STATUS AcpiInstallGpeRawHandler(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT32 Type, ACPI_GPE_HANDLER Address, void *Context)
Definition: evxface.c:1033
ACPI_STATUS AcpiReleaseGlobalLock(UINT32 Handle)
Definition: evxface.c:1251
ACPI_STATUS AcpiRemoveGpeHandler(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, ACPI_GPE_HANDLER Address)
Definition: evxface.c:1071
ACPI_STATUS AcpiInstallNotifyHandler(ACPI_HANDLE Device, UINT32 HandlerType, ACPI_NOTIFY_HANDLER Handler, void *Context)
Definition: evxface.c:96
ACPI_STATUS AcpiRemoveFixedEventHandler(UINT32 Event, ACPI_EVENT_HANDLER Handler)
Definition: evxface.c:786
ACPI_STATUS AcpiInstallSciHandler(ACPI_SCI_HANDLER Address, void *Context)
Definition: evxface.c:477
ACPI_STATUS AcpiRemoveSciHandler(ACPI_SCI_HANDLER Address)
Definition: evxface.c:565
ACPI_STATUS AcpiInstallFixedEventHandler(UINT32 Event, ACPI_EVENT_HANDLER Handler, void *Context)
Definition: evxface.c:707
ACPI_STATUS AcpiAcquireGlobalLock(UINT16 Timeout, UINT32 *Handle)
Definition: evxface.c:1205
ACPI_STATUS AcpiEnable(void)
Definition: evxfevnt.c:68
ACPI_STATUS AcpiClearEvent(UINT32 Event)
Definition: evxfevnt.c:333
ACPI_STATUS AcpiDisable(void)
Definition: evxfevnt.c:132
ACPI_STATUS AcpiEnableEvent(UINT32 Event, UINT32 Flags)
Definition: evxfevnt.c:190
ACPI_STATUS AcpiDisableEvent(UINT32 Event, UINT32 Flags)
Definition: evxfevnt.c:263
ACPI_STATUS AcpiGetEventStatus(UINT32 Event, ACPI_EVENT_STATUS *EventStatus)
Definition: evxfevnt.c:385
ACPI_STATUS AcpiClearGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:685
ACPI_STATUS AcpiUpdateAllGpes(void)
Definition: evxfgpe.c:79
UINT32 AcpiAnyGpeStatusSet(void)
Definition: evxfgpe.c:974
UINT32 AcpiDispatchGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:785
ACPI_STATUS AcpiMarkGpeForWake(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:388
ACPI_STATUS AcpiEnableGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:137
ACPI_STATUS AcpiEnableAllRuntimeGpes(void)
Definition: evxfgpe.c:898
ACPI_STATUS AcpiDisableGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:203
ACPI_STATUS AcpiDisableAllGpes(void)
Definition: evxfgpe.c:861
ACPI_STATUS AcpiMaskGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, BOOLEAN IsMasked)
Definition: evxfgpe.c:332
ACPI_STATUS AcpiGetGpeDevice(UINT32 Index, ACPI_HANDLE *GpeDevice)
Definition: evxfgpe.c:1207
ACPI_STATUS AcpiSetGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT8 Action)
Definition: evxfgpe.c:262
ACPI_STATUS AcpiInstallGpeBlock(ACPI_HANDLE GpeDevice, ACPI_GENERIC_ADDRESS *GpeBlockAddress, UINT32 RegisterCount, UINT32 InterruptNumber)
Definition: evxfgpe.c:1015
ACPI_STATUS AcpiSetGpeWakeMask(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, UINT8 Action)
Definition: evxfgpe.c:599
ACPI_STATUS AcpiGetGpeStatus(ACPI_HANDLE GpeDevice, UINT32 GpeNumber, ACPI_EVENT_STATUS *EventStatus)
Definition: evxfgpe.c:734
ACPI_STATUS AcpiSetupGpeForWake(ACPI_HANDLE WakeDevice, ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:440
ACPI_STATUS AcpiEnableAllWakeupGpes(void)
Definition: evxfgpe.c:936
ACPI_STATUS AcpiRemoveGpeBlock(ACPI_HANDLE GpeDevice)
Definition: evxfgpe.c:1129
ACPI_STATUS AcpiFinishGpe(ACPI_HANDLE GpeDevice, UINT32 GpeNumber)
Definition: evxfgpe.c:815
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_STATUS AcpiRemoveAddressSpaceHandler(ACPI_HANDLE Device, ACPI_ADR_SPACE_TYPE SpaceId, ACPI_ADR_SPACE_HANDLER Handler)
Definition: evxfregn.c:152
ULONG DebugLevel
Definition: fbtusb.c:26
ULONG Handle
Definition: gdb_input.c:15
Status
Definition: gdiplustypes.h:25
ASMGENDATA Table[]
Definition: genincdata.c:61
_Inout_ PUSB_DEVICE_HANDLE DeviceHandle
Definition: hubbusif.h:121
ACPI_STATUS AcpiGetTimer(UINT32 *Ticks)
Definition: hwtimer.c:106
ACPI_STATUS AcpiGetTimerResolution(UINT32 *Resolution)
Definition: hwtimer.c:67
ACPI_STATUS AcpiGetTimerDuration(UINT32 StartTicks, UINT32 EndTicks, UINT32 *TimeElapsed)
Definition: hwtimer.c:172
ACPI_STATUS AcpiReset(void)
Definition: hwxface.c:69
ACPI_STATUS AcpiWriteBitRegister(UINT32 RegisterId, UINT32 Value)
Definition: hwxface.c:282
ACPI_STATUS AcpiGetSleepTypeData(UINT8 SleepState, UINT8 *SleepTypeA, UINT8 *SleepTypeB)
Definition: hwxface.c:411
ACPI_STATUS AcpiReadBitRegister(UINT32 RegisterId, UINT32 *ReturnValue)
Definition: hwxface.c:213
ACPI_STATUS AcpiRead(UINT64 *ReturnValue, ACPI_GENERIC_ADDRESS *Reg)
Definition: hwxface.c:138
ACPI_STATUS AcpiWrite(UINT64 Value, ACPI_GENERIC_ADDRESS *Reg)
Definition: hwxface.c:169
ACPI_STATUS AcpiLeaveSleepStatePrep(UINT8 SleepState)
Definition: hwxfsleep.c:475
ACPI_STATUS AcpiEnterSleepStatePrep(UINT8 SleepState)
Definition: hwxfsleep.c:345
ACPI_STATUS AcpiSetFirmwareWakingVector(ACPI_PHYSICAL_ADDRESS PhysicalAddress, ACPI_PHYSICAL_ADDRESS PhysicalAddress64)
Definition: hwxfsleep.c:174
ACPI_STATUS AcpiEnterSleepStateS4bios(void)
Definition: hwxfsleep.c:207
ACPI_STATUS AcpiLeaveSleepState(UINT8 SleepState)
Definition: hwxfsleep.c:505
ACPI_STATUS AcpiEnterSleepState(UINT8 SleepState)
Definition: hwxfsleep.c:435
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:640
ACPI_STATUS AcpiGetDevices(char *HID, ACPI_WALK_CALLBACK UserFunction, void *Context, void **ReturnValue)
Definition: nsxfeval.c:886
ACPI_STATUS AcpiDetachData(ACPI_HANDLE ObjHandle, ACPI_OBJECT_HANDLER Handler)
Definition: nsxfeval.c:1009
ACPI_STATUS AcpiAttachData(ACPI_HANDLE ObjHandle, ACPI_OBJECT_HANDLER Handler, void *Data)
Definition: nsxfeval.c:952
ACPI_STATUS AcpiGetData(ACPI_HANDLE ObjHandle, ACPI_OBJECT_HANDLER Handler, void **Data)
Definition: nsxfeval.c:1065
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 AcpiEvaluateObject(ACPI_HANDLE Handle, ACPI_STRING Pathname, ACPI_OBJECT_LIST *ExternalParams, ACPI_BUFFER *ReturnBuffer)
Definition: nsxfeval.c:217
ACPI_STATUS AcpiGetObjectInfo(ACPI_HANDLE Handle, ACPI_DEVICE_INFO **ReturnBuffer)
Definition: nsxfname.c:287
ACPI_STATUS AcpiInstallMethod(UINT8 *Buffer)
Definition: nsxfname.c:561
ACPI_STATUS AcpiGetHandle(ACPI_HANDLE Parent, ACPI_STRING Pathname, ACPI_HANDLE *RetHandle)
Definition: nsxfname.c:85
ACPI_STATUS AcpiGetName(ACPI_HANDLE Handle, UINT32 NameType, ACPI_BUFFER *Buffer)
Definition: nsxfname.c:173
ACPI_STATUS AcpiGetParent(ACPI_HANDLE Handle, ACPI_HANDLE *RetHandle)
Definition: nsxfobj.c:132
ACPI_STATUS AcpiGetNextObject(ACPI_OBJECT_TYPE Type, ACPI_HANDLE Parent, ACPI_HANDLE Child, ACPI_HANDLE *RetHandle)
Definition: nsxfobj.c:209
ACPI_STATUS AcpiGetType(ACPI_HANDLE Handle, ACPI_OBJECT_TYPE *RetType)
Definition: nsxfobj.c:70
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
static ULONG Timeout
Definition: ping.c:61
ACPI_STATUS AcpiDebugTrace(const char *Name, UINT32 DebugLevel, UINT32 DebugLayer, UINT32 Flags)
Definition: psxface.c:81
ACPI_STATUS AcpiBufferToResource(UINT8 *AmlBuffer, UINT16 AmlBufferLength, ACPI_RESOURCE **ResourcePtr)
Definition: rscreate.c:68
ACPI_STATUS AcpiWalkResources(ACPI_HANDLE DeviceHandle, char *Name, ACPI_WALK_RESOURCE_CALLBACK UserFunction, void *Context)
Definition: rsxface.c:704
ACPI_STATUS AcpiGetEventResources(ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer)
Definition: rsxface.c:373
ACPI_STATUS AcpiWalkResourceBuffer(ACPI_BUFFER *Buffer, ACPI_WALK_RESOURCE_CALLBACK UserFunction, void *Context)
Definition: rsxface.c:606
ACPI_STATUS AcpiGetCurrentResources(ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer)
Definition: rsxface.c:225
ACPI_STATUS AcpiGetPossibleResources(ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer)
Definition: rsxface.c:273
ACPI_STATUS AcpiResourceToAddress64(ACPI_RESOURCE *Resource, ACPI_RESOURCE_ADDRESS64 *Out)
Definition: rsxface.c:417
ACPI_STATUS AcpiGetVendorResource(ACPI_HANDLE DeviceHandle, char *Name, ACPI_VENDOR_UUID *Uuid, ACPI_BUFFER *RetBuffer)
Definition: rsxface.c:486
ACPI_STATUS AcpiGetIrqRoutingTable(ACPI_HANDLE DeviceHandle, ACPI_BUFFER *RetBuffer)
Definition: rsxface.c:174
ACPI_STATUS AcpiSetCurrentResources(ACPI_HANDLE DeviceHandle, ACPI_BUFFER *InBuffer)
Definition: rsxface.c:318
_In_ UCHAR _In_ ULONG _Out_ PUCHAR OutType
Definition: scsi.h:4070
@ Warn
Definition: video.h:589
static BYTE Resolution
Definition: mouse.c:35
ACPI_STATUS AcpiInstallTableHandler(ACPI_TABLE_HANDLER Handler, void *Context)
Definition: tbxface.c:550
ACPI_STATUS AcpiRemoveTableHandler(ACPI_TABLE_HANDLER Handler)
Definition: tbxface.c:606
ACPI_STATUS AcpiGetTableByIndex(UINT32 TableIndex, ACPI_TABLE_HEADER **OutTable)
Definition: tbxface.c:491
ACPI_STATUS AcpiGetTableHeader(char *Signature, UINT32 Instance, ACPI_TABLE_HEADER *OutTableHeader)
Definition: tbxface.c:275
ACPI_STATUS ACPI_INIT_FUNCTION AcpiInitializeTables(ACPI_TABLE_DESC *InitialTableArray, UINT32 InitialTableCount, BOOLEAN AllowResize)
Definition: tbxface.c:107
ACPI_STATUS AcpiGetTable(char *Signature, UINT32 Instance, ACPI_TABLE_HEADER **OutTable)
Definition: tbxface.c:366
ACPI_STATUS ACPI_INIT_FUNCTION AcpiReallocateRootTable(void)
Definition: tbxface.c:183
void AcpiPutTable(ACPI_TABLE_HEADER *Table)
Definition: tbxface.c:437
ACPI_STATUS AcpiUnloadParentTable(ACPI_HANDLE Object)
Definition: tbxfload.c:433
ACPI_STATUS AcpiUnloadTable(UINT32 TableIndex)
Definition: tbxfload.c:524
ACPI_STATUS AcpiLoadTable(ACPI_TABLE_HEADER *Table, UINT32 *TableIdx)
Definition: tbxfload.c:375
ACPI_STATUS ACPI_INIT_FUNCTION AcpiInstallTable(ACPI_TABLE_HEADER *Table)
Definition: tbxfload.c:302
ACPI_STATUS ACPI_INIT_FUNCTION AcpiInstallPhysicalTable(ACPI_PHYSICAL_ADDRESS Address)
Definition: tbxfload.c:336
ACPI_STATUS ACPI_INIT_FUNCTION AcpiLoadTables(void)
Definition: tbxfload.c:69
ACPI_STATUS ACPI_INIT_FUNCTION AcpiFindRootPointer(ACPI_PHYSICAL_ADDRESS *TableAddress)
Definition: tbxfroot.c:160
const char * AcpiFormatException(ACPI_STATUS Status)
Definition: utexcep.c:70
ACPI_STATUS AcpiUpdateInterfaces(UINT8 Action)
Definition: utxface.c:485
ACPI_STATUS AcpiInstallInterface(ACPI_STRING InterfaceName)
Definition: utxface.c:332
ACPI_STATUS AcpiInstallInterfaceHandler(ACPI_INTERFACE_HANDLER Handler)
Definition: utxface.c:442
ACPI_STATUS AcpiGetSystemInfo(ACPI_BUFFER *OutBuffer)
Definition: utxface.c:145
ACPI_STATUS AcpiGetStatistics(ACPI_STATISTICS *Stats)
Definition: utxface.c:221
ACPI_STATUS AcpiInstallInitializationHandler(ACPI_INIT_HANDLER Handler, UINT32 Function)
Definition: utxface.c:267
ACPI_STATUS AcpiPurgeCachedObjects(void)
Definition: utxface.c:302
ACPI_STATUS AcpiDecodePldBuffer(UINT8 *InBuffer, ACPI_SIZE Length, ACPI_PLD_INFO **ReturnBuffer)
Definition: utxface.c:566
ACPI_STATUS AcpiSubsystemStatus(void)
Definition: utxface.c:109
ACPI_STATUS AcpiRemoveInterface(ACPI_STRING InterfaceName)
Definition: utxface.c:398
ACPI_STATUS ACPI_INIT_FUNCTION AcpiTerminate(void)
Definition: utxface.c:67
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 AcpiError(const char *ModuleName, UINT32 LineNumber, const char *Format,...)
Definition: utxferror.c:75
void ACPI_INTERNAL_VAR_XFACE AcpiWarning(const char *ModuleName, UINT32 LineNumber, const char *Format,...)
Definition: utxferror.c:166
void ACPI_INTERNAL_VAR_XFACE AcpiBiosError(const char *ModuleName, UINT32 LineNumber, const char *Format,...)
Definition: utxferror.c:240
void ACPI_INTERNAL_VAR_XFACE AcpiInfo(const char *Format,...)
Definition: utxferror.c:203
void ACPI_INTERNAL_VAR_XFACE AcpiBiosWarning(const char *ModuleName, UINT32 LineNumber, const char *Format,...)
Definition: utxferror.c:332
void ACPI_INTERNAL_VAR_XFACE AcpiException(const char *ModuleName, UINT32 LineNumber, ACPI_STATUS Status, const char *Format,...)
Definition: utxferror.c:115
void ACPI_INTERNAL_VAR_XFACE AcpiBiosException(const char *ModuleName, UINT32 LineNumber, ACPI_STATUS Status, const char *Format,...)
Definition: utxferror.c:280
ACPI_STATUS ACPI_INIT_FUNCTION AcpiInitializeSubsystem(void)
Definition: utxfinit.c:76
ACPI_STATUS ACPI_INIT_FUNCTION AcpiEnableSubsystem(UINT32 Flags)
Definition: utxfinit.c:155
ACPI_STATUS ACPI_INIT_FUNCTION AcpiInitializeObjects(UINT32 Flags)
Definition: utxfinit.c:267
ACPI_STATUS AcpiReleaseMutex(ACPI_HANDLE Handle, ACPI_STRING Pathname)
Definition: utxfmutex.c:193
ACPI_STATUS AcpiAcquireMutex(ACPI_HANDLE Handle, ACPI_STRING Pathname, UINT16 Timeout)
Definition: utxfmutex.c:149
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFDEVICE Child
Definition: wdffdo.h:536
_In_ WDFIOTARGET _In_ _Strict_type_match_ WDF_IO_TARGET_SENT_IO_ACTION Action
Definition: wdfiotarget.h:510
_Must_inspect_result_ _In_ WDFDEVICE ParentDevice
Definition: wdfpdo.h:220
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_WMI_INSTANCE_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_opt_ WDFWMIINSTANCE * Instance
Definition: wdfwmi.h:481
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS PhysicalAddress
Definition: iotypes.h:1098
#define const
Definition: zconf.h:233