1 2/****************************************************************************** 3 * 4 * Module Name: aslmessages.h - Compiler error/warning messages 5 * 6 *****************************************************************************/ 7 8/* 9 * Copyright (C) 2000 - 2012, Intel Corp. 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without 13 * modification, are permitted provided that the following conditions 14 * are met: 15 * 1. Redistributions of source code must retain the above copyright 16 * notice, this list of conditions, and the following disclaimer, 17 * without modification. 18 * 2. Redistributions in binary form must reproduce at minimum a disclaimer 19 * substantially similar to the "NO WARRANTY" disclaimer below 20 * ("Disclaimer") and any redistribution must be conditioned upon 21 * including a substantially similar Disclaimer requirement for further 22 * binary redistribution. 23 * 3. Neither the names of the above-listed copyright holders nor the names 24 * of any contributors may be used to endorse or promote products derived 25 * from this software without specific prior written permission. 26 * 27 * Alternatively, this software may be distributed under the terms of the 28 * GNU General Public License ("GPL") version 2 as published by the Free 29 * Software Foundation. 30 * 31 * NO WARRANTY 32 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 33 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 34 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 35 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 36 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 37 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 38 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 40 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 41 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 42 * POSSIBILITY OF SUCH DAMAGES. 43 */ 44 45 46#ifndef __ASLMESSAGES_H 47#define __ASLMESSAGES_H 48 49 50#define ASL_WARNING 0 51#define ASL_WARNING2 1 52#define ASL_WARNING3 2 53#define ASL_ERROR 3 54#define ASL_REMARK 4 55#define ASL_OPTIMIZATION 5 56#define ASL_NUM_REPORT_LEVELS 6 57 58 59/* Values for all compiler messages */ 60 61typedef enum 62{ 63 ASL_MSG_RESERVED = 0, 64 65 ASL_MSG_ALIGNMENT, 66 ASL_MSG_ALPHANUMERIC_STRING, 67 ASL_MSG_AML_NOT_IMPLEMENTED, 68 ASL_MSG_ARG_COUNT_HI, 69 ASL_MSG_ARG_COUNT_LO, 70 ASL_MSG_ARG_INIT, 71 ASL_MSG_BACKWARDS_OFFSET, 72 ASL_MSG_BUFFER_LENGTH, 73 ASL_MSG_CLOSE, 74 ASL_MSG_COMPILER_INTERNAL, 75 ASL_MSG_COMPILER_RESERVED, 76 ASL_MSG_CONNECTION_MISSING, 77 ASL_MSG_CONNECTION_INVALID, 78 ASL_MSG_CONSTANT_EVALUATION, 79 ASL_MSG_CONSTANT_FOLDED, 80 ASL_MSG_CORE_EXCEPTION, 81 ASL_MSG_DEBUG_FILE_OPEN, 82 ASL_MSG_DEBUG_FILENAME, 83 ASL_MSG_DEPENDENT_NESTING, 84 ASL_MSG_DMA_CHANNEL, 85 ASL_MSG_DMA_LIST, 86 ASL_MSG_DUPLICATE_CASE, 87 ASL_MSG_DUPLICATE_ITEM, 88 ASL_MSG_EARLY_EOF, 89 ASL_MSG_ENCODING_LENGTH, 90 ASL_MSG_EX_INTERRUPT_LIST, 91 ASL_MSG_EX_INTERRUPT_LIST_MIN, 92 ASL_MSG_EX_INTERRUPT_NUMBER, 93 ASL_MSG_FIELD_ACCESS_WIDTH, 94 ASL_MSG_FIELD_UNIT_ACCESS_WIDTH, 95 ASL_MSG_FIELD_UNIT_OFFSET, 96 ASL_MSG_GPE_NAME_CONFLICT, 97 ASL_MSG_HID_LENGTH, 98 ASL_MSG_HID_PREFIX, 99 ASL_MSG_HID_SUFFIX, 100 ASL_MSG_INCLUDE_FILE_OPEN, 101 ASL_MSG_INPUT_FILE_OPEN, 102 ASL_MSG_INTEGER_LENGTH, 103 ASL_MSG_INTEGER_OPTIMIZATION, 104 ASL_MSG_INTERRUPT_LIST, 105 ASL_MSG_INTERRUPT_NUMBER, 106 ASL_MSG_INVALID_ACCESS_SIZE, 107 ASL_MSG_INVALID_ADDR_FLAGS, 108 ASL_MSG_INVALID_CONSTANT_OP, 109 ASL_MSG_INVALID_EISAID, 110 ASL_MSG_INVALID_ESCAPE, 111 ASL_MSG_INVALID_GRAN_FIXED, 112 ASL_MSG_INVALID_GRANULARITY, 113 ASL_MSG_INVALID_LENGTH, 114 ASL_MSG_INVALID_LENGTH_FIXED, 115 ASL_MSG_INVALID_MIN_MAX, 116 ASL_MSG_INVALID_OPERAND, 117 ASL_MSG_INVALID_PERFORMANCE, 118 ASL_MSG_INVALID_PRIORITY, 119 ASL_MSG_INVALID_STRING, 120 ASL_MSG_INVALID_TARGET, 121 ASL_MSG_INVALID_TIME, 122 ASL_MSG_INVALID_TYPE, 123 ASL_MSG_INVALID_UUID, 124 ASL_MSG_ISA_ADDRESS, 125 ASL_MSG_LEADING_ASTERISK, 126 ASL_MSG_LIST_LENGTH_LONG, 127 ASL_MSG_LIST_LENGTH_SHORT, 128 ASL_MSG_LISTING_FILE_OPEN, 129 ASL_MSG_LISTING_FILENAME, 130 ASL_MSG_LOCAL_INIT, 131 ASL_MSG_LOCAL_OUTSIDE_METHOD, 132 ASL_MSG_LONG_LINE, 133 ASL_MSG_MEMORY_ALLOCATION, 134 ASL_MSG_MISSING_ENDDEPENDENT, 135 ASL_MSG_MISSING_STARTDEPENDENT, 136 ASL_MSG_MULTIPLE_DEFAULT, 137 ASL_MSG_MULTIPLE_TYPES, 138 ASL_MSG_NAME_EXISTS, 139 ASL_MSG_NAME_OPTIMIZATION, 140 ASL_MSG_NAMED_OBJECT_IN_WHILE, 141 ASL_MSG_NESTED_COMMENT, 142 ASL_MSG_NO_CASES, 143 ASL_MSG_NO_REGION, 144 ASL_MSG_NO_RETVAL, 145 ASL_MSG_NO_WHILE, 146 ASL_MSG_NON_ASCII, 147 ASL_MSG_NON_ZERO, 148 ASL_MSG_NOT_EXIST, 149 ASL_MSG_NOT_FOUND, 150 ASL_MSG_NOT_METHOD, 151 ASL_MSG_NOT_PARAMETER, 152 ASL_MSG_NOT_REACHABLE, 153 ASL_MSG_NOT_REFERENCED, 154 ASL_MSG_NULL_DESCRIPTOR, 155 ASL_MSG_NULL_STRING, 156 ASL_MSG_OPEN, 157 ASL_MSG_OUTPUT_FILE_OPEN, 158 ASL_MSG_OUTPUT_FILENAME, 159 ASL_MSG_PACKAGE_LENGTH, 160 ASL_MSG_PREPROCESSOR_FILENAME, 161 ASL_MSG_READ, 162 ASL_MSG_RECURSION, 163 ASL_MSG_REGION_BUFFER_ACCESS, 164 ASL_MSG_REGION_BYTE_ACCESS, 165 ASL_MSG_RESERVED_ARG_COUNT_HI, 166 ASL_MSG_RESERVED_ARG_COUNT_LO, 167 ASL_MSG_RESERVED_METHOD, 168 ASL_MSG_RESERVED_NO_RETURN_VAL, 169 ASL_MSG_RESERVED_OPERAND_TYPE, 170 ASL_MSG_RESERVED_RETURN_VALUE, 171 ASL_MSG_RESERVED_USE, 172 ASL_MSG_RESERVED_WORD, 173 ASL_MSG_RESOURCE_FIELD, 174 ASL_MSG_RESOURCE_INDEX, 175 ASL_MSG_RESOURCE_LIST, 176 ASL_MSG_RESOURCE_SOURCE, 177 ASL_MSG_RESULT_NOT_USED, 178 ASL_MSG_RETURN_TYPES, 179 ASL_MSG_SCOPE_FWD_REF, 180 ASL_MSG_SCOPE_TYPE, 181 ASL_MSG_SEEK, 182 ASL_MSG_SERIALIZED, 183 ASL_MSG_SINGLE_NAME_OPTIMIZATION, 184 ASL_MSG_SOME_NO_RETVAL, 185 ASL_MSG_STRING_LENGTH, 186 ASL_MSG_SWITCH_TYPE, 187 ASL_MSG_SYNC_LEVEL, 188 ASL_MSG_SYNTAX, 189 ASL_MSG_TABLE_SIGNATURE, 190 ASL_MSG_TAG_LARGER, 191 ASL_MSG_TAG_SMALLER, 192 ASL_MSG_TIMEOUT, 193 ASL_MSG_TOO_MANY_TEMPS, 194 ASL_MSG_UNKNOWN_RESERVED_NAME, 195 ASL_MSG_UNREACHABLE_CODE, 196 ASL_MSG_UNSUPPORTED, 197 ASL_MSG_UPPER_CASE, 198 ASL_MSG_VENDOR_LIST, 199 ASL_MSG_WRITE, 200 201 /* These messages are used by the Preprocessor only */ 202 203 ASL_MSG_DIRECTIVE_SYNTAX, 204 ASL_MSG_ENDIF_MISMATCH, 205 ASL_MSG_ERROR_DIRECTIVE, 206 ASL_MSG_EXISTING_NAME, 207 ASL_MSG_INVALID_INVOCATION, 208 ASL_MSG_MACRO_SYNTAX, 209 ASL_MSG_TOO_MANY_ARGUMENTS, 210 ASL_MSG_UNKNOWN_DIRECTIVE, 211 ASL_MSG_UNKNOWN_PRAGMA, 212 213 214 /* These messages are used by the data table compiler only */ 215 216 ASL_MSG_BUFFER_ELEMENT, 217 ASL_MSG_DIVIDE_BY_ZERO, 218 ASL_MSG_FLAG_VALUE, 219 ASL_MSG_INTEGER_SIZE, 220 ASL_MSG_INVALID_EXPRESSION, 221 ASL_MSG_INVALID_FIELD_NAME, 222 ASL_MSG_INVALID_HEX_INTEGER, 223 ASL_MSG_OEM_TABLE, 224 ASL_MSG_RESERVED_VALUE, 225 ASL_MSG_UNKNOWN_LABEL, 226 ASL_MSG_UNKNOWN_SUBTABLE, 227 ASL_MSG_UNKNOWN_TABLE, 228 ASL_MSG_ZERO_VALUE 229 230} ASL_MESSAGE_IDS; 231 232 233#ifdef ASL_EXCEPTIONS 234 235/* Actual message strings for each compiler message */ 236 237char *AslMessages [] = { 238/* The zeroth message is reserved */ "", 239/* ASL_MSG_ALIGNMENT */ "Must be a multiple of alignment/granularity value", 240/* ASL_MSG_ALPHANUMERIC_STRING */ "String must be entirely alphanumeric", 241/* ASL_MSG_AML_NOT_IMPLEMENTED */ "Opcode is not implemented in compiler AML code generator", 242/* ASL_MSG_ARG_COUNT_HI */ "Too many arguments", 243/* ASL_MSG_ARG_COUNT_LO */ "Too few arguments", 244/* ASL_MSG_ARG_INIT */ "Method argument is not initialized", 245/* ASL_MSG_BACKWARDS_OFFSET */ "Invalid backwards offset", 246/* ASL_MSG_BUFFER_LENGTH */ "Effective AML buffer length is zero", 247/* ASL_MSG_CLOSE */ "Could not close file", 248/* ASL_MSG_COMPILER_INTERNAL */ "Internal compiler error", 249/* ASL_MSG_COMPILER_RESERVED */ "Use of compiler reserved name", 250/* ASL_MSG_CONNECTION_MISSING */ "A Connection operator is required for this field SpaceId", 251/* ASL_MSG_CONNECTION_INVALID */ "Invalid OpRegion SpaceId for use of Connection operator", 252/* ASL_MSG_CONSTANT_EVALUATION */ "Could not evaluate constant expression", 253/* ASL_MSG_CONSTANT_FOLDED */ "Constant expression evaluated and reduced", 254/* ASL_MSG_CORE_EXCEPTION */ "From ACPI CA Subsystem", 255/* ASL_MSG_DEBUG_FILE_OPEN */ "Could not open debug file", 256/* ASL_MSG_DEBUG_FILENAME */ "Could not create debug filename", 257/* ASL_MSG_DEPENDENT_NESTING */ "Dependent function macros cannot be nested",\ 258/* ASL_MSG_DMA_CHANNEL */ "Invalid DMA channel (must be 0-7)", 259/* ASL_MSG_DMA_LIST */ "Too many DMA channels (8 max)", 260/* ASL_MSG_DUPLICATE_CASE */ "Case value already specified", 261/* ASL_MSG_DUPLICATE_ITEM */ "Duplicate value in list", 262/* ASL_MSG_EARLY_EOF */ "Premature end-of-file reached", 263/* ASL_MSG_ENCODING_LENGTH */ "Package length too long to encode", 264/* ASL_MSG_EX_INTERRUPT_LIST */ "Too many interrupts (255 max)", 265/* ASL_MSG_EX_INTERRUPT_LIST_MIN */ "Too few interrupts (1 minimum required)", 266/* ASL_MSG_EX_INTERRUPT_NUMBER */ "Invalid interrupt number (must be 32 bits)", 267/* ASL_MSG_FIELD_ACCESS_WIDTH */ "Access width is greater than region size", 268/* ASL_MSG_FIELD_UNIT_ACCESS_WIDTH */ "Access width of Field Unit extends beyond region limit", 269/* ASL_MSG_FIELD_UNIT_OFFSET */ "Field Unit extends beyond region limit", 270/* ASL_MSG_GPE_NAME_CONFLICT */ "Name conflicts with a previous GPE method", 271/* ASL_MSG_HID_LENGTH */ "_HID string must be exactly 7 or 8 characters", 272/* ASL_MSG_HID_PREFIX */ "_HID prefix must be all uppercase or decimal digits", 273/* ASL_MSG_HID_SUFFIX */ "_HID suffix must be all hex digits", 274/* ASL_MSG_INCLUDE_FILE_OPEN */ "Could not open include file", 275/* ASL_MSG_INPUT_FILE_OPEN */ "Could not open input file", 276/* ASL_MSG_INTEGER_LENGTH */ "64-bit integer in 32-bit table, truncating", 277/* ASL_MSG_INTEGER_OPTIMIZATION */ "Integer optimized to single-byte AML opcode", 278/* ASL_MSG_INTERRUPT_LIST */ "Too many interrupts (16 max)", 279/* ASL_MSG_INTERRUPT_NUMBER */ "Invalid interrupt number (must be 0-15)", 280/* ASL_MSG_INVALID_ACCESS_SIZE */ "Invalid AccessSize (Maximum is 4 - QWord access)", 281/* ASL_MSG_INVALID_ADDR_FLAGS */ "Invalid combination of Length and Min/Max fixed flags", 282/* ASL_MSG_INVALID_CONSTANT_OP */ "Invalid operator in constant expression (not type 3/4/5)", 283/* ASL_MSG_INVALID_EISAID */ "EISAID string must be of the form \"UUUXXXX\" (3 uppercase, 4 hex digits)", 284/* ASL_MSG_INVALID_ESCAPE */ "Invalid or unknown escape sequence", 285/* ASL_MSG_INVALID_GRAN_FIXED */ "Granularity must be zero for fixed Min/Max", 286/* ASL_MSG_INVALID_GRANULARITY */ "Granularity must be zero or a power of two minus one", 287/* ASL_MSG_INVALID_LENGTH */ "Length is larger than Min/Max window", 288/* ASL_MSG_INVALID_LENGTH_FIXED */ "Length is not equal to fixed Min/Max window", 289/* ASL_MSG_INVALID_MIN_MAX */ "Address Min is greater than Address Max", 290/* ASL_MSG_INVALID_OPERAND */ "Invalid operand", 291/* ASL_MSG_INVALID_PERFORMANCE */ "Invalid performance/robustness value", 292/* ASL_MSG_INVALID_PRIORITY */ "Invalid priority value", 293/* ASL_MSG_INVALID_STRING */ "Invalid Hex/Octal Escape - Non-ASCII or NULL", 294/* ASL_MSG_INVALID_TARGET */ "Target operand not allowed in constant expression", 295/* ASL_MSG_INVALID_TIME */ "Time parameter too long (255 max)", 296/* ASL_MSG_INVALID_TYPE */ "Invalid type", 297/* ASL_MSG_INVALID_UUID */ "UUID string must be of the form \"aabbccdd-eeff-gghh-iijj-kkllmmnnoopp\"", 298/* ASL_MSG_ISA_ADDRESS */ "Maximum 10-bit ISA address (0x3FF)", 299/* ASL_MSG_LEADING_ASTERISK */ "Invalid leading asterisk", 300/* ASL_MSG_LIST_LENGTH_LONG */ "Initializer list longer than declared package length", 301/* ASL_MSG_LIST_LENGTH_SHORT */ "Initializer list shorter than declared package length", 302/* ASL_MSG_LISTING_FILE_OPEN */ "Could not open listing file", 303/* ASL_MSG_LISTING_FILENAME */ "Could not create listing filename", 304/* ASL_MSG_LOCAL_INIT */ "Method local variable is not initialized", 305/* ASL_MSG_LOCAL_OUTSIDE_METHOD */ "Local or Arg used outside a control method", 306/* ASL_MSG_LONG_LINE */ "Splitting long input line", 307/* ASL_MSG_MEMORY_ALLOCATION */ "Memory allocation failure", 308/* ASL_MSG_MISSING_ENDDEPENDENT */ "Missing EndDependentFn() macro in dependent resource list", 309/* ASL_MSG_MISSING_STARTDEPENDENT */ "Missing StartDependentFn() macro in dependent resource list", 310/* ASL_MSG_MULTIPLE_DEFAULT */ "More than one Default statement within Switch construct", 311/* ASL_MSG_MULTIPLE_TYPES */ "Multiple types", 312/* ASL_MSG_NAME_EXISTS */ "Name already exists in scope", 313/* ASL_MSG_NAME_OPTIMIZATION */ "NamePath optimized", 314/* ASL_MSG_NAMED_OBJECT_IN_WHILE */ "Creating a named object in a While loop", 315/* ASL_MSG_NESTED_COMMENT */ "Nested comment found", 316/* ASL_MSG_NO_CASES */ "No Case statements under Switch", 317/* ASL_MSG_NO_REGION */ "_REG has no corresponding Operation Region", 318/* ASL_MSG_NO_RETVAL */ "Called method returns no value", 319/* ASL_MSG_NO_WHILE */ "No enclosing While statement", 320/* ASL_MSG_NON_ASCII */ "Invalid characters found in file", 321/* ASL_MSG_NON_ZERO */ "Operand evaluates to zero", 322/* ASL_MSG_NOT_EXIST */ "Object does not exist", 323/* ASL_MSG_NOT_FOUND */ "Object not found or not accessible from scope", 324/* ASL_MSG_NOT_METHOD */ "Not a control method, cannot invoke", 325/* ASL_MSG_NOT_PARAMETER */ "Not a parameter, used as local only", 326/* ASL_MSG_NOT_REACHABLE */ "Object is not accessible from this scope", 327/* ASL_MSG_NOT_REFERENCED */ "Namespace object is not referenced", 328/* ASL_MSG_NULL_DESCRIPTOR */ "Min/Max/Length/Gran are all zero, but no resource tag", 329/* ASL_MSG_NULL_STRING */ "Invalid zero-length (null) string", 330/* ASL_MSG_OPEN */ "Could not open file", 331/* ASL_MSG_OUTPUT_FILE_OPEN */ "Could not open output AML file", 332/* ASL_MSG_OUTPUT_FILENAME */ "Could not create output filename", 333/* ASL_MSG_PACKAGE_LENGTH */ "Effective AML package length is zero", 334/* ASL_MSG_PREPROCESSOR_FILENAME */ "Could not create preprocessor filename", 335/* ASL_MSG_READ */ "Could not read file", 336/* ASL_MSG_RECURSION */ "Recursive method call", 337/* ASL_MSG_REGION_BUFFER_ACCESS */ "Host Operation Region requires BufferAcc access", 338/* ASL_MSG_REGION_BYTE_ACCESS */ "Host Operation Region requires ByteAcc access", 339/* ASL_MSG_RESERVED_ARG_COUNT_HI */ "Reserved method has too many arguments", 340/* ASL_MSG_RESERVED_ARG_COUNT_LO */ "Reserved method has too few arguments", 341/* ASL_MSG_RESERVED_METHOD */ "Reserved name must be a control method", 342/* ASL_MSG_RESERVED_NO_RETURN_VAL */ "Reserved method should not return a value", 343/* ASL_MSG_RESERVED_OPERAND_TYPE */ "Invalid object type for reserved name", 344/* ASL_MSG_RESERVED_RETURN_VALUE */ "Reserved method must return a value", 345/* ASL_MSG_RESERVED_USE */ "Invalid use of reserved name", 346/* ASL_MSG_RESERVED_WORD */ "Use of reserved name", 347/* ASL_MSG_RESOURCE_FIELD */ "Resource field name cannot be used as a target", 348/* ASL_MSG_RESOURCE_INDEX */ "Missing ResourceSourceIndex (required)", 349/* ASL_MSG_RESOURCE_LIST */ "Too many resource items (internal error)", 350/* ASL_MSG_RESOURCE_SOURCE */ "Missing ResourceSource string (required)", 351/* ASL_MSG_RESULT_NOT_USED */ "Result is not used, operator has no effect", 352/* ASL_MSG_RETURN_TYPES */ "Not all control paths return a value", 353/* ASL_MSG_SCOPE_FWD_REF */ "Forward references from Scope operator not allowed", 354/* ASL_MSG_SCOPE_TYPE */ "Existing object has invalid type for Scope operator", 355/* ASL_MSG_SEEK */ "Could not seek file", 356/* ASL_MSG_SERIALIZED */ "Control Method marked Serialized", 357/* ASL_MSG_SINGLE_NAME_OPTIMIZATION */ "NamePath optimized to NameSeg (uses run-time search path)", 358/* ASL_MSG_SOME_NO_RETVAL */ "Called method may not always return a value", 359/* ASL_MSG_STRING_LENGTH */ "String literal too long", 360/* ASL_MSG_SWITCH_TYPE */ "Switch expression is not a static Integer/Buffer/String data type, defaulting to Integer", 361/* ASL_MSG_SYNC_LEVEL */ "SyncLevel must be in the range 0-15", 362/* ASL_MSG_SYNTAX */ "", 363/* ASL_MSG_TABLE_SIGNATURE */ "Invalid Table Signature", 364/* ASL_MSG_TAG_LARGER */ "ResourceTag larger than Field", 365/* ASL_MSG_TAG_SMALLER */ "ResourceTag smaller than Field", 366/* ASL_MSG_TIMEOUT */ "Result is not used, possible operator timeout will be missed", 367/* ASL_MSG_TOO_MANY_TEMPS */ "Method requires too many temporary variables (_T_x)", 368/* ASL_MSG_UNKNOWN_RESERVED_NAME */ "Unknown reserved name", 369/* ASL_MSG_UNREACHABLE_CODE */ "Statement is unreachable", 370/* ASL_MSG_UNSUPPORTED */ "Unsupported feature", 371/* ASL_MSG_UPPER_CASE */ "Non-hex letters must be upper case", 372/* ASL_MSG_VENDOR_LIST */ "Too many vendor data bytes (7 max)", 373/* ASL_MSG_WRITE */ "Could not write file", 374 375/* Preprocessor */ 376 377/* ASL_MSG_DIRECTIVE_SYNTAX */ "Invalid directive syntax", 378/* ASL_MSG_ENDIF_MISMATCH */ "Mismatched #endif", 379/* ASL_MSG_ERROR_DIRECTIVE */ "#error", 380/* ASL_MSG_EXISTING_NAME */ "Name is already defined", 381/* ASL_MSG_INVALID_INVOCATION */ "Invalid macro invocation", 382/* ASL_MSG_MACRO_SYNTAX */ "Invalid macro syntax", 383/* ASL_MSG_TOO_MANY_ARGUMENTS */ "Too many macro arguments", 384/* ASL_MSG_UNKNOWN_DIRECTIVE */ "Unknown directive", 385/* ASL_MSG_UNKNOWN_PRAGMA */ "Unknown pragma", 386 387/* Table compiler */ 388 389/* ASL_MSG_BUFFER_ELEMENT */ "Invalid element in buffer initializer list", 390/* ASL_MSG_DIVIDE_BY_ZERO */ "Expression contains divide-by-zero", 391/* ASL_MSG_FLAG_VALUE */ "Flag value is too large", 392/* ASL_MSG_INTEGER_SIZE */ "Integer too large for target", 393/* ASL_MSG_INVALID_EXPRESSION */ "Invalid expression", 394/* ASL_MSG_INVALID_FIELD_NAME */ "Invalid Field Name", 395/* ASL_MSG_INVALID_HEX_INTEGER */ "Invalid hex integer constant", 396/* ASL_MSG_OEM_TABLE */ "OEM table - unknown contents", 397/* ASL_MSG_RESERVED_VALUE */ "Reserved field must be zero", 398/* ASL_MSG_UNKNOWN_LABEL */ "Label is undefined", 399/* ASL_MSG_UNKNOWN_SUBTABLE */ "Unknown subtable type", 400/* ASL_MSG_UNKNOWN_TABLE */ "Unknown ACPI table signature", 401/* ASL_MSG_ZERO_VALUE */ "Value must be non-zero" 402}; 403 404
| 1 2/****************************************************************************** 3 * 4 * Module Name: aslmessages.h - Compiler error/warning messages 5 * 6 *****************************************************************************/ 7 8/* 9 * Copyright (C) 2000 - 2012, Intel Corp. 10 * All rights reserved. 11 * 12 * Redistribution and use in source and binary forms, with or without 13 * modification, are permitted provided that the following conditions 14 * are met: 15 * 1. Redistributions of source code must retain the above copyright 16 * notice, this list of conditions, and the following disclaimer, 17 * without modification. 18 * 2. Redistributions in binary form must reproduce at minimum a disclaimer 19 * substantially similar to the "NO WARRANTY" disclaimer below 20 * ("Disclaimer") and any redistribution must be conditioned upon 21 * including a substantially similar Disclaimer requirement for further 22 * binary redistribution. 23 * 3. Neither the names of the above-listed copyright holders nor the names 24 * of any contributors may be used to endorse or promote products derived 25 * from this software without specific prior written permission. 26 * 27 * Alternatively, this software may be distributed under the terms of the 28 * GNU General Public License ("GPL") version 2 as published by the Free 29 * Software Foundation. 30 * 31 * NO WARRANTY 32 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 33 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 34 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 35 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 36 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 37 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 38 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 40 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 41 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 42 * POSSIBILITY OF SUCH DAMAGES. 43 */ 44 45 46#ifndef __ASLMESSAGES_H 47#define __ASLMESSAGES_H 48 49 50#define ASL_WARNING 0 51#define ASL_WARNING2 1 52#define ASL_WARNING3 2 53#define ASL_ERROR 3 54#define ASL_REMARK 4 55#define ASL_OPTIMIZATION 5 56#define ASL_NUM_REPORT_LEVELS 6 57 58 59/* Values for all compiler messages */ 60 61typedef enum 62{ 63 ASL_MSG_RESERVED = 0, 64 65 ASL_MSG_ALIGNMENT, 66 ASL_MSG_ALPHANUMERIC_STRING, 67 ASL_MSG_AML_NOT_IMPLEMENTED, 68 ASL_MSG_ARG_COUNT_HI, 69 ASL_MSG_ARG_COUNT_LO, 70 ASL_MSG_ARG_INIT, 71 ASL_MSG_BACKWARDS_OFFSET, 72 ASL_MSG_BUFFER_LENGTH, 73 ASL_MSG_CLOSE, 74 ASL_MSG_COMPILER_INTERNAL, 75 ASL_MSG_COMPILER_RESERVED, 76 ASL_MSG_CONNECTION_MISSING, 77 ASL_MSG_CONNECTION_INVALID, 78 ASL_MSG_CONSTANT_EVALUATION, 79 ASL_MSG_CONSTANT_FOLDED, 80 ASL_MSG_CORE_EXCEPTION, 81 ASL_MSG_DEBUG_FILE_OPEN, 82 ASL_MSG_DEBUG_FILENAME, 83 ASL_MSG_DEPENDENT_NESTING, 84 ASL_MSG_DMA_CHANNEL, 85 ASL_MSG_DMA_LIST, 86 ASL_MSG_DUPLICATE_CASE, 87 ASL_MSG_DUPLICATE_ITEM, 88 ASL_MSG_EARLY_EOF, 89 ASL_MSG_ENCODING_LENGTH, 90 ASL_MSG_EX_INTERRUPT_LIST, 91 ASL_MSG_EX_INTERRUPT_LIST_MIN, 92 ASL_MSG_EX_INTERRUPT_NUMBER, 93 ASL_MSG_FIELD_ACCESS_WIDTH, 94 ASL_MSG_FIELD_UNIT_ACCESS_WIDTH, 95 ASL_MSG_FIELD_UNIT_OFFSET, 96 ASL_MSG_GPE_NAME_CONFLICT, 97 ASL_MSG_HID_LENGTH, 98 ASL_MSG_HID_PREFIX, 99 ASL_MSG_HID_SUFFIX, 100 ASL_MSG_INCLUDE_FILE_OPEN, 101 ASL_MSG_INPUT_FILE_OPEN, 102 ASL_MSG_INTEGER_LENGTH, 103 ASL_MSG_INTEGER_OPTIMIZATION, 104 ASL_MSG_INTERRUPT_LIST, 105 ASL_MSG_INTERRUPT_NUMBER, 106 ASL_MSG_INVALID_ACCESS_SIZE, 107 ASL_MSG_INVALID_ADDR_FLAGS, 108 ASL_MSG_INVALID_CONSTANT_OP, 109 ASL_MSG_INVALID_EISAID, 110 ASL_MSG_INVALID_ESCAPE, 111 ASL_MSG_INVALID_GRAN_FIXED, 112 ASL_MSG_INVALID_GRANULARITY, 113 ASL_MSG_INVALID_LENGTH, 114 ASL_MSG_INVALID_LENGTH_FIXED, 115 ASL_MSG_INVALID_MIN_MAX, 116 ASL_MSG_INVALID_OPERAND, 117 ASL_MSG_INVALID_PERFORMANCE, 118 ASL_MSG_INVALID_PRIORITY, 119 ASL_MSG_INVALID_STRING, 120 ASL_MSG_INVALID_TARGET, 121 ASL_MSG_INVALID_TIME, 122 ASL_MSG_INVALID_TYPE, 123 ASL_MSG_INVALID_UUID, 124 ASL_MSG_ISA_ADDRESS, 125 ASL_MSG_LEADING_ASTERISK, 126 ASL_MSG_LIST_LENGTH_LONG, 127 ASL_MSG_LIST_LENGTH_SHORT, 128 ASL_MSG_LISTING_FILE_OPEN, 129 ASL_MSG_LISTING_FILENAME, 130 ASL_MSG_LOCAL_INIT, 131 ASL_MSG_LOCAL_OUTSIDE_METHOD, 132 ASL_MSG_LONG_LINE, 133 ASL_MSG_MEMORY_ALLOCATION, 134 ASL_MSG_MISSING_ENDDEPENDENT, 135 ASL_MSG_MISSING_STARTDEPENDENT, 136 ASL_MSG_MULTIPLE_DEFAULT, 137 ASL_MSG_MULTIPLE_TYPES, 138 ASL_MSG_NAME_EXISTS, 139 ASL_MSG_NAME_OPTIMIZATION, 140 ASL_MSG_NAMED_OBJECT_IN_WHILE, 141 ASL_MSG_NESTED_COMMENT, 142 ASL_MSG_NO_CASES, 143 ASL_MSG_NO_REGION, 144 ASL_MSG_NO_RETVAL, 145 ASL_MSG_NO_WHILE, 146 ASL_MSG_NON_ASCII, 147 ASL_MSG_NON_ZERO, 148 ASL_MSG_NOT_EXIST, 149 ASL_MSG_NOT_FOUND, 150 ASL_MSG_NOT_METHOD, 151 ASL_MSG_NOT_PARAMETER, 152 ASL_MSG_NOT_REACHABLE, 153 ASL_MSG_NOT_REFERENCED, 154 ASL_MSG_NULL_DESCRIPTOR, 155 ASL_MSG_NULL_STRING, 156 ASL_MSG_OPEN, 157 ASL_MSG_OUTPUT_FILE_OPEN, 158 ASL_MSG_OUTPUT_FILENAME, 159 ASL_MSG_PACKAGE_LENGTH, 160 ASL_MSG_PREPROCESSOR_FILENAME, 161 ASL_MSG_READ, 162 ASL_MSG_RECURSION, 163 ASL_MSG_REGION_BUFFER_ACCESS, 164 ASL_MSG_REGION_BYTE_ACCESS, 165 ASL_MSG_RESERVED_ARG_COUNT_HI, 166 ASL_MSG_RESERVED_ARG_COUNT_LO, 167 ASL_MSG_RESERVED_METHOD, 168 ASL_MSG_RESERVED_NO_RETURN_VAL, 169 ASL_MSG_RESERVED_OPERAND_TYPE, 170 ASL_MSG_RESERVED_RETURN_VALUE, 171 ASL_MSG_RESERVED_USE, 172 ASL_MSG_RESERVED_WORD, 173 ASL_MSG_RESOURCE_FIELD, 174 ASL_MSG_RESOURCE_INDEX, 175 ASL_MSG_RESOURCE_LIST, 176 ASL_MSG_RESOURCE_SOURCE, 177 ASL_MSG_RESULT_NOT_USED, 178 ASL_MSG_RETURN_TYPES, 179 ASL_MSG_SCOPE_FWD_REF, 180 ASL_MSG_SCOPE_TYPE, 181 ASL_MSG_SEEK, 182 ASL_MSG_SERIALIZED, 183 ASL_MSG_SINGLE_NAME_OPTIMIZATION, 184 ASL_MSG_SOME_NO_RETVAL, 185 ASL_MSG_STRING_LENGTH, 186 ASL_MSG_SWITCH_TYPE, 187 ASL_MSG_SYNC_LEVEL, 188 ASL_MSG_SYNTAX, 189 ASL_MSG_TABLE_SIGNATURE, 190 ASL_MSG_TAG_LARGER, 191 ASL_MSG_TAG_SMALLER, 192 ASL_MSG_TIMEOUT, 193 ASL_MSG_TOO_MANY_TEMPS, 194 ASL_MSG_UNKNOWN_RESERVED_NAME, 195 ASL_MSG_UNREACHABLE_CODE, 196 ASL_MSG_UNSUPPORTED, 197 ASL_MSG_UPPER_CASE, 198 ASL_MSG_VENDOR_LIST, 199 ASL_MSG_WRITE, 200 201 /* These messages are used by the Preprocessor only */ 202 203 ASL_MSG_DIRECTIVE_SYNTAX, 204 ASL_MSG_ENDIF_MISMATCH, 205 ASL_MSG_ERROR_DIRECTIVE, 206 ASL_MSG_EXISTING_NAME, 207 ASL_MSG_INVALID_INVOCATION, 208 ASL_MSG_MACRO_SYNTAX, 209 ASL_MSG_TOO_MANY_ARGUMENTS, 210 ASL_MSG_UNKNOWN_DIRECTIVE, 211 ASL_MSG_UNKNOWN_PRAGMA, 212 213 214 /* These messages are used by the data table compiler only */ 215 216 ASL_MSG_BUFFER_ELEMENT, 217 ASL_MSG_DIVIDE_BY_ZERO, 218 ASL_MSG_FLAG_VALUE, 219 ASL_MSG_INTEGER_SIZE, 220 ASL_MSG_INVALID_EXPRESSION, 221 ASL_MSG_INVALID_FIELD_NAME, 222 ASL_MSG_INVALID_HEX_INTEGER, 223 ASL_MSG_OEM_TABLE, 224 ASL_MSG_RESERVED_VALUE, 225 ASL_MSG_UNKNOWN_LABEL, 226 ASL_MSG_UNKNOWN_SUBTABLE, 227 ASL_MSG_UNKNOWN_TABLE, 228 ASL_MSG_ZERO_VALUE 229 230} ASL_MESSAGE_IDS; 231 232 233#ifdef ASL_EXCEPTIONS 234 235/* Actual message strings for each compiler message */ 236 237char *AslMessages [] = { 238/* The zeroth message is reserved */ "", 239/* ASL_MSG_ALIGNMENT */ "Must be a multiple of alignment/granularity value", 240/* ASL_MSG_ALPHANUMERIC_STRING */ "String must be entirely alphanumeric", 241/* ASL_MSG_AML_NOT_IMPLEMENTED */ "Opcode is not implemented in compiler AML code generator", 242/* ASL_MSG_ARG_COUNT_HI */ "Too many arguments", 243/* ASL_MSG_ARG_COUNT_LO */ "Too few arguments", 244/* ASL_MSG_ARG_INIT */ "Method argument is not initialized", 245/* ASL_MSG_BACKWARDS_OFFSET */ "Invalid backwards offset", 246/* ASL_MSG_BUFFER_LENGTH */ "Effective AML buffer length is zero", 247/* ASL_MSG_CLOSE */ "Could not close file", 248/* ASL_MSG_COMPILER_INTERNAL */ "Internal compiler error", 249/* ASL_MSG_COMPILER_RESERVED */ "Use of compiler reserved name", 250/* ASL_MSG_CONNECTION_MISSING */ "A Connection operator is required for this field SpaceId", 251/* ASL_MSG_CONNECTION_INVALID */ "Invalid OpRegion SpaceId for use of Connection operator", 252/* ASL_MSG_CONSTANT_EVALUATION */ "Could not evaluate constant expression", 253/* ASL_MSG_CONSTANT_FOLDED */ "Constant expression evaluated and reduced", 254/* ASL_MSG_CORE_EXCEPTION */ "From ACPI CA Subsystem", 255/* ASL_MSG_DEBUG_FILE_OPEN */ "Could not open debug file", 256/* ASL_MSG_DEBUG_FILENAME */ "Could not create debug filename", 257/* ASL_MSG_DEPENDENT_NESTING */ "Dependent function macros cannot be nested",\ 258/* ASL_MSG_DMA_CHANNEL */ "Invalid DMA channel (must be 0-7)", 259/* ASL_MSG_DMA_LIST */ "Too many DMA channels (8 max)", 260/* ASL_MSG_DUPLICATE_CASE */ "Case value already specified", 261/* ASL_MSG_DUPLICATE_ITEM */ "Duplicate value in list", 262/* ASL_MSG_EARLY_EOF */ "Premature end-of-file reached", 263/* ASL_MSG_ENCODING_LENGTH */ "Package length too long to encode", 264/* ASL_MSG_EX_INTERRUPT_LIST */ "Too many interrupts (255 max)", 265/* ASL_MSG_EX_INTERRUPT_LIST_MIN */ "Too few interrupts (1 minimum required)", 266/* ASL_MSG_EX_INTERRUPT_NUMBER */ "Invalid interrupt number (must be 32 bits)", 267/* ASL_MSG_FIELD_ACCESS_WIDTH */ "Access width is greater than region size", 268/* ASL_MSG_FIELD_UNIT_ACCESS_WIDTH */ "Access width of Field Unit extends beyond region limit", 269/* ASL_MSG_FIELD_UNIT_OFFSET */ "Field Unit extends beyond region limit", 270/* ASL_MSG_GPE_NAME_CONFLICT */ "Name conflicts with a previous GPE method", 271/* ASL_MSG_HID_LENGTH */ "_HID string must be exactly 7 or 8 characters", 272/* ASL_MSG_HID_PREFIX */ "_HID prefix must be all uppercase or decimal digits", 273/* ASL_MSG_HID_SUFFIX */ "_HID suffix must be all hex digits", 274/* ASL_MSG_INCLUDE_FILE_OPEN */ "Could not open include file", 275/* ASL_MSG_INPUT_FILE_OPEN */ "Could not open input file", 276/* ASL_MSG_INTEGER_LENGTH */ "64-bit integer in 32-bit table, truncating", 277/* ASL_MSG_INTEGER_OPTIMIZATION */ "Integer optimized to single-byte AML opcode", 278/* ASL_MSG_INTERRUPT_LIST */ "Too many interrupts (16 max)", 279/* ASL_MSG_INTERRUPT_NUMBER */ "Invalid interrupt number (must be 0-15)", 280/* ASL_MSG_INVALID_ACCESS_SIZE */ "Invalid AccessSize (Maximum is 4 - QWord access)", 281/* ASL_MSG_INVALID_ADDR_FLAGS */ "Invalid combination of Length and Min/Max fixed flags", 282/* ASL_MSG_INVALID_CONSTANT_OP */ "Invalid operator in constant expression (not type 3/4/5)", 283/* ASL_MSG_INVALID_EISAID */ "EISAID string must be of the form \"UUUXXXX\" (3 uppercase, 4 hex digits)", 284/* ASL_MSG_INVALID_ESCAPE */ "Invalid or unknown escape sequence", 285/* ASL_MSG_INVALID_GRAN_FIXED */ "Granularity must be zero for fixed Min/Max", 286/* ASL_MSG_INVALID_GRANULARITY */ "Granularity must be zero or a power of two minus one", 287/* ASL_MSG_INVALID_LENGTH */ "Length is larger than Min/Max window", 288/* ASL_MSG_INVALID_LENGTH_FIXED */ "Length is not equal to fixed Min/Max window", 289/* ASL_MSG_INVALID_MIN_MAX */ "Address Min is greater than Address Max", 290/* ASL_MSG_INVALID_OPERAND */ "Invalid operand", 291/* ASL_MSG_INVALID_PERFORMANCE */ "Invalid performance/robustness value", 292/* ASL_MSG_INVALID_PRIORITY */ "Invalid priority value", 293/* ASL_MSG_INVALID_STRING */ "Invalid Hex/Octal Escape - Non-ASCII or NULL", 294/* ASL_MSG_INVALID_TARGET */ "Target operand not allowed in constant expression", 295/* ASL_MSG_INVALID_TIME */ "Time parameter too long (255 max)", 296/* ASL_MSG_INVALID_TYPE */ "Invalid type", 297/* ASL_MSG_INVALID_UUID */ "UUID string must be of the form \"aabbccdd-eeff-gghh-iijj-kkllmmnnoopp\"", 298/* ASL_MSG_ISA_ADDRESS */ "Maximum 10-bit ISA address (0x3FF)", 299/* ASL_MSG_LEADING_ASTERISK */ "Invalid leading asterisk", 300/* ASL_MSG_LIST_LENGTH_LONG */ "Initializer list longer than declared package length", 301/* ASL_MSG_LIST_LENGTH_SHORT */ "Initializer list shorter than declared package length", 302/* ASL_MSG_LISTING_FILE_OPEN */ "Could not open listing file", 303/* ASL_MSG_LISTING_FILENAME */ "Could not create listing filename", 304/* ASL_MSG_LOCAL_INIT */ "Method local variable is not initialized", 305/* ASL_MSG_LOCAL_OUTSIDE_METHOD */ "Local or Arg used outside a control method", 306/* ASL_MSG_LONG_LINE */ "Splitting long input line", 307/* ASL_MSG_MEMORY_ALLOCATION */ "Memory allocation failure", 308/* ASL_MSG_MISSING_ENDDEPENDENT */ "Missing EndDependentFn() macro in dependent resource list", 309/* ASL_MSG_MISSING_STARTDEPENDENT */ "Missing StartDependentFn() macro in dependent resource list", 310/* ASL_MSG_MULTIPLE_DEFAULT */ "More than one Default statement within Switch construct", 311/* ASL_MSG_MULTIPLE_TYPES */ "Multiple types", 312/* ASL_MSG_NAME_EXISTS */ "Name already exists in scope", 313/* ASL_MSG_NAME_OPTIMIZATION */ "NamePath optimized", 314/* ASL_MSG_NAMED_OBJECT_IN_WHILE */ "Creating a named object in a While loop", 315/* ASL_MSG_NESTED_COMMENT */ "Nested comment found", 316/* ASL_MSG_NO_CASES */ "No Case statements under Switch", 317/* ASL_MSG_NO_REGION */ "_REG has no corresponding Operation Region", 318/* ASL_MSG_NO_RETVAL */ "Called method returns no value", 319/* ASL_MSG_NO_WHILE */ "No enclosing While statement", 320/* ASL_MSG_NON_ASCII */ "Invalid characters found in file", 321/* ASL_MSG_NON_ZERO */ "Operand evaluates to zero", 322/* ASL_MSG_NOT_EXIST */ "Object does not exist", 323/* ASL_MSG_NOT_FOUND */ "Object not found or not accessible from scope", 324/* ASL_MSG_NOT_METHOD */ "Not a control method, cannot invoke", 325/* ASL_MSG_NOT_PARAMETER */ "Not a parameter, used as local only", 326/* ASL_MSG_NOT_REACHABLE */ "Object is not accessible from this scope", 327/* ASL_MSG_NOT_REFERENCED */ "Namespace object is not referenced", 328/* ASL_MSG_NULL_DESCRIPTOR */ "Min/Max/Length/Gran are all zero, but no resource tag", 329/* ASL_MSG_NULL_STRING */ "Invalid zero-length (null) string", 330/* ASL_MSG_OPEN */ "Could not open file", 331/* ASL_MSG_OUTPUT_FILE_OPEN */ "Could not open output AML file", 332/* ASL_MSG_OUTPUT_FILENAME */ "Could not create output filename", 333/* ASL_MSG_PACKAGE_LENGTH */ "Effective AML package length is zero", 334/* ASL_MSG_PREPROCESSOR_FILENAME */ "Could not create preprocessor filename", 335/* ASL_MSG_READ */ "Could not read file", 336/* ASL_MSG_RECURSION */ "Recursive method call", 337/* ASL_MSG_REGION_BUFFER_ACCESS */ "Host Operation Region requires BufferAcc access", 338/* ASL_MSG_REGION_BYTE_ACCESS */ "Host Operation Region requires ByteAcc access", 339/* ASL_MSG_RESERVED_ARG_COUNT_HI */ "Reserved method has too many arguments", 340/* ASL_MSG_RESERVED_ARG_COUNT_LO */ "Reserved method has too few arguments", 341/* ASL_MSG_RESERVED_METHOD */ "Reserved name must be a control method", 342/* ASL_MSG_RESERVED_NO_RETURN_VAL */ "Reserved method should not return a value", 343/* ASL_MSG_RESERVED_OPERAND_TYPE */ "Invalid object type for reserved name", 344/* ASL_MSG_RESERVED_RETURN_VALUE */ "Reserved method must return a value", 345/* ASL_MSG_RESERVED_USE */ "Invalid use of reserved name", 346/* ASL_MSG_RESERVED_WORD */ "Use of reserved name", 347/* ASL_MSG_RESOURCE_FIELD */ "Resource field name cannot be used as a target", 348/* ASL_MSG_RESOURCE_INDEX */ "Missing ResourceSourceIndex (required)", 349/* ASL_MSG_RESOURCE_LIST */ "Too many resource items (internal error)", 350/* ASL_MSG_RESOURCE_SOURCE */ "Missing ResourceSource string (required)", 351/* ASL_MSG_RESULT_NOT_USED */ "Result is not used, operator has no effect", 352/* ASL_MSG_RETURN_TYPES */ "Not all control paths return a value", 353/* ASL_MSG_SCOPE_FWD_REF */ "Forward references from Scope operator not allowed", 354/* ASL_MSG_SCOPE_TYPE */ "Existing object has invalid type for Scope operator", 355/* ASL_MSG_SEEK */ "Could not seek file", 356/* ASL_MSG_SERIALIZED */ "Control Method marked Serialized", 357/* ASL_MSG_SINGLE_NAME_OPTIMIZATION */ "NamePath optimized to NameSeg (uses run-time search path)", 358/* ASL_MSG_SOME_NO_RETVAL */ "Called method may not always return a value", 359/* ASL_MSG_STRING_LENGTH */ "String literal too long", 360/* ASL_MSG_SWITCH_TYPE */ "Switch expression is not a static Integer/Buffer/String data type, defaulting to Integer", 361/* ASL_MSG_SYNC_LEVEL */ "SyncLevel must be in the range 0-15", 362/* ASL_MSG_SYNTAX */ "", 363/* ASL_MSG_TABLE_SIGNATURE */ "Invalid Table Signature", 364/* ASL_MSG_TAG_LARGER */ "ResourceTag larger than Field", 365/* ASL_MSG_TAG_SMALLER */ "ResourceTag smaller than Field", 366/* ASL_MSG_TIMEOUT */ "Result is not used, possible operator timeout will be missed", 367/* ASL_MSG_TOO_MANY_TEMPS */ "Method requires too many temporary variables (_T_x)", 368/* ASL_MSG_UNKNOWN_RESERVED_NAME */ "Unknown reserved name", 369/* ASL_MSG_UNREACHABLE_CODE */ "Statement is unreachable", 370/* ASL_MSG_UNSUPPORTED */ "Unsupported feature", 371/* ASL_MSG_UPPER_CASE */ "Non-hex letters must be upper case", 372/* ASL_MSG_VENDOR_LIST */ "Too many vendor data bytes (7 max)", 373/* ASL_MSG_WRITE */ "Could not write file", 374 375/* Preprocessor */ 376 377/* ASL_MSG_DIRECTIVE_SYNTAX */ "Invalid directive syntax", 378/* ASL_MSG_ENDIF_MISMATCH */ "Mismatched #endif", 379/* ASL_MSG_ERROR_DIRECTIVE */ "#error", 380/* ASL_MSG_EXISTING_NAME */ "Name is already defined", 381/* ASL_MSG_INVALID_INVOCATION */ "Invalid macro invocation", 382/* ASL_MSG_MACRO_SYNTAX */ "Invalid macro syntax", 383/* ASL_MSG_TOO_MANY_ARGUMENTS */ "Too many macro arguments", 384/* ASL_MSG_UNKNOWN_DIRECTIVE */ "Unknown directive", 385/* ASL_MSG_UNKNOWN_PRAGMA */ "Unknown pragma", 386 387/* Table compiler */ 388 389/* ASL_MSG_BUFFER_ELEMENT */ "Invalid element in buffer initializer list", 390/* ASL_MSG_DIVIDE_BY_ZERO */ "Expression contains divide-by-zero", 391/* ASL_MSG_FLAG_VALUE */ "Flag value is too large", 392/* ASL_MSG_INTEGER_SIZE */ "Integer too large for target", 393/* ASL_MSG_INVALID_EXPRESSION */ "Invalid expression", 394/* ASL_MSG_INVALID_FIELD_NAME */ "Invalid Field Name", 395/* ASL_MSG_INVALID_HEX_INTEGER */ "Invalid hex integer constant", 396/* ASL_MSG_OEM_TABLE */ "OEM table - unknown contents", 397/* ASL_MSG_RESERVED_VALUE */ "Reserved field must be zero", 398/* ASL_MSG_UNKNOWN_LABEL */ "Label is undefined", 399/* ASL_MSG_UNKNOWN_SUBTABLE */ "Unknown subtable type", 400/* ASL_MSG_UNKNOWN_TABLE */ "Unknown ACPI table signature", 401/* ASL_MSG_ZERO_VALUE */ "Value must be non-zero" 402}; 403 404
|