aslmessages.h revision 216471
1139804Simp
21541Srgrimes/******************************************************************************
31541Srgrimes *
41541Srgrimes * Module Name: aslmessages.h - Compiler error/warning messages
51541Srgrimes *
61541Srgrimes *****************************************************************************/
71541Srgrimes
81541Srgrimes/******************************************************************************
91541Srgrimes *
101541Srgrimes * 1. Copyright Notice
111541Srgrimes *
121541Srgrimes * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp.
131541Srgrimes * All rights reserved.
141541Srgrimes *
151541Srgrimes * 2. License
161541Srgrimes *
171541Srgrimes * 2.1. This is your license from Intel Corp. under its intellectual property
181541Srgrimes * rights.  You may have additional license terms from the party that provided
191541Srgrimes * you this software, covering your right to use that party's intellectual
201541Srgrimes * property rights.
211541Srgrimes *
221541Srgrimes * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
231541Srgrimes * copy of the source code appearing in this file ("Covered Code") an
241541Srgrimes * irrevocable, perpetual, worldwide license under Intel's copyrights in the
251541Srgrimes * base code distributed originally by Intel ("Original Intel Code") to copy,
261541Srgrimes * make derivatives, distribute, use and display any portion of the Covered
271541Srgrimes * Code in any form, with the right to sublicense such rights; and
281541Srgrimes *
291541Srgrimes * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
301541Srgrimes * license (with the right to sublicense), under only those claims of Intel
311541Srgrimes * patents that are infringed by the Original Intel Code, to make, use, sell,
32116182Sobrien * offer to sell, and import the Covered Code and derivative works thereof
33116182Sobrien * solely to the minimum extent necessary to exercise the above copyright
34116182Sobrien * license, and in no event shall the patent license extend to any additions
3577598Sjesper * to or modifications of the Original Intel Code.  No other license or right
36101013Srwatson * is granted directly or by implication, estoppel or otherwise;
371541Srgrimes *
3895759Stanimura * The above copyright and patent license is granted only if the following
3912041Swollman * conditions are met:
4076166Smarkm *
411541Srgrimes * 3. Conditions
4295759Stanimura *
4376166Smarkm * 3.1. Redistribution of Source with Rights to Further Distribute Source.
441541Srgrimes * Redistribution of source code of any substantial portion of the Covered
4551381Sgreen * Code or modification with rights to further distribute source must include
4695759Stanimura * the above Copyright Notice, the above License, this list of Conditions,
471541Srgrimes * and the following Disclaimer and Export Compliance provision.  In addition,
481541Srgrimes * Licensee must cause all Covered Code to which Licensee contributes to
49169236Srwatson * contain a file documenting the changes Licensee made to create that Covered
5012041Swollman * Code and the date of any change.  Licensee must include in that file the
511541Srgrimes * documentation of any changes made by any predecessor Licensee.  Licensee
52160621Srwatson * must include a prominent statement that the modification is derived,
53160621Srwatson * directly or indirectly, from Original Intel Code.
54160621Srwatson *
55160621Srwatson * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
56160621Srwatson * Redistribution of source code of any substantial portion of the Covered
5788633Salfred * Code or modification without rights to further distribute source must
581541Srgrimes * include the following Disclaimer and Export Compliance provision in the
59160621Srwatson * documentation and/or other materials provided with distribution.  In
601541Srgrimes * addition, Licensee may not authorize further sublicense of source of any
611541Srgrimes * portion of the Covered Code, and must include terms to the effect that the
62101996Sdg * license from Licensee to its licensee is limited to the intellectual
63172557Smohans * property embodied in the software Licensee provides to its licensee, and
64172557Smohans * not to intellectual property embodied in modifications its licensee may
651541Srgrimes * make.
6613267Swollman *
6713267Swollman * 3.3. Redistribution of Executable. Redistribution in executable form of any
68160915Srwatson * substantial portion of the Covered Code or modification must reproduce the
69160915Srwatson * above Copyright Notice, and the following Disclaimer and Export Compliance
70160875Srwatson * provision in the documentation and/or other materials provided with the
711541Srgrimes * distribution.
72160915Srwatson *
73160915Srwatson * 3.4. Intel retains all right, title, and interest in and to the Original
74160915Srwatson * Intel Code.
75160915Srwatson *
76160915Srwatson * 3.5. Neither the name Intel nor any other trademark owned or controlled by
77160915Srwatson * Intel shall be used in advertising or otherwise to promote the sale, use or
78160915Srwatson * other dealings in products derived from or relating to the Covered Code
791541Srgrimes * without prior written authorization from Intel.
80130831Srwatson *
81160915Srwatson * 4. Disclaimer and Export Compliance
82130831Srwatson *
831541Srgrimes * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
84130831Srwatson * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
85130831Srwatson * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
86130831Srwatson * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
87130831Srwatson * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
88130831Srwatson * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
89130831Srwatson * PARTICULAR PURPOSE.
90130831Srwatson *
911549Srgrimes * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
92160915Srwatson * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
931541Srgrimes * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
941541Srgrimes * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
95130831Srwatson * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
96130831Srwatson * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
97130831Srwatson * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
981541Srgrimes * LIMITED REMEDY.
991541Srgrimes *
1001549Srgrimes * 4.3. Licensee shall not export, either directly or indirectly, any of this
101160915Srwatson * software or system incorporating such software without first obtaining any
1021541Srgrimes * required license or other approval from the U. S. Department of Commerce or
1031541Srgrimes * any other agency or department of the United States Government.  In the
104130831Srwatson * event Licensee exports any such software from the United States or
105130831Srwatson * re-exports any such software from a foreign destination, Licensee shall
106130480Srwatson * ensure that the distribution and export/re-export of the software is in
107130831Srwatson * compliance with all laws, regulations, orders, or other restrictions of the
108130831Srwatson * U.S. Export Administration Regulations. Licensee agrees that neither it nor
1091541Srgrimes * any of its subsidiaries will export/re-export any technical data, process,
1101541Srgrimes * software, or service, directly or indirectly, to any country for which the
111130831Srwatson * United States government or any agency thereof requires an export license,
112160915Srwatson * other governmental approval, or letter of assurance, without first obtaining
113130831Srwatson * such license, approval or letter.
114130831Srwatson *
115130831Srwatson *****************************************************************************/
116130831Srwatson
117130831Srwatson
118130831Srwatson#ifndef __ASLMESSAGES_H
119130831Srwatson#define __ASLMESSAGES_H
1201541Srgrimes
1211541Srgrimes
1221541Srgrimes#define ASL_WARNING             0
1231549Srgrimes#define ASL_WARNING2            1
124160915Srwatson#define ASL_WARNING3            2
1251541Srgrimes#define ASL_ERROR               3
1261541Srgrimes#define ASL_REMARK              4
127130705Srwatson#define ASL_OPTIMIZATION        5
128130705Srwatson#define ASL_NUM_REPORT_LEVELS   6
1291541Srgrimes
130130705Srwatson
13112843Sbde/* Values for all compiler messages */
1321541Srgrimes
1331541Srgrimestypedef enum
1341541Srgrimes{
1351549Srgrimes    ASL_MSG_RESERVED = 0,
136169236Srwatson    ASL_MSG_ALPHANUMERIC_STRING,
1371541Srgrimes    ASL_MSG_AML_NOT_IMPLEMENTED,
1381541Srgrimes    ASL_MSG_ARG_COUNT_HI,
139175845Srwatson    ASL_MSG_ARG_COUNT_LO,
140175845Srwatson    ASL_MSG_ARG_INIT,
141175845Srwatson    ASL_MSG_BACKWARDS_OFFSET,
142175845Srwatson    ASL_MSG_BITS_TO_BYTES,
143175845Srwatson    ASL_MSG_BUFFER_LENGTH,
144175845Srwatson    ASL_MSG_BYTES_TO_BITS,
145170151Srwatson    ASL_MSG_CLOSE,
146170151Srwatson    ASL_MSG_COMPILER_INTERNAL,
147170151Srwatson    ASL_MSG_CONSTANT_EVALUATION,
148170151Srwatson    ASL_MSG_CONSTANT_FOLDED,
149169236Srwatson    ASL_MSG_CORE_EXCEPTION,
150169236Srwatson    ASL_MSG_DEBUG_FILE_OPEN,
151169236Srwatson    ASL_MSG_DEBUG_FILENAME,
152169236Srwatson    ASL_MSG_DEPENDENT_NESTING,
1531541Srgrimes    ASL_MSG_DMA_CHANNEL,
1541541Srgrimes    ASL_MSG_DMA_LIST,
1551541Srgrimes    ASL_MSG_DUPLICATE_CASE,
156169236Srwatson    ASL_MSG_DUPLICATE_ITEM,
157169236Srwatson    ASL_MSG_EARLY_EOF,
158169236Srwatson    ASL_MSG_ENCODING_LENGTH,
159169236Srwatson    ASL_MSG_EX_INTERRUPT_LIST,
160169236Srwatson    ASL_MSG_EX_INTERRUPT_LIST_MIN,
161169236Srwatson    ASL_MSG_EX_INTERRUPT_NUMBER,
162169236Srwatson    ASL_MSG_FIELD_ACCESS_WIDTH,
1631541Srgrimes    ASL_MSG_FIELD_UNIT_ACCESS_WIDTH,
164160915Srwatson    ASL_MSG_FIELD_UNIT_OFFSET,
165160915Srwatson    ASL_MSG_INCLUDE_FILE_OPEN,
166130831Srwatson    ASL_MSG_INPUT_FILE_OPEN,
167130831Srwatson    ASL_MSG_INTEGER_LENGTH,
168130831Srwatson    ASL_MSG_INTEGER_OPTIMIZATION,
169130831Srwatson    ASL_MSG_INTERRUPT_LIST,
170130831Srwatson    ASL_MSG_INTERRUPT_NUMBER,
171130831Srwatson    ASL_MSG_INVALID_CONSTANT_OP,
172130831Srwatson    ASL_MSG_INVALID_EISAID,
173130831Srwatson    ASL_MSG_INVALID_ESCAPE,
1741541Srgrimes    ASL_MSG_INVALID_OPERAND,
1751549Srgrimes    ASL_MSG_INVALID_PERFORMANCE,
176160915Srwatson    ASL_MSG_INVALID_PRIORITY,
1771541Srgrimes    ASL_MSG_INVALID_STRING,
17895552Stanimura    ASL_MSG_INVALID_TARGET,
179130831Srwatson    ASL_MSG_INVALID_TIME,
180130831Srwatson    ASL_MSG_INVALID_TYPE,
181122352Stanimura    ASL_MSG_INVALID_UUID,
182174647Sjeff    ASL_MSG_LIST_LENGTH_LONG,
183174647Sjeff    ASL_MSG_LIST_LENGTH_SHORT,
1841541Srgrimes    ASL_MSG_LISTING_FILE_OPEN,
1851541Srgrimes    ASL_MSG_LISTING_FILENAME,
18698998Salfred    ASL_MSG_LOCAL_INIT,
1871541Srgrimes    ASL_MSG_LONG_LINE,
188133741Sjmg    ASL_MSG_MEMORY_ALLOCATION,
189130831Srwatson    ASL_MSG_MISSING_ENDDEPENDENT,
19097658Stanimura    ASL_MSG_MISSING_STARTDEPENDENT,
19195883Salfred    ASL_MSG_MULTIPLE_TYPES,
19297658Stanimura    ASL_MSG_NAME_EXISTS,
193111119Simp    ASL_MSG_NAME_OPTIMIZATION,
19497658Stanimura    ASL_MSG_NESTED_COMMENT,
19555943Sjasone    ASL_MSG_NO_CASES,
196130831Srwatson    ASL_MSG_NO_RETVAL,
1971541Srgrimes    ASL_MSG_NO_WHILE,
1981541Srgrimes    ASL_MSG_NON_ASCII,
1991541Srgrimes    ASL_MSG_NOT_EXIST,
2001541Srgrimes    ASL_MSG_NOT_FOUND,
2011541Srgrimes    ASL_MSG_NOT_METHOD,
202160915Srwatson    ASL_MSG_NOT_PARAMETER,
203160915Srwatson    ASL_MSG_NOT_REACHABLE,
204160915Srwatson    ASL_MSG_OPEN,
205160915Srwatson    ASL_MSG_OUTPUT_FILE_OPEN,
206160915Srwatson    ASL_MSG_OUTPUT_FILENAME,
2071541Srgrimes    ASL_MSG_PACKAGE_LENGTH,
208160915Srwatson    ASL_MSG_READ,
209160915Srwatson    ASL_MSG_RECURSION,
210160915Srwatson    ASL_MSG_REGION_BUFFER_ACCESS,
211160915Srwatson    ASL_MSG_REGION_BYTE_ACCESS,
212160915Srwatson    ASL_MSG_RESERVED_ARG_COUNT_HI,
2131541Srgrimes    ASL_MSG_RESERVED_ARG_COUNT_LO,
214160915Srwatson    ASL_MSG_RESERVED_METHOD,
215160915Srwatson    ASL_MSG_RESERVED_OPERAND_TYPE,
216160915Srwatson    ASL_MSG_RESERVED_RETURN_VALUE,
217160915Srwatson    ASL_MSG_RESERVED_USE,
218160915Srwatson    ASL_MSG_RESERVED_WORD,
219160915Srwatson    ASL_MSG_RESOURCE_FIELD,
220160915Srwatson    ASL_MSG_RESOURCE_INDEX,
221160915Srwatson    ASL_MSG_RESOURCE_LIST,
222160915Srwatson    ASL_MSG_RESOURCE_SOURCE,
2231541Srgrimes    ASL_MSG_RETURN_TYPES,
2241541Srgrimes    ASL_MSG_SCOPE_FWD_REF,
2251541Srgrimes    ASL_MSG_SCOPE_TYPE,
2261541Srgrimes    ASL_MSG_SEEK,
227160915Srwatson    ASL_MSG_SINGLE_NAME_OPTIMIZATION,
228160915Srwatson    ASL_MSG_SOME_NO_RETVAL,
2291541Srgrimes    ASL_MSG_SWITCH_TYPE,
2301549Srgrimes    ASL_MSG_SYNC_LEVEL,
231160915Srwatson    ASL_MSG_SYNTAX,
2321541Srgrimes    ASL_MSG_TABLE_SIGNATURE,
23383366Sjulian    ASL_MSG_TOO_MANY_TEMPS,
2341541Srgrimes    ASL_MSG_UNKNOWN_RESERVED_NAME,
235131006Srwatson    ASL_MSG_UNREACHABLE_CODE,
236131006Srwatson    ASL_MSG_UNSUPPORTED,
237131006Srwatson    ASL_MSG_VENDOR_LIST,
2381541Srgrimes    ASL_MSG_WRITE,
239131006Srwatson    ASL_MSG_MULTIPLE_DEFAULT,
2401541Srgrimes    ASL_MSG_TIMEOUT,
2411541Srgrimes    ASL_MSG_RESULT_NOT_USED,
2421541Srgrimes    ASL_MSG_NOT_REFERENCED,
2431541Srgrimes    ASL_MSG_NON_ZERO,
2441541Srgrimes    ASL_MSG_STRING_LENGTH,
2451541Srgrimes    ASL_MSG_SERIALIZED,
2461541Srgrimes    ASL_MSG_COMPILER_RESERVED,
247131006Srwatson    ASL_MSG_NAMED_OBJECT_IN_WHILE,
248130653Srwatson    ASL_MSG_LOCAL_OUTSIDE_METHOD,
2491541Srgrimes    ASL_MSG_ALIGNMENT,
2501541Srgrimes    ASL_MSG_ISA_ADDRESS,
251131006Srwatson    ASL_MSG_INVALID_MIN_MAX,
2521541Srgrimes    ASL_MSG_INVALID_LENGTH,
253131006Srwatson    ASL_MSG_INVALID_LENGTH_FIXED,
254131006Srwatson    ASL_MSG_INVALID_GRANULARITY,
2551541Srgrimes    ASL_MSG_INVALID_GRAN_FIXED,
2561541Srgrimes    ASL_MSG_INVALID_ACCESS_SIZE,
2571541Srgrimes    ASL_MSG_INVALID_ADDR_FLAGS,
258101996Sdg    ASL_MSG_NULL_DESCRIPTOR,
259101996Sdg    ASL_MSG_UPPER_CASE,
260101996Sdg    ASL_MSG_HID_LENGTH,
261101996Sdg    ASL_MSG_NULL_STRING,
262162086Sjhb    ASL_MSG_LEADING_ASTERISK,
263101996Sdg
264162086Sjhb    ASL_MSG_INVALID_FIELD_NAME,
265101996Sdg    ASL_MSG_INTEGER_SIZE,
266101996Sdg    ASL_MSG_INVALID_HEX_INTEGER,
267162086Sjhb    ASL_MSG_BUFFER_ELEMENT,
268101996Sdg    ASL_MSG_RESERVED_VALUE,
269162086Sjhb    ASL_MSG_FLAG_VALUE,
270101996Sdg    ASL_MSG_ZERO_VALUE,
271101996Sdg    ASL_MSG_UNKNOWN_TABLE,
272101996Sdg    ASL_MSG_UNKNOWN_SUBTABLE,
273101996Sdg    ASL_MSG_OEM_TABLE
2741541Srgrimes
275160915Srwatson} ASL_MESSAGE_IDS;
276160915Srwatson
2771541Srgrimes
2781549Srgrimes#ifdef ASL_EXCEPTIONS
279160915Srwatson
280160915Srwatson/* Actual message strings for each compiler message */
2811541Srgrimes
282125454Sjhbchar                        *AslMessages [] = {
28352070Sgreen/*    The zeroth message is reserved */    "",
284131006Srwatson/*    ASL_MSG_ALPHANUMERIC_STRING */        "String must be entirely alphanumeric",
285131006Srwatson/*    ASL_MSG_AML_NOT_IMPLEMENTED */        "Opcode is not implemented in compiler AML code generator",
28652070Sgreen/*    ASL_MSG_ARG_COUNT_HI */               "Too many arguments",
287183663Srwatson/*    ASL_MSG_ARG_COUNT_LO */               "Too few arguments",
288183663Srwatson/*    ASL_MSG_ARG_INIT */                   "Method argument is not initialized",
289183663Srwatson/*    ASL_MSG_BACKWARDS_OFFSET */           "Invalid backwards offset",
290183663Srwatson/*    ASL_MSG_BITS_TO_BYTES */              "Field offset is in bits, but a byte offset is required",
291183663Srwatson/*    ASL_MSG_BUFFER_LENGTH */              "Effective AML buffer length is zero",
29252070Sgreen/*    ASL_MSG_BYTES_TO_BITS */              "Field offset is in bytes, but a bit offset is required",
293101996Sdg/*    ASL_MSG_CLOSE */                      "Could not close file",
2941541Srgrimes/*    ASL_MSG_COMPILER_INTERNAL */          "Internal compiler error",
295125454Sjhb/*    ASL_MSG_CONSTANT_EVALUATION */        "Could not evaluate constant expression",
296125454Sjhb/*    ASL_MSG_CONSTANT_FOLDED */            "Constant expression evaluated and reduced",
297125454Sjhb/*    ASL_MSG_CORE_EXCEPTION */             "From ACPI CA Subsystem",
298125454Sjhb/*    ASL_MSG_DEBUG_FILE_OPEN */            "Could not open debug file",
299125454Sjhb/*    ASL_MSG_DEBUG_FILENAME */             "Could not create debug filename",
300125454Sjhb/*    ASL_MSG_DEPENDENT_NESTING */          "Dependent function macros cannot be nested",\
30165495Struckman/*    ASL_MSG_DMA_CHANNEL */                "Invalid DMA channel (must be 0-7)",
302125454Sjhb/*    ASL_MSG_DMA_LIST */                   "Too many DMA channels (8 max)",
30352070Sgreen/*    ASL_MSG_DUPLICATE_CASE */             "Case value already specified",
30413267Swollman/*    ASL_MSG_DUPLICATE_ITEM */             "Duplicate value in list",
3051541Srgrimes/*    ASL_MSG_EARLY_EOF */                  "Premature end-of-file reached",
3061541Srgrimes/*    ASL_MSG_ENCODING_LENGTH */            "Package length too long to encode",
3071541Srgrimes/*    ASL_MSG_EX_INTERRUPT_LIST */          "Too many interrupts (255 max)",
3081541Srgrimes/*    ASL_MSG_EX_INTERRUPT_LIST_MIN */      "Too few interrupts (1 minimum required)",
3091541Srgrimes/*    ASL_MSG_EX_INTERRUPT_NUMBER */        "Invalid interrupt number (must be 32 bits)",
310131006Srwatson/*    ASL_MSG_FIELD_ACCESS_WIDTH */         "Access width is greater than region size",
311160915Srwatson/*    ASL_MSG_FIELD_UNIT_ACCESS_WIDTH */    "Access width of Field Unit extends beyond region limit",
312160915Srwatson/*    ASL_MSG_FIELD_UNIT_OFFSET */          "Field Unit extends beyond region limit",
313131006Srwatson/*    ASL_MSG_INCLUDE_FILE_OPEN */          "Could not open include file",
314131006Srwatson/*    ASL_MSG_INPUT_FILE_OPEN */            "Could not open input file",
315131006Srwatson/*    ASL_MSG_INTEGER_LENGTH */             "64-bit integer in 32-bit table, truncating",
316131006Srwatson/*    ASL_MSG_INTEGER_OPTIMIZATION */       "Integer optimized to single-byte AML opcode",
317131006Srwatson/*    ASL_MSG_INTERRUPT_LIST */             "Too many interrupts (16 max)",
318131006Srwatson/*    ASL_MSG_INTERRUPT_NUMBER */           "Invalid interrupt number (must be 0-15)",
319131006Srwatson/*    ASL_MSG_INVALID_CONSTANT_OP */        "Invalid operator in constant expression (not type 3/4/5)",
320131006Srwatson/*    ASL_MSG_INVALID_EISAID */             "EISAID string must be of the form \"UUUXXXX\" (3 uppercase, 4 hex digits)",
321131006Srwatson/*    ASL_MSG_INVALID_ESCAPE */             "Invalid or unknown escape sequence",
3221541Srgrimes/*    ASL_MSG_INVALID_OPERAND */            "Invalid operand",
3231541Srgrimes/*    ASL_MSG_INVALID_PERFORMANCE */        "Invalid performance/robustness value",
3241541Srgrimes/*    ASL_MSG_INVALID_PRIORITY */           "Invalid priority value",
325175968Srwatson/*    ASL_MSG_INVALID_STRING */             "Invalid Hex/Octal Escape - Non-ASCII or NULL",
326160915Srwatson/*    ASL_MSG_INVALID_TARGET */             "Target operand not allowed in constant expression",
327160875Srwatson/*    ASL_MSG_INVALID_TIME */               "Time parameter too long (255 max)",
328160875Srwatson/*    ASL_MSG_INVALID_TYPE */               "Invalid type",
329160875Srwatson/*    ASL_MSG_INVALID_UUID */               "UUID string must be of the form \"aabbccdd-eeff-gghh-iijj-kkllmmnnoopp\"",
330160875Srwatson/*    ASL_MSG_LIST_LENGTH_LONG */           "Initializer list longer than declared package length",
331160875Srwatson/*    ASL_MSG_LIST_LENGTH_SHORT */          "Initializer list shorter than declared package length",
332160875Srwatson/*    ASL_MSG_LISTING_FILE_OPEN */          "Could not open listing file",
333160875Srwatson/*    ASL_MSG_LISTING_FILENAME */           "Could not create listing filename",
334160875Srwatson/*    ASL_MSG_LOCAL_INIT */                 "Method local variable is not initialized",
3351549Srgrimes/*    ASL_MSG_LONG_LINE */                  "Splitting long input line",
336160915Srwatson/*    ASL_MSG_MEMORY_ALLOCATION */          "Memory allocation failure",
3371541Srgrimes/*    ASL_MSG_MISSING_ENDDEPENDENT */       "Missing EndDependentFn() macro in dependent resource list",
3381541Srgrimes/*    ASL_MSG_MISSING_STARTDEPENDENT */     "Missing StartDependentFn() macro in dependent resource list",
339130831Srwatson/*    ASL_MSG_MULTIPLE_TYPES */             "Multiple types",
340130831Srwatson/*    ASL_MSG_NAME_EXISTS */                "Name already exists in scope",
341160875Srwatson/*    ASL_MSG_NAME_OPTIMIZATION */          "NamePath optimized",
3421541Srgrimes/*    ASL_MSG_NESTED_COMMENT */             "Nested comment found",
3431541Srgrimes/*    ASL_MSG_NO_CASES */                   "No Case statements under Switch",
344130831Srwatson/*    ASL_MSG_NO_RETVAL */                  "Called method returns no value",
345160915Srwatson/*    ASL_MSG_NO_WHILE */                   "No enclosing While statement",
346130831Srwatson/*    ASL_MSG_NON_ASCII */                  "Invalid characters found in file",
347130831Srwatson/*    ASL_MSG_NOT_EXIST */                  "Object does not exist",
348130831Srwatson/*    ASL_MSG_NOT_FOUND */                  "Object not found or not accessible from scope",
349130831Srwatson/*    ASL_MSG_NOT_METHOD */                 "Not a control method, cannot invoke",
350130831Srwatson/*    ASL_MSG_NOT_PARAMETER */              "Not a parameter, used as local only",
351130831Srwatson/*    ASL_MSG_NOT_REACHABLE */              "Object is not accessible from this scope",
352160875Srwatson/*    ASL_MSG_OPEN */                       "Could not open file",
353160875Srwatson/*    ASL_MSG_OUTPUT_FILE_OPEN */           "Could not open output AML file",
354160915Srwatson/*    ASL_MSG_OUTPUT_FILENAME */            "Could not create output filename",
355160875Srwatson/*    ASL_MSG_PACKAGE_LENGTH */             "Effective AML package length is zero",
356160875Srwatson/*    ASL_MSG_READ */                       "Could not read file",
357160875Srwatson/*    ASL_MSG_RECURSION */                  "Recursive method call",
358160875Srwatson/*    ASL_MSG_REGION_BUFFER_ACCESS */       "Host Operation Region requires BufferAcc access",
359160875Srwatson/*    ASL_MSG_REGION_BYTE_ACCESS */         "Host Operation Region requires ByteAcc access",
3601541Srgrimes/*    ASL_MSG_RESERVED_ARG_COUNT_HI */      "Reserved method has too many arguments",
361160915Srwatson/*    ASL_MSG_RESERVED_ARG_COUNT_LO */      "Reserved method has too few arguments",
3621541Srgrimes/*    ASL_MSG_RESERVED_METHOD */            "Reserved name must be a control method",
363160915Srwatson/*    ASL_MSG_RESERVED_OPERAND_TYPE */      "Invalid object type for reserved name",
364160915Srwatson/*    ASL_MSG_RESERVED_RETURN_VALUE */      "Reserved method must return a value",
365160915Srwatson/*    ASL_MSG_RESERVED_USE */               "Invalid use of reserved name",
366160915Srwatson/*    ASL_MSG_RESERVED_WORD */              "Use of reserved name",
367160915Srwatson/*    ASL_MSG_RESOURCE_FIELD */             "Resource field name cannot be used as a target",
368160915Srwatson/*    ASL_MSG_RESOURCE_INDEX */             "Missing ResourceSourceIndex (required)",
369160915Srwatson/*    ASL_MSG_RESOURCE_LIST */              "Too many resource items (internal error)",
370160915Srwatson/*    ASL_MSG_RESOURCE_SOURCE */            "Missing ResourceSource string (required)",
371160915Srwatson/*    ASL_MSG_RETURN_TYPES */               "Not all control paths return a value",
372160915Srwatson/*    ASL_MSG_SCOPE_FWD_REF */              "Forward references from Scope operator not allowed",
373160915Srwatson/*    ASL_MSG_SCOPE_TYPE */                 "Existing object has invalid type for Scope operator",
374160915Srwatson/*    ASL_MSG_SEEK */                       "Could not seek file",
3751541Srgrimes/*    ASL_MSG_SINGLE_NAME_OPTIMIZATION */   "NamePath optimized to NameSeg (uses run-time search path)",
376160915Srwatson/*    ASL_MSG_SOME_NO_RETVAL */             "Called method may not always return a value",
377160915Srwatson/*    ASL_MSG_SWITCH_TYPE */                "Switch expression is not a static Integer/Buffer/String data type, defaulting to Integer",
378160915Srwatson/*    ASL_MSG_SYNC_LEVEL */                 "SyncLevel must be in the range 0-15",
379160915Srwatson/*    ASL_MSG_SYNTAX */                     "",
380160915Srwatson/*    ASL_MSG_TABLE_SIGNATURE */            "Invalid Table Signature",
3811541Srgrimes/*    ASL_MSG_TOO_MANY_TEMPS */             "Method requires too many temporary variables (_T_x)",
382121628Ssam/*    ASL_MSG_UNKNOWN_RESERVED_NAME */      "Unknown reserved name",
383121628Ssam/*    ASL_MSG_UNREACHABLE_CODE */           "Statement is unreachable",
384121628Ssam/*    ASL_MSG_UNSUPPORTED */                "Unsupported feature",
385121628Ssam/*    ASL_MSG_VENDOR_LIST */                "Too many vendor data bytes (7 max)",
386121628Ssam/*    ASL_MSG_WRITE */                      "Could not write file",
387121628Ssam/*    ASL_MSG_MULTIPLE_DEFAULT */           "More than one Default statement within Switch construct",
388130831Srwatson/*    ASL_MSG_TIMEOUT */                    "Result is not used, possible operator timeout will be missed",
389130831Srwatson/*    ASL_MSG_RESULT_NOT_USED */            "Result is not used, operator has no effect",
390121628Ssam/*    ASL_MSG_NOT_REFERENCED */             "Namespace object is not referenced",
391121628Ssam/*    ASL_MSG_NON_ZERO */                   "Operand evaluates to zero",
392121628Ssam/*    ASL_MSG_STRING_LENGTH */              "String literal too long",
393121628Ssam/*    ASL_MSG_SERIALIZED */                 "Control Method marked Serialized",
394121628Ssam/*    ASL_MSG_COMPILER_RESERVED */          "Use of compiler reserved name",
395121628Ssam/*    ASL_MSG_NAMED_OBJECT_IN_WHILE */      "Creating a named object in a While loop",
396121628Ssam/*    ASL_MSG_LOCAL_OUTSIDE_METHOD */       "Local or Arg used outside a control method",
397121628Ssam/*    ASL_MSG_ALIGNMENT */                  "Must be a multiple of alignment/granularity value",
398121628Ssam/*    ASL_MSG_ISA_ADDRESS */                "Maximum 10-bit ISA address (0x3FF)",
399121628Ssam/*    ASL_MSG_INVALID_MIN_MAX */            "Address Min is greater than Address Max",
400121628Ssam/*    ASL_MSG_INVALID_LENGTH */             "Length is larger than Min/Max window",
401121628Ssam/*    ASL_MSG_INVALID_LENGTH_FIXED */       "Length is not equal to fixed Min/Max window",
402121628Ssam/*    ASL_MSG_INVALID_GRANULARITY */        "Granularity must be zero or a power of two minus one",
403121628Ssam/*    ASL_MSG_INVALID_GRAN_FIXED */         "Granularity must be zero for fixed Min/Max",
404121628Ssam/*    ASL_MSG_INVALID_ACCESS_SIZE */        "Invalid AccessSize (Maximum is 4 - QWord access)",
405121628Ssam/*    ASL_MSG_INVALID_ADDR_FLAGS */         "Invalid combination of Length and Min/Max fixed flags",
406121628Ssam/*    ASL_MSG_NULL_DESCRIPTOR */            "Min/Max/Length/Gran are all zero, but no resource tag",
407121628Ssam/*    ASL_MSG_UPPER_CASE */                 "Non-hex letters must be upper case",
408121628Ssam/*    ASL_MSG_HID_LENGTH */                 "_HID string must be exactly 7 or 8 characters",
409130831Srwatson/*    ASL_MSG_NULL_STRING */                "Invalid zero-length (null) string",
410130831Srwatson/*    ASL_MSG_LEADING_ASTERISK */           "Invalid leading asterisk",
411121628Ssam
412121628Ssam/* These messages are used by the data table compiler only */
413121628Ssam
414121628Ssam/*    ASL_MSG_INVALID_FIELD_NAME */         "Invalid Field Name",
415121628Ssam/*    ASL_MSG_INTEGER_SIZE */               "Integer too large for target",
416121628Ssam/*    ASL_MSG_INVALID_HEX_INTEGER */        "Invalid hex integer constant",
417121628Ssam/*    ASL_MSG_BUFFER_ELEMENT */             "Invalid element in buffer initializer list",
418121628Ssam/*    ASL_MSG_RESERVED_VALUE */             "Reserved field must be zero",
419121628Ssam/*    ASL_MSG_FLAG_VALUE */                 "Flag value is too large",
420121628Ssam/*    ASL_MSG_ZERO_VALUE */                 "Value must be non-zero",
421121628Ssam/*    ASL_MSG_UNKNOWN_TABLE */              "Unknown ACPI table signature",
422121628Ssam/*    ASL_MSG_UNKNOWN_SUBTABLE */           "Unknown subtable type",
423121628Ssam/*    ASL_MSG_OEM_TABLE */                  "OEM table - unknown contents"
424121628Ssam
425121628Ssam};
426121628Ssam
427121628Ssam
428121628Ssamchar                    *AslErrorLevel [ASL_NUM_REPORT_LEVELS] = {
429121628Ssam    "Warning ",
430121628Ssam    "Warning ",
431121628Ssam    "Warning ",
432121628Ssam    "Error   ",
433130831Srwatson    "Remark  ",
434121628Ssam    "Optimize"
435121628Ssam};
436121628Ssam
437121628Ssam#define ASL_ERROR_LEVEL_LENGTH          8       /* Length of strings above */
438121628Ssam
439121628Ssam#endif  /* ASL_EXCEPTIONS */
440121628Ssam
4411541Srgrimes#endif  /* __ASLMESSAGES_H */
442160915Srwatson