1 /******************************************************************************
3 * Name: acglobal.h - Declarations for global variables
5 *****************************************************************************/
7 /******************************************************************************
11 * Some or all of this work - Copyright (c) 1999 - 2014, Intel Corp.
12 * All rights reserved.
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
37 * The above copyright and patent license is granted only if the following
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
72 * 3.4. Intel retains all right, title, and interest in and to the Original
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
80 * 4. Disclaimer and Export Compliance
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
114 *****************************************************************************/
116 #ifndef __ACGLOBAL_H__
117 #define __ACGLOBAL_H__
121 * Ensure that the globals are actually defined and initialized only once.
123 * The use of these macros allows a single list of globals (here) in order
124 * to simplify maintenance of the code.
126 #ifdef DEFINE_ACPI_GLOBALS
127 #define ACPI_GLOBAL(type,name) \
131 #define ACPI_INIT_GLOBAL(type,name,value) \
135 #define ACPI_GLOBAL(type,name) \
138 #define ACPI_INIT_GLOBAL(type,name,value) \
143 #ifdef DEFINE_ACPI_GLOBALS
145 /* Public globals, available from outside ACPICA subsystem */
147 /*****************************************************************************
149 * Runtime configuration (static defaults that can be overriden at runtime)
151 ****************************************************************************/
154 * Enable "slack" in the AML interpreter? Default is FALSE, and the
155 * interpreter strictly follows the ACPI specification. Setting to TRUE
156 * allows the interpreter to ignore certain errors and/or bad AML constructs.
158 * Currently, these features are enabled by this flag:
160 * 1) Allow "implicit return" of last value in a control method
161 * 2) Allow access beyond the end of an operation region
162 * 3) Allow access to uninitialized locals/args (auto-init to integer 0)
163 * 4) Allow ANY object type to be a source operand for the Store() operator
164 * 5) Allow unresolved references (invalid target name) in package objects
165 * 6) Enable warning messages for behavior that is not ACPI spec compliant
167 ACPI_INIT_GLOBAL (UINT8
, AcpiGbl_EnableInterpreterSlack
, FALSE
);
170 * Automatically serialize all methods that create named objects? Default
171 * is TRUE, meaning that all NonSerialized methods are scanned once at
172 * table load time to determine those that create named objects. Methods
173 * that create named objects are marked Serialized in order to prevent
174 * possible run-time problems if they are entered by more than one thread.
176 ACPI_INIT_GLOBAL (UINT8
, AcpiGbl_AutoSerializeMethods
, TRUE
);
179 * Create the predefined _OSI method in the namespace? Default is TRUE
180 * because ACPICA is fully compatible with other ACPI implementations.
181 * Changing this will revert ACPICA (and machine ASL) to pre-OSI behavior.
183 ACPI_INIT_GLOBAL (UINT8
, AcpiGbl_CreateOsiMethod
, TRUE
);
186 * Optionally use default values for the ACPI register widths. Set this to
187 * TRUE to use the defaults, if an FADT contains incorrect widths/lengths.
189 ACPI_INIT_GLOBAL (UINT8
, AcpiGbl_UseDefaultRegisterWidths
, TRUE
);
192 * Optionally enable output from the AML Debug Object.
194 ACPI_INIT_GLOBAL (UINT8
, AcpiGbl_EnableAmlDebugObject
, FALSE
);
197 * Optionally copy the entire DSDT to local memory (instead of simply
198 * mapping it.) There are some BIOSs that corrupt or replace the original
199 * DSDT, creating the need for this option. Default is FALSE, do not copy
202 ACPI_INIT_GLOBAL (UINT8
, AcpiGbl_CopyDsdtLocally
, FALSE
);
205 * Optionally ignore an XSDT if present and use the RSDT instead.
206 * Although the ACPI specification requires that an XSDT be used instead
207 * of the RSDT, the XSDT has been found to be corrupt or ill-formed on
208 * some machines. Default behavior is to use the XSDT if present.
210 ACPI_INIT_GLOBAL (UINT8
, AcpiGbl_DoNotUseXsdt
, FALSE
);
213 * Optionally use 32-bit FADT addresses if and when there is a conflict
214 * (address mismatch) between the 32-bit and 64-bit versions of the
215 * address. Although ACPICA adheres to the ACPI specification which
216 * requires the use of the corresponding 64-bit address if it is non-zero,
217 * some machines have been found to have a corrupted non-zero 64-bit
218 * address. Default is FALSE, do not favor the 32-bit addresses.
220 ACPI_INIT_GLOBAL (UINT8
, AcpiGbl_Use32BitFadtAddresses
, FALSE
);
223 * Optionally truncate I/O addresses to 16 bits. Provides compatibility
224 * with other ACPI implementations. NOTE: During ACPICA initialization,
225 * this value is set to TRUE if any Windows OSI strings have been
226 * requested by the BIOS.
228 ACPI_INIT_GLOBAL (UINT8
, AcpiGbl_TruncateIoAddresses
, FALSE
);
231 * Disable runtime checking and repair of values returned by control methods.
232 * Use only if the repair is causing a problem on a particular machine.
234 ACPI_INIT_GLOBAL (UINT8
, AcpiGbl_DisableAutoRepair
, FALSE
);
237 * Optionally do not install any SSDTs from the RSDT/XSDT during initialization.
238 * This can be useful for debugging ACPI problems on some machines.
240 ACPI_INIT_GLOBAL (UINT8
, AcpiGbl_DisableSsdtTableInstall
, FALSE
);
243 * We keep track of the latest version of Windows that has been requested by
246 ACPI_INIT_GLOBAL (UINT8
, AcpiGbl_OsiData
, 0);
248 #endif /* DEFINE_ACPI_GLOBALS */
251 /*****************************************************************************
255 ****************************************************************************/
258 * Master list of all ACPI tables that were found in the RSDT/XSDT.
260 ACPI_GLOBAL (ACPI_TABLE_LIST
, AcpiGbl_RootTableList
);
262 /* DSDT information. Used to check for DSDT corruption */
264 ACPI_GLOBAL (ACPI_TABLE_HEADER
*, AcpiGbl_DSDT
);
265 ACPI_GLOBAL (ACPI_TABLE_HEADER
, AcpiGbl_OriginalDsdtHeader
);
267 #if (!ACPI_REDUCED_HARDWARE)
268 ACPI_GLOBAL (ACPI_TABLE_FACS
*, AcpiGbl_FACS
);
270 #endif /* !ACPI_REDUCED_HARDWARE */
272 /* These addresses are calculated from the FADT Event Block addresses */
274 ACPI_GLOBAL (ACPI_GENERIC_ADDRESS
, AcpiGbl_XPm1aStatus
);
275 ACPI_GLOBAL (ACPI_GENERIC_ADDRESS
, AcpiGbl_XPm1aEnable
);
277 ACPI_GLOBAL (ACPI_GENERIC_ADDRESS
, AcpiGbl_XPm1bStatus
);
278 ACPI_GLOBAL (ACPI_GENERIC_ADDRESS
, AcpiGbl_XPm1bEnable
);
281 * Handle both ACPI 1.0 and ACPI 2.0+ Integer widths. The integer width is
282 * determined by the revision of the DSDT: If the DSDT revision is less than
283 * 2, use only the lower 32 bits of the internal 64-bit Integer.
285 ACPI_GLOBAL (UINT8
, AcpiGbl_IntegerBitWidth
);
286 ACPI_GLOBAL (UINT8
, AcpiGbl_IntegerByteWidth
);
287 ACPI_GLOBAL (UINT8
, AcpiGbl_IntegerNybbleWidth
);
290 /*****************************************************************************
292 * Mutual exclusion within ACPICA subsystem
294 ****************************************************************************/
297 * Predefined mutex objects. This array contains the
298 * actual OS mutex handles, indexed by the local ACPI_MUTEX_HANDLEs.
299 * (The table maps local handles to the real OS handles)
301 ACPI_GLOBAL (ACPI_MUTEX_INFO
, AcpiGbl_MutexInfo
[ACPI_NUM_MUTEX
]);
304 * Global lock mutex is an actual AML mutex object
305 * Global lock semaphore works in conjunction with the actual global lock
306 * Global lock spinlock is used for "pending" handshake
308 ACPI_GLOBAL (ACPI_OPERAND_OBJECT
*, AcpiGbl_GlobalLockMutex
);
309 ACPI_GLOBAL (ACPI_SEMAPHORE
, AcpiGbl_GlobalLockSemaphore
);
310 ACPI_GLOBAL (ACPI_SPINLOCK
, AcpiGbl_GlobalLockPendingLock
);
311 ACPI_GLOBAL (UINT16
, AcpiGbl_GlobalLockHandle
);
312 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_GlobalLockAcquired
);
313 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_GlobalLockPresent
);
314 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_GlobalLockPending
);
317 * Spinlocks are used for interfaces that can be possibly called at
320 ACPI_GLOBAL (ACPI_SPINLOCK
, AcpiGbl_GpeLock
); /* For GPE data structs and registers */
321 ACPI_GLOBAL (ACPI_SPINLOCK
, AcpiGbl_HardwareLock
); /* For ACPI H/W except GPE registers */
322 ACPI_GLOBAL (ACPI_SPINLOCK
, AcpiGbl_ReferenceCountLock
);
324 /* Mutex for _OSI support */
326 ACPI_GLOBAL (ACPI_MUTEX
, AcpiGbl_OsiMutex
);
328 /* Reader/Writer lock is used for namespace walk and dynamic table unload */
330 ACPI_GLOBAL (ACPI_RW_LOCK
, AcpiGbl_NamespaceRwLock
);
333 /*****************************************************************************
335 * Miscellaneous globals
337 ****************************************************************************/
341 ACPI_GLOBAL (ACPI_CACHE_T
*, AcpiGbl_NamespaceCache
);
342 ACPI_GLOBAL (ACPI_CACHE_T
*, AcpiGbl_StateCache
);
343 ACPI_GLOBAL (ACPI_CACHE_T
*, AcpiGbl_PsNodeCache
);
344 ACPI_GLOBAL (ACPI_CACHE_T
*, AcpiGbl_PsNodeExtCache
);
345 ACPI_GLOBAL (ACPI_CACHE_T
*, AcpiGbl_OperandCache
);
349 ACPI_INIT_GLOBAL (UINT32
, AcpiGbl_StartupFlags
, 0);
350 ACPI_INIT_GLOBAL (BOOLEAN
, AcpiGbl_Shutdown
, TRUE
);
352 /* Global handlers */
354 ACPI_GLOBAL (ACPI_GLOBAL_NOTIFY_HANDLER
,AcpiGbl_GlobalNotify
[2]);
355 ACPI_GLOBAL (ACPI_EXCEPTION_HANDLER
, AcpiGbl_ExceptionHandler
);
356 ACPI_GLOBAL (ACPI_INIT_HANDLER
, AcpiGbl_InitHandler
);
357 ACPI_GLOBAL (ACPI_TABLE_HANDLER
, AcpiGbl_TableHandler
);
358 ACPI_GLOBAL (void *, AcpiGbl_TableHandlerContext
);
359 ACPI_GLOBAL (ACPI_WALK_STATE
*, AcpiGbl_BreakpointWalk
);
360 ACPI_GLOBAL (ACPI_INTERFACE_HANDLER
, AcpiGbl_InterfaceHandler
);
361 ACPI_GLOBAL (ACPI_SCI_HANDLER_INFO
*, AcpiGbl_SciHandlerList
);
363 /* Owner ID support */
365 ACPI_GLOBAL (UINT32
, AcpiGbl_OwnerIdMask
[ACPI_NUM_OWNERID_MASKS
]);
366 ACPI_GLOBAL (UINT8
, AcpiGbl_LastOwnerIdIndex
);
367 ACPI_GLOBAL (UINT8
, AcpiGbl_NextOwnerIdOffset
);
369 /* Initialization sequencing */
371 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_RegMethodsExecuted
);
375 ACPI_GLOBAL (UINT32
, AcpiGbl_OriginalMode
);
376 ACPI_GLOBAL (UINT32
, AcpiGbl_RsdpOriginalLocation
);
377 ACPI_GLOBAL (UINT32
, AcpiGbl_NsLookupCount
);
378 ACPI_GLOBAL (UINT32
, AcpiGbl_PsFindCount
);
379 ACPI_GLOBAL (UINT16
, AcpiGbl_Pm1EnableRegisterSave
);
380 ACPI_GLOBAL (UINT8
, AcpiGbl_DebuggerConfiguration
);
381 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_StepToNextCall
);
382 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_AcpiHardwarePresent
);
383 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_EventsInitialized
);
384 ACPI_GLOBAL (ACPI_INTERFACE_INFO
*, AcpiGbl_SupportedInterfaces
);
385 ACPI_GLOBAL (ACPI_ADDRESS_RANGE
*, AcpiGbl_AddressRangeList
[ACPI_ADDRESS_RANGE_MAX
]);
387 /* Other miscellaneous, declared and initialized in utglobal */
389 extern const char *AcpiGbl_SleepStateNames
[ACPI_S_STATE_COUNT
];
390 extern const char *AcpiGbl_LowestDstateNames
[ACPI_NUM_SxW_METHODS
];
391 extern const char *AcpiGbl_HighestDstateNames
[ACPI_NUM_SxD_METHODS
];
392 extern const char *AcpiGbl_RegionTypes
[ACPI_NUM_PREDEFINED_REGIONS
];
393 extern const ACPI_OPCODE_INFO AcpiGbl_AmlOpInfo
[AML_NUM_OPCODES
];
396 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
398 /* Lists for tracking memory allocations (debug only) */
400 ACPI_GLOBAL (ACPI_MEMORY_LIST
*, AcpiGbl_GlobalList
);
401 ACPI_GLOBAL (ACPI_MEMORY_LIST
*, AcpiGbl_NsNodeList
);
402 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_DisplayFinalMemStats
);
403 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_DisableMemTracking
);
407 /*****************************************************************************
411 ****************************************************************************/
413 #if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY)
414 #define NUM_PREDEFINED_NAMES 10
416 #define NUM_PREDEFINED_NAMES 9
419 ACPI_GLOBAL (ACPI_NAMESPACE_NODE
, AcpiGbl_RootNodeStruct
);
420 ACPI_GLOBAL (ACPI_NAMESPACE_NODE
*, AcpiGbl_RootNode
);
421 ACPI_GLOBAL (ACPI_NAMESPACE_NODE
*, AcpiGbl_FadtGpeDevice
);
422 ACPI_GLOBAL (ACPI_OPERAND_OBJECT
*, AcpiGbl_ModuleCodeList
);
425 extern const UINT8 AcpiGbl_NsProperties
[ACPI_NUM_NS_TYPES
];
426 extern const ACPI_PREDEFINED_NAMES AcpiGbl_PreDefinedNames
[NUM_PREDEFINED_NAMES
];
428 #ifdef ACPI_DEBUG_OUTPUT
429 ACPI_GLOBAL (UINT32
, AcpiGbl_CurrentNodeCount
);
430 ACPI_GLOBAL (UINT32
, AcpiGbl_CurrentNodeSize
);
431 ACPI_GLOBAL (UINT32
, AcpiGbl_MaxConcurrentNodeCount
);
432 ACPI_GLOBAL (ACPI_SIZE
*, AcpiGbl_EntryStackPointer
);
433 ACPI_GLOBAL (ACPI_SIZE
*, AcpiGbl_LowestStackPointer
);
434 ACPI_GLOBAL (UINT32
, AcpiGbl_DeepestNesting
);
435 ACPI_INIT_GLOBAL (UINT32
, AcpiGbl_NestingLevel
, 0);
439 /*****************************************************************************
441 * Interpreter globals
443 ****************************************************************************/
445 ACPI_GLOBAL (ACPI_THREAD_STATE
*, AcpiGbl_CurrentWalkList
);
447 /* Control method single step flag */
449 ACPI_GLOBAL (UINT8
, AcpiGbl_CmSingleStep
);
452 /*****************************************************************************
456 ****************************************************************************/
458 extern ACPI_BIT_REGISTER_INFO AcpiGbl_BitRegisterInfo
[ACPI_NUM_BITREG
];
460 ACPI_GLOBAL (UINT8
, AcpiGbl_SleepTypeA
);
461 ACPI_GLOBAL (UINT8
, AcpiGbl_SleepTypeB
);
464 /*****************************************************************************
466 * Event and GPE globals
468 ****************************************************************************/
470 #if (!ACPI_REDUCED_HARDWARE)
472 ACPI_GLOBAL (UINT8
, AcpiGbl_AllGpesInitialized
);
473 ACPI_GLOBAL (ACPI_GPE_XRUPT_INFO
*, AcpiGbl_GpeXruptListHead
);
474 ACPI_GLOBAL (ACPI_GPE_BLOCK_INFO
*, AcpiGbl_GpeFadtBlocks
[ACPI_MAX_GPE_BLOCKS
]);
475 ACPI_GLOBAL (ACPI_GBL_EVENT_HANDLER
, AcpiGbl_GlobalEventHandler
);
476 ACPI_GLOBAL (void *, AcpiGbl_GlobalEventHandlerContext
);
477 ACPI_GLOBAL (ACPI_FIXED_EVENT_HANDLER
, AcpiGbl_FixedEventHandlers
[ACPI_NUM_FIXED_EVENTS
]);
479 extern ACPI_FIXED_EVENT_INFO AcpiGbl_FixedEventInfo
[ACPI_NUM_FIXED_EVENTS
];
481 #endif /* !ACPI_REDUCED_HARDWARE */
483 /*****************************************************************************
487 ****************************************************************************/
491 ACPI_GLOBAL (UINT32
, AcpiMethodCount
);
492 ACPI_GLOBAL (UINT32
, AcpiGpeCount
);
493 ACPI_GLOBAL (UINT32
, AcpiSciCount
);
494 ACPI_GLOBAL (UINT32
, AcpiFixedEventCount
[ACPI_NUM_FIXED_EVENTS
]);
496 /* Support for dynamic control method tracing mechanism */
498 ACPI_GLOBAL (UINT32
, AcpiGbl_OriginalDbgLevel
);
499 ACPI_GLOBAL (UINT32
, AcpiGbl_OriginalDbgLayer
);
500 ACPI_GLOBAL (UINT32
, AcpiGbl_TraceDbgLevel
);
501 ACPI_GLOBAL (UINT32
, AcpiGbl_TraceDbgLayer
);
504 /*****************************************************************************
506 * Debugger and Disassembler globals
508 ****************************************************************************/
510 ACPI_GLOBAL (UINT8
, AcpiGbl_DbOutputFlags
);
512 #ifdef ACPI_DISASSEMBLER
514 /* Do not disassemble buffers to resource descriptors */
516 ACPI_INIT_GLOBAL (UINT8
, AcpiGbl_NoResourceDisassembly
, FALSE
);
517 ACPI_INIT_GLOBAL (BOOLEAN
, AcpiGbl_IgnoreNoopOperator
, FALSE
);
519 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_DbOpt_disasm
);
520 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_DbOpt_verbose
);
521 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_NumExternalMethods
);
522 ACPI_GLOBAL (UINT32
, AcpiGbl_ResolvedExternalMethods
);
523 ACPI_GLOBAL (ACPI_EXTERNAL_LIST
*, AcpiGbl_ExternalList
);
524 ACPI_GLOBAL (ACPI_EXTERNAL_FILE
*, AcpiGbl_ExternalFileList
);
529 ACPI_INIT_GLOBAL (BOOLEAN
, AcpiGbl_DbTerminateThreads
, FALSE
);
530 ACPI_INIT_GLOBAL (BOOLEAN
, AcpiGbl_AbortMethod
, FALSE
);
531 ACPI_INIT_GLOBAL (BOOLEAN
, AcpiGbl_MethodExecuting
, FALSE
);
533 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_DbOpt_tables
);
534 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_DbOpt_stats
);
535 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_DbOpt_ini_methods
);
536 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_DbOpt_NoRegionSupport
);
537 ACPI_GLOBAL (BOOLEAN
, AcpiGbl_DbOutputToFile
);
538 ACPI_GLOBAL (char *, AcpiGbl_DbBuffer
);
539 ACPI_GLOBAL (char *, AcpiGbl_DbFilename
);
540 ACPI_GLOBAL (UINT32
, AcpiGbl_DbDebugLevel
);
541 ACPI_GLOBAL (UINT32
, AcpiGbl_DbConsoleDebugLevel
);
542 ACPI_GLOBAL (ACPI_NAMESPACE_NODE
*, AcpiGbl_DbScopeNode
);
544 ACPI_GLOBAL (char *, AcpiGbl_DbArgs
[ACPI_DEBUGGER_MAX_ARGS
]);
545 ACPI_GLOBAL (ACPI_OBJECT_TYPE
, AcpiGbl_DbArgTypes
[ACPI_DEBUGGER_MAX_ARGS
]);
547 /* These buffers should all be the same size */
549 ACPI_GLOBAL (char, AcpiGbl_DbLineBuf
[ACPI_DB_LINE_BUFFER_SIZE
]);
550 ACPI_GLOBAL (char, AcpiGbl_DbParsedBuf
[ACPI_DB_LINE_BUFFER_SIZE
]);
551 ACPI_GLOBAL (char, AcpiGbl_DbScopeBuf
[ACPI_DB_LINE_BUFFER_SIZE
]);
552 ACPI_GLOBAL (char, AcpiGbl_DbDebugFilename
[ACPI_DB_LINE_BUFFER_SIZE
]);
557 ACPI_GLOBAL (UINT16
, AcpiGbl_ObjTypeCount
[ACPI_TYPE_NS_NODE_MAX
+1]);
558 ACPI_GLOBAL (UINT16
, AcpiGbl_NodeTypeCount
[ACPI_TYPE_NS_NODE_MAX
+1]);
559 ACPI_GLOBAL (UINT16
, AcpiGbl_ObjTypeCountMisc
);
560 ACPI_GLOBAL (UINT16
, AcpiGbl_NodeTypeCountMisc
);
561 ACPI_GLOBAL (UINT32
, AcpiGbl_NumNodes
);
562 ACPI_GLOBAL (UINT32
, AcpiGbl_NumObjects
);
564 ACPI_GLOBAL (UINT32
, AcpiGbl_SizeOfParseTree
);
565 ACPI_GLOBAL (UINT32
, AcpiGbl_SizeOfMethodTrees
);
566 ACPI_GLOBAL (UINT32
, AcpiGbl_SizeOfNodeEntries
);
567 ACPI_GLOBAL (UINT32
, AcpiGbl_SizeOfAcpiObjects
);
569 #endif /* ACPI_DEBUGGER */
572 /*****************************************************************************
574 * Application globals
576 ****************************************************************************/
578 #ifdef ACPI_APPLICATION
580 ACPI_INIT_GLOBAL (ACPI_FILE
, AcpiGbl_DebugFile
, NULL
);
582 #endif /* ACPI_APPLICATION */
585 /*****************************************************************************
589 ****************************************************************************/
591 extern const AH_PREDEFINED_NAME AslPredefinedInfo
[];
592 extern const AH_DEVICE_ID AslDeviceIds
[];
595 #endif /* __ACGLOBAL_H__ */