XenevaOS
Loading...
Searching...
No Matches
acglobal.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Name: acglobal.h - Declarations for global variables
4 *
5 *****************************************************************************/
6
7/******************************************************************************
8 *
9 * 1. Copyright Notice
10 *
11 * Some or all of this work - Copyright (c) 1999 - 2019, Intel Corp.
12 * All rights reserved.
13 *
14 * 2. License
15 *
16 * 2.1. This is your license from Intel Corp. under its intellectual property
17 * rights. You may have additional license terms from the party that provided
18 * you this software, covering your right to use that party's intellectual
19 * property rights.
20 *
21 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22 * copy of the source code appearing in this file ("Covered Code") an
23 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24 * base code distributed originally by Intel ("Original Intel Code") to copy,
25 * make derivatives, distribute, use and display any portion of the Covered
26 * Code in any form, with the right to sublicense such rights; and
27 *
28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29 * license (with the right to sublicense), under only those claims of Intel
30 * patents that are infringed by the Original Intel Code, to make, use, sell,
31 * offer to sell, and import the Covered Code and derivative works thereof
32 * solely to the minimum extent necessary to exercise the above copyright
33 * license, and in no event shall the patent license extend to any additions
34 * to or modifications of the Original Intel Code. No other license or right
35 * is granted directly or by implication, estoppel or otherwise;
36 *
37 * The above copyright and patent license is granted only if the following
38 * conditions are met:
39 *
40 * 3. Conditions
41 *
42 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43 * Redistribution of source code of any substantial portion of the Covered
44 * Code or modification with rights to further distribute source must include
45 * the above Copyright Notice, the above License, this list of Conditions,
46 * and the following Disclaimer and Export Compliance provision. In addition,
47 * Licensee must cause all Covered Code to which Licensee contributes to
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
50 * documentation of any changes made by any predecessor Licensee. Licensee
51 * must include a prominent statement that the modification is derived,
52 * directly or indirectly, from Original Intel Code.
53 *
54 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55 * Redistribution of source code of any substantial portion of the Covered
56 * Code or modification without rights to further distribute source must
57 * include the following Disclaimer and Export Compliance provision in the
58 * documentation and/or other materials provided with distribution. In
59 * addition, Licensee may not authorize further sublicense of source of any
60 * portion of the Covered Code, and must include terms to the effect that the
61 * license from Licensee to its licensee is limited to the intellectual
62 * property embodied in the software Licensee provides to its licensee, and
63 * not to intellectual property embodied in modifications its licensee may
64 * make.
65 *
66 * 3.3. Redistribution of Executable. Redistribution in executable form of any
67 * substantial portion of the Covered Code or modification must reproduce the
68 * above Copyright Notice, and the following Disclaimer and Export Compliance
69 * provision in the documentation and/or other materials provided with the
70 * distribution.
71 *
72 * 3.4. Intel retains all right, title, and interest in and to the Original
73 * Intel Code.
74 *
75 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76 * Intel shall be used in advertising or otherwise to promote the sale, use or
77 * other dealings in products derived from or relating to the Covered Code
78 * without prior written authorization from Intel.
79 *
80 * 4. Disclaimer and Export Compliance
81 *
82 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83 * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85 * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86 * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
88 * PARTICULAR PURPOSE.
89 *
90 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
97 * LIMITED REMEDY.
98 *
99 * 4.3. Licensee shall not export, either directly or indirectly, any of this
100 * software or system incorporating such software without first obtaining any
101 * required license or other approval from the U. S. Department of Commerce or
102 * any other agency or department of the United States Government. In the
103 * event Licensee exports any such software from the United States or
104 * re-exports any such software from a foreign destination, Licensee shall
105 * ensure that the distribution and export/re-export of the software is in
106 * compliance with all laws, regulations, orders, or other restrictions of the
107 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108 * any of its subsidiaries will export/re-export any technical data, process,
109 * software, or service, directly or indirectly, to any country for which the
110 * United States government or any agency thereof requires an export license,
111 * other governmental approval, or letter of assurance, without first obtaining
112 * such license, approval or letter.
113 *
114 *****************************************************************************
115 *
116 * Alternatively, you may choose to be licensed under the terms of the
117 * following license:
118 *
119 * Redistribution and use in source and binary forms, with or without
120 * modification, are permitted provided that the following conditions
121 * are met:
122 * 1. Redistributions of source code must retain the above copyright
123 * notice, this list of conditions, and the following disclaimer,
124 * without modification.
125 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126 * substantially similar to the "NO WARRANTY" disclaimer below
127 * ("Disclaimer") and any redistribution must be conditioned upon
128 * including a substantially similar Disclaimer requirement for further
129 * binary redistribution.
130 * 3. Neither the names of the above-listed copyright holders nor the names
131 * of any contributors may be used to endorse or promote products derived
132 * from this software without specific prior written permission.
133 *
134 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
145 *
146 * Alternatively, you may choose to be licensed under the terms of the
147 * GNU General Public License ("GPL") version 2 as published by the Free
148 * Software Foundation.
149 *
150 *****************************************************************************/
151
152#ifndef __ACGLOBAL_H__
153#define __ACGLOBAL_H__
154
155
156/*****************************************************************************
157 *
158 * Globals related to the incoming ACPI tables
159 *
160 ****************************************************************************/
161
162/* Master list of all ACPI tables that were found in the RSDT/XSDT */
163
164ACPI_GLOBAL (ACPI_TABLE_LIST, AcpiGbl_RootTableList);
165
166/* DSDT information. Used to check for DSDT corruption */
167
169ACPI_GLOBAL (ACPI_TABLE_HEADER, AcpiGbl_OriginalDsdtHeader);
174
175#if (!ACPI_REDUCED_HARDWARE)
176ACPI_GLOBAL (ACPI_TABLE_FACS *, AcpiGbl_FACS);
177
178#endif /* !ACPI_REDUCED_HARDWARE */
179
180/* These addresses are calculated from the FADT Event Block addresses */
181
182ACPI_GLOBAL (ACPI_GENERIC_ADDRESS, AcpiGbl_XPm1aStatus);
183ACPI_GLOBAL (ACPI_GENERIC_ADDRESS, AcpiGbl_XPm1aEnable);
184
185ACPI_GLOBAL (ACPI_GENERIC_ADDRESS, AcpiGbl_XPm1bStatus);
186ACPI_GLOBAL (ACPI_GENERIC_ADDRESS, AcpiGbl_XPm1bEnable);
187
188/*
189 * Handle both ACPI 1.0 and ACPI 2.0+ Integer widths. The integer width is
190 * determined by the revision of the DSDT: If the DSDT revision is less than
191 * 2, use only the lower 32 bits of the internal 64-bit Integer.
192 */
193ACPI_GLOBAL (UINT8, AcpiGbl_IntegerBitWidth);
194ACPI_GLOBAL (UINT8, AcpiGbl_IntegerByteWidth);
195ACPI_GLOBAL (UINT8, AcpiGbl_IntegerNybbleWidth);
196
197
198/*****************************************************************************
199 *
200 * Mutual exclusion within the ACPICA subsystem
201 *
202 ****************************************************************************/
203
204/*
205 * Predefined mutex objects. This array contains the
206 * actual OS mutex handles, indexed by the local ACPI_MUTEX_HANDLEs.
207 * (The table maps local handles to the real OS handles)
208 */
210
211/*
212 * Global lock mutex is an actual AML mutex object
213 * Global lock semaphore works in conjunction with the actual global lock
214 * Global lock spinlock is used for "pending" handshake
215 */
216ACPI_GLOBAL (ACPI_OPERAND_OBJECT *, AcpiGbl_GlobalLockMutex);
217ACPI_GLOBAL (ACPI_SEMAPHORE, AcpiGbl_GlobalLockSemaphore);
218ACPI_GLOBAL (ACPI_SPINLOCK, AcpiGbl_GlobalLockPendingLock);
219ACPI_GLOBAL (UINT16, AcpiGbl_GlobalLockHandle);
220ACPI_GLOBAL (BOOLEAN, AcpiGbl_GlobalLockAcquired);
221ACPI_GLOBAL (BOOLEAN, AcpiGbl_GlobalLockPresent);
222ACPI_GLOBAL (BOOLEAN, AcpiGbl_GlobalLockPending);
223
224/*
225 * Spinlocks are used for interfaces that can be possibly called at
226 * interrupt level
227 */
228ACPI_GLOBAL (ACPI_SPINLOCK, AcpiGbl_GpeLock); /* For GPE data structs and registers */
229ACPI_GLOBAL (ACPI_SPINLOCK, AcpiGbl_HardwareLock); /* For ACPI H/W except GPE registers */
230ACPI_GLOBAL (ACPI_SPINLOCK, AcpiGbl_ReferenceCountLock);
231
232/* Mutex for _OSI support */
233
234ACPI_GLOBAL (ACPI_MUTEX, AcpiGbl_OsiMutex);
235
236/* Reader/Writer lock is used for namespace walk and dynamic table unload */
237
238ACPI_GLOBAL (ACPI_RW_LOCK, AcpiGbl_NamespaceRwLock);
239
240
241/*****************************************************************************
242 *
243 * Miscellaneous globals
244 *
245 ****************************************************************************/
246
247/* Object caches */
248
249ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_NamespaceCache);
250ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_StateCache);
251ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_PsNodeCache);
252ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_PsNodeExtCache);
253ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_OperandCache);
254
255/* System */
256
257ACPI_INIT_GLOBAL (UINT32, AcpiGbl_StartupFlags, 0);
258ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_Shutdown, TRUE);
259ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_EarlyInitialization, TRUE);
260
261/* Global handlers */
262
263ACPI_GLOBAL (ACPI_GLOBAL_NOTIFY_HANDLER,AcpiGbl_GlobalNotify[2]);
264ACPI_GLOBAL (ACPI_EXCEPTION_HANDLER, AcpiGbl_ExceptionHandler);
265ACPI_GLOBAL (ACPI_INIT_HANDLER, AcpiGbl_InitHandler);
266ACPI_GLOBAL (ACPI_TABLE_HANDLER, AcpiGbl_TableHandler);
267ACPI_GLOBAL (void *, AcpiGbl_TableHandlerContext);
268ACPI_GLOBAL (ACPI_INTERFACE_HANDLER, AcpiGbl_InterfaceHandler);
269ACPI_GLOBAL (ACPI_SCI_HANDLER_INFO *, AcpiGbl_SciHandlerList);
270
271/* Owner ID support */
272
274ACPI_GLOBAL (UINT8, AcpiGbl_LastOwnerIdIndex);
275ACPI_GLOBAL (UINT8, AcpiGbl_NextOwnerIdOffset);
276
277/* Initialization sequencing */
278
279ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_NamespaceInitialized, FALSE);
280
281/* Miscellaneous */
282
283ACPI_GLOBAL (UINT32, AcpiGbl_OriginalMode);
284ACPI_GLOBAL (UINT32, AcpiGbl_NsLookupCount);
285ACPI_GLOBAL (UINT32, AcpiGbl_PsFindCount);
286ACPI_GLOBAL (UINT16, AcpiGbl_Pm1EnableRegisterSave);
287ACPI_GLOBAL (UINT8, AcpiGbl_DebuggerConfiguration);
288ACPI_GLOBAL (BOOLEAN, AcpiGbl_StepToNextCall);
289ACPI_GLOBAL (BOOLEAN, AcpiGbl_AcpiHardwarePresent);
290ACPI_GLOBAL (BOOLEAN, AcpiGbl_EventsInitialized);
291ACPI_GLOBAL (ACPI_INTERFACE_INFO *, AcpiGbl_SupportedInterfaces);
293
294/* Other miscellaneous, declared and initialized in utglobal */
295
300extern const char AcpiGbl_LowerHexDigits[];
301extern const char AcpiGbl_UpperHexDigits[];
303
304/* Lists for tracking memory allocations (debug only) */
305
306#ifdef ACPI_DBG_TRACK_ALLOCATIONS
307ACPI_GLOBAL (ACPI_MEMORY_LIST *, AcpiGbl_GlobalList);
308ACPI_GLOBAL (ACPI_MEMORY_LIST *, AcpiGbl_NsNodeList);
309ACPI_GLOBAL (BOOLEAN, AcpiGbl_DisplayFinalMemStats);
310ACPI_GLOBAL (BOOLEAN, AcpiGbl_DisableMemTracking);
311ACPI_GLOBAL (BOOLEAN, AcpiGbl_VerboseLeakDump);
312#endif
313
314
315/*****************************************************************************
316 *
317 * ACPI Namespace
318 *
319 ****************************************************************************/
320
321#define NUM_PREDEFINED_NAMES 10
322
323ACPI_GLOBAL (ACPI_NAMESPACE_NODE, AcpiGbl_RootNodeStruct);
324ACPI_GLOBAL (ACPI_NAMESPACE_NODE *, AcpiGbl_RootNode);
325ACPI_GLOBAL (ACPI_NAMESPACE_NODE *, AcpiGbl_FadtGpeDevice);
326ACPI_GLOBAL (ACPI_OPERAND_OBJECT *, AcpiGbl_ModuleCodeList);
327
330
331#ifdef ACPI_DEBUG_OUTPUT
332ACPI_GLOBAL (UINT32, AcpiGbl_CurrentNodeCount);
333ACPI_GLOBAL (UINT32, AcpiGbl_CurrentNodeSize);
334ACPI_GLOBAL (UINT32, AcpiGbl_MaxConcurrentNodeCount);
335ACPI_GLOBAL (ACPI_SIZE *, AcpiGbl_EntryStackPointer);
336ACPI_GLOBAL (ACPI_SIZE *, AcpiGbl_LowestStackPointer);
337ACPI_GLOBAL (UINT32, AcpiGbl_DeepestNesting);
338ACPI_INIT_GLOBAL (UINT32, AcpiGbl_NestingLevel, 0);
339#endif
340
341
342/*****************************************************************************
343 *
344 * Interpreter/Parser globals
345 *
346 ****************************************************************************/
347
348/* Control method single step flag */
349
350ACPI_GLOBAL (UINT8, AcpiGbl_CmSingleStep);
351ACPI_GLOBAL (ACPI_THREAD_STATE *, AcpiGbl_CurrentWalkList);
352ACPI_INIT_GLOBAL (ACPI_PARSE_OBJECT, *AcpiGbl_CurrentScope, NULL);
353
354/* ASL/ASL+ converter */
355
356ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_CaptureComments, FALSE);
357ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_LastListHead, NULL);
358
359
360/*****************************************************************************
361 *
362 * Hardware globals
363 *
364 ****************************************************************************/
365
367ACPI_GLOBAL (UINT8, AcpiGbl_SleepTypeA);
368ACPI_GLOBAL (UINT8, AcpiGbl_SleepTypeB);
369
370
371/*****************************************************************************
372 *
373 * Event and GPE globals
374 *
375 ****************************************************************************/
376
377#if (!ACPI_REDUCED_HARDWARE)
378ACPI_GLOBAL (UINT8, AcpiGbl_AllGpesInitialized);
379ACPI_GLOBAL (ACPI_GPE_XRUPT_INFO *, AcpiGbl_GpeXruptListHead);
381ACPI_GLOBAL (ACPI_GBL_EVENT_HANDLER, AcpiGbl_GlobalEventHandler);
382ACPI_GLOBAL (void *, AcpiGbl_GlobalEventHandlerContext);
385#endif /* !ACPI_REDUCED_HARDWARE */
386
387
388/*****************************************************************************
389 *
390 * Debug support
391 *
392 ****************************************************************************/
393
394/* Event counters */
395
396ACPI_GLOBAL (UINT32, AcpiMethodCount);
397ACPI_GLOBAL (UINT32, AcpiGpeCount);
398ACPI_GLOBAL (UINT32, AcpiSciCount);
400
401/* Dynamic control method tracing mechanism */
402
403ACPI_GLOBAL (UINT32, AcpiGbl_OriginalDbgLevel);
404ACPI_GLOBAL (UINT32, AcpiGbl_OriginalDbgLayer);
405
406
407/*****************************************************************************
408 *
409 * Debugger and Disassembler
410 *
411 ****************************************************************************/
412
414
415
416#ifdef ACPI_DISASSEMBLER
417
418/* Do not disassemble buffers to resource descriptors */
419
420ACPI_INIT_GLOBAL (UINT8, AcpiGbl_NoResourceDisassembly, FALSE);
421ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_IgnoreNoopOperator, FALSE);
422ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_CstyleDisassembly, TRUE);
423ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_ForceAmlDisassembly, FALSE);
424ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DmOpt_Verbose, TRUE);
425ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DmEmitExternalOpcodes, FALSE);
426ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DoDisassemblerOptimizations, TRUE);
427ACPI_INIT_GLOBAL (ACPI_PARSE_OBJECT_LIST, *AcpiGbl_TempListHead, NULL);
428
429ACPI_GLOBAL (BOOLEAN, AcpiGbl_DmOpt_Disasm);
430ACPI_GLOBAL (BOOLEAN, AcpiGbl_DmOpt_Listing);
431ACPI_GLOBAL (BOOLEAN, AcpiGbl_NumExternalMethods);
432ACPI_GLOBAL (UINT32, AcpiGbl_ResolvedExternalMethods);
433ACPI_GLOBAL (ACPI_EXTERNAL_LIST *, AcpiGbl_ExternalList);
434ACPI_GLOBAL (ACPI_EXTERNAL_FILE *, AcpiGbl_ExternalFileList);
435#endif
436
437#ifdef ACPI_DEBUGGER
438ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_AbortMethod, FALSE);
440
441ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbOpt_NoIniMethods);
442ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbOpt_NoRegionSupport);
443ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbOutputToFile);
444ACPI_GLOBAL (char *, AcpiGbl_DbBuffer);
445ACPI_GLOBAL (char *, AcpiGbl_DbFilename);
446ACPI_GLOBAL (UINT32, AcpiGbl_DbDebugLevel);
447ACPI_GLOBAL (UINT32, AcpiGbl_DbConsoleDebugLevel);
448ACPI_GLOBAL (ACPI_NAMESPACE_NODE *, AcpiGbl_DbScopeNode);
449ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbTerminateLoop);
450ACPI_GLOBAL (BOOLEAN, AcpiGbl_DbThreadsTerminated);
451ACPI_GLOBAL (char *, AcpiGbl_DbArgs[ACPI_DEBUGGER_MAX_ARGS]);
453
454/* These buffers should all be the same size */
455
456ACPI_GLOBAL (char, AcpiGbl_DbParsedBuf[ACPI_DB_LINE_BUFFER_SIZE]);
457ACPI_GLOBAL (char, AcpiGbl_DbScopeBuf[ACPI_DB_LINE_BUFFER_SIZE]);
458ACPI_GLOBAL (char, AcpiGbl_DbDebugFilename[ACPI_DB_LINE_BUFFER_SIZE]);
459
460/* Statistics globals */
461
462ACPI_GLOBAL (UINT16, AcpiGbl_ObjTypeCount[ACPI_TOTAL_TYPES]);
463ACPI_GLOBAL (UINT16, AcpiGbl_NodeTypeCount[ACPI_TOTAL_TYPES]);
464ACPI_GLOBAL (UINT16, AcpiGbl_ObjTypeCountMisc);
465ACPI_GLOBAL (UINT16, AcpiGbl_NodeTypeCountMisc);
466ACPI_GLOBAL (UINT32, AcpiGbl_NumNodes);
467ACPI_GLOBAL (UINT32, AcpiGbl_NumObjects);
468#endif /* ACPI_DEBUGGER */
469
470#if defined (ACPI_DISASSEMBLER) || defined (ACPI_ASL_COMPILER)
471ACPI_GLOBAL (const char, *AcpiGbl_PldPanelList[]);
472ACPI_GLOBAL (const char, *AcpiGbl_PldVerticalPositionList[]);
473ACPI_GLOBAL (const char, *AcpiGbl_PldHorizontalPositionList[]);
474ACPI_GLOBAL (const char, *AcpiGbl_PldShapeList[]);
475ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DisasmFlag, FALSE);
476#endif
477
478
479/*****************************************************************************
480 *
481 * ACPICA application-specific globals
482 *
483 ****************************************************************************/
484
485/* ASL-to-ASL+ conversion utility (implemented within the iASL compiler) */
486
487#ifdef ACPI_ASL_COMPILER
488ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentInlineComment, NULL);
489ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentEndNodeComment, NULL);
490ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentOpenBraceComment, NULL);
491ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentCloseBraceComment, NULL);
492
493ACPI_INIT_GLOBAL (char *, AcpiGbl_RootFilename, NULL);
494ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentFilename, NULL);
495ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentParentFilename, NULL);
496ACPI_INIT_GLOBAL (char *, AcpiGbl_CurrentIncludeFilename, NULL);
497
498ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_DefBlkCommentListHead, NULL);
499ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_DefBlkCommentListTail, NULL);
500ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_RegCommentListHead, NULL);
501ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_RegCommentListTail, NULL);
502ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_IncCommentListHead, NULL);
503ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_IncCommentListTail, NULL);
504ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_EndBlkCommentListHead, NULL);
505ACPI_INIT_GLOBAL (ACPI_COMMENT_NODE, *AcpiGbl_EndBlkCommentListTail, NULL);
506
507ACPI_INIT_GLOBAL (ACPI_COMMENT_ADDR_NODE, *AcpiGbl_CommentAddrListHead, NULL);
508ACPI_INIT_GLOBAL (ACPI_FILE_NODE, *AcpiGbl_FileTreeRoot, NULL);
509
510ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_RegCommentCache);
511ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_CommentAddrCache);
512ACPI_GLOBAL (ACPI_CACHE_T *, AcpiGbl_FileCache);
513
514ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DebugAslConversion, FALSE);
515ACPI_INIT_GLOBAL (ACPI_FILE, AcpiGbl_ConvDebugFile, NULL);
516ACPI_GLOBAL (char, AcpiGbl_TableSig[4]);
517#endif
518
519#ifdef ACPI_APPLICATION
520ACPI_INIT_GLOBAL (ACPI_FILE, AcpiGbl_DebugFile, NULL);
521ACPI_INIT_GLOBAL (ACPI_FILE, AcpiGbl_OutputFile, NULL);
522ACPI_INIT_GLOBAL (BOOLEAN, AcpiGbl_DebugTimeout, FALSE);
523
524/* Print buffer */
525
526ACPI_GLOBAL (ACPI_SPINLOCK, AcpiGbl_PrintLock); /* For print buffer */
527ACPI_GLOBAL (char, AcpiGbl_PrintBuffer[1024]);
528#endif /* ACPI_APPLICATION */
529
530#endif /* __ACGLOBAL_H__ */
unsigned int UINT32
Definition ProcessorBind.h:102
#define ACPI_NUM_OWNERID_MASKS
Definition acconfig.h:244
#define ACPI_DB_LINE_BUFFER_SIZE
Definition acconfig.h:369
#define ACPI_ADDRESS_RANGE_MAX
Definition acconfig.h:256
#define ACPI_NUM_SxD_METHODS
Definition acconfig.h:339
#define ACPI_DEBUGGER_MAX_ARGS
Definition acconfig.h:368
#define ACPI_NUM_SxW_METHODS
Definition acconfig.h:340
#define ACPI_FILE
Definition acenv.h:496
ACPI_FIXED_EVENT_INFO AcpiGbl_FixedEventInfo[ACPI_NUM_FIXED_EVENTS]
Definition utglobal.c:283
const ACPI_PREDEFINED_NAMES AcpiGbl_PreDefinedNames[NUM_PREDEFINED_NAMES]
Definition utglobal.c:221
const char * AcpiGbl_SleepStateNames[ACPI_S_STATE_COUNT]
Definition utglobal.c:170
const char * AcpiGbl_LowestDstateNames[ACPI_NUM_SxW_METHODS]
Definition utglobal.c:180
const char AcpiGbl_LowerHexDigits[]
Definition utglobal.c:200
const UINT8 AcpiGbl_NsProperties[ACPI_NUM_NS_TYPES]
Definition utdecode.c:165
const ACPI_OPCODE_INFO AcpiGbl_AmlOpInfo[AML_NUM_OPCODES]
Definition psopcode.c:296
#define NUM_PREDEFINED_NAMES
Definition acglobal.h:321
const char * AcpiGbl_RegionTypes[ACPI_NUM_PREDEFINED_REGIONS]
Definition utdecode.c:215
const char AcpiGbl_UpperHexDigits[]
Definition utglobal.c:201
const char * AcpiGbl_HighestDstateNames[ACPI_NUM_SxD_METHODS]
Definition utglobal.c:189
ACPI_BIT_REGISTER_INFO AcpiGbl_BitRegisterInfo[ACPI_NUM_BITREG]
Definition utglobal.c:253
#define ACPI_INVALID_TABLE_INDEX
Definition aclocal.h:368
#define AML_NUM_OPCODES
Definition aclocal.h:165
#define ACPI_DB_CONSOLE_OUTPUT
Definition aclocal.h:1562
#define ACPI_NUM_MUTEX
Definition aclocal.h:200
#define ACPI_INVALID_THREAD_ID
Definition aclocal.h:234
#define ACPI_INIT_GLOBAL(type, name, value)
Definition acpixf.h:192
#define ACPI_GLOBAL(type, name)
Definition acpixf.h:187
#define ACPI_CACHE_T
Definition actypes.h:369
#define NULL
Definition actypes.h:561
unsigned short UINT16
Definition actypes.h:237
unsigned char BOOLEAN
Definition actypes.h:235
UINT32 ACPI_OBJECT_TYPE
Definition actypes.h:784
#define ACPI_NUM_NS_TYPES
Definition actypes.h:844
#define ACPI_MUTEX
Definition actypes.h:381
#define ACPI_SEMAPHORE
Definition actypes.h:395
#define ACPI_MAX_GPE_BLOCKS
Definition actypes.h:511
#define ACPI_TOTAL_TYPES
Definition actypes.h:828
ACPI_STATUS(* ACPI_EXCEPTION_HANDLER)(ACPI_STATUS AmlStatus, ACPI_NAME Name, UINT16 Opcode, UINT32 AmlOffset, void *Context)
Definition actypes.h:1272
ACPI_STATUS(* ACPI_TABLE_HANDLER)(UINT32 Event, void *Table, void *Context)
Definition actypes.h:1282
#define ACPI_NUM_PREDEFINED_REGIONS
Definition actypes.h:971
#define ACPI_NUM_FIXED_EVENTS
Definition actypes.h:868
#define ACPI_SPINLOCK
Definition actypes.h:391
#define TRUE
Definition actypes.h:558
#define ACPI_S_STATE_COUNT
Definition actypes.h:730
#define FALSE
Definition actypes.h:553
unsigned char UINT8
Definition actypes.h:236
void(* ACPI_GBL_EVENT_HANDLER)(UINT32 EventType, ACPI_HANDLE Device, UINT32 EventNumber, void *Context)
Definition actypes.h:1234
#define ACPI_THREAD_ID
Definition actypes.h:252
ACPI_STATUS(* ACPI_INIT_HANDLER)(ACPI_HANDLE Object, UINT32 Function)
Definition actypes.h:1265
#define ACPI_NUM_BITREG
Definition actypes.h:1031
UINT32(* ACPI_INTERFACE_HANDLER)(ACPI_STRING InterfaceName, UINT32 Supported)
Definition actypes.h:1339
Definition aclocal.h:956
Definition aclocal.h:1253
Definition aclocal.h:1101
Definition aclocal.h:1093
Definition aclocal.h:1496
Definition aclocal.h:1474
Definition aclocal.h:1111
Definition aclocal.h:745
Definition aclocal.h:752
Definition actbl.h:240
Definition aclocal.h:905
Definition aclocal.h:690
Definition aclocal.h:709
Definition aclocal.h:1370
Definition actypes.h:1456
Definition aclocal.h:240
Definition aclocal.h:294
Definition aclocal.h:975
Definition aclocal.h:1504
Definition actypes.h:1169
Definition aclocal.h:206
Definition aclocal.h:616
Definition actbl.h:327
Definition actbl.h:215
Definition aclocal.h:341
Definition aclocal.h:870
Definition acobject.h:623
Definition aclocal.h:1185