Path: blob/main/sys/contrib/dev/acpica/include/acglobal.h
48285 views
/******************************************************************************1*2* Name: acglobal.h - Declarations for global variables3*4*****************************************************************************/56/******************************************************************************7*8* 1. Copyright Notice9*10* Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.11* All rights reserved.12*13* 2. License14*15* 2.1. This is your license from Intel Corp. under its intellectual property16* rights. You may have additional license terms from the party that provided17* you this software, covering your right to use that party's intellectual18* property rights.19*20* 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a21* copy of the source code appearing in this file ("Covered Code") an22* irrevocable, perpetual, worldwide license under Intel's copyrights in the23* base code distributed originally by Intel ("Original Intel Code") to copy,24* make derivatives, distribute, use and display any portion of the Covered25* Code in any form, with the right to sublicense such rights; and26*27* 2.3. Intel grants Licensee a non-exclusive and non-transferable patent28* license (with the right to sublicense), under only those claims of Intel29* patents that are infringed by the Original Intel Code, to make, use, sell,30* offer to sell, and import the Covered Code and derivative works thereof31* solely to the minimum extent necessary to exercise the above copyright32* license, and in no event shall the patent license extend to any additions33* to or modifications of the Original Intel Code. No other license or right34* is granted directly or by implication, estoppel or otherwise;35*36* The above copyright and patent license is granted only if the following37* conditions are met:38*39* 3. Conditions40*41* 3.1. Redistribution of Source with Rights to Further Distribute Source.42* Redistribution of source code of any substantial portion of the Covered43* Code or modification with rights to further distribute source must include44* the above Copyright Notice, the above License, this list of Conditions,45* and the following Disclaimer and Export Compliance provision. In addition,46* Licensee must cause all Covered Code to which Licensee contributes to47* contain a file documenting the changes Licensee made to create that Covered48* Code and the date of any change. Licensee must include in that file the49* documentation of any changes made by any predecessor Licensee. Licensee50* must include a prominent statement that the modification is derived,51* directly or indirectly, from Original Intel Code.52*53* 3.2. Redistribution of Source with no Rights to Further Distribute Source.54* Redistribution of source code of any substantial portion of the Covered55* Code or modification without rights to further distribute source must56* include the following Disclaimer and Export Compliance provision in the57* documentation and/or other materials provided with distribution. In58* addition, Licensee may not authorize further sublicense of source of any59* portion of the Covered Code, and must include terms to the effect that the60* license from Licensee to its licensee is limited to the intellectual61* property embodied in the software Licensee provides to its licensee, and62* not to intellectual property embodied in modifications its licensee may63* make.64*65* 3.3. Redistribution of Executable. Redistribution in executable form of any66* substantial portion of the Covered Code or modification must reproduce the67* above Copyright Notice, and the following Disclaimer and Export Compliance68* provision in the documentation and/or other materials provided with the69* distribution.70*71* 3.4. Intel retains all right, title, and interest in and to the Original72* Intel Code.73*74* 3.5. Neither the name Intel nor any other trademark owned or controlled by75* Intel shall be used in advertising or otherwise to promote the sale, use or76* other dealings in products derived from or relating to the Covered Code77* without prior written authorization from Intel.78*79* 4. Disclaimer and Export Compliance80*81* 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED82* HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE83* IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,84* INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY85* UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY86* IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A87* PARTICULAR PURPOSE.88*89* 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES90* OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR91* COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,92* SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY93* CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL94* HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS95* SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY96* LIMITED REMEDY.97*98* 4.3. Licensee shall not export, either directly or indirectly, any of this99* software or system incorporating such software without first obtaining any100* required license or other approval from the U. S. Department of Commerce or101* any other agency or department of the United States Government. In the102* event Licensee exports any such software from the United States or103* re-exports any such software from a foreign destination, Licensee shall104* ensure that the distribution and export/re-export of the software is in105* compliance with all laws, regulations, orders, or other restrictions of the106* U.S. Export Administration Regulations. Licensee agrees that neither it nor107* any of its subsidiaries will export/re-export any technical data, process,108* software, or service, directly or indirectly, to any country for which the109* United States government or any agency thereof requires an export license,110* other governmental approval, or letter of assurance, without first obtaining111* such license, approval or letter.112*113*****************************************************************************114*115* Alternatively, you may choose to be licensed under the terms of the116* following license:117*118* Redistribution and use in source and binary forms, with or without119* modification, are permitted provided that the following conditions120* are met:121* 1. Redistributions of source code must retain the above copyright122* notice, this list of conditions, and the following disclaimer,123* without modification.124* 2. Redistributions in binary form must reproduce at minimum a disclaimer125* substantially similar to the "NO WARRANTY" disclaimer below126* ("Disclaimer") and any redistribution must be conditioned upon127* including a substantially similar Disclaimer requirement for further128* binary redistribution.129* 3. Neither the names of the above-listed copyright holders nor the names130* of any contributors may be used to endorse or promote products derived131* from this software without specific prior written permission.132*133* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS134* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT135* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR136* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT137* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,138* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT139* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,140* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY141* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT142* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE143* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.144*145* Alternatively, you may choose to be licensed under the terms of the146* GNU General Public License ("GPL") version 2 as published by the Free147* Software Foundation.148*149*****************************************************************************/150151#ifndef __ACGLOBAL_H__152#define __ACGLOBAL_H__153154155/*****************************************************************************156*157* Globals related to the incoming ACPI tables158*159****************************************************************************/160161/* Master list of all ACPI tables that were found in the RSDT/XSDT */162163ACPI_GLOBAL (ACPI_TABLE_LIST, AcpiGbl_RootTableList);164165/* DSDT information. Used to check for DSDT corruption */166167ACPI_GLOBAL (ACPI_TABLE_HEADER *, AcpiGbl_DSDT);168ACPI_GLOBAL (ACPI_TABLE_HEADER, AcpiGbl_OriginalDsdtHeader);169ACPI_INIT_GLOBAL (char *, AcpiGbl_CDAT, NULL);170ACPI_INIT_GLOBAL (UINT32, AcpiGbl_DsdtIndex, ACPI_INVALID_TABLE_INDEX);171ACPI_INIT_GLOBAL (UINT32, AcpiGbl_FacsIndex, ACPI_INVALID_TABLE_INDEX);172ACPI_INIT_GLOBAL (UINT32, AcpiGbl_XFacsIndex, ACPI_INVALID_TABLE_INDEX);173ACPI_INIT_GLOBAL (UINT32, AcpiGbl_FadtIndex, ACPI_INVALID_TABLE_INDEX);174ACPI_INIT_GLOBAL (ACPI_TABLE_FACS *, AcpiGbl_FACS, NULL);175176/* These addresses are calculated from the FADT Event Block addresses */177178ACPI_GLOBAL (ACPI_GENERIC_ADDRESS, AcpiGbl_XPm1aStatus);179ACPI_GLOBAL (ACPI_GENERIC_ADDRESS, AcpiGbl_XPm1aEnable);180181ACPI_GLOBAL (ACPI_GENERIC_ADDRESS, AcpiGbl_XPm1bStatus);182ACPI_GLOBAL (ACPI_GENERIC_ADDRESS, AcpiGbl_XPm1bEnable);183184/*185* Handle both ACPI 1.0 and ACPI 2.0+ Integer widths. The integer width is186* determined by the revision of the DSDT: If the DSDT revision is less than187* 2, use only the lower 32 bits of the internal 64-bit Integer.188*/189ACPI_GLOBAL (UINT8, AcpiGbl_IntegerBitWidth);190ACPI_GLOBAL (UINT8, AcpiGbl_IntegerByteWidth);191ACPI_GLOBAL (UINT8, AcpiGbl_IntegerNybbleWidth);192193194/*****************************************************************************195*196* Mutual exclusion within the ACPICA subsystem197*198****************************************************************************/199200/*201* Predefined mutex objects. This array contains the202* actual OS mutex handles, indexed by the local ACPI_MUTEX_HANDLEs.203* (The table maps local handles to the real OS handles)204*/205ACPI_GLOBAL (ACPI_MUTEX_INFO, AcpiGbl_MutexInfo[ACPI_NUM_MUTEX]);206207/*208* Global lock mutex is an actual AML mutex object209* Global lock semaphore works in conjunction with the actual global lock210* Global lock spinlock is used for "pending" handshake211*/212ACPI_GLOBAL (ACPI_OPERAND_OBJECT *, AcpiGbl_GlobalLockMutex);213ACPI_GLOBAL (ACPI_SEMAPHORE, AcpiGbl_GlobalLockSemaphore);214ACPI_GLOBAL (ACPI_SPINLOCK, AcpiGbl_GlobalLockPendingLock);215ACPI_GLOBAL (UINT16, AcpiGbl_GlobalLockHandle);216ACPI_GLOBAL (BOOLEAN, AcpiGbl_GlobalLockAcquired);217ACPI_GLOBAL (BOOLEAN, AcpiGbl_GlobalLockPresent);218ACPI_GLOBAL (BOOLEAN, AcpiGbl_GlobalLockPending);219220/*221* Spinlocks are used for interfaces that can be possibly called at222* interrupt level223*/224ACPI_GLOBAL (ACPI_SPINLOCK, AcpiGbl_GpeLock); /* For GPE data structs and registers */225ACPI_GLOBAL (ACPI_SPINLOCK, AcpiGbl_HardwareLock); /* For ACPI H/W except GPE registers */226ACPI_GLOBAL (ACPI_SPINLOCK, AcpiGbl_ReferenceCountLock);227228/* Mutex for _OSI support */229230ACPI_GLOBAL (ACPI_MUTEX, AcpiGbl_OsiMutex);231232/* Reader/Writer lock is used for namespace walk and dynamic table unload */233234ACPI_GLOBAL (ACPI_RW_LOCK, AcpiGbl_NamespaceRwLock);235236237/*****************************************************************************238*239* Miscellaneous globals240*241****************************************************************************/242243/* Object caches */244245ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_NamespaceCache);246ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_StateCache);247ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_PsNodeCache);248ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_PsNodeExtCache);249ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_OperandCache);250251/* System */252253ACPI_INIT_GLOBAL (UINT32, AcpiGbl_StartupFlags, 0);254ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_Shutdown, TRUE);255ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_EarlyInitialization, TRUE);256257/* Global handlers */258259ACPI_GLOBAL (ACPI_GLOBAL_NOTIFY_HANDLER,AcpiGbl_GlobalNotify[2]);260ACPI_GLOBAL (ACPI_EXCEPTION_HANDLER, AcpiGbl_ExceptionHandler);261ACPI_GLOBAL (ACPI_INIT_HANDLER, AcpiGbl_InitHandler);262ACPI_GLOBAL (ACPI_TABLE_HANDLER, AcpiGbl_TableHandler);263ACPI_GLOBAL (void *, AcpiGbl_TableHandlerContext);264ACPI_GLOBAL (ACPI_INTERFACE_HANDLER, AcpiGbl_InterfaceHandler);265ACPI_GLOBAL (ACPI_SCI_HANDLER_INFO *, AcpiGbl_SciHandlerList);266ACPI_GLOBAL (ACPI_GED_HANDLER_INFO *, AcpiGbl_GedHandlerList);267268/* Owner ID support */269270ACPI_GLOBAL (UINT32, AcpiGbl_OwnerIdMask[ACPI_NUM_OWNERID_MASKS]);271ACPI_GLOBAL (UINT8, AcpiGbl_LastOwnerIdIndex);272ACPI_GLOBAL (UINT8, AcpiGbl_NextOwnerIdOffset);273274/* Initialization sequencing */275276ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_NamespaceInitialized, FALSE);277278/* Miscellaneous */279280ACPI_GLOBAL (UINT32, AcpiGbl_OriginalMode);281ACPI_GLOBAL (UINT32, AcpiGbl_NsLookupCount);282ACPI_GLOBAL (UINT32, AcpiGbl_PsFindCount);283ACPI_GLOBAL (UINT16, AcpiGbl_Pm1EnableRegisterSave);284ACPI_GLOBAL (UINT8, AcpiGbl_DebuggerConfiguration);285ACPI_GLOBAL (BOOLEAN, AcpiGbl_StepToNextCall);286ACPI_GLOBAL (BOOLEAN, AcpiGbl_AcpiHardwarePresent);287ACPI_GLOBAL (BOOLEAN, AcpiGbl_EventsInitialized);288ACPI_GLOBAL (ACPI_INTERFACE_INFO *, AcpiGbl_SupportedInterfaces);289ACPI_GLOBAL (ACPI_ADDRESS_RANGE *, AcpiGbl_AddressRangeList[ACPI_ADDRESS_RANGE_MAX]);290291/* Other miscellaneous, declared and initialized in utglobal */292293extern const char *AcpiGbl_SleepStateNames[ACPI_S_STATE_COUNT];294extern const char *AcpiGbl_LowestDstateNames[ACPI_NUM_SxW_METHODS];295extern const char *AcpiGbl_HighestDstateNames[ACPI_NUM_SxD_METHODS];296extern const char *AcpiGbl_RegionTypes[ACPI_NUM_PREDEFINED_REGIONS];297extern const char AcpiGbl_LowerHexDigits[];298extern const char AcpiGbl_UpperHexDigits[];299extern const ACPI_OPCODE_INFO AcpiGbl_AmlOpInfo[AML_NUM_OPCODES];300301/* Lists for tracking memory allocations (debug only) */302303#ifdef ACPI_DBG_TRACK_ALLOCATIONS304ACPI_GLOBAL (ACPI_MEMORY_LIST *, AcpiGbl_GlobalList);305ACPI_GLOBAL (ACPI_MEMORY_LIST *, AcpiGbl_NsNodeList);306ACPI_GLOBAL (BOOLEAN, AcpiGbl_DisplayFinalMemStats);307ACPI_GLOBAL (BOOLEAN, AcpiGbl_DisableMemTracking);308ACPI_GLOBAL (BOOLEAN, AcpiGbl_VerboseLeakDump);309#endif310311312/*****************************************************************************313*314* ACPI Namespace315*316****************************************************************************/317318#define NUM_PREDEFINED_NAMES 10319320ACPI_GLOBAL (ACPI_NAMESPACE_NODE, AcpiGbl_RootNodeStruct);321ACPI_GLOBAL (ACPI_NAMESPACE_NODE *, AcpiGbl_RootNode);322ACPI_GLOBAL (ACPI_NAMESPACE_NODE *, AcpiGbl_FadtGpeDevice);323324extern const UINT8 AcpiGbl_NsProperties [ACPI_NUM_NS_TYPES];325extern const ACPI_PREDEFINED_NAMES AcpiGbl_PreDefinedNames [NUM_PREDEFINED_NAMES];326327#ifdef ACPI_DEBUG_OUTPUT328ACPI_GLOBAL (UINT32, AcpiGbl_CurrentNodeCount);329ACPI_GLOBAL (UINT32, AcpiGbl_CurrentNodeSize);330ACPI_GLOBAL (UINT32, AcpiGbl_MaxConcurrentNodeCount);331ACPI_GLOBAL (ACPI_SIZE *, AcpiGbl_EntryStackPointer);332ACPI_GLOBAL (ACPI_SIZE *, AcpiGbl_LowestStackPointer);333ACPI_GLOBAL (UINT32, AcpiGbl_DeepestNesting);334ACPI_INIT_GLOBAL (UINT32, AcpiGbl_NestingLevel, 0);335#endif336337338/*****************************************************************************339*340* Interpreter/Parser globals341*342****************************************************************************/343344/* Control method single step flag */345346ACPI_GLOBAL (UINT8, AcpiGbl_CmSingleStep);347ACPI_GLOBAL (ACPI_THREAD_STATE *, AcpiGbl_CurrentWalkList);348ACPI_INIT_GLOBAL (ACPI_PARSE_OBJECT, *AcpiGbl_CurrentScope, NULL);349350/* ASL/ASL+ converter */351352ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_CaptureComments, FALSE);353ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_LastListHead, NULL);354355356/*****************************************************************************357*358* Hardware globals359*360****************************************************************************/361362extern ACPI_BIT_REGISTER_INFO AcpiGbl_BitRegisterInfo[ACPI_NUM_BITREG];363ACPI_GLOBAL (UINT8, AcpiGbl_SleepTypeA);364ACPI_GLOBAL (UINT8, AcpiGbl_SleepTypeB);365ACPI_GLOBAL (UINT8, AcpiGbl_SleepTypeAS0);366ACPI_GLOBAL (UINT8, AcpiGbl_SleepTypeBS0);367368369/*****************************************************************************370*371* Event and GPE globals372*373****************************************************************************/374375#if (!ACPI_REDUCED_HARDWARE)376ACPI_GLOBAL (UINT8, AcpiGbl_AllGpesInitialized);377ACPI_GLOBAL (ACPI_GPE_XRUPT_INFO *, AcpiGbl_GpeXruptListHead);378ACPI_GLOBAL (ACPI_GPE_BLOCK_INFO *, AcpiGbl_GpeFadtBlocks[ACPI_MAX_GPE_BLOCKS]);379ACPI_GLOBAL (ACPI_GBL_EVENT_HANDLER, AcpiGbl_GlobalEventHandler);380ACPI_GLOBAL (void *, AcpiGbl_GlobalEventHandlerContext);381ACPI_GLOBAL (ACPI_FIXED_EVENT_HANDLER, AcpiGbl_FixedEventHandlers[ACPI_NUM_FIXED_EVENTS]);382extern ACPI_FIXED_EVENT_INFO AcpiGbl_FixedEventInfo[ACPI_NUM_FIXED_EVENTS];383#endif /* !ACPI_REDUCED_HARDWARE */384385386/*****************************************************************************387*388* Debug support389*390****************************************************************************/391392/* Event counters */393394ACPI_GLOBAL (UINT32, AcpiMethodCount);395ACPI_GLOBAL (UINT32, AcpiGpeCount);396ACPI_GLOBAL (UINT32, AcpiSciCount);397ACPI_GLOBAL (UINT32, AcpiFixedEventCount[ACPI_NUM_FIXED_EVENTS]);398399/* Dynamic control method tracing mechanism */400401ACPI_GLOBAL (UINT32, AcpiGbl_OriginalDbgLevel);402ACPI_GLOBAL (UINT32, AcpiGbl_OriginalDbgLayer);403404405/*****************************************************************************406*407* Debugger and Disassembler408*409****************************************************************************/410411ACPI_INIT_GLOBAL (UINT8, AcpiGbl_DbOutputFlags, ACPI_DB_CONSOLE_OUTPUT);412413414#ifdef ACPI_DISASSEMBLER415416/* Do not disassemble buffers to resource descriptors */417418ACPI_INIT_GLOBAL (UINT8, AcpiGbl_NoResourceDisassembly, FALSE);419ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_IgnoreNoopOperator, FALSE);420ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_CstyleDisassembly, TRUE);421ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_ForceAmlDisassembly, FALSE);422ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DmOpt_Verbose, TRUE);423ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DmEmitExternalOpcodes, FALSE);424ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DoDisassemblerOptimizations, TRUE);425ACPI_INIT_GLOBAL (ACPI_PARSE_OBJECT_LIST, *AcpiGbl_TempListHead, NULL);426427ACPI_GLOBAL (BOOLEAN, AcpiGbl_DmOpt_Disasm);428ACPI_GLOBAL (BOOLEAN, AcpiGbl_DmOpt_Listing);429ACPI_GLOBAL (BOOLEAN, AcpiGbl_NumExternalMethods);430ACPI_GLOBAL (UINT32, AcpiGbl_ResolvedExternalMethods);431ACPI_GLOBAL (ACPI_EXTERNAL_LIST *, AcpiGbl_ExternalList);432ACPI_GLOBAL (ACPI_EXTERNAL_FILE *, AcpiGbl_ExternalFileList);433#endif434435#ifdef ACPI_DEBUGGER436ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_AbortMethod, FALSE);437ACPI_INIT_GLOBAL (ACPI_THREAD_ID, AcpiGbl_DbThreadId, ACPI_INVALID_THREAD_ID);438ACPI_INIT_GLOBAL (UINT32, AcpiGbl_NextCmdNum, 1);439440ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbOpt_NoIniMethods);441ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbOpt_NoRegionSupport);442ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbOutputToFile);443ACPI_GLOBAL (char *, AcpiGbl_DbBuffer);444ACPI_GLOBAL (char *, AcpiGbl_DbFilename);445ACPI_GLOBAL (UINT32, AcpiGbl_DbDebugLevel);446ACPI_GLOBAL (UINT32, AcpiGbl_DbConsoleDebugLevel);447ACPI_GLOBAL (ACPI_NAMESPACE_NODE *, AcpiGbl_DbScopeNode);448ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbTerminateLoop);449ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbThreadsTerminated);450ACPI_GLOBAL (char *, AcpiGbl_DbArgs[ACPI_DEBUGGER_MAX_ARGS]);451ACPI_GLOBAL (ACPI_OBJECT_TYPE, AcpiGbl_DbArgTypes[ACPI_DEBUGGER_MAX_ARGS]);452453/* These buffers should all be the same size */454455ACPI_GLOBAL (char, AcpiGbl_DbParsedBuf[ACPI_DB_LINE_BUFFER_SIZE]);456ACPI_GLOBAL (char, AcpiGbl_DbScopeBuf[ACPI_DB_LINE_BUFFER_SIZE]);457ACPI_GLOBAL (char, AcpiGbl_DbDebugFilename[ACPI_DB_LINE_BUFFER_SIZE]);458459/* Statistics globals */460461ACPI_GLOBAL (UINT16, AcpiGbl_ObjTypeCount[ACPI_TOTAL_TYPES]);462ACPI_GLOBAL (UINT16, AcpiGbl_NodeTypeCount[ACPI_TOTAL_TYPES]);463ACPI_GLOBAL (UINT16, AcpiGbl_ObjTypeCountMisc);464ACPI_GLOBAL (UINT16, AcpiGbl_NodeTypeCountMisc);465ACPI_GLOBAL (UINT32, AcpiGbl_NumNodes);466ACPI_GLOBAL (UINT32, AcpiGbl_NumObjects);467#endif /* ACPI_DEBUGGER */468469#if defined (ACPI_DISASSEMBLER) || defined (ACPI_ASL_COMPILER)470ACPI_GLOBAL (const char, *AcpiGbl_PldPanelList[]);471ACPI_GLOBAL (const char, *AcpiGbl_PldVerticalPositionList[]);472ACPI_GLOBAL (const char, *AcpiGbl_PldHorizontalPositionList[]);473ACPI_GLOBAL (const char, *AcpiGbl_PldShapeList[]);474ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DisasmFlag, FALSE);475#endif476477478/*****************************************************************************479*480* ACPICA application-specific globals481*482****************************************************************************/483484/* ASL-to-ASL+ conversion utility (implemented within the iASL compiler) */485486#ifdef ACPI_ASL_COMPILER487ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentInlineComment, NULL);488ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentEndNodeComment, NULL);489ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentOpenBraceComment, NULL);490ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentCloseBraceComment, NULL);491492ACPI_INIT_GLOBAL (char *, AcpiGbl_RootFilename, NULL);493ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentFilename, NULL);494ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentParentFilename, NULL);495ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentIncludeFilename, NULL);496497ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_DefBlkCommentListHead, NULL);498ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_DefBlkCommentListTail, NULL);499ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_RegCommentListHead, NULL);500ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_RegCommentListTail, NULL);501ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_IncCommentListHead, NULL);502ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_IncCommentListTail, NULL);503ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_EndBlkCommentListHead, NULL);504ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_EndBlkCommentListTail, NULL);505506ACPI_INIT_GLOBAL (ACPI_COMMENT_ADDR_NODE, *AcpiGbl_CommentAddrListHead, NULL);507ACPI_INIT_GLOBAL (ACPI_FILE_NODE, *AcpiGbl_FileTreeRoot, NULL);508509ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_RegCommentCache);510ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_CommentAddrCache);511ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_FileCache);512513ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DebugAslConversion, FALSE);514ACPI_INIT_GLOBAL (ACPI_FILE, AcpiGbl_ConvDebugFile, NULL);515ACPI_GLOBAL (char, AcpiGbl_TableSig[4]);516#endif517518#ifdef ACPI_APPLICATION519ACPI_INIT_GLOBAL (ACPI_FILE, AcpiGbl_DebugFile, NULL);520ACPI_INIT_GLOBAL (ACPI_FILE, AcpiGbl_OutputFile, NULL);521ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DebugTimeout, FALSE);522523/* Print buffer */524525ACPI_GLOBAL (ACPI_SPINLOCK, AcpiGbl_PrintLock); /* For print buffer */526ACPI_GLOBAL (char, AcpiGbl_PrintBuffer[1024]);527#endif /* ACPI_APPLICATION */528529#endif /* __ACGLOBAL_H__ */530531532