Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:41

0001 /******************************************************************************
0002  *
0003  * Name: acglobal.h - Declarations for global variables
0004  *
0005  *****************************************************************************/
0006 
0007 /******************************************************************************
0008  *
0009  * 1. Copyright Notice
0010  *
0011  * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp.
0012  * All rights reserved.
0013  *
0014  * 2. License
0015  *
0016  * 2.1. This is your license from Intel Corp. under its intellectual property
0017  * rights. You may have additional license terms from the party that provided
0018  * you this software, covering your right to use that party's intellectual
0019  * property rights.
0020  *
0021  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
0022  * copy of the source code appearing in this file ("Covered Code") an
0023  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
0024  * base code distributed originally by Intel ("Original Intel Code") to copy,
0025  * make derivatives, distribute, use and display any portion of the Covered
0026  * Code in any form, with the right to sublicense such rights; and
0027  *
0028  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
0029  * license (with the right to sublicense), under only those claims of Intel
0030  * patents that are infringed by the Original Intel Code, to make, use, sell,
0031  * offer to sell, and import the Covered Code and derivative works thereof
0032  * solely to the minimum extent necessary to exercise the above copyright
0033  * license, and in no event shall the patent license extend to any additions
0034  * to or modifications of the Original Intel Code. No other license or right
0035  * is granted directly or by implication, estoppel or otherwise;
0036  *
0037  * The above copyright and patent license is granted only if the following
0038  * conditions are met:
0039  *
0040  * 3. Conditions
0041  *
0042  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
0043  * Redistribution of source code of any substantial portion of the Covered
0044  * Code or modification with rights to further distribute source must include
0045  * the above Copyright Notice, the above License, this list of Conditions,
0046  * and the following Disclaimer and Export Compliance provision. In addition,
0047  * Licensee must cause all Covered Code to which Licensee contributes to
0048  * contain a file documenting the changes Licensee made to create that Covered
0049  * Code and the date of any change. Licensee must include in that file the
0050  * documentation of any changes made by any predecessor Licensee. Licensee
0051  * must include a prominent statement that the modification is derived,
0052  * directly or indirectly, from Original Intel Code.
0053  *
0054  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
0055  * Redistribution of source code of any substantial portion of the Covered
0056  * Code or modification without rights to further distribute source must
0057  * include the following Disclaimer and Export Compliance provision in the
0058  * documentation and/or other materials provided with distribution. In
0059  * addition, Licensee may not authorize further sublicense of source of any
0060  * portion of the Covered Code, and must include terms to the effect that the
0061  * license from Licensee to its licensee is limited to the intellectual
0062  * property embodied in the software Licensee provides to its licensee, and
0063  * not to intellectual property embodied in modifications its licensee may
0064  * make.
0065  *
0066  * 3.3. Redistribution of Executable. Redistribution in executable form of any
0067  * substantial portion of the Covered Code or modification must reproduce the
0068  * above Copyright Notice, and the following Disclaimer and Export Compliance
0069  * provision in the documentation and/or other materials provided with the
0070  * distribution.
0071  *
0072  * 3.4. Intel retains all right, title, and interest in and to the Original
0073  * Intel Code.
0074  *
0075  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
0076  * Intel shall be used in advertising or otherwise to promote the sale, use or
0077  * other dealings in products derived from or relating to the Covered Code
0078  * without prior written authorization from Intel.
0079  *
0080  * 4. Disclaimer and Export Compliance
0081  *
0082  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
0083  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
0084  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
0085  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
0086  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
0087  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
0088  * PARTICULAR PURPOSE.
0089  *
0090  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
0091  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
0092  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
0093  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
0094  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
0095  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
0096  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
0097  * LIMITED REMEDY.
0098  *
0099  * 4.3. Licensee shall not export, either directly or indirectly, any of this
0100  * software or system incorporating such software without first obtaining any
0101  * required license or other approval from the U. S. Department of Commerce or
0102  * any other agency or department of the United States Government. In the
0103  * event Licensee exports any such software from the United States or
0104  * re-exports any such software from a foreign destination, Licensee shall
0105  * ensure that the distribution and export/re-export of the software is in
0106  * compliance with all laws, regulations, orders, or other restrictions of the
0107  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
0108  * any of its subsidiaries will export/re-export any technical data, process,
0109  * software, or service, directly or indirectly, to any country for which the
0110  * United States government or any agency thereof requires an export license,
0111  * other governmental approval, or letter of assurance, without first obtaining
0112  * such license, approval or letter.
0113  *
0114  *****************************************************************************
0115  *
0116  * Alternatively, you may choose to be licensed under the terms of the
0117  * following license:
0118  *
0119  * Redistribution and use in source and binary forms, with or without
0120  * modification, are permitted provided that the following conditions
0121  * are met:
0122  * 1. Redistributions of source code must retain the above copyright
0123  *    notice, this list of conditions, and the following disclaimer,
0124  *    without modification.
0125  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
0126  *    substantially similar to the "NO WARRANTY" disclaimer below
0127  *    ("Disclaimer") and any redistribution must be conditioned upon
0128  *    including a substantially similar Disclaimer requirement for further
0129  *    binary redistribution.
0130  * 3. Neither the names of the above-listed copyright holders nor the names
0131  *    of any contributors may be used to endorse or promote products derived
0132  *    from this software without specific prior written permission.
0133  *
0134  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
0135  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
0136  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
0137  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
0138  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0139  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
0140  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
0141  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
0142  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0143  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0144  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0145  *
0146  * Alternatively, you may choose to be licensed under the terms of the
0147  * GNU General Public License ("GPL") version 2 as published by the Free
0148  * Software Foundation.
0149  *
0150  *****************************************************************************/
0151 
0152 #ifndef __ACGLOBAL_H__
0153 #define __ACGLOBAL_H__
0154 
0155 
0156 /*****************************************************************************
0157  *
0158  * Globals related to the incoming ACPI tables
0159  *
0160  ****************************************************************************/
0161 
0162 /* Master list of all ACPI tables that were found in the RSDT/XSDT */
0163 
0164 ACPI_GLOBAL (ACPI_TABLE_LIST,           AcpiGbl_RootTableList);
0165 
0166 /* DSDT information. Used to check for DSDT corruption */
0167 
0168 ACPI_GLOBAL (ACPI_TABLE_HEADER *,       AcpiGbl_DSDT);
0169 ACPI_GLOBAL (ACPI_TABLE_HEADER,         AcpiGbl_OriginalDsdtHeader);
0170 ACPI_INIT_GLOBAL (char *,               AcpiGbl_CDAT, NULL);
0171 ACPI_INIT_GLOBAL (UINT32,               AcpiGbl_DsdtIndex, ACPI_INVALID_TABLE_INDEX);
0172 ACPI_INIT_GLOBAL (UINT32,               AcpiGbl_FacsIndex, ACPI_INVALID_TABLE_INDEX);
0173 ACPI_INIT_GLOBAL (UINT32,               AcpiGbl_XFacsIndex, ACPI_INVALID_TABLE_INDEX);
0174 ACPI_INIT_GLOBAL (UINT32,               AcpiGbl_FadtIndex, ACPI_INVALID_TABLE_INDEX);
0175 
0176 #if (!ACPI_REDUCED_HARDWARE)
0177 ACPI_GLOBAL (ACPI_TABLE_FACS *,         AcpiGbl_FACS);
0178 
0179 #endif /* !ACPI_REDUCED_HARDWARE */
0180 
0181 /* These addresses are calculated from the FADT Event Block addresses */
0182 
0183 ACPI_GLOBAL (ACPI_GENERIC_ADDRESS,      AcpiGbl_XPm1aStatus);
0184 ACPI_GLOBAL (ACPI_GENERIC_ADDRESS,      AcpiGbl_XPm1aEnable);
0185 
0186 ACPI_GLOBAL (ACPI_GENERIC_ADDRESS,      AcpiGbl_XPm1bStatus);
0187 ACPI_GLOBAL (ACPI_GENERIC_ADDRESS,      AcpiGbl_XPm1bEnable);
0188 
0189 /*
0190  * Handle both ACPI 1.0 and ACPI 2.0+ Integer widths. The integer width is
0191  * determined by the revision of the DSDT: If the DSDT revision is less than
0192  * 2, use only the lower 32 bits of the internal 64-bit Integer.
0193  */
0194 ACPI_GLOBAL (UINT8,                     AcpiGbl_IntegerBitWidth);
0195 ACPI_GLOBAL (UINT8,                     AcpiGbl_IntegerByteWidth);
0196 ACPI_GLOBAL (UINT8,                     AcpiGbl_IntegerNybbleWidth);
0197 
0198 
0199 /*****************************************************************************
0200  *
0201  * Mutual exclusion within the ACPICA subsystem
0202  *
0203  ****************************************************************************/
0204 
0205 /*
0206  * Predefined mutex objects. This array contains the
0207  * actual OS mutex handles, indexed by the local ACPI_MUTEX_HANDLEs.
0208  * (The table maps local handles to the real OS handles)
0209  */
0210 ACPI_GLOBAL (ACPI_MUTEX_INFO,           AcpiGbl_MutexInfo[ACPI_NUM_MUTEX]);
0211 
0212 /*
0213  * Global lock mutex is an actual AML mutex object
0214  * Global lock semaphore works in conjunction with the actual global lock
0215  * Global lock spinlock is used for "pending" handshake
0216  */
0217 ACPI_GLOBAL (ACPI_OPERAND_OBJECT *,     AcpiGbl_GlobalLockMutex);
0218 ACPI_GLOBAL (ACPI_SEMAPHORE,            AcpiGbl_GlobalLockSemaphore);
0219 ACPI_GLOBAL (ACPI_SPINLOCK,             AcpiGbl_GlobalLockPendingLock);
0220 ACPI_GLOBAL (UINT16,                    AcpiGbl_GlobalLockHandle);
0221 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_GlobalLockAcquired);
0222 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_GlobalLockPresent);
0223 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_GlobalLockPending);
0224 
0225 /*
0226  * Spinlocks are used for interfaces that can be possibly called at
0227  * interrupt level
0228  */
0229 ACPI_GLOBAL (ACPI_SPINLOCK,             AcpiGbl_GpeLock);       /* For GPE data structs and registers */
0230 ACPI_GLOBAL (ACPI_SPINLOCK,             AcpiGbl_HardwareLock);  /* For ACPI H/W except GPE registers */
0231 ACPI_GLOBAL (ACPI_SPINLOCK,             AcpiGbl_ReferenceCountLock);
0232 
0233 /* Mutex for _OSI support */
0234 
0235 ACPI_GLOBAL (ACPI_MUTEX,                AcpiGbl_OsiMutex);
0236 
0237 /* Reader/Writer lock is used for namespace walk and dynamic table unload */
0238 
0239 ACPI_GLOBAL (ACPI_RW_LOCK,              AcpiGbl_NamespaceRwLock);
0240 
0241 
0242 /*****************************************************************************
0243  *
0244  * Miscellaneous globals
0245  *
0246  ****************************************************************************/
0247 
0248 /* Object caches */
0249 
0250 ACPI_GLOBAL (ACPI_CACHE_T *,            AcpiGbl_NamespaceCache);
0251 ACPI_GLOBAL (ACPI_CACHE_T *,            AcpiGbl_StateCache);
0252 ACPI_GLOBAL (ACPI_CACHE_T *,            AcpiGbl_PsNodeCache);
0253 ACPI_GLOBAL (ACPI_CACHE_T *,            AcpiGbl_PsNodeExtCache);
0254 ACPI_GLOBAL (ACPI_CACHE_T *,            AcpiGbl_OperandCache);
0255 
0256 /* System */
0257 
0258 ACPI_INIT_GLOBAL (UINT32,               AcpiGbl_StartupFlags, 0);
0259 ACPI_INIT_GLOBAL (BOOLEAN,              AcpiGbl_Shutdown, TRUE);
0260 ACPI_INIT_GLOBAL (BOOLEAN,              AcpiGbl_EarlyInitialization, TRUE);
0261 
0262 /* Global handlers */
0263 
0264 ACPI_GLOBAL (ACPI_GLOBAL_NOTIFY_HANDLER,AcpiGbl_GlobalNotify[2]);
0265 ACPI_GLOBAL (ACPI_EXCEPTION_HANDLER,    AcpiGbl_ExceptionHandler);
0266 ACPI_GLOBAL (ACPI_INIT_HANDLER,         AcpiGbl_InitHandler);
0267 ACPI_GLOBAL (ACPI_TABLE_HANDLER,        AcpiGbl_TableHandler);
0268 ACPI_GLOBAL (void *,                    AcpiGbl_TableHandlerContext);
0269 ACPI_GLOBAL (ACPI_INTERFACE_HANDLER,    AcpiGbl_InterfaceHandler);
0270 ACPI_GLOBAL (ACPI_SCI_HANDLER_INFO *,   AcpiGbl_SciHandlerList);
0271 ACPI_GLOBAL (ACPI_GED_HANDLER_INFO *,   AcpiGbl_GedHandlerList);
0272 
0273 /* Owner ID support */
0274 
0275 ACPI_GLOBAL (UINT32,                    AcpiGbl_OwnerIdMask[ACPI_NUM_OWNERID_MASKS]);
0276 ACPI_GLOBAL (UINT8,                     AcpiGbl_LastOwnerIdIndex);
0277 ACPI_GLOBAL (UINT8,                     AcpiGbl_NextOwnerIdOffset);
0278 
0279 /* Initialization sequencing */
0280 
0281 ACPI_INIT_GLOBAL (BOOLEAN,              AcpiGbl_NamespaceInitialized, FALSE);
0282 
0283 /* Miscellaneous */
0284 
0285 ACPI_GLOBAL (UINT32,                    AcpiGbl_OriginalMode);
0286 ACPI_GLOBAL (UINT32,                    AcpiGbl_NsLookupCount);
0287 ACPI_GLOBAL (UINT32,                    AcpiGbl_PsFindCount);
0288 ACPI_GLOBAL (UINT16,                    AcpiGbl_Pm1EnableRegisterSave);
0289 ACPI_GLOBAL (UINT8,                     AcpiGbl_DebuggerConfiguration);
0290 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_StepToNextCall);
0291 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_AcpiHardwarePresent);
0292 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_EventsInitialized);
0293 ACPI_GLOBAL (ACPI_INTERFACE_INFO *,     AcpiGbl_SupportedInterfaces);
0294 ACPI_GLOBAL (ACPI_ADDRESS_RANGE *,      AcpiGbl_AddressRangeList[ACPI_ADDRESS_RANGE_MAX]);
0295 
0296 /* Other miscellaneous, declared and initialized in utglobal */
0297 
0298 extern const char                      *AcpiGbl_SleepStateNames[ACPI_S_STATE_COUNT];
0299 extern const char                      *AcpiGbl_LowestDstateNames[ACPI_NUM_SxW_METHODS];
0300 extern const char                      *AcpiGbl_HighestDstateNames[ACPI_NUM_SxD_METHODS];
0301 extern const char                      *AcpiGbl_RegionTypes[ACPI_NUM_PREDEFINED_REGIONS];
0302 extern const char                       AcpiGbl_LowerHexDigits[];
0303 extern const char                       AcpiGbl_UpperHexDigits[];
0304 extern const ACPI_OPCODE_INFO           AcpiGbl_AmlOpInfo[AML_NUM_OPCODES];
0305 
0306 /* Lists for tracking memory allocations (debug only) */
0307 
0308 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
0309 ACPI_GLOBAL (ACPI_MEMORY_LIST *,        AcpiGbl_GlobalList);
0310 ACPI_GLOBAL (ACPI_MEMORY_LIST *,        AcpiGbl_NsNodeList);
0311 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_DisplayFinalMemStats);
0312 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_DisableMemTracking);
0313 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_VerboseLeakDump);
0314 #endif
0315 
0316 
0317 /*****************************************************************************
0318  *
0319  * ACPI Namespace
0320  *
0321  ****************************************************************************/
0322 
0323 #define NUM_PREDEFINED_NAMES            10
0324 
0325 ACPI_GLOBAL (ACPI_NAMESPACE_NODE,       AcpiGbl_RootNodeStruct);
0326 ACPI_GLOBAL (ACPI_NAMESPACE_NODE *,     AcpiGbl_RootNode);
0327 ACPI_GLOBAL (ACPI_NAMESPACE_NODE *,     AcpiGbl_FadtGpeDevice);
0328 
0329 extern const UINT8                      AcpiGbl_NsProperties [ACPI_NUM_NS_TYPES];
0330 extern const ACPI_PREDEFINED_NAMES      AcpiGbl_PreDefinedNames [NUM_PREDEFINED_NAMES];
0331 
0332 #ifdef ACPI_DEBUG_OUTPUT
0333 ACPI_GLOBAL (UINT32,                    AcpiGbl_CurrentNodeCount);
0334 ACPI_GLOBAL (UINT32,                    AcpiGbl_CurrentNodeSize);
0335 ACPI_GLOBAL (UINT32,                    AcpiGbl_MaxConcurrentNodeCount);
0336 ACPI_GLOBAL (ACPI_SIZE *,               AcpiGbl_EntryStackPointer);
0337 ACPI_GLOBAL (ACPI_SIZE *,               AcpiGbl_LowestStackPointer);
0338 ACPI_GLOBAL (UINT32,                    AcpiGbl_DeepestNesting);
0339 ACPI_INIT_GLOBAL (UINT32,               AcpiGbl_NestingLevel, 0);
0340 #endif
0341 
0342 
0343 /*****************************************************************************
0344  *
0345  * Interpreter/Parser globals
0346  *
0347  ****************************************************************************/
0348 
0349 /* Control method single step flag */
0350 
0351 ACPI_GLOBAL (UINT8,                     AcpiGbl_CmSingleStep);
0352 ACPI_GLOBAL (ACPI_THREAD_STATE *,       AcpiGbl_CurrentWalkList);
0353 ACPI_INIT_GLOBAL (ACPI_PARSE_OBJECT,   *AcpiGbl_CurrentScope, NULL);
0354 
0355 /* ASL/ASL+ converter */
0356 
0357 ACPI_INIT_GLOBAL (BOOLEAN,              AcpiGbl_CaptureComments, FALSE);
0358 ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE,   *AcpiGbl_LastListHead, NULL);
0359 
0360 
0361 /*****************************************************************************
0362  *
0363  * Hardware globals
0364  *
0365  ****************************************************************************/
0366 
0367 extern ACPI_BIT_REGISTER_INFO           AcpiGbl_BitRegisterInfo[ACPI_NUM_BITREG];
0368 ACPI_GLOBAL (UINT8,                     AcpiGbl_SleepTypeA);
0369 ACPI_GLOBAL (UINT8,                     AcpiGbl_SleepTypeB);
0370 ACPI_GLOBAL (UINT8,                     AcpiGbl_SleepTypeAS0);
0371 ACPI_GLOBAL (UINT8,                     AcpiGbl_SleepTypeBS0);
0372 
0373 
0374 /*****************************************************************************
0375  *
0376  * Event and GPE globals
0377  *
0378  ****************************************************************************/
0379 
0380 #if (!ACPI_REDUCED_HARDWARE)
0381 ACPI_GLOBAL (UINT8,                     AcpiGbl_AllGpesInitialized);
0382 ACPI_GLOBAL (ACPI_GPE_XRUPT_INFO *,     AcpiGbl_GpeXruptListHead);
0383 ACPI_GLOBAL (ACPI_GPE_BLOCK_INFO *,     AcpiGbl_GpeFadtBlocks[ACPI_MAX_GPE_BLOCKS]);
0384 ACPI_GLOBAL (ACPI_GBL_EVENT_HANDLER,    AcpiGbl_GlobalEventHandler);
0385 ACPI_GLOBAL (void *,                    AcpiGbl_GlobalEventHandlerContext);
0386 ACPI_GLOBAL (ACPI_FIXED_EVENT_HANDLER,  AcpiGbl_FixedEventHandlers[ACPI_NUM_FIXED_EVENTS]);
0387 extern ACPI_FIXED_EVENT_INFO            AcpiGbl_FixedEventInfo[ACPI_NUM_FIXED_EVENTS];
0388 #endif /* !ACPI_REDUCED_HARDWARE */
0389 
0390 
0391 /*****************************************************************************
0392  *
0393  * Debug support
0394  *
0395  ****************************************************************************/
0396 
0397 /* Event counters */
0398 
0399 ACPI_GLOBAL (UINT32,                    AcpiMethodCount);
0400 ACPI_GLOBAL (UINT32,                    AcpiGpeCount);
0401 ACPI_GLOBAL (UINT32,                    AcpiSciCount);
0402 ACPI_GLOBAL (UINT32,                    AcpiFixedEventCount[ACPI_NUM_FIXED_EVENTS]);
0403 
0404 /* Dynamic control method tracing mechanism */
0405 
0406 ACPI_GLOBAL (UINT32,                    AcpiGbl_OriginalDbgLevel);
0407 ACPI_GLOBAL (UINT32,                    AcpiGbl_OriginalDbgLayer);
0408 
0409 
0410 /*****************************************************************************
0411  *
0412  * Debugger and Disassembler
0413  *
0414  ****************************************************************************/
0415 
0416 ACPI_INIT_GLOBAL (UINT8,                AcpiGbl_DbOutputFlags, ACPI_DB_CONSOLE_OUTPUT);
0417 
0418 
0419 #ifdef ACPI_DISASSEMBLER
0420 
0421 /* Do not disassemble buffers to resource descriptors */
0422 
0423 ACPI_INIT_GLOBAL (UINT8,                AcpiGbl_NoResourceDisassembly, FALSE);
0424 ACPI_INIT_GLOBAL (BOOLEAN,              AcpiGbl_IgnoreNoopOperator, FALSE);
0425 ACPI_INIT_GLOBAL (BOOLEAN,              AcpiGbl_CstyleDisassembly, TRUE);
0426 ACPI_INIT_GLOBAL (BOOLEAN,              AcpiGbl_ForceAmlDisassembly, FALSE);
0427 ACPI_INIT_GLOBAL (BOOLEAN,              AcpiGbl_DmOpt_Verbose, TRUE);
0428 ACPI_INIT_GLOBAL (BOOLEAN,              AcpiGbl_DmEmitExternalOpcodes, FALSE);
0429 ACPI_INIT_GLOBAL (BOOLEAN,              AcpiGbl_DoDisassemblerOptimizations, TRUE);
0430 ACPI_INIT_GLOBAL (ACPI_PARSE_OBJECT_LIST, *AcpiGbl_TempListHead, NULL);
0431 
0432 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_DmOpt_Disasm);
0433 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_DmOpt_Listing);
0434 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_NumExternalMethods);
0435 ACPI_GLOBAL (UINT32,                    AcpiGbl_ResolvedExternalMethods);
0436 ACPI_GLOBAL (ACPI_EXTERNAL_LIST *,      AcpiGbl_ExternalList);
0437 ACPI_GLOBAL (ACPI_EXTERNAL_FILE *,      AcpiGbl_ExternalFileList);
0438 #endif
0439 
0440 #ifdef ACPI_DEBUGGER
0441 ACPI_INIT_GLOBAL (BOOLEAN,              AcpiGbl_AbortMethod, FALSE);
0442 ACPI_INIT_GLOBAL (ACPI_THREAD_ID,       AcpiGbl_DbThreadId, ACPI_INVALID_THREAD_ID);
0443 ACPI_INIT_GLOBAL (UINT32,               AcpiGbl_NextCmdNum, 1);
0444 
0445 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_DbOpt_NoIniMethods);
0446 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_DbOpt_NoRegionSupport);
0447 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_DbOutputToFile);
0448 ACPI_GLOBAL (char *,                    AcpiGbl_DbBuffer);
0449 ACPI_GLOBAL (char *,                    AcpiGbl_DbFilename);
0450 ACPI_GLOBAL (UINT32,                    AcpiGbl_DbDebugLevel);
0451 ACPI_GLOBAL (UINT32,                    AcpiGbl_DbConsoleDebugLevel);
0452 ACPI_GLOBAL (ACPI_NAMESPACE_NODE *,     AcpiGbl_DbScopeNode);
0453 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_DbTerminateLoop);
0454 ACPI_GLOBAL (BOOLEAN,                   AcpiGbl_DbThreadsTerminated);
0455 ACPI_GLOBAL (char *,                    AcpiGbl_DbArgs[ACPI_DEBUGGER_MAX_ARGS]);
0456 ACPI_GLOBAL (ACPI_OBJECT_TYPE,          AcpiGbl_DbArgTypes[ACPI_DEBUGGER_MAX_ARGS]);
0457 
0458 /* These buffers should all be the same size */
0459 
0460 ACPI_GLOBAL (char,                      AcpiGbl_DbParsedBuf[ACPI_DB_LINE_BUFFER_SIZE]);
0461 ACPI_GLOBAL (char,                      AcpiGbl_DbScopeBuf[ACPI_DB_LINE_BUFFER_SIZE]);
0462 ACPI_GLOBAL (char,                      AcpiGbl_DbDebugFilename[ACPI_DB_LINE_BUFFER_SIZE]);
0463 
0464 /* Statistics globals */
0465 
0466 ACPI_GLOBAL (UINT16,                    AcpiGbl_ObjTypeCount[ACPI_TOTAL_TYPES]);
0467 ACPI_GLOBAL (UINT16,                    AcpiGbl_NodeTypeCount[ACPI_TOTAL_TYPES]);
0468 ACPI_GLOBAL (UINT16,                    AcpiGbl_ObjTypeCountMisc);
0469 ACPI_GLOBAL (UINT16,                    AcpiGbl_NodeTypeCountMisc);
0470 ACPI_GLOBAL (UINT32,                    AcpiGbl_NumNodes);
0471 ACPI_GLOBAL (UINT32,                    AcpiGbl_NumObjects);
0472 #endif /* ACPI_DEBUGGER */
0473 
0474 #if defined (ACPI_DISASSEMBLER) || defined (ACPI_ASL_COMPILER)
0475 ACPI_GLOBAL (const char,               *AcpiGbl_PldPanelList[]);
0476 ACPI_GLOBAL (const char,               *AcpiGbl_PldVerticalPositionList[]);
0477 ACPI_GLOBAL (const char,               *AcpiGbl_PldHorizontalPositionList[]);
0478 ACPI_GLOBAL (const char,               *AcpiGbl_PldShapeList[]);
0479 ACPI_INIT_GLOBAL (BOOLEAN,              AcpiGbl_DisasmFlag, FALSE);
0480 #endif
0481 
0482 
0483 /*****************************************************************************
0484  *
0485  * ACPICA application-specific globals
0486  *
0487  ****************************************************************************/
0488 
0489 /* ASL-to-ASL+ conversion utility (implemented within the iASL compiler) */
0490 
0491 #ifdef ACPI_ASL_COMPILER
0492 ACPI_INIT_GLOBAL (char *,               AcpiGbl_CurrentInlineComment, NULL);
0493 ACPI_INIT_GLOBAL (char *,               AcpiGbl_CurrentEndNodeComment, NULL);
0494 ACPI_INIT_GLOBAL (char *,               AcpiGbl_CurrentOpenBraceComment, NULL);
0495 ACPI_INIT_GLOBAL (char *,               AcpiGbl_CurrentCloseBraceComment, NULL);
0496 
0497 ACPI_INIT_GLOBAL (char *,               AcpiGbl_RootFilename, NULL);
0498 ACPI_INIT_GLOBAL (char *,               AcpiGbl_CurrentFilename, NULL);
0499 ACPI_INIT_GLOBAL (char *,               AcpiGbl_CurrentParentFilename, NULL);
0500 ACPI_INIT_GLOBAL (char *,               AcpiGbl_CurrentIncludeFilename, NULL);
0501 
0502 ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE,   *AcpiGbl_DefBlkCommentListHead, NULL);
0503 ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE,   *AcpiGbl_DefBlkCommentListTail, NULL);
0504 ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE,   *AcpiGbl_RegCommentListHead, NULL);
0505 ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE,   *AcpiGbl_RegCommentListTail, NULL);
0506 ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE,   *AcpiGbl_IncCommentListHead, NULL);
0507 ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE,   *AcpiGbl_IncCommentListTail, NULL);
0508 ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE,   *AcpiGbl_EndBlkCommentListHead, NULL);
0509 ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE,   *AcpiGbl_EndBlkCommentListTail, NULL);
0510 
0511 ACPI_INIT_GLOBAL (ACPI_COMMENT_ADDR_NODE, *AcpiGbl_CommentAddrListHead, NULL);
0512 ACPI_INIT_GLOBAL (ACPI_FILE_NODE,      *AcpiGbl_FileTreeRoot, NULL);
0513 
0514 ACPI_GLOBAL (ACPI_CACHE_T *,            AcpiGbl_RegCommentCache);
0515 ACPI_GLOBAL (ACPI_CACHE_T *,            AcpiGbl_CommentAddrCache);
0516 ACPI_GLOBAL (ACPI_CACHE_T *,            AcpiGbl_FileCache);
0517 
0518 ACPI_INIT_GLOBAL (BOOLEAN,              AcpiGbl_DebugAslConversion, FALSE);
0519 ACPI_INIT_GLOBAL (ACPI_FILE,            AcpiGbl_ConvDebugFile, NULL);
0520 ACPI_GLOBAL (char,                      AcpiGbl_TableSig[4]);
0521 #endif
0522 
0523 #ifdef ACPI_APPLICATION
0524 ACPI_INIT_GLOBAL (ACPI_FILE,            AcpiGbl_DebugFile, NULL);
0525 ACPI_INIT_GLOBAL (ACPI_FILE,            AcpiGbl_OutputFile, NULL);
0526 ACPI_INIT_GLOBAL (BOOLEAN,              AcpiGbl_DebugTimeout, FALSE);
0527 
0528 /* Print buffer */
0529 
0530 ACPI_GLOBAL (ACPI_SPINLOCK,             AcpiGbl_PrintLock);     /* For print buffer */
0531 ACPI_GLOBAL (char,                      AcpiGbl_PrintBuffer[1024]);
0532 #endif /* ACPI_APPLICATION */
0533 
0534 #endif /* __ACGLOBAL_H__ */