Deleted Added
sdiff udiff text old ( 151937 ) new ( 167802 )
full compact
1
2/******************************************************************************
3 *
4 * Module Name: asltypes.h - compiler data types and struct definitions
5 * $Revision: 1.78 $
6 *
7 *****************************************************************************/
8
9/******************************************************************************
10 *
11 * 1. Copyright Notice
12 *
13 * Some or all of this work - Copyright (c) 1999 - 2005, 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
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
225
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
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
304
305
306typedef enum
307{
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,
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,
409 ASL_MSG_WRITE
410
411} ASL_MESSAGE_IDS;
412
413#ifdef ASL_EXCEPTIONS
414
415char *AslMessages [] = {
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",
473/* 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",
481/* ASL_MSG_NOT_REACHABLE */ "Object 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",
502/* ASL_MSG_SCOPE_FWD_REF */ "Forward references from Scope() 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",
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)",
517/* ASL_MSG_WRITE */ "Could not write file"
518
519};
520
521
522char *AslErrorLevel [ASL_NUM_REPORT_LEVELS] = {
523 "Error ",
524 "Warning ",
525 "Remark ",
526 "Optimize"
527};
528
529#define ASL_ERROR_LEVEL_LENGTH 8 /* Length of strings above */
530
531/* Exception counters */
532
533UINT32 Gbl_ExceptionCount[ASL_NUM_REPORT_LEVELS] = {0,0,0,0};
534
535#endif
536
537
538#endif /* __ASLTYPES_H */