asltypes.h (151937) | asltypes.h (167802) |
---|---|
1 2/****************************************************************************** 3 * 4 * Module Name: asltypes.h - compiler data types and struct definitions | 1 2/****************************************************************************** 3 * 4 * Module Name: asltypes.h - compiler data types and struct definitions |
5 * $Revision: 1.78 $ | 5 * $Revision: 1.89 $ |
6 * 7 *****************************************************************************/ 8 9/****************************************************************************** 10 * 11 * 1. Copyright Notice 12 * | 6 * 7 *****************************************************************************/ 8 9/****************************************************************************** 10 * 11 * 1. Copyright Notice 12 * |
13 * Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp. | 13 * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp. |
14 * All rights reserved. 15 * 16 * 2. License 17 * 18 * 2.1. This is your license from Intel Corp. under its intellectual property 19 * rights. You may have additional license terms from the party that provided 20 * you this software, covering your right to use that party's intellectual 21 * property rights. --- 121 unchanged lines hidden (view full) --- 143#define NODE_METHOD_TYPED 0x00000800 144#define NODE_IS_BIT_OFFSET 0x00001000 145#define NODE_COMPILE_TIME_CONST 0x00002000 146#define NODE_IS_TERM_ARG 0x00004000 147#define NODE_WAS_ONES_OP 0x00008000 148#define NODE_IS_NAME_DECLARATION 0x00010000 149#define NODE_COMPILER_EMITTED 0x00020000 150#define NODE_IS_DUPLICATE 0x00040000 | 14 * All rights reserved. 15 * 16 * 2. License 17 * 18 * 2.1. This is your license from Intel Corp. under its intellectual property 19 * rights. You may have additional license terms from the party that provided 20 * you this software, covering your right to use that party's intellectual 21 * property rights. --- 121 unchanged lines hidden (view full) --- 143#define NODE_METHOD_TYPED 0x00000800 144#define NODE_IS_BIT_OFFSET 0x00001000 145#define NODE_COMPILE_TIME_CONST 0x00002000 146#define NODE_IS_TERM_ARG 0x00004000 147#define NODE_WAS_ONES_OP 0x00008000 148#define NODE_IS_NAME_DECLARATION 0x00010000 149#define NODE_COMPILER_EMITTED 0x00020000 150#define NODE_IS_DUPLICATE 0x00040000 |
151#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]; --- 58 unchanged lines hidden (view full) --- 217 218typedef struct asl_file_info 219{ 220 FILE *Handle; 221 char *Filename; 222 223} ASL_FILE_INFO; 224 | 152 153/* Keeps information about individual control methods */ 154 155typedef struct asl_method_info 156{ 157 UINT8 NumArguments; 158 UINT8 LocalInitialized[ACPI_METHOD_NUM_LOCALS]; 159 UINT8 ArgInitialized[ACPI_METHOD_NUM_ARGS]; --- 58 unchanged lines hidden (view full) --- 218 219typedef struct asl_file_info 220{ 221 FILE *Handle; 222 char *Filename; 223 224} ASL_FILE_INFO; 225 |
226typedef struct asl_file_status 227{ 228 UINT32 Line; 229 UINT32 Offset; |
|
225 | 230 |
231} ASL_FILE_STATUS; 232 233 |
|
226/* File types */ 227 228typedef enum 229{ 230 ASL_FILE_STDOUT = 0, 231 ASL_FILE_STDERR, 232 ASL_FILE_INPUT, 233 ASL_FILE_AML_OUTPUT, --- 57 unchanged lines hidden (view full) --- 291 UINT64 StartTime; 292 UINT64 EndTime; 293 char *EventName; 294 BOOLEAN Valid; 295 296} ASL_EVENT_INFO; 297 298 | 234/* File types */ 235 236typedef enum 237{ 238 ASL_FILE_STDOUT = 0, 239 ASL_FILE_STDERR, 240 ASL_FILE_INPUT, 241 ASL_FILE_AML_OUTPUT, --- 57 unchanged lines hidden (view full) --- 299 UINT64 StartTime; 300 UINT64 EndTime; 301 char *EventName; 302 BOOLEAN Valid; 303 304} ASL_EVENT_INFO; 305 306 |
299#define ASL_ERROR 0 300#define ASL_WARNING 1 301#define ASL_REMARK 2 302#define ASL_OPTIMIZATION 3 303#define ASL_NUM_REPORT_LEVELS 4 | 307#define ASL_WARNING 0 308#define ASL_WARNING2 1 309#define ASL_WARNING3 2 310#define ASL_ERROR 3 311#define ASL_REMARK 4 312#define ASL_OPTIMIZATION 5 313#define ASL_NUM_REPORT_LEVELS 6 |
304 305 306typedef enum 307{ | 314 315 316typedef enum 317{ |
318 ASL_MSG_RESERVED = 0, |
|
308 ASL_MSG_ALPHANUMERIC_STRING, 309 ASL_MSG_AML_NOT_IMPLEMENTED, 310 ASL_MSG_ARG_COUNT_HI, 311 ASL_MSG_ARG_COUNT_LO, 312 ASL_MSG_ARG_INIT, 313 ASL_MSG_BACKWARDS_OFFSET, 314 ASL_MSG_BITS_TO_BYTES, 315 ASL_MSG_BUFFER_LENGTH, --- 75 unchanged lines hidden (view full) --- 391 ASL_MSG_RESOURCE_LIST, 392 ASL_MSG_RESOURCE_SOURCE, 393 ASL_MSG_RETURN_TYPES, 394 ASL_MSG_SCOPE_FWD_REF, 395 ASL_MSG_SCOPE_TYPE, 396 ASL_MSG_SEEK, 397 ASL_MSG_SINGLE_NAME_OPTIMIZATION, 398 ASL_MSG_SOME_NO_RETVAL, | 319 ASL_MSG_ALPHANUMERIC_STRING, 320 ASL_MSG_AML_NOT_IMPLEMENTED, 321 ASL_MSG_ARG_COUNT_HI, 322 ASL_MSG_ARG_COUNT_LO, 323 ASL_MSG_ARG_INIT, 324 ASL_MSG_BACKWARDS_OFFSET, 325 ASL_MSG_BITS_TO_BYTES, 326 ASL_MSG_BUFFER_LENGTH, --- 75 unchanged lines hidden (view full) --- 402 ASL_MSG_RESOURCE_LIST, 403 ASL_MSG_RESOURCE_SOURCE, 404 ASL_MSG_RETURN_TYPES, 405 ASL_MSG_SCOPE_FWD_REF, 406 ASL_MSG_SCOPE_TYPE, 407 ASL_MSG_SEEK, 408 ASL_MSG_SINGLE_NAME_OPTIMIZATION, 409 ASL_MSG_SOME_NO_RETVAL, |
399 ASL_MSG_STRING_LENGTH, | |
400 ASL_MSG_SWITCH_TYPE, 401 ASL_MSG_SYNC_LEVEL, 402 ASL_MSG_SYNTAX, 403 ASL_MSG_TABLE_SIGNATURE, 404 ASL_MSG_TOO_MANY_TEMPS, 405 ASL_MSG_UNKNOWN_RESERVED_NAME, 406 ASL_MSG_UNREACHABLE_CODE, 407 ASL_MSG_UNSUPPORTED, 408 ASL_MSG_VENDOR_LIST, | 410 ASL_MSG_SWITCH_TYPE, 411 ASL_MSG_SYNC_LEVEL, 412 ASL_MSG_SYNTAX, 413 ASL_MSG_TABLE_SIGNATURE, 414 ASL_MSG_TOO_MANY_TEMPS, 415 ASL_MSG_UNKNOWN_RESERVED_NAME, 416 ASL_MSG_UNREACHABLE_CODE, 417 ASL_MSG_UNSUPPORTED, 418 ASL_MSG_VENDOR_LIST, |
409 ASL_MSG_WRITE | 419 ASL_MSG_WRITE, 420 ASL_MSG_MULTIPLE_DEFAULT, 421 ASL_MSG_TIMEOUT, 422 ASL_MSG_RESULT_NOT_USED, 423 ASL_MSG_NOT_REFERENCED, 424 ASL_MSG_NON_ZERO, 425 ASL_MSG_STRING_LENGTH |
410 411} ASL_MESSAGE_IDS; 412 413#ifdef ASL_EXCEPTIONS 414 415char *AslMessages [] = { | 426 427} ASL_MESSAGE_IDS; 428 429#ifdef ASL_EXCEPTIONS 430 431char *AslMessages [] = { |
432/* The zeroth message is resesrved */ "", |
|
416/* ASL_MSG_ALPHANUMERIC_STRING */ "String must be entirely alphanumeric", 417/* ASL_MSG_AML_NOT_IMPLEMENTED */ "Opcode is not implemented in compiler AML code generator", 418/* ASL_MSG_ARG_COUNT_HI */ "Too many arguments", 419/* ASL_MSG_ARG_COUNT_LO */ "Too few arguments", 420/* ASL_MSG_ARG_INIT */ "Method argument is not initialized", 421/* ASL_MSG_BACKWARDS_OFFSET */ "Invalid backwards offset", 422/* ASL_MSG_BITS_TO_BYTES */ "Field offset is in bits, but a byte offset is required", 423/* ASL_MSG_BUFFER_LENGTH */ "Effective AML buffer length is zero", --- 41 unchanged lines hidden (view full) --- 465/* ASL_MSG_LONG_LINE */ "Splitting long input line", 466/* ASL_MSG_MEMORY_ALLOCATION */ "Memory allocation failure", 467/* ASL_MSG_MISSING_ENDDEPENDENT */ "Missing EndDependentFn() macro in dependent resource list", 468/* ASL_MSG_MISSING_STARTDEPENDENT */ "Missing StartDependentFn() macro in dependent resource list", 469/* ASL_MSG_MULTIPLE_TYPES */ "Multiple types", 470/* ASL_MSG_NAME_EXISTS */ "Name already exists in scope", 471/* ASL_MSG_NAME_OPTIMIZATION */ "NamePath optimized", 472/* ASL_MSG_NESTED_COMMENT */ "Nested comment found", | 433/* ASL_MSG_ALPHANUMERIC_STRING */ "String must be entirely alphanumeric", 434/* ASL_MSG_AML_NOT_IMPLEMENTED */ "Opcode is not implemented in compiler AML code generator", 435/* ASL_MSG_ARG_COUNT_HI */ "Too many arguments", 436/* ASL_MSG_ARG_COUNT_LO */ "Too few arguments", 437/* ASL_MSG_ARG_INIT */ "Method argument is not initialized", 438/* ASL_MSG_BACKWARDS_OFFSET */ "Invalid backwards offset", 439/* ASL_MSG_BITS_TO_BYTES */ "Field offset is in bits, but a byte offset is required", 440/* ASL_MSG_BUFFER_LENGTH */ "Effective AML buffer length is zero", --- 41 unchanged lines hidden (view full) --- 482/* ASL_MSG_LONG_LINE */ "Splitting long input line", 483/* ASL_MSG_MEMORY_ALLOCATION */ "Memory allocation failure", 484/* ASL_MSG_MISSING_ENDDEPENDENT */ "Missing EndDependentFn() macro in dependent resource list", 485/* ASL_MSG_MISSING_STARTDEPENDENT */ "Missing StartDependentFn() macro in dependent resource list", 486/* ASL_MSG_MULTIPLE_TYPES */ "Multiple types", 487/* ASL_MSG_NAME_EXISTS */ "Name already exists in scope", 488/* ASL_MSG_NAME_OPTIMIZATION */ "NamePath optimized", 489/* ASL_MSG_NESTED_COMMENT */ "Nested comment found", |
473/* ASL_MSG_NO_CASES */ "No Case() statements under Switch()", | 490/* ASL_MSG_NO_CASES */ "No Case statements under Switch", |
474/* ASL_MSG_NO_RETVAL */ "Called method returns no value", 475/* ASL_MSG_NO_WHILE */ "No enclosing While statement", 476/* ASL_MSG_NON_ASCII */ "Invalid characters found in file", 477/* ASL_MSG_NOT_EXIST */ "Object does not exist", 478/* ASL_MSG_NOT_FOUND */ "Object not found or not accessible from scope", 479/* ASL_MSG_NOT_METHOD */ "Not a control method, cannot invoke", 480/* ASL_MSG_NOT_PARAMETER */ "Not a parameter, used as local only", | 491/* ASL_MSG_NO_RETVAL */ "Called method returns no value", 492/* ASL_MSG_NO_WHILE */ "No enclosing While statement", 493/* ASL_MSG_NON_ASCII */ "Invalid characters found in file", 494/* ASL_MSG_NOT_EXIST */ "Object does not exist", 495/* ASL_MSG_NOT_FOUND */ "Object not found or not accessible from scope", 496/* ASL_MSG_NOT_METHOD */ "Not a control method, cannot invoke", 497/* ASL_MSG_NOT_PARAMETER */ "Not a parameter, used as local only", |
481/* ASL_MSG_NOT_REACHABLE */ "Object not accessible from this scope", | 498/* ASL_MSG_NOT_REACHABLE */ "Object is not accessible from this scope", |
482/* ASL_MSG_OPEN */ "Could not open file", 483/* ASL_MSG_OUTPUT_FILE_OPEN */ "Could not open output AML file", 484/* ASL_MSG_OUTPUT_FILENAME */ "Could not create output filename", 485/* ASL_MSG_PACKAGE_LENGTH */ "Effective AML package length is zero", 486/* ASL_MSG_READ */ "Could not read file", 487/* ASL_MSG_RECURSION */ "Recursive method call", 488/* ASL_MSG_REGION_BUFFER_ACCESS */ "Host Operation Region requires BufferAcc access", 489/* ASL_MSG_REGION_BYTE_ACCESS */ "Host Operation Region requires ByteAcc access", --- 4 unchanged lines hidden (view full) --- 494/* ASL_MSG_RESERVED_RETURN_VALUE */ "Reserved method must return a value", 495/* ASL_MSG_RESERVED_USE */ "Invalid use of reserved name", 496/* ASL_MSG_RESERVED_WORD */ "Use of reserved word", 497/* ASL_MSG_RESOURCE_FIELD */ "Resource field name cannot be used as a target", 498/* ASL_MSG_RESOURCE_INDEX */ "Missing ResourceSourceIndex (required)", 499/* ASL_MSG_RESOURCE_LIST */ "Too many resource items (internal error)", 500/* ASL_MSG_RESOURCE_SOURCE */ "Missing ResourceSource string (required)", 501/* ASL_MSG_RETURN_TYPES */ "Not all control paths return a value", | 499/* ASL_MSG_OPEN */ "Could not open file", 500/* ASL_MSG_OUTPUT_FILE_OPEN */ "Could not open output AML file", 501/* ASL_MSG_OUTPUT_FILENAME */ "Could not create output filename", 502/* ASL_MSG_PACKAGE_LENGTH */ "Effective AML package length is zero", 503/* ASL_MSG_READ */ "Could not read file", 504/* ASL_MSG_RECURSION */ "Recursive method call", 505/* ASL_MSG_REGION_BUFFER_ACCESS */ "Host Operation Region requires BufferAcc access", 506/* ASL_MSG_REGION_BYTE_ACCESS */ "Host Operation Region requires ByteAcc access", --- 4 unchanged lines hidden (view full) --- 511/* ASL_MSG_RESERVED_RETURN_VALUE */ "Reserved method must return a value", 512/* ASL_MSG_RESERVED_USE */ "Invalid use of reserved name", 513/* ASL_MSG_RESERVED_WORD */ "Use of reserved word", 514/* ASL_MSG_RESOURCE_FIELD */ "Resource field name cannot be used as a target", 515/* ASL_MSG_RESOURCE_INDEX */ "Missing ResourceSourceIndex (required)", 516/* ASL_MSG_RESOURCE_LIST */ "Too many resource items (internal error)", 517/* ASL_MSG_RESOURCE_SOURCE */ "Missing ResourceSource string (required)", 518/* ASL_MSG_RETURN_TYPES */ "Not all control paths return a value", |
502/* ASL_MSG_SCOPE_FWD_REF */ "Forward references from Scope() not allowed", | 519/* ASL_MSG_SCOPE_FWD_REF */ "Forward references from Scope operator not allowed", |
503/* ASL_MSG_SCOPE_TYPE */ "Existing object has invalid type for Scope operator", 504/* ASL_MSG_SEEK */ "Could not seek file", 505/* ASL_MSG_SINGLE_NAME_OPTIMIZATION */ "NamePath optimized to NameSeg (uses run-time search path)", 506/* ASL_MSG_SOME_NO_RETVAL */ "Called method may not always return a value", | 520/* ASL_MSG_SCOPE_TYPE */ "Existing object has invalid type for Scope operator", 521/* ASL_MSG_SEEK */ "Could not seek file", 522/* ASL_MSG_SINGLE_NAME_OPTIMIZATION */ "NamePath optimized to NameSeg (uses run-time search path)", 523/* ASL_MSG_SOME_NO_RETVAL */ "Called method may not always return a value", |
507/* ASL_MSG_STRING_LENGTH */ "String constant too long (200 max)", | |
508/* ASL_MSG_SWITCH_TYPE */ "Switch expression is not a static Integer/Buffer/String data type, defaulting to Integer", 509/* ASL_MSG_SYNC_LEVEL */ "SyncLevel must be in the range 0-15", 510/* ASL_MSG_SYNTAX */ "", 511/* ASL_MSG_TABLE_SIGNATURE */ "Invalid Table Signature", 512/* ASL_MSG_TOO_MANY_TEMPS */ "Method requires too many temporary variables (_T_x)", 513/* ASL_MSG_UNKNOWN_RESERVED_NAME */ "Unknown reserved name", 514/* ASL_MSG_UNREACHABLE_CODE */ "Statement is unreachable", 515/* ASL_MSG_UNSUPPORTED */ "Unsupported feature", 516/* ASL_MSG_VENDOR_LIST */ "Too many vendor data bytes (7 max)", | 524/* ASL_MSG_SWITCH_TYPE */ "Switch expression is not a static Integer/Buffer/String data type, defaulting to Integer", 525/* ASL_MSG_SYNC_LEVEL */ "SyncLevel must be in the range 0-15", 526/* ASL_MSG_SYNTAX */ "", 527/* ASL_MSG_TABLE_SIGNATURE */ "Invalid Table Signature", 528/* ASL_MSG_TOO_MANY_TEMPS */ "Method requires too many temporary variables (_T_x)", 529/* ASL_MSG_UNKNOWN_RESERVED_NAME */ "Unknown reserved name", 530/* ASL_MSG_UNREACHABLE_CODE */ "Statement is unreachable", 531/* ASL_MSG_UNSUPPORTED */ "Unsupported feature", 532/* ASL_MSG_VENDOR_LIST */ "Too many vendor data bytes (7 max)", |
517/* ASL_MSG_WRITE */ "Could not write file" | 533/* ASL_MSG_WRITE */ "Could not write file", 534/* ASL_MSG_MULTIPLE_DEFAULT */ "More than one Default statement within Switch construct", 535/* ASL_MSG_TIMEOUT */ "Possible operator timeout is ignored", 536/* ASL_MSG_RESULT_NOT_USED */ "Result is not used, operator has no effect", 537/* ASL_MSG_NOT_REFERENCED */ "Namespace object is not referenced", 538/* ASL_MSG_NON_ZERO */ "Operand evaluates to zero", 539/* ASL_MSG_STRING_LENGTH */ "String literal too long" |
518 519}; 520 521 522char *AslErrorLevel [ASL_NUM_REPORT_LEVELS] = { | 540 541}; 542 543 544char *AslErrorLevel [ASL_NUM_REPORT_LEVELS] = { |
523 "Error ", | |
524 "Warning ", | 545 "Warning ", |
546 "Warning ", 547 "Warning ", 548 "Error ", |
|
525 "Remark ", 526 "Optimize" 527}; 528 529#define ASL_ERROR_LEVEL_LENGTH 8 /* Length of strings above */ 530 531/* Exception counters */ 532 | 549 "Remark ", 550 "Optimize" 551}; 552 553#define ASL_ERROR_LEVEL_LENGTH 8 /* Length of strings above */ 554 555/* Exception counters */ 556 |
533UINT32 Gbl_ExceptionCount[ASL_NUM_REPORT_LEVELS] = {0,0,0,0}; | 557UINT32 Gbl_ExceptionCount[ASL_NUM_REPORT_LEVELS] = {0,0,0,0,0,0}; |
534 535#endif 536 537 538#endif /* __ASLTYPES_H */ | 558 559#endif 560 561 562#endif /* __ASLTYPES_H */ |