acglobal.h revision 1.3.2.2 1 1.3.2.2 bouyer /******************************************************************************
2 1.3.2.2 bouyer *
3 1.3.2.2 bouyer * Name: acglobal.h - Declarations for global variables
4 1.3.2.2 bouyer *
5 1.3.2.2 bouyer *****************************************************************************/
6 1.3.2.2 bouyer
7 1.3.2.2 bouyer /*
8 1.3.2.2 bouyer * Copyright (C) 2000 - 2011, Intel Corp.
9 1.3.2.2 bouyer * All rights reserved.
10 1.3.2.2 bouyer *
11 1.3.2.2 bouyer * Redistribution and use in source and binary forms, with or without
12 1.3.2.2 bouyer * modification, are permitted provided that the following conditions
13 1.3.2.2 bouyer * are met:
14 1.3.2.2 bouyer * 1. Redistributions of source code must retain the above copyright
15 1.3.2.2 bouyer * notice, this list of conditions, and the following disclaimer,
16 1.3.2.2 bouyer * without modification.
17 1.3.2.2 bouyer * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 1.3.2.2 bouyer * substantially similar to the "NO WARRANTY" disclaimer below
19 1.3.2.2 bouyer * ("Disclaimer") and any redistribution must be conditioned upon
20 1.3.2.2 bouyer * including a substantially similar Disclaimer requirement for further
21 1.3.2.2 bouyer * binary redistribution.
22 1.3.2.2 bouyer * 3. Neither the names of the above-listed copyright holders nor the names
23 1.3.2.2 bouyer * of any contributors may be used to endorse or promote products derived
24 1.3.2.2 bouyer * from this software without specific prior written permission.
25 1.3.2.2 bouyer *
26 1.3.2.2 bouyer * Alternatively, this software may be distributed under the terms of the
27 1.3.2.2 bouyer * GNU General Public License ("GPL") version 2 as published by the Free
28 1.3.2.2 bouyer * Software Foundation.
29 1.3.2.2 bouyer *
30 1.3.2.2 bouyer * NO WARRANTY
31 1.3.2.2 bouyer * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 1.3.2.2 bouyer * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 1.3.2.2 bouyer * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 1.3.2.2 bouyer * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 1.3.2.2 bouyer * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 1.3.2.2 bouyer * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 1.3.2.2 bouyer * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 1.3.2.2 bouyer * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 1.3.2.2 bouyer * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 1.3.2.2 bouyer * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 1.3.2.2 bouyer * POSSIBILITY OF SUCH DAMAGES.
42 1.3.2.2 bouyer */
43 1.3.2.2 bouyer
44 1.3.2.2 bouyer #ifndef __ACGLOBAL_H__
45 1.3.2.2 bouyer #define __ACGLOBAL_H__
46 1.3.2.2 bouyer
47 1.3.2.2 bouyer
48 1.3.2.2 bouyer /*
49 1.3.2.2 bouyer * Ensure that the globals are actually defined and initialized only once.
50 1.3.2.2 bouyer *
51 1.3.2.2 bouyer * The use of these macros allows a single list of globals (here) in order
52 1.3.2.2 bouyer * to simplify maintenance of the code.
53 1.3.2.2 bouyer */
54 1.3.2.2 bouyer #ifdef DEFINE_ACPI_GLOBALS
55 1.3.2.2 bouyer #define ACPI_EXTERN
56 1.3.2.2 bouyer #define ACPI_INIT_GLOBAL(a,b) a=b
57 1.3.2.2 bouyer #else
58 1.3.2.2 bouyer #define ACPI_EXTERN extern
59 1.3.2.2 bouyer #define ACPI_INIT_GLOBAL(a,b) a
60 1.3.2.2 bouyer #endif
61 1.3.2.2 bouyer
62 1.3.2.2 bouyer
63 1.3.2.2 bouyer #ifdef DEFINE_ACPI_GLOBALS
64 1.3.2.2 bouyer
65 1.3.2.2 bouyer /* Public globals, available from outside ACPICA subsystem */
66 1.3.2.2 bouyer
67 1.3.2.2 bouyer /*****************************************************************************
68 1.3.2.2 bouyer *
69 1.3.2.2 bouyer * Runtime configuration (static defaults that can be overriden at runtime)
70 1.3.2.2 bouyer *
71 1.3.2.2 bouyer ****************************************************************************/
72 1.3.2.2 bouyer
73 1.3.2.2 bouyer /*
74 1.3.2.2 bouyer * Enable "slack" in the AML interpreter? Default is FALSE, and the
75 1.3.2.2 bouyer * interpreter strictly follows the ACPI specification. Setting to TRUE
76 1.3.2.2 bouyer * allows the interpreter to ignore certain errors and/or bad AML constructs.
77 1.3.2.2 bouyer *
78 1.3.2.2 bouyer * Currently, these features are enabled by this flag:
79 1.3.2.2 bouyer *
80 1.3.2.2 bouyer * 1) Allow "implicit return" of last value in a control method
81 1.3.2.2 bouyer * 2) Allow access beyond the end of an operation region
82 1.3.2.2 bouyer * 3) Allow access to uninitialized locals/args (auto-init to integer 0)
83 1.3.2.2 bouyer * 4) Allow ANY object type to be a source operand for the Store() operator
84 1.3.2.2 bouyer * 5) Allow unresolved references (invalid target name) in package objects
85 1.3.2.2 bouyer * 6) Enable warning messages for behavior that is not ACPI spec compliant
86 1.3.2.2 bouyer */
87 1.3.2.2 bouyer UINT8 ACPI_INIT_GLOBAL (AcpiGbl_EnableInterpreterSlack, FALSE);
88 1.3.2.2 bouyer
89 1.3.2.2 bouyer /*
90 1.3.2.2 bouyer * Automatically serialize ALL control methods? Default is FALSE, meaning
91 1.3.2.2 bouyer * to use the Serialized/NotSerialized method flags on a per method basis.
92 1.3.2.2 bouyer * Only change this if the ASL code is poorly written and cannot handle
93 1.3.2.2 bouyer * reentrancy even though methods are marked "NotSerialized".
94 1.3.2.2 bouyer */
95 1.3.2.2 bouyer UINT8 ACPI_INIT_GLOBAL (AcpiGbl_AllMethodsSerialized, FALSE);
96 1.3.2.2 bouyer
97 1.3.2.2 bouyer /*
98 1.3.2.2 bouyer * Create the predefined _OSI method in the namespace? Default is TRUE
99 1.3.2.2 bouyer * because ACPI CA is fully compatible with other ACPI implementations.
100 1.3.2.2 bouyer * Changing this will revert ACPI CA (and machine ASL) to pre-OSI behavior.
101 1.3.2.2 bouyer */
102 1.3.2.2 bouyer UINT8 ACPI_INIT_GLOBAL (AcpiGbl_CreateOsiMethod, TRUE);
103 1.3.2.2 bouyer
104 1.3.2.2 bouyer /*
105 1.3.2.2 bouyer * Optionally use default values for the ACPI register widths. Set this to
106 1.3.2.2 bouyer * TRUE to use the defaults, if an FADT contains incorrect widths/lengths.
107 1.3.2.2 bouyer */
108 1.3.2.2 bouyer UINT8 ACPI_INIT_GLOBAL (AcpiGbl_UseDefaultRegisterWidths, TRUE);
109 1.3.2.2 bouyer
110 1.3.2.2 bouyer /*
111 1.3.2.2 bouyer * Optionally enable output from the AML Debug Object.
112 1.3.2.2 bouyer */
113 1.3.2.2 bouyer UINT8 ACPI_INIT_GLOBAL (AcpiGbl_EnableAmlDebugObject, FALSE);
114 1.3.2.2 bouyer
115 1.3.2.2 bouyer /*
116 1.3.2.2 bouyer * Optionally copy the entire DSDT to local memory (instead of simply
117 1.3.2.2 bouyer * mapping it.) There are some BIOSs that corrupt or replace the original
118 1.3.2.2 bouyer * DSDT, creating the need for this option. Default is FALSE, do not copy
119 1.3.2.2 bouyer * the DSDT.
120 1.3.2.2 bouyer */
121 1.3.2.2 bouyer UINT8 ACPI_INIT_GLOBAL (AcpiGbl_CopyDsdtLocally, FALSE);
122 1.3.2.2 bouyer
123 1.3.2.2 bouyer /*
124 1.3.2.2 bouyer * Optionally truncate I/O addresses to 16 bits. Provides compatibility
125 1.3.2.2 bouyer * with other ACPI implementations. NOTE: During ACPICA initialization,
126 1.3.2.2 bouyer * this value is set to TRUE if any Windows OSI strings have been
127 1.3.2.2 bouyer * requested by the BIOS.
128 1.3.2.2 bouyer */
129 1.3.2.2 bouyer UINT8 ACPI_INIT_GLOBAL (AcpiGbl_TruncateIoAddresses, FALSE);
130 1.3.2.2 bouyer
131 1.3.2.2 bouyer
132 1.3.2.2 bouyer /* AcpiGbl_FADT is a local copy of the FADT, converted to a common format. */
133 1.3.2.2 bouyer
134 1.3.2.2 bouyer ACPI_TABLE_FADT AcpiGbl_FADT;
135 1.3.2.2 bouyer UINT32 AcpiCurrentGpeCount;
136 1.3.2.2 bouyer UINT32 AcpiGbl_TraceFlags;
137 1.3.2.2 bouyer ACPI_NAME AcpiGbl_TraceMethodName;
138 1.3.2.2 bouyer BOOLEAN AcpiGbl_SystemAwakeAndRunning;
139 1.3.2.2 bouyer
140 1.3.2.2 bouyer #endif
141 1.3.2.2 bouyer
142 1.3.2.2 bouyer /*****************************************************************************
143 1.3.2.2 bouyer *
144 1.3.2.2 bouyer * ACPI Table globals
145 1.3.2.2 bouyer *
146 1.3.2.2 bouyer ****************************************************************************/
147 1.3.2.2 bouyer
148 1.3.2.2 bouyer /*
149 1.3.2.2 bouyer * AcpiGbl_RootTableList is the master list of ACPI tables that were
150 1.3.2.2 bouyer * found in the RSDT/XSDT.
151 1.3.2.2 bouyer */
152 1.3.2.2 bouyer ACPI_EXTERN ACPI_TABLE_LIST AcpiGbl_RootTableList;
153 1.3.2.2 bouyer ACPI_EXTERN ACPI_TABLE_FACS *AcpiGbl_FACS;
154 1.3.2.2 bouyer
155 1.3.2.2 bouyer /* These addresses are calculated from the FADT Event Block addresses */
156 1.3.2.2 bouyer
157 1.3.2.2 bouyer ACPI_EXTERN ACPI_GENERIC_ADDRESS AcpiGbl_XPm1aStatus;
158 1.3.2.2 bouyer ACPI_EXTERN ACPI_GENERIC_ADDRESS AcpiGbl_XPm1aEnable;
159 1.3.2.2 bouyer
160 1.3.2.2 bouyer ACPI_EXTERN ACPI_GENERIC_ADDRESS AcpiGbl_XPm1bStatus;
161 1.3.2.2 bouyer ACPI_EXTERN ACPI_GENERIC_ADDRESS AcpiGbl_XPm1bEnable;
162 1.3.2.2 bouyer
163 1.3.2.2 bouyer /* DSDT information. Used to check for DSDT corruption */
164 1.3.2.2 bouyer
165 1.3.2.2 bouyer ACPI_EXTERN ACPI_TABLE_HEADER *AcpiGbl_DSDT;
166 1.3.2.2 bouyer ACPI_EXTERN ACPI_TABLE_HEADER AcpiGbl_OriginalDsdtHeader;
167 1.3.2.2 bouyer
168 1.3.2.2 bouyer /*
169 1.3.2.2 bouyer * Handle both ACPI 1.0 and ACPI 2.0 Integer widths. The integer width is
170 1.3.2.2 bouyer * determined by the revision of the DSDT: If the DSDT revision is less than
171 1.3.2.2 bouyer * 2, use only the lower 32 bits of the internal 64-bit Integer.
172 1.3.2.2 bouyer */
173 1.3.2.2 bouyer ACPI_EXTERN UINT8 AcpiGbl_IntegerBitWidth;
174 1.3.2.2 bouyer ACPI_EXTERN UINT8 AcpiGbl_IntegerByteWidth;
175 1.3.2.2 bouyer ACPI_EXTERN UINT8 AcpiGbl_IntegerNybbleWidth;
176 1.3.2.2 bouyer
177 1.3.2.2 bouyer
178 1.3.2.2 bouyer /*****************************************************************************
179 1.3.2.2 bouyer *
180 1.3.2.2 bouyer * Mutual exlusion within ACPICA subsystem
181 1.3.2.2 bouyer *
182 1.3.2.2 bouyer ****************************************************************************/
183 1.3.2.2 bouyer
184 1.3.2.2 bouyer /*
185 1.3.2.2 bouyer * Predefined mutex objects. This array contains the
186 1.3.2.2 bouyer * actual OS mutex handles, indexed by the local ACPI_MUTEX_HANDLEs.
187 1.3.2.2 bouyer * (The table maps local handles to the real OS handles)
188 1.3.2.2 bouyer */
189 1.3.2.2 bouyer ACPI_EXTERN ACPI_MUTEX_INFO AcpiGbl_MutexInfo[ACPI_NUM_MUTEX];
190 1.3.2.2 bouyer
191 1.3.2.2 bouyer /*
192 1.3.2.2 bouyer * Global lock mutex is an actual AML mutex object
193 1.3.2.2 bouyer * Global lock semaphore works in conjunction with the HW global lock
194 1.3.2.2 bouyer */
195 1.3.2.2 bouyer ACPI_EXTERN ACPI_OPERAND_OBJECT *AcpiGbl_GlobalLockMutex;
196 1.3.2.2 bouyer ACPI_EXTERN ACPI_SEMAPHORE AcpiGbl_GlobalLockSemaphore;
197 1.3.2.2 bouyer ACPI_EXTERN UINT16 AcpiGbl_GlobalLockHandle;
198 1.3.2.2 bouyer ACPI_EXTERN BOOLEAN AcpiGbl_GlobalLockAcquired;
199 1.3.2.2 bouyer ACPI_EXTERN BOOLEAN AcpiGbl_GlobalLockPresent;
200 1.3.2.2 bouyer
201 1.3.2.2 bouyer /*
202 1.3.2.2 bouyer * Spinlocks are used for interfaces that can be possibly called at
203 1.3.2.2 bouyer * interrupt level
204 1.3.2.2 bouyer */
205 1.3.2.2 bouyer ACPI_EXTERN ACPI_SPINLOCK AcpiGbl_GpeLock; /* For GPE data structs and registers */
206 1.3.2.2 bouyer ACPI_EXTERN ACPI_SPINLOCK AcpiGbl_HardwareLock; /* For ACPI H/W except GPE registers */
207 1.3.2.2 bouyer
208 1.3.2.2 bouyer /* Mutex for _OSI support */
209 1.3.2.2 bouyer
210 1.3.2.2 bouyer ACPI_EXTERN ACPI_MUTEX AcpiGbl_OsiMutex;
211 1.3.2.2 bouyer
212 1.3.2.2 bouyer /* Reader/Writer lock is used for namespace walk and dynamic table unload */
213 1.3.2.2 bouyer
214 1.3.2.2 bouyer ACPI_EXTERN ACPI_RW_LOCK AcpiGbl_NamespaceRwLock;
215 1.3.2.2 bouyer
216 1.3.2.2 bouyer
217 1.3.2.2 bouyer /*****************************************************************************
218 1.3.2.2 bouyer *
219 1.3.2.2 bouyer * Miscellaneous globals
220 1.3.2.2 bouyer *
221 1.3.2.2 bouyer ****************************************************************************/
222 1.3.2.2 bouyer
223 1.3.2.2 bouyer /* Object caches */
224 1.3.2.2 bouyer
225 1.3.2.2 bouyer ACPI_EXTERN ACPI_CACHE_T *AcpiGbl_NamespaceCache;
226 1.3.2.2 bouyer ACPI_EXTERN ACPI_CACHE_T *AcpiGbl_StateCache;
227 1.3.2.2 bouyer ACPI_EXTERN ACPI_CACHE_T *AcpiGbl_PsNodeCache;
228 1.3.2.2 bouyer ACPI_EXTERN ACPI_CACHE_T *AcpiGbl_PsNodeExtCache;
229 1.3.2.2 bouyer ACPI_EXTERN ACPI_CACHE_T *AcpiGbl_OperandCache;
230 1.3.2.2 bouyer
231 1.3.2.2 bouyer /* Global handlers */
232 1.3.2.2 bouyer
233 1.3.2.2 bouyer ACPI_EXTERN ACPI_OBJECT_NOTIFY_HANDLER AcpiGbl_DeviceNotify;
234 1.3.2.2 bouyer ACPI_EXTERN ACPI_OBJECT_NOTIFY_HANDLER AcpiGbl_SystemNotify;
235 1.3.2.2 bouyer ACPI_EXTERN ACPI_EXCEPTION_HANDLER AcpiGbl_ExceptionHandler;
236 1.3.2.2 bouyer ACPI_EXTERN ACPI_INIT_HANDLER AcpiGbl_InitHandler;
237 1.3.2.2 bouyer ACPI_EXTERN ACPI_TABLE_HANDLER AcpiGbl_TableHandler;
238 1.3.2.2 bouyer ACPI_EXTERN void *AcpiGbl_TableHandlerContext;
239 1.3.2.2 bouyer ACPI_EXTERN ACPI_WALK_STATE *AcpiGbl_BreakpointWalk;
240 1.3.2.2 bouyer ACPI_EXTERN ACPI_INTERFACE_HANDLER AcpiGbl_InterfaceHandler;
241 1.3.2.2 bouyer
242 1.3.2.2 bouyer /* Owner ID support */
243 1.3.2.2 bouyer
244 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_OwnerIdMask[ACPI_NUM_OWNERID_MASKS];
245 1.3.2.2 bouyer ACPI_EXTERN UINT8 AcpiGbl_LastOwnerIdIndex;
246 1.3.2.2 bouyer ACPI_EXTERN UINT8 AcpiGbl_NextOwnerIdOffset;
247 1.3.2.2 bouyer
248 1.3.2.2 bouyer /* Initialization sequencing */
249 1.3.2.2 bouyer
250 1.3.2.2 bouyer ACPI_EXTERN BOOLEAN AcpiGbl_RegMethodsExecuted;
251 1.3.2.2 bouyer
252 1.3.2.2 bouyer /* Misc */
253 1.3.2.2 bouyer
254 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_OriginalMode;
255 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_RsdpOriginalLocation;
256 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_NsLookupCount;
257 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_PsFindCount;
258 1.3.2.2 bouyer ACPI_EXTERN UINT16 AcpiGbl_Pm1EnableRegisterSave;
259 1.3.2.2 bouyer ACPI_EXTERN UINT8 AcpiGbl_DebuggerConfiguration;
260 1.3.2.2 bouyer ACPI_EXTERN BOOLEAN AcpiGbl_StepToNextCall;
261 1.3.2.2 bouyer ACPI_EXTERN BOOLEAN AcpiGbl_AcpiHardwarePresent;
262 1.3.2.2 bouyer ACPI_EXTERN BOOLEAN AcpiGbl_EventsInitialized;
263 1.3.2.2 bouyer ACPI_EXTERN UINT8 AcpiGbl_OsiData;
264 1.3.2.2 bouyer ACPI_EXTERN ACPI_INTERFACE_INFO *AcpiGbl_SupportedInterfaces;
265 1.3.2.2 bouyer
266 1.3.2.2 bouyer
267 1.3.2.2 bouyer #ifndef DEFINE_ACPI_GLOBALS
268 1.3.2.2 bouyer
269 1.3.2.2 bouyer /* Exception codes */
270 1.3.2.2 bouyer
271 1.3.2.2 bouyer extern char const *AcpiGbl_ExceptionNames_Env[];
272 1.3.2.2 bouyer extern char const *AcpiGbl_ExceptionNames_Pgm[];
273 1.3.2.2 bouyer extern char const *AcpiGbl_ExceptionNames_Tbl[];
274 1.3.2.2 bouyer extern char const *AcpiGbl_ExceptionNames_Aml[];
275 1.3.2.2 bouyer extern char const *AcpiGbl_ExceptionNames_Ctrl[];
276 1.3.2.2 bouyer
277 1.3.2.2 bouyer /* Other miscellaneous */
278 1.3.2.2 bouyer
279 1.3.2.2 bouyer extern BOOLEAN AcpiGbl_Shutdown;
280 1.3.2.2 bouyer extern UINT32 AcpiGbl_StartupFlags;
281 1.3.2.2 bouyer extern const char *AcpiGbl_SleepStateNames[ACPI_S_STATE_COUNT];
282 1.3.2.2 bouyer extern const char *AcpiGbl_LowestDstateNames[ACPI_NUM_SxW_METHODS];
283 1.3.2.2 bouyer extern const char *AcpiGbl_HighestDstateNames[ACPI_NUM_SxD_METHODS];
284 1.3.2.2 bouyer extern const ACPI_OPCODE_INFO AcpiGbl_AmlOpInfo[AML_NUM_OPCODES];
285 1.3.2.2 bouyer extern const char *AcpiGbl_RegionTypes[ACPI_NUM_PREDEFINED_REGIONS];
286 1.3.2.2 bouyer #endif
287 1.3.2.2 bouyer
288 1.3.2.2 bouyer
289 1.3.2.2 bouyer #ifdef ACPI_DBG_TRACK_ALLOCATIONS
290 1.3.2.2 bouyer
291 1.3.2.2 bouyer /* Lists for tracking memory allocations */
292 1.3.2.2 bouyer
293 1.3.2.2 bouyer ACPI_EXTERN ACPI_MEMORY_LIST *AcpiGbl_GlobalList;
294 1.3.2.2 bouyer ACPI_EXTERN ACPI_MEMORY_LIST *AcpiGbl_NsNodeList;
295 1.3.2.2 bouyer ACPI_EXTERN BOOLEAN AcpiGbl_DisplayFinalMemStats;
296 1.3.2.2 bouyer ACPI_EXTERN BOOLEAN AcpiGbl_DisableMemTracking;
297 1.3.2.2 bouyer #endif
298 1.3.2.2 bouyer
299 1.3.2.2 bouyer
300 1.3.2.2 bouyer /*****************************************************************************
301 1.3.2.2 bouyer *
302 1.3.2.2 bouyer * Namespace globals
303 1.3.2.2 bouyer *
304 1.3.2.2 bouyer ****************************************************************************/
305 1.3.2.2 bouyer
306 1.3.2.2 bouyer #if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY)
307 1.3.2.2 bouyer #define NUM_PREDEFINED_NAMES 10
308 1.3.2.2 bouyer #else
309 1.3.2.2 bouyer #define NUM_PREDEFINED_NAMES 9
310 1.3.2.2 bouyer #endif
311 1.3.2.2 bouyer
312 1.3.2.2 bouyer ACPI_EXTERN ACPI_NAMESPACE_NODE AcpiGbl_RootNodeStruct;
313 1.3.2.2 bouyer ACPI_EXTERN ACPI_NAMESPACE_NODE *AcpiGbl_RootNode;
314 1.3.2.2 bouyer ACPI_EXTERN ACPI_NAMESPACE_NODE *AcpiGbl_FadtGpeDevice;
315 1.3.2.2 bouyer ACPI_EXTERN ACPI_OPERAND_OBJECT *AcpiGbl_ModuleCodeList;
316 1.3.2.2 bouyer
317 1.3.2.2 bouyer
318 1.3.2.2 bouyer extern const UINT8 AcpiGbl_NsProperties [ACPI_NUM_NS_TYPES];
319 1.3.2.2 bouyer extern const ACPI_PREDEFINED_NAMES AcpiGbl_PreDefinedNames [NUM_PREDEFINED_NAMES];
320 1.3.2.2 bouyer
321 1.3.2.2 bouyer #ifdef ACPI_DEBUG_OUTPUT
322 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_CurrentNodeCount;
323 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_CurrentNodeSize;
324 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_MaxConcurrentNodeCount;
325 1.3.2.2 bouyer ACPI_EXTERN ACPI_SIZE *AcpiGbl_EntryStackPointer;
326 1.3.2.2 bouyer ACPI_EXTERN ACPI_SIZE *AcpiGbl_LowestStackPointer;
327 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_DeepestNesting;
328 1.3.2.2 bouyer #endif
329 1.3.2.2 bouyer
330 1.3.2.2 bouyer
331 1.3.2.2 bouyer /*****************************************************************************
332 1.3.2.2 bouyer *
333 1.3.2.2 bouyer * Interpreter globals
334 1.3.2.2 bouyer *
335 1.3.2.2 bouyer ****************************************************************************/
336 1.3.2.2 bouyer
337 1.3.2.2 bouyer
338 1.3.2.2 bouyer ACPI_EXTERN ACPI_THREAD_STATE *AcpiGbl_CurrentWalkList;
339 1.3.2.2 bouyer
340 1.3.2.2 bouyer /* Control method single step flag */
341 1.3.2.2 bouyer
342 1.3.2.2 bouyer ACPI_EXTERN UINT8 AcpiGbl_CmSingleStep;
343 1.3.2.2 bouyer
344 1.3.2.2 bouyer
345 1.3.2.2 bouyer /*****************************************************************************
346 1.3.2.2 bouyer *
347 1.3.2.2 bouyer * Hardware globals
348 1.3.2.2 bouyer *
349 1.3.2.2 bouyer ****************************************************************************/
350 1.3.2.2 bouyer
351 1.3.2.2 bouyer extern ACPI_BIT_REGISTER_INFO AcpiGbl_BitRegisterInfo[ACPI_NUM_BITREG];
352 1.3.2.2 bouyer ACPI_EXTERN UINT8 AcpiGbl_SleepTypeA;
353 1.3.2.2 bouyer ACPI_EXTERN UINT8 AcpiGbl_SleepTypeB;
354 1.3.2.2 bouyer
355 1.3.2.2 bouyer
356 1.3.2.2 bouyer /*****************************************************************************
357 1.3.2.2 bouyer *
358 1.3.2.2 bouyer * Event and GPE globals
359 1.3.2.2 bouyer *
360 1.3.2.2 bouyer ****************************************************************************/
361 1.3.2.2 bouyer
362 1.3.2.2 bouyer ACPI_EXTERN UINT8 AcpiGbl_AllGpesInitialized;
363 1.3.2.2 bouyer ACPI_EXTERN ACPI_GPE_XRUPT_INFO *AcpiGbl_GpeXruptListHead;
364 1.3.2.2 bouyer ACPI_EXTERN ACPI_GPE_BLOCK_INFO *AcpiGbl_GpeFadtBlocks[ACPI_MAX_GPE_BLOCKS];
365 1.3.2.2 bouyer ACPI_EXTERN ACPI_GBL_EVENT_HANDLER AcpiGbl_GlobalEventHandler;
366 1.3.2.2 bouyer ACPI_EXTERN void *AcpiGbl_GlobalEventHandlerContext;
367 1.3.2.2 bouyer ACPI_EXTERN ACPI_FIXED_EVENT_HANDLER AcpiGbl_FixedEventHandlers[ACPI_NUM_FIXED_EVENTS];
368 1.3.2.2 bouyer extern ACPI_FIXED_EVENT_INFO AcpiGbl_FixedEventInfo[ACPI_NUM_FIXED_EVENTS];
369 1.3.2.2 bouyer
370 1.3.2.2 bouyer
371 1.3.2.2 bouyer /*****************************************************************************
372 1.3.2.2 bouyer *
373 1.3.2.2 bouyer * Debug support
374 1.3.2.2 bouyer *
375 1.3.2.2 bouyer ****************************************************************************/
376 1.3.2.2 bouyer
377 1.3.2.2 bouyer /* Procedure nesting level for debug output */
378 1.3.2.2 bouyer
379 1.3.2.2 bouyer extern UINT32 AcpiGbl_NestingLevel;
380 1.3.2.2 bouyer
381 1.3.2.2 bouyer /* Event counters */
382 1.3.2.2 bouyer
383 1.3.2.2 bouyer ACPI_EXTERN UINT64 AcpiMethodCount;
384 1.3.2.2 bouyer ACPI_EXTERN UINT64 AcpiGpeCount;
385 1.3.2.2 bouyer ACPI_EXTERN UINT64 AcpiSciCount;
386 1.3.2.2 bouyer ACPI_EXTERN UINT64 AcpiFixedEventCount[ACPI_NUM_FIXED_EVENTS];
387 1.3.2.2 bouyer
388 1.3.2.2 bouyer /* Support for dynamic control method tracing mechanism */
389 1.3.2.2 bouyer
390 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_OriginalDbgLevel;
391 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_OriginalDbgLayer;
392 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_TraceDbgLevel;
393 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_TraceDbgLayer;
394 1.3.2.2 bouyer
395 1.3.2.2 bouyer
396 1.3.2.2 bouyer /*****************************************************************************
397 1.3.2.2 bouyer *
398 1.3.2.2 bouyer * Debugger globals
399 1.3.2.2 bouyer *
400 1.3.2.2 bouyer ****************************************************************************/
401 1.3.2.2 bouyer
402 1.3.2.2 bouyer ACPI_EXTERN UINT8 AcpiGbl_DbOutputFlags;
403 1.3.2.2 bouyer
404 1.3.2.2 bouyer #ifdef ACPI_DISASSEMBLER
405 1.3.2.2 bouyer
406 1.3.2.2 bouyer ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_disasm;
407 1.3.2.2 bouyer ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_verbose;
408 1.3.2.2 bouyer ACPI_EXTERN ACPI_EXTERNAL_LIST *AcpiGbl_ExternalList;
409 1.3.2.2 bouyer ACPI_EXTERN ACPI_EXTERNAL_FILE *AcpiGbl_ExternalFileList;
410 1.3.2.2 bouyer #endif
411 1.3.2.2 bouyer
412 1.3.2.2 bouyer
413 1.3.2.2 bouyer #ifdef ACPI_DEBUGGER
414 1.3.2.2 bouyer
415 1.3.2.2 bouyer extern BOOLEAN AcpiGbl_MethodExecuting;
416 1.3.2.2 bouyer extern BOOLEAN AcpiGbl_AbortMethod;
417 1.3.2.2 bouyer extern BOOLEAN AcpiGbl_DbTerminateThreads;
418 1.3.2.2 bouyer
419 1.3.2.2 bouyer ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_tables;
420 1.3.2.2 bouyer ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_stats;
421 1.3.2.2 bouyer ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_ini_methods;
422 1.3.2.2 bouyer ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_NoRegionSupport;
423 1.3.2.2 bouyer
424 1.3.2.2 bouyer ACPI_EXTERN char *AcpiGbl_DbArgs[ACPI_DEBUGGER_MAX_ARGS];
425 1.3.2.2 bouyer ACPI_EXTERN char AcpiGbl_DbLineBuf[80];
426 1.3.2.2 bouyer ACPI_EXTERN char AcpiGbl_DbParsedBuf[80];
427 1.3.2.2 bouyer ACPI_EXTERN char AcpiGbl_DbScopeBuf[40];
428 1.3.2.2 bouyer ACPI_EXTERN char AcpiGbl_DbDebugFilename[40];
429 1.3.2.2 bouyer ACPI_EXTERN BOOLEAN AcpiGbl_DbOutputToFile;
430 1.3.2.2 bouyer ACPI_EXTERN char *AcpiGbl_DbBuffer;
431 1.3.2.2 bouyer ACPI_EXTERN char *AcpiGbl_DbFilename;
432 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_DbDebugLevel;
433 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_DbConsoleDebugLevel;
434 1.3.2.2 bouyer ACPI_EXTERN ACPI_NAMESPACE_NODE *AcpiGbl_DbScopeNode;
435 1.3.2.2 bouyer
436 1.3.2.2 bouyer /*
437 1.3.2.2 bouyer * Statistic globals
438 1.3.2.2 bouyer */
439 1.3.2.2 bouyer ACPI_EXTERN UINT16 AcpiGbl_ObjTypeCount[ACPI_TYPE_NS_NODE_MAX+1];
440 1.3.2.2 bouyer ACPI_EXTERN UINT16 AcpiGbl_NodeTypeCount[ACPI_TYPE_NS_NODE_MAX+1];
441 1.3.2.2 bouyer ACPI_EXTERN UINT16 AcpiGbl_ObjTypeCountMisc;
442 1.3.2.2 bouyer ACPI_EXTERN UINT16 AcpiGbl_NodeTypeCountMisc;
443 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_NumNodes;
444 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_NumObjects;
445 1.3.2.2 bouyer
446 1.3.2.2 bouyer
447 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_SizeOfParseTree;
448 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_SizeOfMethodTrees;
449 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_SizeOfNodeEntries;
450 1.3.2.2 bouyer ACPI_EXTERN UINT32 AcpiGbl_SizeOfAcpiObjects;
451 1.3.2.2 bouyer
452 1.3.2.2 bouyer #endif /* ACPI_DEBUGGER */
453 1.3.2.2 bouyer
454 1.3.2.2 bouyer #endif /* __ACGLOBAL_H__ */
455