acglobal.h revision 123315
167754Smsmith/****************************************************************************** 267754Smsmith * 367754Smsmith * Name: acglobal.h - Declarations for global variables 4123315Snjl * $Revision: 144 $ 567754Smsmith * 667754Smsmith *****************************************************************************/ 767754Smsmith 867754Smsmith/****************************************************************************** 967754Smsmith * 1067754Smsmith * 1. Copyright Notice 1167754Smsmith * 12114237Snjl * Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp. 1370243Smsmith * All rights reserved. 1467754Smsmith * 1567754Smsmith * 2. License 1667754Smsmith * 1767754Smsmith * 2.1. This is your license from Intel Corp. under its intellectual property 1867754Smsmith * rights. You may have additional license terms from the party that provided 1967754Smsmith * you this software, covering your right to use that party's intellectual 2067754Smsmith * property rights. 2167754Smsmith * 2267754Smsmith * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 2367754Smsmith * copy of the source code appearing in this file ("Covered Code") an 2467754Smsmith * irrevocable, perpetual, worldwide license under Intel's copyrights in the 2567754Smsmith * base code distributed originally by Intel ("Original Intel Code") to copy, 2667754Smsmith * make derivatives, distribute, use and display any portion of the Covered 2767754Smsmith * Code in any form, with the right to sublicense such rights; and 2867754Smsmith * 2967754Smsmith * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 3067754Smsmith * license (with the right to sublicense), under only those claims of Intel 3167754Smsmith * patents that are infringed by the Original Intel Code, to make, use, sell, 3267754Smsmith * offer to sell, and import the Covered Code and derivative works thereof 3367754Smsmith * solely to the minimum extent necessary to exercise the above copyright 3467754Smsmith * license, and in no event shall the patent license extend to any additions 3567754Smsmith * to or modifications of the Original Intel Code. No other license or right 3667754Smsmith * is granted directly or by implication, estoppel or otherwise; 3767754Smsmith * 3867754Smsmith * The above copyright and patent license is granted only if the following 3967754Smsmith * conditions are met: 4067754Smsmith * 4167754Smsmith * 3. Conditions 4267754Smsmith * 4367754Smsmith * 3.1. Redistribution of Source with Rights to Further Distribute Source. 4467754Smsmith * Redistribution of source code of any substantial portion of the Covered 4567754Smsmith * Code or modification with rights to further distribute source must include 4667754Smsmith * the above Copyright Notice, the above License, this list of Conditions, 4767754Smsmith * and the following Disclaimer and Export Compliance provision. In addition, 4867754Smsmith * Licensee must cause all Covered Code to which Licensee contributes to 4967754Smsmith * contain a file documenting the changes Licensee made to create that Covered 5067754Smsmith * Code and the date of any change. Licensee must include in that file the 5167754Smsmith * documentation of any changes made by any predecessor Licensee. Licensee 5267754Smsmith * must include a prominent statement that the modification is derived, 5367754Smsmith * directly or indirectly, from Original Intel Code. 5467754Smsmith * 5567754Smsmith * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 5667754Smsmith * Redistribution of source code of any substantial portion of the Covered 5767754Smsmith * Code or modification without rights to further distribute source must 5867754Smsmith * include the following Disclaimer and Export Compliance provision in the 5967754Smsmith * documentation and/or other materials provided with distribution. In 6067754Smsmith * addition, Licensee may not authorize further sublicense of source of any 6167754Smsmith * portion of the Covered Code, and must include terms to the effect that the 6267754Smsmith * license from Licensee to its licensee is limited to the intellectual 6367754Smsmith * property embodied in the software Licensee provides to its licensee, and 6467754Smsmith * not to intellectual property embodied in modifications its licensee may 6567754Smsmith * make. 6667754Smsmith * 6767754Smsmith * 3.3. Redistribution of Executable. Redistribution in executable form of any 6867754Smsmith * substantial portion of the Covered Code or modification must reproduce the 6967754Smsmith * above Copyright Notice, and the following Disclaimer and Export Compliance 7067754Smsmith * provision in the documentation and/or other materials provided with the 7167754Smsmith * distribution. 7267754Smsmith * 7367754Smsmith * 3.4. Intel retains all right, title, and interest in and to the Original 7467754Smsmith * Intel Code. 7567754Smsmith * 7667754Smsmith * 3.5. Neither the name Intel nor any other trademark owned or controlled by 7767754Smsmith * Intel shall be used in advertising or otherwise to promote the sale, use or 7867754Smsmith * other dealings in products derived from or relating to the Covered Code 7967754Smsmith * without prior written authorization from Intel. 8067754Smsmith * 8167754Smsmith * 4. Disclaimer and Export Compliance 8267754Smsmith * 8367754Smsmith * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 8467754Smsmith * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 8567754Smsmith * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 8667754Smsmith * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 8767754Smsmith * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 8867754Smsmith * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 8967754Smsmith * PARTICULAR PURPOSE. 9067754Smsmith * 9167754Smsmith * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 9267754Smsmith * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 9367754Smsmith * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 9467754Smsmith * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 9567754Smsmith * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 9667754Smsmith * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 9767754Smsmith * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 9867754Smsmith * LIMITED REMEDY. 9967754Smsmith * 10067754Smsmith * 4.3. Licensee shall not export, either directly or indirectly, any of this 10167754Smsmith * software or system incorporating such software without first obtaining any 10267754Smsmith * required license or other approval from the U. S. Department of Commerce or 10367754Smsmith * any other agency or department of the United States Government. In the 10467754Smsmith * event Licensee exports any such software from the United States or 10567754Smsmith * re-exports any such software from a foreign destination, Licensee shall 10667754Smsmith * ensure that the distribution and export/re-export of the software is in 10767754Smsmith * compliance with all laws, regulations, orders, or other restrictions of the 10867754Smsmith * U.S. Export Administration Regulations. Licensee agrees that neither it nor 10967754Smsmith * any of its subsidiaries will export/re-export any technical data, process, 11067754Smsmith * software, or service, directly or indirectly, to any country for which the 11167754Smsmith * United States government or any agency thereof requires an export license, 11267754Smsmith * other governmental approval, or letter of assurance, without first obtaining 11367754Smsmith * such license, approval or letter. 11467754Smsmith * 11567754Smsmith *****************************************************************************/ 11667754Smsmith 11767754Smsmith#ifndef __ACGLOBAL_H__ 11867754Smsmith#define __ACGLOBAL_H__ 11967754Smsmith 12067754Smsmith 12167754Smsmith/* 12267754Smsmith * Ensure that the globals are actually defined only once. 12367754Smsmith * 12467754Smsmith * The use of these defines allows a single list of globals (here) in order 12567754Smsmith * to simplify maintenance of the code. 12667754Smsmith */ 12767754Smsmith#ifdef DEFINE_ACPI_GLOBALS 12867754Smsmith#define ACPI_EXTERN 12967754Smsmith#else 13067754Smsmith#define ACPI_EXTERN extern 13167754Smsmith#endif 13267754Smsmith 13367754Smsmith 13467754Smsmith/***************************************************************************** 13567754Smsmith * 13667754Smsmith * Debug support 13767754Smsmith * 13867754Smsmith ****************************************************************************/ 13967754Smsmith 14067754Smsmith/* Runtime configuration of debug print levels */ 14167754Smsmith 14267754Smsmithextern UINT32 AcpiDbgLevel; 14367754Smsmithextern UINT32 AcpiDbgLayer; 14467754Smsmith 14567754Smsmith/* Procedure nesting level for debug output */ 14667754Smsmith 14767754Smsmithextern UINT32 AcpiGbl_NestingLevel; 14867754Smsmith 14967754Smsmith 15067754Smsmith/***************************************************************************** 15167754Smsmith * 15267754Smsmith * ACPI Table globals 15367754Smsmith * 15467754Smsmith ****************************************************************************/ 15567754Smsmith 15667754Smsmith/* 15767754Smsmith * Table pointers. 15867754Smsmith * Although these pointers are somewhat redundant with the global AcpiTable, 15967754Smsmith * they are convenient because they are typed pointers. 16067754Smsmith * 16167754Smsmith * These tables are single-table only; meaning that there can be at most one 16267754Smsmith * of each in the system. Each global points to the actual table. 16367754Smsmith * 16467754Smsmith */ 16599146SiwasakiACPI_EXTERN UINT32 AcpiGbl_TableFlags; 166100966SiwasakiACPI_EXTERN UINT32 AcpiGbl_RsdtTableCount; 16791116SmsmithACPI_EXTERN RSDP_DESCRIPTOR *AcpiGbl_RSDP; 16891116SmsmithACPI_EXTERN XSDT_DESCRIPTOR *AcpiGbl_XSDT; 16991116SmsmithACPI_EXTERN FADT_DESCRIPTOR *AcpiGbl_FADT; 17091116SmsmithACPI_EXTERN ACPI_TABLE_HEADER *AcpiGbl_DSDT; 17191116SmsmithACPI_EXTERN FACS_DESCRIPTOR *AcpiGbl_FACS; 17291116SmsmithACPI_EXTERN ACPI_COMMON_FACS AcpiGbl_CommonFACS; 17369450Smsmith 17467754Smsmith/* 17599679Siwasaki * Handle both ACPI 1.0 and ACPI 2.0 Integer widths 17699679Siwasaki * If we are running a method that exists in a 32-bit ACPI table. 17799679Siwasaki * Use only 32 bits of the Integer for conversion. 17899679Siwasaki */ 17999679SiwasakiACPI_EXTERN UINT8 AcpiGbl_IntegerBitWidth; 18099679SiwasakiACPI_EXTERN UINT8 AcpiGbl_IntegerByteWidth; 181117521SnjlACPI_EXTERN UINT8 AcpiGbl_IntegerNybbleWidth; 182123315Snjl 183123315Snjl/* Keep local copies of these FADT-based registers */ 184123315Snjl 185117521SnjlACPI_EXTERN ACPI_GENERIC_ADDRESS AcpiGbl_XPm1aEnable; 186117521SnjlACPI_EXTERN ACPI_GENERIC_ADDRESS AcpiGbl_XPm1bEnable; 18799679Siwasaki 18899679Siwasaki/* 18967754Smsmith * Since there may be multiple SSDTs and PSDTS, a single pointer is not 19067754Smsmith * sufficient; Therefore, there isn't one! 19167754Smsmith */ 19267754Smsmith 19367754Smsmith 19467754Smsmith/* 19567754Smsmith * ACPI Table info arrays 19667754Smsmith */ 197117521Snjlextern ACPI_TABLE_LIST AcpiGbl_TableLists[NUM_ACPI_TABLE_TYPES]; 198117521Snjlextern ACPI_TABLE_SUPPORT AcpiGbl_TableData[NUM_ACPI_TABLE_TYPES]; 19967754Smsmith 20067754Smsmith/* 20167754Smsmith * Predefined mutex objects. This array contains the 20267754Smsmith * actual OS mutex handles, indexed by the local ACPI_MUTEX_HANDLEs. 20367754Smsmith * (The table maps local handles to the real OS handles) 20467754Smsmith */ 205117521SnjlACPI_EXTERN ACPI_MUTEX_INFO AcpiGbl_MutexInfo[NUM_MUTEX]; 20667754Smsmith 20767754Smsmith 20867754Smsmith/***************************************************************************** 20967754Smsmith * 21067754Smsmith * Miscellaneous globals 21167754Smsmith * 21267754Smsmith ****************************************************************************/ 21367754Smsmith 21467754Smsmith 21582367SmsmithACPI_EXTERN ACPI_MEMORY_LIST AcpiGbl_MemoryLists[ACPI_NUM_MEM_LISTS]; 216117521SnjlACPI_EXTERN ACPI_OBJECT_NOTIFY_HANDLER AcpiGbl_DeviceNotify; 217117521SnjlACPI_EXTERN ACPI_OBJECT_NOTIFY_HANDLER AcpiGbl_SystemNotify; 21899679SiwasakiACPI_EXTERN ACPI_INIT_HANDLER AcpiGbl_InitHandler; 21967754SmsmithACPI_EXTERN ACPI_WALK_STATE *AcpiGbl_BreakpointWalk; 22067754SmsmithACPI_EXTERN ACPI_HANDLE AcpiGbl_GlobalLockSemaphore; 22167754Smsmith 22267754SmsmithACPI_EXTERN UINT32 AcpiGbl_GlobalLockThreadCount; 22367754SmsmithACPI_EXTERN UINT32 AcpiGbl_OriginalMode; 22467754SmsmithACPI_EXTERN UINT32 AcpiGbl_RsdpOriginalLocation; 22567754SmsmithACPI_EXTERN UINT32 AcpiGbl_NsLookupCount; 22667754SmsmithACPI_EXTERN UINT32 AcpiGbl_PsFindCount; 22767754SmsmithACPI_EXTERN UINT16 AcpiGbl_Pm1EnableRegisterSave; 22867754SmsmithACPI_EXTERN UINT16 AcpiGbl_NextTableOwnerId; 22967754SmsmithACPI_EXTERN UINT16 AcpiGbl_NextMethodOwnerId; 23091116SmsmithACPI_EXTERN UINT16 AcpiGbl_GlobalLockHandle; 23167754SmsmithACPI_EXTERN UINT8 AcpiGbl_DebuggerConfiguration; 23267754SmsmithACPI_EXTERN BOOLEAN AcpiGbl_GlobalLockAcquired; 23367754SmsmithACPI_EXTERN BOOLEAN AcpiGbl_StepToNextCall; 23467754SmsmithACPI_EXTERN BOOLEAN AcpiGbl_AcpiHardwarePresent; 23577424SmsmithACPI_EXTERN BOOLEAN AcpiGbl_GlobalLockPresent; 236104470SiwasakiACPI_EXTERN BOOLEAN AcpiGbl_EventsInitialized; 23767754Smsmith 23877424Smsmithextern BOOLEAN AcpiGbl_Shutdown; 23977424Smsmithextern UINT32 AcpiGbl_StartupFlags; 24083174Smsmithextern const UINT8 AcpiGbl_DecodeTo8bit[8]; 241114237Snjlextern const char *AcpiGbl_DbSleepStates[ACPI_S_STATE_COUNT]; 24299679Siwasakiextern const ACPI_OPCODE_INFO AcpiGbl_AmlOpInfo[AML_NUM_OPCODES]; 243114237Snjlextern const char *AcpiGbl_RegionTypes[ACPI_NUM_PREDEFINED_REGIONS]; 24467754Smsmith 24567754Smsmith 24667754Smsmith/***************************************************************************** 24767754Smsmith * 24867754Smsmith * Namespace globals 24967754Smsmith * 25067754Smsmith ****************************************************************************/ 25167754Smsmith 252107325Siwasaki#define NUM_NS_TYPES ACPI_TYPE_INVALID+1 253102550Siwasaki 254102550Siwasaki#if defined (ACPI_NO_METHOD_EXECUTION) || defined (ACPI_CONSTANT_EVAL_ONLY) 255102550Siwasaki#define NUM_PREDEFINED_NAMES 10 256102550Siwasaki#else 25767754Smsmith#define NUM_PREDEFINED_NAMES 9 258102550Siwasaki#endif 25967754Smsmith 26067754SmsmithACPI_EXTERN ACPI_NAMESPACE_NODE AcpiGbl_RootNodeStruct; 26167754SmsmithACPI_EXTERN ACPI_NAMESPACE_NODE *AcpiGbl_RootNode; 26267754Smsmith 26383174Smsmithextern const UINT8 AcpiGbl_NsProperties[NUM_NS_TYPES]; 26491116Smsmithextern const ACPI_PREDEFINED_NAMES AcpiGbl_PreDefinedNames [NUM_PREDEFINED_NAMES]; 26567754Smsmith 266102550Siwasaki#ifdef ACPI_DEBUG_OUTPUT 26782367SmsmithACPI_EXTERN UINT32 AcpiGbl_CurrentNodeCount; 26882367SmsmithACPI_EXTERN UINT32 AcpiGbl_CurrentNodeSize; 26982367SmsmithACPI_EXTERN UINT32 AcpiGbl_MaxConcurrentNodeCount; 27091116SmsmithACPI_EXTERN ACPI_SIZE AcpiGbl_EntryStackPointer; 27191116SmsmithACPI_EXTERN ACPI_SIZE AcpiGbl_LowestStackPointer; 27283174SmsmithACPI_EXTERN UINT32 AcpiGbl_DeepestNesting; 27367754Smsmith#endif 27467754Smsmith 27567754Smsmith/***************************************************************************** 27667754Smsmith * 27767754Smsmith * Interpreter globals 27867754Smsmith * 27967754Smsmith ****************************************************************************/ 28067754Smsmith 28167754Smsmith 282117521SnjlACPI_EXTERN ACPI_THREAD_STATE *AcpiGbl_CurrentWalkList; 28367754Smsmith 28467754Smsmith/* Control method single step flag */ 28567754Smsmith 28667754SmsmithACPI_EXTERN UINT8 AcpiGbl_CmSingleStep; 28767754Smsmith 28867754Smsmith 28967754Smsmith/***************************************************************************** 29067754Smsmith * 29167754Smsmith * Parser globals 29267754Smsmith * 29367754Smsmith ****************************************************************************/ 29467754Smsmith 295117521SnjlACPI_EXTERN ACPI_PARSE_OBJECT *AcpiGbl_ParsedNamespaceRoot; 29667754Smsmith 29791116Smsmith/***************************************************************************** 29891116Smsmith * 29991116Smsmith * Hardware globals 30091116Smsmith * 30191116Smsmith ****************************************************************************/ 30267754Smsmith 30399679Siwasakiextern ACPI_BIT_REGISTER_INFO AcpiGbl_BitRegisterInfo[ACPI_NUM_BITREG]; 30491116SmsmithACPI_EXTERN UINT8 AcpiGbl_SleepTypeA; 30591116SmsmithACPI_EXTERN UINT8 AcpiGbl_SleepTypeB; 30691116Smsmith 30791116Smsmith 30867754Smsmith/***************************************************************************** 30967754Smsmith * 31091116Smsmith * Event and GPE globals 31167754Smsmith * 31267754Smsmith ****************************************************************************/ 31367754Smsmith 31491116Smsmithextern ACPI_FIXED_EVENT_INFO AcpiGbl_FixedEventInfo[ACPI_NUM_FIXED_EVENTS]; 31591116SmsmithACPI_EXTERN ACPI_FIXED_EVENT_HANDLER AcpiGbl_FixedEventHandlers[ACPI_NUM_FIXED_EVENTS]; 316117521SnjlACPI_EXTERN ACPI_GPE_XRUPT_INFO *AcpiGbl_GpeXruptListHead; 317117521SnjlACPI_EXTERN ACPI_GPE_BLOCK_INFO *AcpiGbl_GpeFadtBlocks[ACPI_MAX_GPE_BLOCKS]; 318117521SnjlACPI_EXTERN ACPI_HANDLE AcpiGbl_GpeLock; 31991116Smsmith 32067754Smsmith 32167754Smsmith/***************************************************************************** 32267754Smsmith * 32367754Smsmith * Debugger globals 32467754Smsmith * 32567754Smsmith ****************************************************************************/ 32667754Smsmith 32791116Smsmith 32891116SmsmithACPI_EXTERN UINT8 AcpiGbl_DbOutputFlags; 32991116Smsmith 330100966Siwasaki#ifdef ACPI_DISASSEMBLER 33191116Smsmith 332100966SiwasakiACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_disasm; 333100966SiwasakiACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_verbose; 334100966Siwasaki#endif 335100966Siwasaki 336100966Siwasaki 337102550Siwasaki#ifdef ACPI_DEBUGGER 33891116Smsmith 33999679Siwasakiextern BOOLEAN AcpiGbl_MethodExecuting; 340114237Snjlextern BOOLEAN AcpiGbl_AbortMethod; 34199679Siwasakiextern BOOLEAN AcpiGbl_DbTerminateThreads; 34267754Smsmith 34391116SmsmithACPI_EXTERN int optind; 344114237SnjlACPI_EXTERN char *optarg; 34567754Smsmith 34691116SmsmithACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_tables; 34791116SmsmithACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_stats; 34891116SmsmithACPI_EXTERN BOOLEAN AcpiGbl_DbOpt_ini_methods; 34991116Smsmith 35091116Smsmith 351114237SnjlACPI_EXTERN char *AcpiGbl_DbArgs[ACPI_DEBUGGER_MAX_ARGS]; 352114237SnjlACPI_EXTERN char AcpiGbl_DbLineBuf[80]; 353114237SnjlACPI_EXTERN char AcpiGbl_DbParsedBuf[80]; 354114237SnjlACPI_EXTERN char AcpiGbl_DbScopeBuf[40]; 355114237SnjlACPI_EXTERN char AcpiGbl_DbDebugFilename[40]; 35691116SmsmithACPI_EXTERN BOOLEAN AcpiGbl_DbOutputToFile; 357114237SnjlACPI_EXTERN char *AcpiGbl_DbBuffer; 358114237SnjlACPI_EXTERN char *AcpiGbl_DbFilename; 35991116SmsmithACPI_EXTERN UINT32 AcpiGbl_DbDebugLevel; 36091116SmsmithACPI_EXTERN UINT32 AcpiGbl_DbConsoleDebugLevel; 36191116SmsmithACPI_EXTERN ACPI_TABLE_HEADER *AcpiGbl_DbTablePtr; 36291116SmsmithACPI_EXTERN ACPI_NAMESPACE_NODE *AcpiGbl_DbScopeNode; 36391116Smsmith 36491116Smsmith/* 36591116Smsmith * Statistic globals 36691116Smsmith */ 367107325SiwasakiACPI_EXTERN UINT16 AcpiGbl_ObjTypeCount[ACPI_TYPE_NS_NODE_MAX+1]; 368107325SiwasakiACPI_EXTERN UINT16 AcpiGbl_NodeTypeCount[ACPI_TYPE_NS_NODE_MAX+1]; 36991116SmsmithACPI_EXTERN UINT16 AcpiGbl_ObjTypeCountMisc; 37091116SmsmithACPI_EXTERN UINT16 AcpiGbl_NodeTypeCountMisc; 37191116SmsmithACPI_EXTERN UINT32 AcpiGbl_NumNodes; 37291116SmsmithACPI_EXTERN UINT32 AcpiGbl_NumObjects; 37391116Smsmith 37491116Smsmith 37591116SmsmithACPI_EXTERN UINT32 AcpiGbl_SizeOfParseTree; 37691116SmsmithACPI_EXTERN UINT32 AcpiGbl_SizeOfMethodTrees; 37791116SmsmithACPI_EXTERN UINT32 AcpiGbl_SizeOfNodeEntries; 37891116SmsmithACPI_EXTERN UINT32 AcpiGbl_SizeOfAcpiObjects; 37991116Smsmith 380102550Siwasaki#endif /* ACPI_DEBUGGER */ 38191116Smsmith 38291116Smsmith 38367754Smsmith#endif /* __ACGLOBAL_H__ */ 384