Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / sys / contrib / dev / acpica-unix / compiler / aslmessages.h
1
2 /******************************************************************************
3  *
4  * Module Name: aslmessages.h - Compiler error/warning messages
5  *
6  *****************************************************************************/
7
8 /******************************************************************************
9  *
10  * 1. Copyright Notice
11  *
12  * Some or all of this work - Copyright (c) 1999 - 2011, 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 __ASLMESSAGES_H
119 #define __ASLMESSAGES_H
120
121
122 #define ASL_WARNING             0
123 #define ASL_WARNING2            1
124 #define ASL_WARNING3            2
125 #define ASL_ERROR               3
126 #define ASL_REMARK              4
127 #define ASL_OPTIMIZATION        5
128 #define ASL_NUM_REPORT_LEVELS   6
129
130
131 /* Values for all compiler messages */
132
133 typedef enum
134 {
135     ASL_MSG_RESERVED = 0,
136     ASL_MSG_ALPHANUMERIC_STRING,
137     ASL_MSG_AML_NOT_IMPLEMENTED,
138     ASL_MSG_ARG_COUNT_HI,
139     ASL_MSG_ARG_COUNT_LO,
140     ASL_MSG_ARG_INIT,
141     ASL_MSG_BACKWARDS_OFFSET,
142     ASL_MSG_BITS_TO_BYTES,
143     ASL_MSG_BUFFER_LENGTH,
144     ASL_MSG_BYTES_TO_BITS,
145     ASL_MSG_CLOSE,
146     ASL_MSG_COMPILER_INTERNAL,
147     ASL_MSG_CONSTANT_EVALUATION,
148     ASL_MSG_CONSTANT_FOLDED,
149     ASL_MSG_CORE_EXCEPTION,
150     ASL_MSG_DEBUG_FILE_OPEN,
151     ASL_MSG_DEBUG_FILENAME,
152     ASL_MSG_DEPENDENT_NESTING,
153     ASL_MSG_DMA_CHANNEL,
154     ASL_MSG_DMA_LIST,
155     ASL_MSG_DUPLICATE_CASE,
156     ASL_MSG_DUPLICATE_ITEM,
157     ASL_MSG_EARLY_EOF,
158     ASL_MSG_ENCODING_LENGTH,
159     ASL_MSG_EX_INTERRUPT_LIST,
160     ASL_MSG_EX_INTERRUPT_LIST_MIN,
161     ASL_MSG_EX_INTERRUPT_NUMBER,
162     ASL_MSG_FIELD_ACCESS_WIDTH,
163     ASL_MSG_FIELD_UNIT_ACCESS_WIDTH,
164     ASL_MSG_FIELD_UNIT_OFFSET,
165     ASL_MSG_INCLUDE_FILE_OPEN,
166     ASL_MSG_INPUT_FILE_OPEN,
167     ASL_MSG_INTEGER_LENGTH,
168     ASL_MSG_INTEGER_OPTIMIZATION,
169     ASL_MSG_INTERRUPT_LIST,
170     ASL_MSG_INTERRUPT_NUMBER,
171     ASL_MSG_INVALID_CONSTANT_OP,
172     ASL_MSG_INVALID_EISAID,
173     ASL_MSG_INVALID_ESCAPE,
174     ASL_MSG_INVALID_OPERAND,
175     ASL_MSG_INVALID_PERFORMANCE,
176     ASL_MSG_INVALID_PRIORITY,
177     ASL_MSG_INVALID_STRING,
178     ASL_MSG_INVALID_TARGET,
179     ASL_MSG_INVALID_TIME,
180     ASL_MSG_INVALID_TYPE,
181     ASL_MSG_INVALID_UUID,
182     ASL_MSG_LIST_LENGTH_LONG,
183     ASL_MSG_LIST_LENGTH_SHORT,
184     ASL_MSG_LISTING_FILE_OPEN,
185     ASL_MSG_LISTING_FILENAME,
186     ASL_MSG_LOCAL_INIT,
187     ASL_MSG_LONG_LINE,
188     ASL_MSG_MEMORY_ALLOCATION,
189     ASL_MSG_MISSING_ENDDEPENDENT,
190     ASL_MSG_MISSING_STARTDEPENDENT,
191     ASL_MSG_MULTIPLE_TYPES,
192     ASL_MSG_NAME_EXISTS,
193     ASL_MSG_NAME_OPTIMIZATION,
194     ASL_MSG_NESTED_COMMENT,
195     ASL_MSG_NO_CASES,
196     ASL_MSG_NO_RETVAL,
197     ASL_MSG_NO_WHILE,
198     ASL_MSG_NON_ASCII,
199     ASL_MSG_NOT_EXIST,
200     ASL_MSG_NOT_FOUND,
201     ASL_MSG_NOT_METHOD,
202     ASL_MSG_NOT_PARAMETER,
203     ASL_MSG_NOT_REACHABLE,
204     ASL_MSG_OPEN,
205     ASL_MSG_OUTPUT_FILE_OPEN,
206     ASL_MSG_OUTPUT_FILENAME,
207     ASL_MSG_PACKAGE_LENGTH,
208     ASL_MSG_READ,
209     ASL_MSG_RECURSION,
210     ASL_MSG_REGION_BUFFER_ACCESS,
211     ASL_MSG_REGION_BYTE_ACCESS,
212     ASL_MSG_RESERVED_ARG_COUNT_HI,
213     ASL_MSG_RESERVED_ARG_COUNT_LO,
214     ASL_MSG_RESERVED_METHOD,
215     ASL_MSG_RESERVED_OPERAND_TYPE,
216     ASL_MSG_RESERVED_RETURN_VALUE,
217     ASL_MSG_RESERVED_USE,
218     ASL_MSG_RESERVED_WORD,
219     ASL_MSG_RESOURCE_FIELD,
220     ASL_MSG_RESOURCE_INDEX,
221     ASL_MSG_RESOURCE_LIST,
222     ASL_MSG_RESOURCE_SOURCE,
223     ASL_MSG_RETURN_TYPES,
224     ASL_MSG_SCOPE_FWD_REF,
225     ASL_MSG_SCOPE_TYPE,
226     ASL_MSG_SEEK,
227     ASL_MSG_SINGLE_NAME_OPTIMIZATION,
228     ASL_MSG_SOME_NO_RETVAL,
229     ASL_MSG_SWITCH_TYPE,
230     ASL_MSG_SYNC_LEVEL,
231     ASL_MSG_SYNTAX,
232     ASL_MSG_TABLE_SIGNATURE,
233     ASL_MSG_TOO_MANY_TEMPS,
234     ASL_MSG_UNKNOWN_RESERVED_NAME,
235     ASL_MSG_UNREACHABLE_CODE,
236     ASL_MSG_UNSUPPORTED,
237     ASL_MSG_VENDOR_LIST,
238     ASL_MSG_WRITE,
239     ASL_MSG_MULTIPLE_DEFAULT,
240     ASL_MSG_TIMEOUT,
241     ASL_MSG_RESULT_NOT_USED,
242     ASL_MSG_NOT_REFERENCED,
243     ASL_MSG_NON_ZERO,
244     ASL_MSG_STRING_LENGTH,
245     ASL_MSG_SERIALIZED,
246     ASL_MSG_COMPILER_RESERVED,
247     ASL_MSG_NAMED_OBJECT_IN_WHILE,
248     ASL_MSG_LOCAL_OUTSIDE_METHOD,
249     ASL_MSG_ALIGNMENT,
250     ASL_MSG_ISA_ADDRESS,
251     ASL_MSG_INVALID_MIN_MAX,
252     ASL_MSG_INVALID_LENGTH,
253     ASL_MSG_INVALID_LENGTH_FIXED,
254     ASL_MSG_INVALID_GRANULARITY,
255     ASL_MSG_INVALID_GRAN_FIXED,
256     ASL_MSG_INVALID_ACCESS_SIZE,
257     ASL_MSG_INVALID_ADDR_FLAGS,
258     ASL_MSG_NULL_DESCRIPTOR,
259     ASL_MSG_UPPER_CASE,
260     ASL_MSG_HID_LENGTH,
261     ASL_MSG_NULL_STRING,
262     ASL_MSG_LEADING_ASTERISK,
263     ASL_MSG_RESERVED_NO_RETURN_VAL,
264     ASL_MSG_GPE_NAME_CONFLICT,
265
266     ASL_MSG_INVALID_FIELD_NAME,
267     ASL_MSG_INTEGER_SIZE,
268     ASL_MSG_INVALID_HEX_INTEGER,
269     ASL_MSG_BUFFER_ELEMENT,
270     ASL_MSG_RESERVED_VALUE,
271     ASL_MSG_FLAG_VALUE,
272     ASL_MSG_ZERO_VALUE,
273     ASL_MSG_UNKNOWN_TABLE,
274     ASL_MSG_UNKNOWN_SUBTABLE,
275     ASL_MSG_OEM_TABLE,
276     ASL_MSG_UNKNOWN_LABEL,
277     ASL_MSG_INVALID_EXPRESSION,
278     ASL_MSG_DIVIDE_BY_ZERO
279
280 } ASL_MESSAGE_IDS;
281
282
283 #ifdef ASL_EXCEPTIONS
284
285 /* Actual message strings for each compiler message */
286
287 char                        *AslMessages [] = {
288 /*    The zeroth message is reserved */    "",
289 /*    ASL_MSG_ALPHANUMERIC_STRING */        "String must be entirely alphanumeric",
290 /*    ASL_MSG_AML_NOT_IMPLEMENTED */        "Opcode is not implemented in compiler AML code generator",
291 /*    ASL_MSG_ARG_COUNT_HI */               "Too many arguments",
292 /*    ASL_MSG_ARG_COUNT_LO */               "Too few arguments",
293 /*    ASL_MSG_ARG_INIT */                   "Method argument is not initialized",
294 /*    ASL_MSG_BACKWARDS_OFFSET */           "Invalid backwards offset",
295 /*    ASL_MSG_BITS_TO_BYTES */              "Field offset is in bits, but a byte offset is required",
296 /*    ASL_MSG_BUFFER_LENGTH */              "Effective AML buffer length is zero",
297 /*    ASL_MSG_BYTES_TO_BITS */              "Field offset is in bytes, but a bit offset is required",
298 /*    ASL_MSG_CLOSE */                      "Could not close file",
299 /*    ASL_MSG_COMPILER_INTERNAL */          "Internal compiler error",
300 /*    ASL_MSG_CONSTANT_EVALUATION */        "Could not evaluate constant expression",
301 /*    ASL_MSG_CONSTANT_FOLDED */            "Constant expression evaluated and reduced",
302 /*    ASL_MSG_CORE_EXCEPTION */             "From ACPI CA Subsystem",
303 /*    ASL_MSG_DEBUG_FILE_OPEN */            "Could not open debug file",
304 /*    ASL_MSG_DEBUG_FILENAME */             "Could not create debug filename",
305 /*    ASL_MSG_DEPENDENT_NESTING */          "Dependent function macros cannot be nested",\
306 /*    ASL_MSG_DMA_CHANNEL */                "Invalid DMA channel (must be 0-7)",
307 /*    ASL_MSG_DMA_LIST */                   "Too many DMA channels (8 max)",
308 /*    ASL_MSG_DUPLICATE_CASE */             "Case value already specified",
309 /*    ASL_MSG_DUPLICATE_ITEM */             "Duplicate value in list",
310 /*    ASL_MSG_EARLY_EOF */                  "Premature end-of-file reached",
311 /*    ASL_MSG_ENCODING_LENGTH */            "Package length too long to encode",
312 /*    ASL_MSG_EX_INTERRUPT_LIST */          "Too many interrupts (255 max)",
313 /*    ASL_MSG_EX_INTERRUPT_LIST_MIN */      "Too few interrupts (1 minimum required)",
314 /*    ASL_MSG_EX_INTERRUPT_NUMBER */        "Invalid interrupt number (must be 32 bits)",
315 /*    ASL_MSG_FIELD_ACCESS_WIDTH */         "Access width is greater than region size",
316 /*    ASL_MSG_FIELD_UNIT_ACCESS_WIDTH */    "Access width of Field Unit extends beyond region limit",
317 /*    ASL_MSG_FIELD_UNIT_OFFSET */          "Field Unit extends beyond region limit",
318 /*    ASL_MSG_INCLUDE_FILE_OPEN */          "Could not open include file",
319 /*    ASL_MSG_INPUT_FILE_OPEN */            "Could not open input file",
320 /*    ASL_MSG_INTEGER_LENGTH */             "64-bit integer in 32-bit table, truncating",
321 /*    ASL_MSG_INTEGER_OPTIMIZATION */       "Integer optimized to single-byte AML opcode",
322 /*    ASL_MSG_INTERRUPT_LIST */             "Too many interrupts (16 max)",
323 /*    ASL_MSG_INTERRUPT_NUMBER */           "Invalid interrupt number (must be 0-15)",
324 /*    ASL_MSG_INVALID_CONSTANT_OP */        "Invalid operator in constant expression (not type 3/4/5)",
325 /*    ASL_MSG_INVALID_EISAID */             "EISAID string must be of the form \"UUUXXXX\" (3 uppercase, 4 hex digits)",
326 /*    ASL_MSG_INVALID_ESCAPE */             "Invalid or unknown escape sequence",
327 /*    ASL_MSG_INVALID_OPERAND */            "Invalid operand",
328 /*    ASL_MSG_INVALID_PERFORMANCE */        "Invalid performance/robustness value",
329 /*    ASL_MSG_INVALID_PRIORITY */           "Invalid priority value",
330 /*    ASL_MSG_INVALID_STRING */             "Invalid Hex/Octal Escape - Non-ASCII or NULL",
331 /*    ASL_MSG_INVALID_TARGET */             "Target operand not allowed in constant expression",
332 /*    ASL_MSG_INVALID_TIME */               "Time parameter too long (255 max)",
333 /*    ASL_MSG_INVALID_TYPE */               "Invalid type",
334 /*    ASL_MSG_INVALID_UUID */               "UUID string must be of the form \"aabbccdd-eeff-gghh-iijj-kkllmmnnoopp\"",
335 /*    ASL_MSG_LIST_LENGTH_LONG */           "Initializer list longer than declared package length",
336 /*    ASL_MSG_LIST_LENGTH_SHORT */          "Initializer list shorter than declared package length",
337 /*    ASL_MSG_LISTING_FILE_OPEN */          "Could not open listing file",
338 /*    ASL_MSG_LISTING_FILENAME */           "Could not create listing filename",
339 /*    ASL_MSG_LOCAL_INIT */                 "Method local variable is not initialized",
340 /*    ASL_MSG_LONG_LINE */                  "Splitting long input line",
341 /*    ASL_MSG_MEMORY_ALLOCATION */          "Memory allocation failure",
342 /*    ASL_MSG_MISSING_ENDDEPENDENT */       "Missing EndDependentFn() macro in dependent resource list",
343 /*    ASL_MSG_MISSING_STARTDEPENDENT */     "Missing StartDependentFn() macro in dependent resource list",
344 /*    ASL_MSG_MULTIPLE_TYPES */             "Multiple types",
345 /*    ASL_MSG_NAME_EXISTS */                "Name already exists in scope",
346 /*    ASL_MSG_NAME_OPTIMIZATION */          "NamePath optimized",
347 /*    ASL_MSG_NESTED_COMMENT */             "Nested comment found",
348 /*    ASL_MSG_NO_CASES */                   "No Case statements under Switch",
349 /*    ASL_MSG_NO_RETVAL */                  "Called method returns no value",
350 /*    ASL_MSG_NO_WHILE */                   "No enclosing While statement",
351 /*    ASL_MSG_NON_ASCII */                  "Invalid characters found in file",
352 /*    ASL_MSG_NOT_EXIST */                  "Object does not exist",
353 /*    ASL_MSG_NOT_FOUND */                  "Object not found or not accessible from scope",
354 /*    ASL_MSG_NOT_METHOD */                 "Not a control method, cannot invoke",
355 /*    ASL_MSG_NOT_PARAMETER */              "Not a parameter, used as local only",
356 /*    ASL_MSG_NOT_REACHABLE */              "Object is not accessible from this scope",
357 /*    ASL_MSG_OPEN */                       "Could not open file",
358 /*    ASL_MSG_OUTPUT_FILE_OPEN */           "Could not open output AML file",
359 /*    ASL_MSG_OUTPUT_FILENAME */            "Could not create output filename",
360 /*    ASL_MSG_PACKAGE_LENGTH */             "Effective AML package length is zero",
361 /*    ASL_MSG_READ */                       "Could not read file",
362 /*    ASL_MSG_RECURSION */                  "Recursive method call",
363 /*    ASL_MSG_REGION_BUFFER_ACCESS */       "Host Operation Region requires BufferAcc access",
364 /*    ASL_MSG_REGION_BYTE_ACCESS */         "Host Operation Region requires ByteAcc access",
365 /*    ASL_MSG_RESERVED_ARG_COUNT_HI */      "Reserved method has too many arguments",
366 /*    ASL_MSG_RESERVED_ARG_COUNT_LO */      "Reserved method has too few arguments",
367 /*    ASL_MSG_RESERVED_METHOD */            "Reserved name must be a control method",
368 /*    ASL_MSG_RESERVED_OPERAND_TYPE */      "Invalid object type for reserved name",
369 /*    ASL_MSG_RESERVED_RETURN_VALUE */      "Reserved method must return a value",
370 /*    ASL_MSG_RESERVED_USE */               "Invalid use of reserved name",
371 /*    ASL_MSG_RESERVED_WORD */              "Use of reserved name",
372 /*    ASL_MSG_RESOURCE_FIELD */             "Resource field name cannot be used as a target",
373 /*    ASL_MSG_RESOURCE_INDEX */             "Missing ResourceSourceIndex (required)",
374 /*    ASL_MSG_RESOURCE_LIST */              "Too many resource items (internal error)",
375 /*    ASL_MSG_RESOURCE_SOURCE */            "Missing ResourceSource string (required)",
376 /*    ASL_MSG_RETURN_TYPES */               "Not all control paths return a value",
377 /*    ASL_MSG_SCOPE_FWD_REF */              "Forward references from Scope operator not allowed",
378 /*    ASL_MSG_SCOPE_TYPE */                 "Existing object has invalid type for Scope operator",
379 /*    ASL_MSG_SEEK */                       "Could not seek file",
380 /*    ASL_MSG_SINGLE_NAME_OPTIMIZATION */   "NamePath optimized to NameSeg (uses run-time search path)",
381 /*    ASL_MSG_SOME_NO_RETVAL */             "Called method may not always return a value",
382 /*    ASL_MSG_SWITCH_TYPE */                "Switch expression is not a static Integer/Buffer/String data type, defaulting to Integer",
383 /*    ASL_MSG_SYNC_LEVEL */                 "SyncLevel must be in the range 0-15",
384 /*    ASL_MSG_SYNTAX */                     "",
385 /*    ASL_MSG_TABLE_SIGNATURE */            "Invalid Table Signature",
386 /*    ASL_MSG_TOO_MANY_TEMPS */             "Method requires too many temporary variables (_T_x)",
387 /*    ASL_MSG_UNKNOWN_RESERVED_NAME */      "Unknown reserved name",
388 /*    ASL_MSG_UNREACHABLE_CODE */           "Statement is unreachable",
389 /*    ASL_MSG_UNSUPPORTED */                "Unsupported feature",
390 /*    ASL_MSG_VENDOR_LIST */                "Too many vendor data bytes (7 max)",
391 /*    ASL_MSG_WRITE */                      "Could not write file",
392 /*    ASL_MSG_MULTIPLE_DEFAULT */           "More than one Default statement within Switch construct",
393 /*    ASL_MSG_TIMEOUT */                    "Result is not used, possible operator timeout will be missed",
394 /*    ASL_MSG_RESULT_NOT_USED */            "Result is not used, operator has no effect",
395 /*    ASL_MSG_NOT_REFERENCED */             "Namespace object is not referenced",
396 /*    ASL_MSG_NON_ZERO */                   "Operand evaluates to zero",
397 /*    ASL_MSG_STRING_LENGTH */              "String literal too long",
398 /*    ASL_MSG_SERIALIZED */                 "Control Method marked Serialized",
399 /*    ASL_MSG_COMPILER_RESERVED */          "Use of compiler reserved name",
400 /*    ASL_MSG_NAMED_OBJECT_IN_WHILE */      "Creating a named object in a While loop",
401 /*    ASL_MSG_LOCAL_OUTSIDE_METHOD */       "Local or Arg used outside a control method",
402 /*    ASL_MSG_ALIGNMENT */                  "Must be a multiple of alignment/granularity value",
403 /*    ASL_MSG_ISA_ADDRESS */                "Maximum 10-bit ISA address (0x3FF)",
404 /*    ASL_MSG_INVALID_MIN_MAX */            "Address Min is greater than Address Max",
405 /*    ASL_MSG_INVALID_LENGTH */             "Length is larger than Min/Max window",
406 /*    ASL_MSG_INVALID_LENGTH_FIXED */       "Length is not equal to fixed Min/Max window",
407 /*    ASL_MSG_INVALID_GRANULARITY */        "Granularity must be zero or a power of two minus one",
408 /*    ASL_MSG_INVALID_GRAN_FIXED */         "Granularity must be zero for fixed Min/Max",
409 /*    ASL_MSG_INVALID_ACCESS_SIZE */        "Invalid AccessSize (Maximum is 4 - QWord access)",
410 /*    ASL_MSG_INVALID_ADDR_FLAGS */         "Invalid combination of Length and Min/Max fixed flags",
411 /*    ASL_MSG_NULL_DESCRIPTOR */            "Min/Max/Length/Gran are all zero, but no resource tag",
412 /*    ASL_MSG_UPPER_CASE */                 "Non-hex letters must be upper case",
413 /*    ASL_MSG_HID_LENGTH */                 "_HID string must be exactly 7 or 8 characters",
414 /*    ASL_MSG_NULL_STRING */                "Invalid zero-length (null) string",
415 /*    ASL_MSG_LEADING_ASTERISK */           "Invalid leading asterisk",
416 /*    ASL_MSG_RESERVED_NO_RETURN_VAL */     "Reserved method should not return a value",
417 /*    ASL_MSG_GPE_NAME_CONFLICT */          "Name conflicts with a previous GPE method",
418
419 /* These messages are used by the data table compiler only */
420
421 /*    ASL_MSG_INVALID_FIELD_NAME */         "Invalid Field Name",
422 /*    ASL_MSG_INTEGER_SIZE */               "Integer too large for target",
423 /*    ASL_MSG_INVALID_HEX_INTEGER */        "Invalid hex integer constant",
424 /*    ASL_MSG_BUFFER_ELEMENT */             "Invalid element in buffer initializer list",
425 /*    ASL_MSG_RESERVED_VALUE */             "Reserved field must be zero",
426 /*    ASL_MSG_FLAG_VALUE */                 "Flag value is too large",
427 /*    ASL_MSG_ZERO_VALUE */                 "Value must be non-zero",
428 /*    ASL_MSG_UNKNOWN_TABLE */              "Unknown ACPI table signature",
429 /*    ASL_MSG_UNKNOWN_SUBTABLE */           "Unknown subtable type",
430 /*    ASL_MSG_OEM_TABLE */                  "OEM table - unknown contents",
431 /*    ASL_MSG_UNKNOWN_LABEL */              "Label is undefined",
432 /*    ASL_MSG_INVALID_EXPRESSION */         "Invalid expression",
433 /*    ASL_MSG_DIVIDE_BY_ZERO */             "Expression contains divide-by-zero"
434
435 };
436
437
438 char                    *AslErrorLevel [ASL_NUM_REPORT_LEVELS] = {
439     "Warning ",
440     "Warning ",
441     "Warning ",
442     "Error   ",
443     "Remark  ",
444     "Optimize"
445 };
446
447 #define ASL_ERROR_LEVEL_LENGTH          8       /* Length of strings above */
448
449 #endif  /* ASL_EXCEPTIONS */
450
451 #endif  /* __ASLMESSAGES_H */