ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

acglobal.h
Go to the documentation of this file.
00001 /******************************************************************************
00002  *
00003  * Name: acglobal.h - Declarations for global variables
00004  *
00005  *****************************************************************************/
00006 
00007 /******************************************************************************
00008  *
00009  * 1. Copyright Notice
00010  *
00011  * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp.
00012  * All rights reserved.
00013  *
00014  * 2. License
00015  *
00016  * 2.1. This is your license from Intel Corp. under its intellectual property
00017  * rights.  You may have additional license terms from the party that provided
00018  * you this software, covering your right to use that party's intellectual
00019  * property rights.
00020  *
00021  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
00022  * copy of the source code appearing in this file ("Covered Code") an
00023  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
00024  * base code distributed originally by Intel ("Original Intel Code") to copy,
00025  * make derivatives, distribute, use and display any portion of the Covered
00026  * Code in any form, with the right to sublicense such rights; and
00027  *
00028  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
00029  * license (with the right to sublicense), under only those claims of Intel
00030  * patents that are infringed by the Original Intel Code, to make, use, sell,
00031  * offer to sell, and import the Covered Code and derivative works thereof
00032  * solely to the minimum extent necessary to exercise the above copyright
00033  * license, and in no event shall the patent license extend to any additions
00034  * to or modifications of the Original Intel Code.  No other license or right
00035  * is granted directly or by implication, estoppel or otherwise;
00036  *
00037  * The above copyright and patent license is granted only if the following
00038  * conditions are met:
00039  *
00040  * 3. Conditions
00041  *
00042  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
00043  * Redistribution of source code of any substantial portion of the Covered
00044  * Code or modification with rights to further distribute source must include
00045  * the above Copyright Notice, the above License, this list of Conditions,
00046  * and the following Disclaimer and Export Compliance provision.  In addition,
00047  * Licensee must cause all Covered Code to which Licensee contributes to
00048  * contain a file documenting the changes Licensee made to create that Covered
00049  * Code and the date of any change.  Licensee must include in that file the
00050  * documentation of any changes made by any predecessor Licensee.  Licensee
00051  * must include a prominent statement that the modification is derived,
00052  * directly or indirectly, from Original Intel Code.
00053  *
00054  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
00055  * Redistribution of source code of any substantial portion of the Covered
00056  * Code or modification without rights to further distribute source must
00057  * include the following Disclaimer and Export Compliance provision in the
00058  * documentation and/or other materials provided with distribution.  In
00059  * addition, Licensee may not authorize further sublicense of source of any
00060  * portion of the Covered Code, and must include terms to the effect that the
00061  * license from Licensee to its licensee is limited to the intellectual
00062  * property embodied in the software Licensee provides to its licensee, and
00063  * not to intellectual property embodied in modifications its licensee may
00064  * make.
00065  *
00066  * 3.3. Redistribution of Executable. Redistribution in executable form of any
00067  * substantial portion of the Covered Code or modification must reproduce the
00068  * above Copyright Notice, and the following Disclaimer and Export Compliance
00069  * provision in the documentation and/or other materials provided with the
00070  * distribution.
00071  *
00072  * 3.4. Intel retains all right, title, and interest in and to the Original
00073  * Intel Code.
00074  *
00075  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
00076  * Intel shall be used in advertising or otherwise to promote the sale, use or
00077  * other dealings in products derived from or relating to the Covered Code
00078  * without prior written authorization from Intel.
00079  *
00080  * 4. Disclaimer and Export Compliance
00081  *
00082  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
00083  * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
00084  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
00085  * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
00086  * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
00087  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
00088  * PARTICULAR PURPOSE.
00089  *
00090  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
00091  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
00092  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
00093  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
00094  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
00095  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
00096  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
00097  * LIMITED REMEDY.
00098  *
00099  * 4.3. Licensee shall not export, either directly or indirectly, any of this
00100  * software or system incorporating such software without first obtaining any
00101  * required license or other approval from the U. S. Department of Commerce or
00102  * any other agency or department of the United States Government.  In the
00103  * event Licensee exports any such software from the United States or
00104  * re-exports any such software from a foreign destination, Licensee shall
00105  * ensure that the distribution and export/re-export of the software is in
00106  * compliance with all laws, regulations, orders, or other restrictions of the
00107  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
00108  * any of its subsidiaries will export/re-export any technical data, process,
00109  * software, or service, directly or indirectly, to any country for which the
00110  * United States government or any agency thereof requires an export license,
00111  * other governmental approval, or letter of assurance, without first obtaining
00112  * such license, approval or letter.
00113  *
00114  *****************************************************************************/
00115 
00116 #ifndef __ACGLOBAL_H__
00117 #define __ACGLOBAL_H__
00118 
00119 
00120 /*
00121  * Ensure that the globals are actually defined and initialized only once.
00122  *
00123  * The use of these macros allows a single list of globals (here) in order
00124  * to simplify maintenance of the code.
00125  */
00126 #ifdef DEFINE_ACPI_GLOBALS
00127 #define ACPI_EXTERN
00128 #define ACPI_INIT_GLOBAL(a,b) a=b
00129 #else
00130 #define ACPI_EXTERN extern
00131 #define ACPI_INIT_GLOBAL(a,b) a
00132 #endif
00133 
00134 
00135 #ifdef DEFINE_ACPI_GLOBALS
00136 
00137 /* Public globals, available from outside ACPICA subsystem */
00138 
00139 /*****************************************************************************
00140  *
00141  * Runtime configuration (static defaults that can be overriden at runtime)
00142  *
00143  ****************************************************************************/
00144 
00145 /*
00146  * Enable "slack" in the AML interpreter?  Default is FALSE, and the
00147  * interpreter strictly follows the ACPI specification.  Setting to TRUE
00148  * allows the interpreter to ignore certain errors and/or bad AML constructs.
00149  *
00150  * Currently, these features are enabled by this flag:
00151  *
00152  * 1) Allow "implicit return" of last value in a control method
00153  * 2) Allow access beyond the end of an operation region
00154  * 3) Allow access to uninitialized locals/args (auto-init to integer 0)
00155  * 4) Allow ANY object type to be a source operand for the Store() operator
00156  * 5) Allow unresolved references (invalid target name) in package objects
00157  * 6) Enable warning messages for behavior that is not ACPI spec compliant
00158  */
00159 UINT8       ACPI_INIT_GLOBAL (AcpiGbl_EnableInterpreterSlack, FALSE);
00160 
00161 /*
00162  * Automatically serialize ALL control methods? Default is FALSE, meaning
00163  * to use the Serialized/NotSerialized method flags on a per method basis.
00164  * Only change this if the ASL code is poorly written and cannot handle
00165  * reentrancy even though methods are marked "NotSerialized".
00166  */
00167 UINT8       ACPI_INIT_GLOBAL (AcpiGbl_AllMethodsSerialized, FALSE);
00168 
00169 /*
00170  * Create the predefined _OSI method in the namespace? Default is TRUE
00171  * because ACPI CA is fully compatible with other ACPI implementations.
00172  * Changing this will revert ACPI CA (and machine ASL) to pre-OSI behavior.
00173  */
00174 UINT8       ACPI_INIT_GLOBAL (AcpiGbl_CreateOsiMethod, TRUE);
00175 
00176 /*
00177  * Optionally use default values for the ACPI register widths. Set this to
00178  * TRUE to use the defaults, if an FADT contains incorrect widths/lengths.
00179  */
00180 UINT8       ACPI_INIT_GLOBAL (AcpiGbl_UseDefaultRegisterWidths, TRUE);
00181 
00182 /*
00183  * Optionally enable output from the AML Debug Object.
00184  */
00185 UINT8       ACPI_INIT_GLOBAL (AcpiGbl_EnableAmlDebugObject, FALSE);
00186 
00187 /*
00188  * Optionally copy the entire DSDT to local memory (instead of simply
00189  * mapping it.) There are some BIOSs that corrupt or replace the original
00190  * DSDT, creating the need for this option. Default is FALSE, do not copy
00191  * the DSDT.
00192  */
00193 UINT8       ACPI_INIT_GLOBAL (AcpiGbl_CopyDsdtLocally, FALSE);
00194 
00195 /*
00196  * Optionally truncate I/O addresses to 16 bits. Provides compatibility
00197  * with other ACPI implementations. NOTE: During ACPICA initialization,
00198  * this value is set to TRUE if any Windows OSI strings have been
00199  * requested by the BIOS.
00200  */
00201 UINT8       ACPI_INIT_GLOBAL (AcpiGbl_TruncateIoAddresses, FALSE);
00202 
00203 /*
00204  * Disable runtime checking and repair of values returned by control methods.
00205  * Use only if the repair is causing a problem on a particular machine.
00206  */
00207 UINT8       ACPI_INIT_GLOBAL (AcpiGbl_DisableAutoRepair, FALSE);
00208 
00209 
00210 /* AcpiGbl_FADT is a local copy of the FADT, converted to a common format. */
00211 
00212 ACPI_TABLE_FADT             AcpiGbl_FADT;
00213 UINT32                      AcpiCurrentGpeCount;
00214 UINT32                      AcpiGbl_TraceFlags;
00215 ACPI_NAME                   AcpiGbl_TraceMethodName;
00216 BOOLEAN                     AcpiGbl_SystemAwakeAndRunning;
00217 
00218 #endif
00219 
00220 /*****************************************************************************
00221  *
00222  * ACPI Table globals
00223  *
00224  ****************************************************************************/
00225 
00226 /*
00227  * AcpiGbl_RootTableList is the master list of ACPI tables that were
00228  * found in the RSDT/XSDT.
00229  */
00230 ACPI_EXTERN ACPI_TABLE_LIST             AcpiGbl_RootTableList;
00231 ACPI_EXTERN ACPI_TABLE_FACS            *AcpiGbl_FACS;
00232 
00233 /* These addresses are calculated from the FADT Event Block addresses */
00234 
00235 ACPI_EXTERN ACPI_GENERIC_ADDRESS        AcpiGbl_XPm1aStatus;
00236 ACPI_EXTERN ACPI_GENERIC_ADDRESS        AcpiGbl_XPm1aEnable;
00237 
00238 ACPI_EXTERN ACPI_GENERIC_ADDRESS        AcpiGbl_XPm1bStatus;
00239 ACPI_EXTERN ACPI_GENERIC_ADDRESS        AcpiGbl_XPm1bEnable;
00240 
00241 /* DSDT information. Used to check for DSDT corruption */
00242 
00243 ACPI_EXTERN ACPI_TABLE_HEADER          *AcpiGbl_DSDT;
00244 ACPI_EXTERN ACPI_TABLE_HEADER           AcpiGbl_OriginalDsdtHeader;
00245 
00246 /*
00247  * Handle both ACPI 1.0 and ACPI 2.0 Integer widths. The integer width is
00248  * determined by the revision of the DSDT: If the DSDT revision is less than
00249  * 2, use only the lower 32 bits of the internal 64-bit Integer.
00250  */
00251 ACPI_EXTERN UINT8                       AcpiGbl_IntegerBitWidth;
00252 ACPI_EXTERN UINT8                       AcpiGbl_IntegerByteWidth;
00253 ACPI_EXTERN UINT8                       AcpiGbl_IntegerNybbleWidth;
00254 
00255 
00256 /*****************************************************************************
00257  *
00258  * Mutual exlusion within ACPICA subsystem
00259  *
00260  ****************************************************************************/
00261 
00262 /*
00263  * Predefined mutex objects. This array contains the
00264  * actual OS mutex handles, indexed by the local ACPI_MUTEX_HANDLEs.
00265  * (The table maps local handles to the real OS handles)
00266  */
00267 ACPI_EXTERN ACPI_MUTEX_INFO             AcpiGbl_MutexInfo[ACPI_NUM_MUTEX];
00268 
00269 /*
00270  * Global lock mutex is an actual AML mutex object
00271  * Global lock semaphore works in conjunction with the actual global lock
00272  * Global lock spinlock is used for "pending" handshake
00273  */
00274 ACPI_EXTERN ACPI_OPERAND_OBJECT        *AcpiGbl_GlobalLockMutex;
00275 ACPI_EXTERN ACPI_SEMAPHORE              AcpiGbl_GlobalLockSemaphore;
00276 ACPI_EXTERN ACPI_SPINLOCK               AcpiGbl_GlobalLockPendingLock;
00277 ACPI_EXTERN UINT16                      AcpiGbl_GlobalLockHandle;
00278 ACPI_EXTERN BOOLEAN                     AcpiGbl_GlobalLockAcquired;
00279 ACPI_EXTERN BOOLEAN                     AcpiGbl_GlobalLockPresent;
00280 ACPI_EXTERN BOOLEAN                     AcpiGbl_GlobalLockPending;
00281 
00282 /*
00283  * Spinlocks are used for interfaces that can be possibly called at
00284  * interrupt level
00285  */
00286 ACPI_EXTERN ACPI_SPINLOCK               AcpiGbl_GpeLock;      /* For GPE data structs and registers */
00287 ACPI_EXTERN ACPI_SPINLOCK               AcpiGbl_HardwareLock; /* For ACPI H/W except GPE registers */
00288 
00289 /* Mutex for _OSI support */
00290 
00291 ACPI_EXTERN ACPI_MUTEX                  AcpiGbl_OsiMutex;
00292 
00293 /* Reader/Writer lock is used for namespace walk and dynamic table unload */
00294 
00295 ACPI_EXTERN ACPI_RW_LOCK                AcpiGbl_NamespaceRwLock;
00296 
00297 
00298 /*****************************************************************************
00299  *
00300  * Miscellaneous globals
00301  *
00302  ****************************************************************************/
00303 
00304 /* Object caches */
00305 
00306 ACPI_EXTERN ACPI_CACHE_T               *AcpiGbl_NamespaceCache;
00307 ACPI_EXTERN ACPI_CACHE_T               *AcpiGbl_StateCache;
00308 ACPI_EXTERN ACPI_CACHE_T               *AcpiGbl_PsNodeCache;
00309 ACPI_EXTERN ACPI_CACHE_T               *AcpiGbl_PsNodeExtCache;
00310 ACPI_EXTERN ACPI_CACHE_T               *AcpiGbl_OperandCache;
00311 
00312 /* Global handlers */
00313 
00314 ACPI_EXTERN ACPI_OBJECT_NOTIFY_HANDLER  AcpiGbl_DeviceNotify;
00315 ACPI_EXTERN ACPI_OBJECT_NOTIFY_HANDLER  AcpiGbl_SystemNotify;
00316 ACPI_EXTERN ACPI_EXCEPTION_HANDLER      AcpiGbl_ExceptionHandler;
00317 ACPI_EXTERN ACPI_INIT_HANDLER           AcpiGbl_InitHandler;
00318 ACPI_EXTERN ACPI_TABLE_HANDLER          AcpiGbl_TableHandler;
00319 ACPI_EXTERN void                       *AcpiGbl_TableHandlerContext;
00320 ACPI_EXTERN ACPI_WALK_STATE            *AcpiGbl_BreakpointWalk;
00321 ACPI_EXTERN ACPI_INTERFACE_HANDLER      AcpiGbl_InterfaceHandler;
00322 
00323 /* Owner ID support */
00324 
00325 ACPI_EXTERN UINT32                      AcpiGbl_OwnerIdMask[ACPI_NUM_OWNERID_MASKS];
00326 ACPI_EXTERN UINT8                       AcpiGbl_LastOwnerIdIndex;
00327 ACPI_EXTERN UINT8                       AcpiGbl_NextOwnerIdOffset;
00328 
00329 /* Initialization sequencing */
00330 
00331 ACPI_EXTERN BOOLEAN                     AcpiGbl_RegMethodsExecuted;
00332 
00333 /* Misc */
00334 
00335 ACPI_EXTERN UINT32                      AcpiGbl_OriginalMode;
00336 ACPI_EXTERN UINT32                      AcpiGbl_RsdpOriginalLocation;
00337 ACPI_EXTERN UINT32                      AcpiGbl_NsLookupCount;
00338 ACPI_EXTERN UINT32                      AcpiGbl_PsFindCount;
00339 ACPI_EXTERN UINT16                      AcpiGbl_Pm1EnableRegisterSave;
00340 ACPI_EXTERN UINT8                       AcpiGbl_DebuggerConfiguration;
00341 ACPI_EXTERN BOOLEAN                     AcpiGbl_StepToNextCall;
00342 ACPI_EXTERN BOOLEAN                     AcpiGbl_AcpiHardwarePresent;
00343 ACPI_EXTERN BOOLEAN                     AcpiGbl_EventsInitialized;
00344 ACPI_EXTERN UINT8                       AcpiGbl_OsiData;
00345 ACPI_EXTERN ACPI_INTERFACE_INFO        *AcpiGbl_SupportedInterfaces;
00346 
00347 
00348 #ifndef DEFINE_ACPI_GLOBALS
00349 
00350 /* Exception codes */
00351 
00352 extern char const                       *AcpiGbl_ExceptionNames_Env[];
00353 extern char const                       *AcpiGbl_ExceptionNames_Pgm[];
00354 extern char const                       *AcpiGbl_ExceptionNames_Tbl[];
00355 extern char const                       *AcpiGbl_ExceptionNames_Aml[];
00356 extern char const                       *AcpiGbl_ExceptionNames_Ctrl[];
00357 
00358 /* Other miscellaneous */
00359 
00360 extern BOOLEAN                          AcpiGbl_Shutdown;
00361 extern UINT32                           AcpiGbl_StartupFlags;
00362 extern const char                      *AcpiGbl_SleepStateNames[ACPI_S_STATE_COUNT];
00363 extern const char                      *AcpiGbl_LowestDstateNames[ACPI_NUM_SxW_METHODS];
00364 extern const char                      *AcpiGbl_HighestDstateNames[ACPI_NUM_SxD_METHODS];
00365 extern const ACPI_OPCODE_INFO           AcpiGbl_AmlOpInfo[AML_NUM_OPCODES];
00366 extern const char                      *AcpiGbl_RegionTypes[ACPI_NUM_PREDEFINED_REGIONS];
00367 #endif
00368 
00369 
00370 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
00371 
00372 /* Lists for tracking memory allocations */
00373 
00374 ACPI_EXTERN ACPI_MEMORY_LIST           *AcpiGbl_GlobalList;
00375 ACPI_EXTERN ACPI_MEMORY_LIST           *AcpiGbl_NsNodeList;
00376 ACPI_EXTERN BOOLEAN                     AcpiGbl_DisplayFinalMemStats;
00377 ACPI_EXTERN BOOLEAN                     AcpiGbl_DisableMemTracking;
00378 #endif
00379 
00380 
00381 /*****************************************************************************
00382  *
00383  * Namespace globals
00384  *
00385  ****************************************************************************/
00386 
00387 #if !defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY)
00388 #define NUM_PREDEFINED_NAMES            10
00389 #else
00390 #define NUM_PREDEFINED_NAMES            9
00391 #endif
00392 
00393 ACPI_EXTERN ACPI_NAMESPACE_NODE         AcpiGbl_RootNodeStruct;
00394 ACPI_EXTERN ACPI_NAMESPACE_NODE        *AcpiGbl_RootNode;
00395 ACPI_EXTERN ACPI_NAMESPACE_NODE        *AcpiGbl_FadtGpeDevice;
00396 ACPI_EXTERN ACPI_OPERAND_OBJECT        *AcpiGbl_ModuleCodeList;
00397 
00398 
00399 extern const UINT8                      AcpiGbl_NsProperties [ACPI_NUM_NS_TYPES];
00400 extern const ACPI_PREDEFINED_NAMES      AcpiGbl_PreDefinedNames [NUM_PREDEFINED_NAMES];
00401 
00402 #ifdef ACPI_DEBUG_OUTPUT
00403 ACPI_EXTERN UINT32                      AcpiGbl_CurrentNodeCount;
00404 ACPI_EXTERN UINT32                      AcpiGbl_CurrentNodeSize;
00405 ACPI_EXTERN UINT32                      AcpiGbl_MaxConcurrentNodeCount;
00406 ACPI_EXTERN ACPI_SIZE                  *AcpiGbl_EntryStackPointer;
00407 ACPI_EXTERN ACPI_SIZE                  *AcpiGbl_LowestStackPointer;
00408 ACPI_EXTERN UINT32                      AcpiGbl_DeepestNesting;
00409 #endif
00410 
00411 
00412 /*****************************************************************************
00413  *
00414  * Interpreter globals
00415  *
00416  ****************************************************************************/
00417 
00418 
00419 ACPI_EXTERN ACPI_THREAD_STATE          *AcpiGbl_CurrentWalkList;
00420 
00421 /* Control method single step flag */
00422 
00423 ACPI_EXTERN UINT8                       AcpiGbl_CmSingleStep;
00424 
00425 
00426 /*****************************************************************************
00427  *
00428  * Hardware globals
00429  *
00430  ****************************************************************************/
00431 
00432 extern      ACPI_BIT_REGISTER_INFO      AcpiGbl_BitRegisterInfo[ACPI_NUM_BITREG];
00433 ACPI_EXTERN UINT8                       AcpiGbl_SleepTypeA;
00434 ACPI_EXTERN UINT8                       AcpiGbl_SleepTypeB;
00435 
00436 
00437 /*****************************************************************************
00438  *
00439  * Event and GPE globals
00440  *
00441  ****************************************************************************/
00442 
00443 ACPI_EXTERN UINT8                       AcpiGbl_AllGpesInitialized;
00444 ACPI_EXTERN ACPI_GPE_XRUPT_INFO        *AcpiGbl_GpeXruptListHead;
00445 ACPI_EXTERN ACPI_GPE_BLOCK_INFO        *AcpiGbl_GpeFadtBlocks[ACPI_MAX_GPE_BLOCKS];
00446 ACPI_EXTERN ACPI_GBL_EVENT_HANDLER      AcpiGbl_GlobalEventHandler;
00447 ACPI_EXTERN void                       *AcpiGbl_GlobalEventHandlerContext;
00448 ACPI_EXTERN ACPI_FIXED_EVENT_HANDLER    AcpiGbl_FixedEventHandlers[ACPI_NUM_FIXED_EVENTS];
00449 extern      ACPI_FIXED_EVENT_INFO       AcpiGbl_FixedEventInfo[ACPI_NUM_FIXED_EVENTS];
00450 
00451 
00452 /*****************************************************************************
00453  *
00454  * Debug support
00455  *
00456  ****************************************************************************/
00457 
00458 /* Procedure nesting level for debug output */
00459 
00460 extern      UINT32                      AcpiGbl_NestingLevel;
00461 
00462 /* Event counters */
00463 
00464 ACPI_EXTERN UINT32                      AcpiMethodCount;
00465 ACPI_EXTERN UINT32                      AcpiGpeCount;
00466 ACPI_EXTERN UINT32                      AcpiSciCount;
00467 ACPI_EXTERN UINT32                      AcpiFixedEventCount[ACPI_NUM_FIXED_EVENTS];
00468 
00469 /* Support for dynamic control method tracing mechanism */
00470 
00471 ACPI_EXTERN UINT32                      AcpiGbl_OriginalDbgLevel;
00472 ACPI_EXTERN UINT32                      AcpiGbl_OriginalDbgLayer;
00473 ACPI_EXTERN UINT32                      AcpiGbl_TraceDbgLevel;
00474 ACPI_EXTERN UINT32                      AcpiGbl_TraceDbgLayer;
00475 
00476 
00477 /*****************************************************************************
00478  *
00479  * Debugger globals
00480  *
00481  ****************************************************************************/
00482 
00483 ACPI_EXTERN UINT8                       AcpiGbl_DbOutputFlags;
00484 
00485 #ifdef ACPI_DISASSEMBLER
00486 
00487 ACPI_EXTERN BOOLEAN                     AcpiGbl_DbOpt_disasm;
00488 ACPI_EXTERN BOOLEAN                     AcpiGbl_DbOpt_verbose;
00489 ACPI_EXTERN ACPI_EXTERNAL_LIST         *AcpiGbl_ExternalList;
00490 ACPI_EXTERN ACPI_EXTERNAL_FILE         *AcpiGbl_ExternalFileList;
00491 #endif
00492 
00493 
00494 #ifdef ACPI_DEBUGGER
00495 
00496 extern      BOOLEAN                     AcpiGbl_MethodExecuting;
00497 extern      BOOLEAN                     AcpiGbl_AbortMethod;
00498 extern      BOOLEAN                     AcpiGbl_DbTerminateThreads;
00499 
00500 ACPI_EXTERN BOOLEAN                     AcpiGbl_DbOpt_tables;
00501 ACPI_EXTERN BOOLEAN                     AcpiGbl_DbOpt_stats;
00502 ACPI_EXTERN BOOLEAN                     AcpiGbl_DbOpt_ini_methods;
00503 ACPI_EXTERN BOOLEAN                     AcpiGbl_DbOpt_NoRegionSupport;
00504 
00505 ACPI_EXTERN char                       *AcpiGbl_DbArgs[ACPI_DEBUGGER_MAX_ARGS];
00506 ACPI_EXTERN ACPI_OBJECT_TYPE            AcpiGbl_DbArgTypes[ACPI_DEBUGGER_MAX_ARGS];
00507 ACPI_EXTERN char                        AcpiGbl_DbLineBuf[ACPI_DB_LINE_BUFFER_SIZE];
00508 ACPI_EXTERN char                        AcpiGbl_DbParsedBuf[ACPI_DB_LINE_BUFFER_SIZE];
00509 ACPI_EXTERN char                        AcpiGbl_DbScopeBuf[80];
00510 ACPI_EXTERN char                        AcpiGbl_DbDebugFilename[80];
00511 ACPI_EXTERN BOOLEAN                     AcpiGbl_DbOutputToFile;
00512 ACPI_EXTERN char                       *AcpiGbl_DbBuffer;
00513 ACPI_EXTERN char                       *AcpiGbl_DbFilename;
00514 ACPI_EXTERN UINT32                      AcpiGbl_DbDebugLevel;
00515 ACPI_EXTERN UINT32                      AcpiGbl_DbConsoleDebugLevel;
00516 ACPI_EXTERN ACPI_NAMESPACE_NODE        *AcpiGbl_DbScopeNode;
00517 
00518 /*
00519  * Statistic globals
00520  */
00521 ACPI_EXTERN UINT16                      AcpiGbl_ObjTypeCount[ACPI_TYPE_NS_NODE_MAX+1];
00522 ACPI_EXTERN UINT16                      AcpiGbl_NodeTypeCount[ACPI_TYPE_NS_NODE_MAX+1];
00523 ACPI_EXTERN UINT16                      AcpiGbl_ObjTypeCountMisc;
00524 ACPI_EXTERN UINT16                      AcpiGbl_NodeTypeCountMisc;
00525 ACPI_EXTERN UINT32                      AcpiGbl_NumNodes;
00526 ACPI_EXTERN UINT32                      AcpiGbl_NumObjects;
00527 
00528 
00529 ACPI_EXTERN UINT32                      AcpiGbl_SizeOfParseTree;
00530 ACPI_EXTERN UINT32                      AcpiGbl_SizeOfMethodTrees;
00531 ACPI_EXTERN UINT32                      AcpiGbl_SizeOfNodeEntries;
00532 ACPI_EXTERN UINT32                      AcpiGbl_SizeOfAcpiObjects;
00533 
00534 #endif /* ACPI_DEBUGGER */
00535 
00536 #endif /* __ACGLOBAL_H__ */

Generated on Sun May 27 2012 04:27:18 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.