asltypes.h revision 199337
1
2/******************************************************************************
3 *
4 * Module Name: asltypes.h - compiler data types and struct definitions
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp.
13 * All rights reserved.
14 *
15 * 2. License
16 *
17 * 2.1. This is your license from Intel Corp. under its intellectual property
18 * rights.  You may have additional license terms from the party that provided
19 * you this software, covering your right to use that party's intellectual
20 * property rights.
21 *
22 * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
23 * copy of the source code appearing in this file ("Covered Code") an
24 * irrevocable, perpetual, worldwide license under Intel's copyrights in the
25 * base code distributed originally by Intel ("Original Intel Code") to copy,
26 * make derivatives, distribute, use and display any portion of the Covered
27 * Code in any form, with the right to sublicense such rights; and
28 *
29 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
30 * license (with the right to sublicense), under only those claims of Intel
31 * patents that are infringed by the Original Intel Code, to make, use, sell,
32 * offer to sell, and import the Covered Code and derivative works thereof
33 * solely to the minimum extent necessary to exercise the above copyright
34 * license, and in no event shall the patent license extend to any additions
35 * to or modifications of the Original Intel Code.  No other license or right
36 * is granted directly or by implication, estoppel or otherwise;
37 *
38 * The above copyright and patent license is granted only if the following
39 * conditions are met:
40 *
41 * 3. Conditions
42 *
43 * 3.1. Redistribution of Source with Rights to Further Distribute Source.
44 * Redistribution of source code of any substantial portion of the Covered
45 * Code or modification with rights to further distribute source must include
46 * the above Copyright Notice, the above License, this list of Conditions,
47 * and the following Disclaimer and Export Compliance provision.  In addition,
48 * Licensee must cause all Covered Code to which Licensee contributes to
49 * contain a file documenting the changes Licensee made to create that Covered
50 * Code and the date of any change.  Licensee must include in that file the
51 * documentation of any changes made by any predecessor Licensee.  Licensee
52 * must include a prominent statement that the modification is derived,
53 * directly or indirectly, from Original Intel Code.
54 *
55 * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
56 * Redistribution of source code of any substantial portion of the Covered
57 * Code or modification without rights to further distribute source must
58 * include the following Disclaimer and Export Compliance provision in the
59 * documentation and/or other materials provided with distribution.  In
60 * addition, Licensee may not authorize further sublicense of source of any
61 * portion of the Covered Code, and must include terms to the effect that the
62 * license from Licensee to its licensee is limited to the intellectual
63 * property embodied in the software Licensee provides to its licensee, and
64 * not to intellectual property embodied in modifications its licensee may
65 * make.
66 *
67 * 3.3. Redistribution of Executable. Redistribution in executable form of any
68 * substantial portion of the Covered Code or modification must reproduce the
69 * above Copyright Notice, and the following Disclaimer and Export Compliance
70 * provision in the documentation and/or other materials provided with the
71 * distribution.
72 *
73 * 3.4. Intel retains all right, title, and interest in and to the Original
74 * Intel Code.
75 *
76 * 3.5. Neither the name Intel nor any other trademark owned or controlled by
77 * Intel shall be used in advertising or otherwise to promote the sale, use or
78 * other dealings in products derived from or relating to the Covered Code
79 * without prior written authorization from Intel.
80 *
81 * 4. Disclaimer and Export Compliance
82 *
83 * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
84 * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
85 * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
86 * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
87 * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
88 * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
89 * PARTICULAR PURPOSE.
90 *
91 * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
92 * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
93 * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
94 * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
95 * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
96 * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
97 * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
98 * LIMITED REMEDY.
99 *
100 * 4.3. Licensee shall not export, either directly or indirectly, any of this
101 * software or system incorporating such software without first obtaining any
102 * required license or other approval from the U. S. Department of Commerce or
103 * any other agency or department of the United States Government.  In the
104 * event Licensee exports any such software from the United States or
105 * re-exports any such software from a foreign destination, Licensee shall
106 * ensure that the distribution and export/re-export of the software is in
107 * compliance with all laws, regulations, orders, or other restrictions of the
108 * U.S. Export Administration Regulations. Licensee agrees that neither it nor
109 * any of its subsidiaries will export/re-export any technical data, process,
110 * software, or service, directly or indirectly, to any country for which the
111 * United States government or any agency thereof requires an export license,
112 * other governmental approval, or letter of assurance, without first obtaining
113 * such license, approval or letter.
114 *
115 *****************************************************************************/
116
117
118#ifndef __ASLTYPES_H
119#define __ASLTYPES_H
120
121
122/*******************************************************************************
123 *
124 * Structure definitions
125 *
126 ******************************************************************************/
127
128
129/* Op flags for the ACPI_PARSE_OBJECT */
130
131#define NODE_VISITED                0x00000001
132#define NODE_AML_PACKAGE            0x00000002
133#define NODE_IS_TARGET              0x00000004
134#define NODE_IS_RESOURCE_DESC       0x00000008
135#define NODE_IS_RESOURCE_FIELD      0x00000010
136#define NODE_HAS_NO_EXIT            0x00000020
137#define NODE_IF_HAS_NO_EXIT         0x00000040
138#define NODE_NAME_INTERNALIZED      0x00000080
139#define NODE_METHOD_NO_RETVAL       0x00000100
140#define NODE_METHOD_SOME_NO_RETVAL  0x00000200
141#define NODE_RESULT_NOT_USED        0x00000400
142#define NODE_METHOD_TYPED           0x00000800
143#define NODE_IS_BIT_OFFSET          0x00001000
144#define NODE_COMPILE_TIME_CONST     0x00002000
145#define NODE_IS_TERM_ARG            0x00004000
146#define NODE_WAS_ONES_OP            0x00008000
147#define NODE_IS_NAME_DECLARATION    0x00010000
148#define NODE_COMPILER_EMITTED       0x00020000
149#define NODE_IS_DUPLICATE           0x00040000
150#define NODE_IS_RESOURCE_DATA       0x00080000
151
152/* Keeps information about individual control methods */
153
154typedef struct asl_method_info
155{
156    UINT8                   NumArguments;
157    UINT8                   LocalInitialized[ACPI_METHOD_NUM_LOCALS];
158    UINT8                   ArgInitialized[ACPI_METHOD_NUM_ARGS];
159    UINT32                  ValidArgTypes[ACPI_METHOD_NUM_ARGS];
160    UINT32                  ValidReturnTypes;
161    UINT32                  NumReturnNoValue;
162    UINT32                  NumReturnWithValue;
163    ACPI_PARSE_OBJECT       *Op;
164    struct asl_method_info  *Next;
165    UINT8                   HasBeenTyped;
166
167} ASL_METHOD_INFO;
168
169
170/* Parse tree walk info for control method analysis */
171
172typedef struct asl_analysis_walk_info
173{
174    ASL_METHOD_INFO         *MethodStack;
175
176} ASL_ANALYSIS_WALK_INFO;
177
178
179/* An entry in the ParseOpcode to AmlOpcode mapping table */
180
181typedef struct asl_mapping_entry
182{
183    UINT32                      Value;
184    UINT32                      AcpiBtype;   /* Object type or return type */
185    UINT16                      AmlOpcode;
186    UINT8                       Flags;
187
188} ASL_MAPPING_ENTRY;
189
190
191/* An entry in the Reserved Name information table */
192
193#define ASL_RSVD_RETURN_VALUE   0x01
194#define ASL_RSVD_RESOURCE_NAME  0x02
195#define ASL_RSVD_SCOPE          0x04
196
197typedef struct asl_reserved_info
198{
199    char                        *Name;
200    UINT8                       NumArguments;
201    UINT8                       Flags;
202
203} ASL_RESERVED_INFO;
204
205
206/* Parse tree walk info structure */
207
208typedef struct asl_walk_info
209{
210    ACPI_PARSE_OBJECT           **NodePtr;
211    UINT32                      *LevelPtr;
212
213} ASL_WALK_INFO;
214
215
216/* File info */
217
218typedef struct asl_file_info
219{
220    FILE                        *Handle;
221    char                        *Filename;
222
223} ASL_FILE_INFO;
224
225typedef struct asl_file_status
226{
227    UINT32                  Line;
228    UINT32                  Offset;
229
230} ASL_FILE_STATUS;
231
232
233/* File types */
234
235typedef enum
236{
237    ASL_FILE_STDOUT             = 0,
238    ASL_FILE_STDERR,
239    ASL_FILE_INPUT,
240    ASL_FILE_AML_OUTPUT,
241    ASL_FILE_SOURCE_OUTPUT,
242    ASL_FILE_LISTING_OUTPUT,
243    ASL_FILE_HEX_OUTPUT,
244    ASL_FILE_NAMESPACE_OUTPUT,
245    ASL_FILE_DEBUG_OUTPUT,
246    ASL_FILE_ASM_SOURCE_OUTPUT,
247    ASL_FILE_C_SOURCE_OUTPUT,
248    ASL_FILE_ASM_INCLUDE_OUTPUT,
249    ASL_FILE_C_INCLUDE_OUTPUT
250
251} ASL_FILE_TYPES;
252
253
254#define ASL_MAX_FILE_TYPE       12
255#define ASL_NUM_FILES           (ASL_MAX_FILE_TYPE + 1)
256
257
258typedef struct asl_include_dir
259{
260    char                        *Dir;
261    struct asl_include_dir      *Next;
262
263} ASL_INCLUDE_DIR;
264
265
266/* An entry in the exception list, one for each error/warning */
267
268typedef struct asl_error_msg
269{
270    UINT32                      LineNumber;
271    UINT32                      LogicalLineNumber;
272    UINT32                      LogicalByteOffset;
273    UINT32                      Column;
274    char                        *Message;
275    struct asl_error_msg        *Next;
276    char                        *Filename;
277    UINT32                      FilenameLength;
278    UINT8                       MessageId;
279    UINT8                       Level;
280
281} ASL_ERROR_MSG;
282
283
284/* An entry in the listing file stack (for include files) */
285
286typedef struct asl_listing_node
287{
288    char                        *Filename;
289    UINT32                      LineNumber;
290    struct asl_listing_node     *Next;
291
292} ASL_LISTING_NODE;
293
294
295/* Callback interface for a parse tree walk */
296
297typedef
298ACPI_STATUS (*ASL_WALK_CALLBACK) (
299    ACPI_PARSE_OBJECT           *Op,
300    UINT32                      Level,
301    void                        *Context);
302
303
304typedef struct asl_event_info
305{
306    UINT64                      StartTime;
307    UINT64                      EndTime;
308    char                        *EventName;
309    BOOLEAN                     Valid;
310
311} ASL_EVENT_INFO;
312
313
314#define ASL_WARNING             0
315#define ASL_WARNING2            1
316#define ASL_WARNING3            2
317#define ASL_ERROR               3
318#define ASL_REMARK              4
319#define ASL_OPTIMIZATION        5
320#define ASL_NUM_REPORT_LEVELS   6
321
322
323typedef enum
324{
325    ASL_MSG_RESERVED = 0,
326    ASL_MSG_ALPHANUMERIC_STRING,
327    ASL_MSG_AML_NOT_IMPLEMENTED,
328    ASL_MSG_ARG_COUNT_HI,
329    ASL_MSG_ARG_COUNT_LO,
330    ASL_MSG_ARG_INIT,
331    ASL_MSG_BACKWARDS_OFFSET,
332    ASL_MSG_BITS_TO_BYTES,
333    ASL_MSG_BUFFER_LENGTH,
334    ASL_MSG_BYTES_TO_BITS,
335    ASL_MSG_CLOSE,
336    ASL_MSG_COMPILER_INTERNAL,
337    ASL_MSG_CONSTANT_EVALUATION,
338    ASL_MSG_CONSTANT_FOLDED,
339    ASL_MSG_CORE_EXCEPTION,
340    ASL_MSG_DEBUG_FILE_OPEN,
341    ASL_MSG_DEBUG_FILENAME,
342    ASL_MSG_DEPENDENT_NESTING,
343    ASL_MSG_DMA_CHANNEL,
344    ASL_MSG_DMA_LIST,
345    ASL_MSG_DUPLICATE_CASE,
346    ASL_MSG_DUPLICATE_ITEM,
347    ASL_MSG_EARLY_EOF,
348    ASL_MSG_ENCODING_LENGTH,
349    ASL_MSG_EX_INTERRUPT_LIST,
350    ASL_MSG_EX_INTERRUPT_LIST_MIN,
351    ASL_MSG_EX_INTERRUPT_NUMBER,
352    ASL_MSG_FIELD_ACCESS_WIDTH,
353    ASL_MSG_FIELD_UNIT_ACCESS_WIDTH,
354    ASL_MSG_FIELD_UNIT_OFFSET,
355    ASL_MSG_INCLUDE_FILE_OPEN,
356    ASL_MSG_INPUT_FILE_OPEN,
357    ASL_MSG_INTEGER_LENGTH,
358    ASL_MSG_INTEGER_OPTIMIZATION,
359    ASL_MSG_INTERRUPT_LIST,
360    ASL_MSG_INTERRUPT_NUMBER,
361    ASL_MSG_INVALID_CONSTANT_OP,
362    ASL_MSG_INVALID_EISAID,
363    ASL_MSG_INVALID_ESCAPE,
364    ASL_MSG_INVALID_OPERAND,
365    ASL_MSG_INVALID_PERFORMANCE,
366    ASL_MSG_INVALID_PRIORITY,
367    ASL_MSG_INVALID_STRING,
368    ASL_MSG_INVALID_TARGET,
369    ASL_MSG_INVALID_TIME,
370    ASL_MSG_INVALID_TYPE,
371    ASL_MSG_INVALID_UUID,
372    ASL_MSG_LIST_LENGTH_LONG,
373    ASL_MSG_LIST_LENGTH_SHORT,
374    ASL_MSG_LISTING_FILE_OPEN,
375    ASL_MSG_LISTING_FILENAME,
376    ASL_MSG_LOCAL_INIT,
377    ASL_MSG_LONG_LINE,
378    ASL_MSG_MEMORY_ALLOCATION,
379    ASL_MSG_MISSING_ENDDEPENDENT,
380    ASL_MSG_MISSING_STARTDEPENDENT,
381    ASL_MSG_MULTIPLE_TYPES,
382    ASL_MSG_NAME_EXISTS,
383    ASL_MSG_NAME_OPTIMIZATION,
384    ASL_MSG_NESTED_COMMENT,
385    ASL_MSG_NO_CASES,
386    ASL_MSG_NO_RETVAL,
387    ASL_MSG_NO_WHILE,
388    ASL_MSG_NON_ASCII,
389    ASL_MSG_NOT_EXIST,
390    ASL_MSG_NOT_FOUND,
391    ASL_MSG_NOT_METHOD,
392    ASL_MSG_NOT_PARAMETER,
393    ASL_MSG_NOT_REACHABLE,
394    ASL_MSG_OPEN,
395    ASL_MSG_OUTPUT_FILE_OPEN,
396    ASL_MSG_OUTPUT_FILENAME,
397    ASL_MSG_PACKAGE_LENGTH,
398    ASL_MSG_READ,
399    ASL_MSG_RECURSION,
400    ASL_MSG_REGION_BUFFER_ACCESS,
401    ASL_MSG_REGION_BYTE_ACCESS,
402    ASL_MSG_RESERVED_ARG_COUNT_HI,
403    ASL_MSG_RESERVED_ARG_COUNT_LO,
404    ASL_MSG_RESERVED_METHOD,
405    ASL_MSG_RESERVED_OPERAND_TYPE,
406    ASL_MSG_RESERVED_RETURN_VALUE,
407    ASL_MSG_RESERVED_USE,
408    ASL_MSG_RESERVED_WORD,
409    ASL_MSG_RESOURCE_FIELD,
410    ASL_MSG_RESOURCE_INDEX,
411    ASL_MSG_RESOURCE_LIST,
412    ASL_MSG_RESOURCE_SOURCE,
413    ASL_MSG_RETURN_TYPES,
414    ASL_MSG_SCOPE_FWD_REF,
415    ASL_MSG_SCOPE_TYPE,
416    ASL_MSG_SEEK,
417    ASL_MSG_SINGLE_NAME_OPTIMIZATION,
418    ASL_MSG_SOME_NO_RETVAL,
419    ASL_MSG_SWITCH_TYPE,
420    ASL_MSG_SYNC_LEVEL,
421    ASL_MSG_SYNTAX,
422    ASL_MSG_TABLE_SIGNATURE,
423    ASL_MSG_TOO_MANY_TEMPS,
424    ASL_MSG_UNKNOWN_RESERVED_NAME,
425    ASL_MSG_UNREACHABLE_CODE,
426    ASL_MSG_UNSUPPORTED,
427    ASL_MSG_VENDOR_LIST,
428    ASL_MSG_WRITE,
429    ASL_MSG_MULTIPLE_DEFAULT,
430    ASL_MSG_TIMEOUT,
431    ASL_MSG_RESULT_NOT_USED,
432    ASL_MSG_NOT_REFERENCED,
433    ASL_MSG_NON_ZERO,
434    ASL_MSG_STRING_LENGTH,
435    ASL_MSG_SERIALIZED,
436    ASL_MSG_COMPILER_RESERVED,
437    ASL_MSG_NAMED_OBJECT_IN_WHILE,
438    ASL_MSG_LOCAL_OUTSIDE_METHOD
439
440} ASL_MESSAGE_IDS;
441
442#ifdef ASL_EXCEPTIONS
443
444char                        *AslMessages [] = {
445/*    The zeroth message is resesrved */    "",
446/*    ASL_MSG_ALPHANUMERIC_STRING */        "String must be entirely alphanumeric",
447/*    ASL_MSG_AML_NOT_IMPLEMENTED */        "Opcode is not implemented in compiler AML code generator",
448/*    ASL_MSG_ARG_COUNT_HI */               "Too many arguments",
449/*    ASL_MSG_ARG_COUNT_LO */               "Too few arguments",
450/*    ASL_MSG_ARG_INIT */                   "Method argument is not initialized",
451/*    ASL_MSG_BACKWARDS_OFFSET */           "Invalid backwards offset",
452/*    ASL_MSG_BITS_TO_BYTES */              "Field offset is in bits, but a byte offset is required",
453/*    ASL_MSG_BUFFER_LENGTH */              "Effective AML buffer length is zero",
454/*    ASL_MSG_BYTES_TO_BITS */              "Field offset is in bytes, but a bit offset is required",
455/*    ASL_MSG_CLOSE */                      "Could not close file",
456/*    ASL_MSG_COMPILER_INTERNAL */          "Internal compiler error",
457/*    ASL_MSG_CONSTANT_EVALUATION */        "Could not evaluate constant expression",
458/*    ASL_MSG_CONSTANT_FOLDED */            "Constant expression evaluated and reduced",
459/*    ASL_MSG_CORE_EXCEPTION */             "From ACPI CA Subsystem",
460/*    ASL_MSG_DEBUG_FILE_OPEN */            "Could not open debug file",
461/*    ASL_MSG_DEBUG_FILENAME */             "Could not create debug filename",
462/*    ASL_MSG_DEPENDENT_NESTING */          "Dependent function macros cannot be nested",\
463/*    ASL_MSG_DMA_CHANNEL */                "Invalid DMA channel (must be 0-7)",
464/*    ASL_MSG_DMA_LIST */                   "Too many DMA channels (8 max)",
465/*    ASL_MSG_DUPLICATE_CASE */             "Case value already specified",
466/*    ASL_MSG_DUPLICATE_ITEM */             "Duplicate value in list",
467/*    ASL_MSG_EARLY_EOF */                  "Premature end-of-file reached",
468/*    ASL_MSG_ENCODING_LENGTH */            "Package length too long to encode",
469/*    ASL_MSG_EX_INTERRUPT_LIST */          "Too many interrupts (255 max)",
470/*    ASL_MSG_EX_INTERRUPT_LIST_MIN */      "Too few interrupts (1 minimum required)",
471/*    ASL_MSG_EX_INTERRUPT_NUMBER */        "Invalid interrupt number (must be 32 bits)",
472/*    ASL_MSG_FIELD_ACCESS_WIDTH */         "Access width is greater than region size",
473/*    ASL_MSG_FIELD_UNIT_ACCESS_WIDTH */    "Access width of Field Unit extends beyond region limit",
474/*    ASL_MSG_FIELD_UNIT_OFFSET */          "Field Unit extends beyond region limit",
475/*    ASL_MSG_INCLUDE_FILE_OPEN */          "Could not open include file",
476/*    ASL_MSG_INPUT_FILE_OPEN */            "Could not open input file",
477/*    ASL_MSG_INTEGER_LENGTH */             "64-bit integer in 32-bit table, truncating",
478/*    ASL_MSG_INTEGER_OPTIMIZATION */       "Integer optimized to single-byte AML opcode",
479/*    ASL_MSG_INTERRUPT_LIST */             "Too many interrupts (16 max)",
480/*    ASL_MSG_INTERRUPT_NUMBER */           "Invalid interrupt number (must be 0-15)",
481/*    ASL_MSG_INVALID_CONSTANT_OP */        "Invalid operator in constant expression (not type 3/4/5)",
482/*    ASL_MSG_INVALID_EISAID */             "EISAID string must be of the form \"UUUXXXX\" (3 uppercase, 4 hex digits)",
483/*    ASL_MSG_INVALID_ESCAPE */             "Invalid or unknown escape sequence",
484/*    ASL_MSG_INVALID_OPERAND */            "Invalid operand",
485/*    ASL_MSG_INVALID_PERFORMANCE */        "Invalid performance/robustness value",
486/*    ASL_MSG_INVALID_PRIORITY */           "Invalid priority value",
487/*    ASL_MSG_INVALID_STRING */             "Invalid Hex/Octal Escape - Non-ASCII or NULL",
488/*    ASL_MSG_INVALID_TARGET */             "Target operand not allowed in constant expression",
489/*    ASL_MSG_INVALID_TIME */               "Time parameter too long (255 max)",
490/*    ASL_MSG_INVALID_TYPE */               "Invalid type",
491/*    ASL_MSG_INVALID_UUID */               "UUID string must be of the form \"aabbccdd-eeff-gghh-iijj-kkllmmnnoopp\"",
492/*    ASL_MSG_LIST_LENGTH_LONG */           "Initializer list longer than declared package length",
493/*    ASL_MSG_LIST_LENGTH_SHORT */          "Initializer list shorter than declared package length",
494/*    ASL_MSG_LISTING_FILE_OPEN */          "Could not open listing file",
495/*    ASL_MSG_LISTING_FILENAME */           "Could not create listing filename",
496/*    ASL_MSG_LOCAL_INIT */                 "Method local variable is not initialized",
497/*    ASL_MSG_LONG_LINE */                  "Splitting long input line",
498/*    ASL_MSG_MEMORY_ALLOCATION */          "Memory allocation failure",
499/*    ASL_MSG_MISSING_ENDDEPENDENT */       "Missing EndDependentFn() macro in dependent resource list",
500/*    ASL_MSG_MISSING_STARTDEPENDENT */     "Missing StartDependentFn() macro in dependent resource list",
501/*    ASL_MSG_MULTIPLE_TYPES */             "Multiple types",
502/*    ASL_MSG_NAME_EXISTS */                "Name already exists in scope",
503/*    ASL_MSG_NAME_OPTIMIZATION */          "NamePath optimized",
504/*    ASL_MSG_NESTED_COMMENT */             "Nested comment found",
505/*    ASL_MSG_NO_CASES */                   "No Case statements under Switch",
506/*    ASL_MSG_NO_RETVAL */                  "Called method returns no value",
507/*    ASL_MSG_NO_WHILE */                   "No enclosing While statement",
508/*    ASL_MSG_NON_ASCII */                  "Invalid characters found in file",
509/*    ASL_MSG_NOT_EXIST */                  "Object does not exist",
510/*    ASL_MSG_NOT_FOUND */                  "Object not found or not accessible from scope",
511/*    ASL_MSG_NOT_METHOD */                 "Not a control method, cannot invoke",
512/*    ASL_MSG_NOT_PARAMETER */              "Not a parameter, used as local only",
513/*    ASL_MSG_NOT_REACHABLE */              "Object is not accessible from this scope",
514/*    ASL_MSG_OPEN */                       "Could not open file",
515/*    ASL_MSG_OUTPUT_FILE_OPEN */           "Could not open output AML file",
516/*    ASL_MSG_OUTPUT_FILENAME */            "Could not create output filename",
517/*    ASL_MSG_PACKAGE_LENGTH */             "Effective AML package length is zero",
518/*    ASL_MSG_READ */                       "Could not read file",
519/*    ASL_MSG_RECURSION */                  "Recursive method call",
520/*    ASL_MSG_REGION_BUFFER_ACCESS */       "Host Operation Region requires BufferAcc access",
521/*    ASL_MSG_REGION_BYTE_ACCESS */         "Host Operation Region requires ByteAcc access",
522/*    ASL_MSG_RESERVED_ARG_COUNT_HI */      "Reserved method has too many arguments",
523/*    ASL_MSG_RESERVED_ARG_COUNT_LO */      "Reserved method has too few arguments",
524/*    ASL_MSG_RESERVED_METHOD */            "Reserved name must be a control method",
525/*    ASL_MSG_RESERVED_OPERAND_TYPE */      "Invalid operand type for reserved name, must be",
526/*    ASL_MSG_RESERVED_RETURN_VALUE */      "Reserved method must return a value",
527/*    ASL_MSG_RESERVED_USE */               "Invalid use of reserved name",
528/*    ASL_MSG_RESERVED_WORD */              "Use of reserved name",
529/*    ASL_MSG_RESOURCE_FIELD */             "Resource field name cannot be used as a target",
530/*    ASL_MSG_RESOURCE_INDEX */             "Missing ResourceSourceIndex (required)",
531/*    ASL_MSG_RESOURCE_LIST */              "Too many resource items (internal error)",
532/*    ASL_MSG_RESOURCE_SOURCE */            "Missing ResourceSource string (required)",
533/*    ASL_MSG_RETURN_TYPES */               "Not all control paths return a value",
534/*    ASL_MSG_SCOPE_FWD_REF */              "Forward references from Scope operator not allowed",
535/*    ASL_MSG_SCOPE_TYPE */                 "Existing object has invalid type for Scope operator",
536/*    ASL_MSG_SEEK */                       "Could not seek file",
537/*    ASL_MSG_SINGLE_NAME_OPTIMIZATION */   "NamePath optimized to NameSeg (uses run-time search path)",
538/*    ASL_MSG_SOME_NO_RETVAL */             "Called method may not always return a value",
539/*    ASL_MSG_SWITCH_TYPE */                "Switch expression is not a static Integer/Buffer/String data type, defaulting to Integer",
540/*    ASL_MSG_SYNC_LEVEL */                 "SyncLevel must be in the range 0-15",
541/*    ASL_MSG_SYNTAX */                     "",
542/*    ASL_MSG_TABLE_SIGNATURE */            "Invalid Table Signature",
543/*    ASL_MSG_TOO_MANY_TEMPS */             "Method requires too many temporary variables (_T_x)",
544/*    ASL_MSG_UNKNOWN_RESERVED_NAME */      "Unknown reserved name",
545/*    ASL_MSG_UNREACHABLE_CODE */           "Statement is unreachable",
546/*    ASL_MSG_UNSUPPORTED */                "Unsupported feature",
547/*    ASL_MSG_VENDOR_LIST */                "Too many vendor data bytes (7 max)",
548/*    ASL_MSG_WRITE */                      "Could not write file",
549/*    ASL_MSG_MULTIPLE_DEFAULT */           "More than one Default statement within Switch construct",
550/*    ASL_MSG_TIMEOUT */                    "Possible operator timeout is ignored",
551/*    ASL_MSG_RESULT_NOT_USED */            "Result is not used, operator has no effect",
552/*    ASL_MSG_NOT_REFERENCED */             "Namespace object is not referenced",
553/*    ASL_MSG_NON_ZERO */                   "Operand evaluates to zero",
554/*    ASL_MSG_STRING_LENGTH */              "String literal too long",
555/*    ASL_MSG_SERIALIZED */                 "Control Method marked Serialized",
556/*    ASL_MSG_COMPILER_RESERVED */          "Use of compiler reserved name",
557/*    ASL_MSG_NAMED_OBJECT_IN_WHILE */      "Creating a named object in a While loop",
558/*    ASL_MSG_LOCAL_OUTSIDE_METHOD */       "Local or Arg used outside a control method"
559
560};
561
562
563char                    *AslErrorLevel [ASL_NUM_REPORT_LEVELS] = {
564    "Warning ",
565    "Warning ",
566    "Warning ",
567    "Error   ",
568    "Remark  ",
569    "Optimize"
570};
571
572#define ASL_ERROR_LEVEL_LENGTH          8       /* Length of strings above */
573
574/* Exception counters */
575
576UINT32                  Gbl_ExceptionCount[ASL_NUM_REPORT_LEVELS] = {0,0,0,0,0,0};
577
578#endif
579
580
581#endif  /* __ASLTYPES_H */
582