acglobal.h (db2bae30) acglobal.h (aa2aa9a6)
1/******************************************************************************
2 *
3 * Name: acglobal.h - Declarations for global variables
1/******************************************************************************
2 *
3 * Name: acglobal.h - Declarations for global variables
4 * $Revision: 1.199 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *
9 * 1. Copyright Notice
10 *
12 * Some or all of this work - Copyright (c) 1999 - 2008, Intel Corp.
11 * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
13 * All rights reserved.
14 *
15 * 2. License
16 *
17 * 2.1. This is your license from Intel Corp. under its intellectual property
18 * rights. You may have additional license terms from the party that provided
19 * you this software, covering your right to use that party's intellectual
20 * property rights.

--- 151 unchanged lines hidden (view full) ---

172
173/*
174 * Disable wakeup GPEs during runtime? Default is TRUE because WAKE and
175 * RUNTIME GPEs should never be shared, and WAKE GPEs should typically only
176 * be enabled just before going to sleep.
177 */
178ACPI_EXTERN UINT8 ACPI_INIT_GLOBAL (AcpiGbl_LeaveWakeGpesDisabled, TRUE);
179
12 * All rights reserved.
13 *
14 * 2. License
15 *
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
19 * property rights.

--- 151 unchanged lines hidden (view full) ---

171
172/*
173 * Disable wakeup GPEs during runtime? Default is TRUE because WAKE and
174 * RUNTIME GPEs should never be shared, and WAKE GPEs should typically only
175 * be enabled just before going to sleep.
176 */
177ACPI_EXTERN UINT8 ACPI_INIT_GLOBAL (AcpiGbl_LeaveWakeGpesDisabled, TRUE);
178
179/*
180 * Optionally use default values for the ACPI register widths. Set this to
181 * TRUE to use the defaults, if an FADT contains incorrect widths/lengths.
182 */
183ACPI_EXTERN UINT8 ACPI_INIT_GLOBAL (AcpiGbl_UseDefaultRegisterWidths, TRUE);
180
184
185
181/*****************************************************************************
182 *
183 * ACPI Table globals
184 *
185 ****************************************************************************/
186
187/*
188 * AcpiGbl_RootTableList is the master list of ACPI tables found in the
189 * RSDT/XSDT.
190 *
191 * AcpiGbl_FADT is a local copy of the FADT, converted to a common format.
192 */
193ACPI_EXTERN ACPI_INTERNAL_RSDT AcpiGbl_RootTableList;
194ACPI_EXTERN ACPI_TABLE_FADT AcpiGbl_FADT;
186/*****************************************************************************
187 *
188 * ACPI Table globals
189 *
190 ****************************************************************************/
191
192/*
193 * AcpiGbl_RootTableList is the master list of ACPI tables found in the
194 * RSDT/XSDT.
195 *
196 * AcpiGbl_FADT is a local copy of the FADT, converted to a common format.
197 */
198ACPI_EXTERN ACPI_INTERNAL_RSDT AcpiGbl_RootTableList;
199ACPI_EXTERN ACPI_TABLE_FADT AcpiGbl_FADT;
200ACPI_EXTERN ACPI_TABLE_FACS *AcpiGbl_FACS;
195
201
196/* These addresses are calculated from FADT address values */
202/* These addresses are calculated from the FADT Event Block addresses */
197
203
204ACPI_EXTERN ACPI_GENERIC_ADDRESS AcpiGbl_XPm1aStatus;
198ACPI_EXTERN ACPI_GENERIC_ADDRESS AcpiGbl_XPm1aEnable;
205ACPI_EXTERN ACPI_GENERIC_ADDRESS AcpiGbl_XPm1aEnable;
206
207ACPI_EXTERN ACPI_GENERIC_ADDRESS AcpiGbl_XPm1bStatus;
199ACPI_EXTERN ACPI_GENERIC_ADDRESS AcpiGbl_XPm1bEnable;
200
201/*
202 * Handle both ACPI 1.0 and ACPI 2.0 Integer widths. The integer width is
203 * determined by the revision of the DSDT: If the DSDT revision is less than
204 * 2, use only the lower 32 bits of the internal 64-bit Integer.
205 */
206ACPI_EXTERN UINT8 AcpiGbl_IntegerBitWidth;

--- 26 unchanged lines hidden (view full) ---

233
234/*
235 * Spinlocks are used for interfaces that can be possibly called at
236 * interrupt level
237 */
238ACPI_EXTERN ACPI_SPINLOCK AcpiGbl_GpeLock; /* For GPE data structs and registers */
239ACPI_EXTERN ACPI_SPINLOCK AcpiGbl_HardwareLock; /* For ACPI H/W except GPE registers */
240
208ACPI_EXTERN ACPI_GENERIC_ADDRESS AcpiGbl_XPm1bEnable;
209
210/*
211 * Handle both ACPI 1.0 and ACPI 2.0 Integer widths. The integer width is
212 * determined by the revision of the DSDT: If the DSDT revision is less than
213 * 2, use only the lower 32 bits of the internal 64-bit Integer.
214 */
215ACPI_EXTERN UINT8 AcpiGbl_IntegerBitWidth;

--- 26 unchanged lines hidden (view full) ---

242
243/*
244 * Spinlocks are used for interfaces that can be possibly called at
245 * interrupt level
246 */
247ACPI_EXTERN ACPI_SPINLOCK AcpiGbl_GpeLock; /* For GPE data structs and registers */
248ACPI_EXTERN ACPI_SPINLOCK AcpiGbl_HardwareLock; /* For ACPI H/W except GPE registers */
249
250/* Reader/Writer lock is used for namespace walk and dynamic table unload */
241
251
252ACPI_EXTERN ACPI_RW_LOCK AcpiGbl_NamespaceRwLock;
253
254
242/*****************************************************************************
243 *
244 * Miscellaneous globals
245 *
246 ****************************************************************************/
247
248/* Object caches */
249

--- 27 unchanged lines hidden (view full) ---

277ACPI_EXTERN UINT32 AcpiGbl_NsLookupCount;
278ACPI_EXTERN UINT32 AcpiGbl_PsFindCount;
279ACPI_EXTERN UINT16 AcpiGbl_Pm1EnableRegisterSave;
280ACPI_EXTERN UINT8 AcpiGbl_DebuggerConfiguration;
281ACPI_EXTERN BOOLEAN AcpiGbl_StepToNextCall;
282ACPI_EXTERN BOOLEAN AcpiGbl_AcpiHardwarePresent;
283ACPI_EXTERN BOOLEAN AcpiGbl_EventsInitialized;
284ACPI_EXTERN BOOLEAN AcpiGbl_SystemAwakeAndRunning;
255/*****************************************************************************
256 *
257 * Miscellaneous globals
258 *
259 ****************************************************************************/
260
261/* Object caches */
262

--- 27 unchanged lines hidden (view full) ---

290ACPI_EXTERN UINT32 AcpiGbl_NsLookupCount;
291ACPI_EXTERN UINT32 AcpiGbl_PsFindCount;
292ACPI_EXTERN UINT16 AcpiGbl_Pm1EnableRegisterSave;
293ACPI_EXTERN UINT8 AcpiGbl_DebuggerConfiguration;
294ACPI_EXTERN BOOLEAN AcpiGbl_StepToNextCall;
295ACPI_EXTERN BOOLEAN AcpiGbl_AcpiHardwarePresent;
296ACPI_EXTERN BOOLEAN AcpiGbl_EventsInitialized;
297ACPI_EXTERN BOOLEAN AcpiGbl_SystemAwakeAndRunning;
298ACPI_EXTERN UINT8 AcpiGbl_OsiData;
285
286
287#ifndef DEFINE_ACPI_GLOBALS
288
289/* Exception codes */
290
291extern char const *AcpiGbl_ExceptionNames_Env[];
292extern char const *AcpiGbl_ExceptionNames_Pgm[];

--- 81 unchanged lines hidden (view full) ---

374 * Event and GPE globals
375 *
376 ****************************************************************************/
377
378extern ACPI_FIXED_EVENT_INFO AcpiGbl_FixedEventInfo[ACPI_NUM_FIXED_EVENTS];
379ACPI_EXTERN ACPI_FIXED_EVENT_HANDLER AcpiGbl_FixedEventHandlers[ACPI_NUM_FIXED_EVENTS];
380ACPI_EXTERN ACPI_GPE_XRUPT_INFO *AcpiGbl_GpeXruptListHead;
381ACPI_EXTERN ACPI_GPE_BLOCK_INFO *AcpiGbl_GpeFadtBlocks[ACPI_MAX_GPE_BLOCKS];
299
300
301#ifndef DEFINE_ACPI_GLOBALS
302
303/* Exception codes */
304
305extern char const *AcpiGbl_ExceptionNames_Env[];
306extern char const *AcpiGbl_ExceptionNames_Pgm[];

--- 81 unchanged lines hidden (view full) ---

388 * Event and GPE globals
389 *
390 ****************************************************************************/
391
392extern ACPI_FIXED_EVENT_INFO AcpiGbl_FixedEventInfo[ACPI_NUM_FIXED_EVENTS];
393ACPI_EXTERN ACPI_FIXED_EVENT_HANDLER AcpiGbl_FixedEventHandlers[ACPI_NUM_FIXED_EVENTS];
394ACPI_EXTERN ACPI_GPE_XRUPT_INFO *AcpiGbl_GpeXruptListHead;
395ACPI_EXTERN ACPI_GPE_BLOCK_INFO *AcpiGbl_GpeFadtBlocks[ACPI_MAX_GPE_BLOCKS];
396ACPI_EXTERN UINT32 AcpiCurrentGpeCount;
382
383
384/*****************************************************************************
385 *
386 * Debug support
387 *
388 ****************************************************************************/
389

--- 39 unchanged lines hidden (view full) ---

429
430
431#ifdef ACPI_DEBUGGER
432
433extern BOOLEAN AcpiGbl_MethodExecuting;
434extern BOOLEAN AcpiGbl_AbortMethod;
435extern BOOLEAN AcpiGbl_DbTerminateThreads;
436
397
398
399/*****************************************************************************
400 *
401 * Debug support
402 *
403 ****************************************************************************/
404

--- 39 unchanged lines hidden (view full) ---

444
445
446#ifdef ACPI_DEBUGGER
447
448extern BOOLEAN AcpiGbl_MethodExecuting;
449extern BOOLEAN AcpiGbl_AbortMethod;
450extern BOOLEAN AcpiGbl_DbTerminateThreads;
451
437ACPI_EXTERN int optind;
438ACPI_EXTERN char *optarg;
439
440ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_tables;
441ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_stats;
442ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_ini_methods;
443ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_NoRegionSupport;
444
445ACPI_EXTERN char *AcpiGbl_DbArgs[ACPI_DEBUGGER_MAX_ARGS];
446ACPI_EXTERN char AcpiGbl_DbLineBuf[80];
447ACPI_EXTERN char AcpiGbl_DbParsedBuf[80];
448ACPI_EXTERN char AcpiGbl_DbScopeBuf[40];
449ACPI_EXTERN char AcpiGbl_DbDebugFilename[40];
450ACPI_EXTERN BOOLEAN AcpiGbl_DbOutputToFile;
451ACPI_EXTERN char *AcpiGbl_DbBuffer;
452ACPI_EXTERN char *AcpiGbl_DbFilename;
453ACPI_EXTERN UINT32 AcpiGbl_DbDebugLevel;
454ACPI_EXTERN UINT32 AcpiGbl_DbConsoleDebugLevel;
452ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_tables;
453ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_stats;
454ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_ini_methods;
455ACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_NoRegionSupport;
456
457ACPI_EXTERN char *AcpiGbl_DbArgs[ACPI_DEBUGGER_MAX_ARGS];
458ACPI_EXTERN char AcpiGbl_DbLineBuf[80];
459ACPI_EXTERN char AcpiGbl_DbParsedBuf[80];
460ACPI_EXTERN char AcpiGbl_DbScopeBuf[40];
461ACPI_EXTERN char AcpiGbl_DbDebugFilename[40];
462ACPI_EXTERN BOOLEAN AcpiGbl_DbOutputToFile;
463ACPI_EXTERN char *AcpiGbl_DbBuffer;
464ACPI_EXTERN char *AcpiGbl_DbFilename;
465ACPI_EXTERN UINT32 AcpiGbl_DbDebugLevel;
466ACPI_EXTERN UINT32 AcpiGbl_DbConsoleDebugLevel;
455ACPI_EXTERN ACPI_TABLE_HEADER *AcpiGbl_DbTablePtr;
456ACPI_EXTERN ACPI_NAMESPACE_NODE *AcpiGbl_DbScopeNode;
457
458/*
459 * Statistic globals
460 */
461ACPI_EXTERN UINT16 AcpiGbl_ObjTypeCount[ACPI_TYPE_NS_NODE_MAX+1];
462ACPI_EXTERN UINT16 AcpiGbl_NodeTypeCount[ACPI_TYPE_NS_NODE_MAX+1];
463ACPI_EXTERN UINT16 AcpiGbl_ObjTypeCountMisc;

--- 13 unchanged lines hidden ---
467ACPI_EXTERN ACPI_NAMESPACE_NODE *AcpiGbl_DbScopeNode;
468
469/*
470 * Statistic globals
471 */
472ACPI_EXTERN UINT16 AcpiGbl_ObjTypeCount[ACPI_TYPE_NS_NODE_MAX+1];
473ACPI_EXTERN UINT16 AcpiGbl_NodeTypeCount[ACPI_TYPE_NS_NODE_MAX+1];
474ACPI_EXTERN UINT16 AcpiGbl_ObjTypeCountMisc;

--- 13 unchanged lines hidden ---