xref: /freebsd/sys/contrib/dev/acpica/compiler/asldefine.h (revision 722b16673c40aedf280895f2f2f676bb494518d7)
1fba7fc7eSJung-uk Kim /******************************************************************************
2fba7fc7eSJung-uk Kim  *
3fba7fc7eSJung-uk Kim  * Module Name: asldefine.h - Common defines for the iASL compiler
4fba7fc7eSJung-uk Kim  *
5fba7fc7eSJung-uk Kim  *****************************************************************************/
6fba7fc7eSJung-uk Kim 
70d84335fSJung-uk Kim /******************************************************************************
80d84335fSJung-uk Kim  *
90d84335fSJung-uk Kim  * 1. Copyright Notice
100d84335fSJung-uk Kim  *
11*722b1667SJung-uk Kim  * Some or all of this work - Copyright (c) 1999 - 2023, Intel Corp.
12fba7fc7eSJung-uk Kim  * All rights reserved.
13fba7fc7eSJung-uk Kim  *
140d84335fSJung-uk Kim  * 2. License
150d84335fSJung-uk Kim  *
160d84335fSJung-uk Kim  * 2.1. This is your license from Intel Corp. under its intellectual property
170d84335fSJung-uk Kim  * rights. You may have additional license terms from the party that provided
180d84335fSJung-uk Kim  * you this software, covering your right to use that party's intellectual
190d84335fSJung-uk Kim  * property rights.
200d84335fSJung-uk Kim  *
210d84335fSJung-uk Kim  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
220d84335fSJung-uk Kim  * copy of the source code appearing in this file ("Covered Code") an
230d84335fSJung-uk Kim  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
240d84335fSJung-uk Kim  * base code distributed originally by Intel ("Original Intel Code") to copy,
250d84335fSJung-uk Kim  * make derivatives, distribute, use and display any portion of the Covered
260d84335fSJung-uk Kim  * Code in any form, with the right to sublicense such rights; and
270d84335fSJung-uk Kim  *
280d84335fSJung-uk Kim  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
290d84335fSJung-uk Kim  * license (with the right to sublicense), under only those claims of Intel
300d84335fSJung-uk Kim  * patents that are infringed by the Original Intel Code, to make, use, sell,
310d84335fSJung-uk Kim  * offer to sell, and import the Covered Code and derivative works thereof
320d84335fSJung-uk Kim  * solely to the minimum extent necessary to exercise the above copyright
330d84335fSJung-uk Kim  * license, and in no event shall the patent license extend to any additions
340d84335fSJung-uk Kim  * to or modifications of the Original Intel Code. No other license or right
350d84335fSJung-uk Kim  * is granted directly or by implication, estoppel or otherwise;
360d84335fSJung-uk Kim  *
370d84335fSJung-uk Kim  * The above copyright and patent license is granted only if the following
380d84335fSJung-uk Kim  * conditions are met:
390d84335fSJung-uk Kim  *
400d84335fSJung-uk Kim  * 3. Conditions
410d84335fSJung-uk Kim  *
420d84335fSJung-uk Kim  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
430d84335fSJung-uk Kim  * Redistribution of source code of any substantial portion of the Covered
440d84335fSJung-uk Kim  * Code or modification with rights to further distribute source must include
450d84335fSJung-uk Kim  * the above Copyright Notice, the above License, this list of Conditions,
460d84335fSJung-uk Kim  * and the following Disclaimer and Export Compliance provision. In addition,
470d84335fSJung-uk Kim  * Licensee must cause all Covered Code to which Licensee contributes to
480d84335fSJung-uk Kim  * contain a file documenting the changes Licensee made to create that Covered
490d84335fSJung-uk Kim  * Code and the date of any change. Licensee must include in that file the
500d84335fSJung-uk Kim  * documentation of any changes made by any predecessor Licensee. Licensee
510d84335fSJung-uk Kim  * must include a prominent statement that the modification is derived,
520d84335fSJung-uk Kim  * directly or indirectly, from Original Intel Code.
530d84335fSJung-uk Kim  *
540d84335fSJung-uk Kim  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
550d84335fSJung-uk Kim  * Redistribution of source code of any substantial portion of the Covered
560d84335fSJung-uk Kim  * Code or modification without rights to further distribute source must
570d84335fSJung-uk Kim  * include the following Disclaimer and Export Compliance provision in the
580d84335fSJung-uk Kim  * documentation and/or other materials provided with distribution. In
590d84335fSJung-uk Kim  * addition, Licensee may not authorize further sublicense of source of any
600d84335fSJung-uk Kim  * portion of the Covered Code, and must include terms to the effect that the
610d84335fSJung-uk Kim  * license from Licensee to its licensee is limited to the intellectual
620d84335fSJung-uk Kim  * property embodied in the software Licensee provides to its licensee, and
630d84335fSJung-uk Kim  * not to intellectual property embodied in modifications its licensee may
640d84335fSJung-uk Kim  * make.
650d84335fSJung-uk Kim  *
660d84335fSJung-uk Kim  * 3.3. Redistribution of Executable. Redistribution in executable form of any
670d84335fSJung-uk Kim  * substantial portion of the Covered Code or modification must reproduce the
680d84335fSJung-uk Kim  * above Copyright Notice, and the following Disclaimer and Export Compliance
690d84335fSJung-uk Kim  * provision in the documentation and/or other materials provided with the
700d84335fSJung-uk Kim  * distribution.
710d84335fSJung-uk Kim  *
720d84335fSJung-uk Kim  * 3.4. Intel retains all right, title, and interest in and to the Original
730d84335fSJung-uk Kim  * Intel Code.
740d84335fSJung-uk Kim  *
750d84335fSJung-uk Kim  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
760d84335fSJung-uk Kim  * Intel shall be used in advertising or otherwise to promote the sale, use or
770d84335fSJung-uk Kim  * other dealings in products derived from or relating to the Covered Code
780d84335fSJung-uk Kim  * without prior written authorization from Intel.
790d84335fSJung-uk Kim  *
800d84335fSJung-uk Kim  * 4. Disclaimer and Export Compliance
810d84335fSJung-uk Kim  *
820d84335fSJung-uk Kim  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
830d84335fSJung-uk Kim  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
840d84335fSJung-uk Kim  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
850d84335fSJung-uk Kim  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
860d84335fSJung-uk Kim  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
870d84335fSJung-uk Kim  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
880d84335fSJung-uk Kim  * PARTICULAR PURPOSE.
890d84335fSJung-uk Kim  *
900d84335fSJung-uk Kim  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
910d84335fSJung-uk Kim  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
920d84335fSJung-uk Kim  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
930d84335fSJung-uk Kim  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
940d84335fSJung-uk Kim  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
950d84335fSJung-uk Kim  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
960d84335fSJung-uk Kim  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
970d84335fSJung-uk Kim  * LIMITED REMEDY.
980d84335fSJung-uk Kim  *
990d84335fSJung-uk Kim  * 4.3. Licensee shall not export, either directly or indirectly, any of this
1000d84335fSJung-uk Kim  * software or system incorporating such software without first obtaining any
1010d84335fSJung-uk Kim  * required license or other approval from the U. S. Department of Commerce or
1020d84335fSJung-uk Kim  * any other agency or department of the United States Government. In the
1030d84335fSJung-uk Kim  * event Licensee exports any such software from the United States or
1040d84335fSJung-uk Kim  * re-exports any such software from a foreign destination, Licensee shall
1050d84335fSJung-uk Kim  * ensure that the distribution and export/re-export of the software is in
1060d84335fSJung-uk Kim  * compliance with all laws, regulations, orders, or other restrictions of the
1070d84335fSJung-uk Kim  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
1080d84335fSJung-uk Kim  * any of its subsidiaries will export/re-export any technical data, process,
1090d84335fSJung-uk Kim  * software, or service, directly or indirectly, to any country for which the
1100d84335fSJung-uk Kim  * United States government or any agency thereof requires an export license,
1110d84335fSJung-uk Kim  * other governmental approval, or letter of assurance, without first obtaining
1120d84335fSJung-uk Kim  * such license, approval or letter.
1130d84335fSJung-uk Kim  *
1140d84335fSJung-uk Kim  *****************************************************************************
1150d84335fSJung-uk Kim  *
1160d84335fSJung-uk Kim  * Alternatively, you may choose to be licensed under the terms of the
1170d84335fSJung-uk Kim  * following license:
1180d84335fSJung-uk Kim  *
119d244b227SJung-uk Kim  * Redistribution and use in source and binary forms, with or without
120d244b227SJung-uk Kim  * modification, are permitted provided that the following conditions
121d244b227SJung-uk Kim  * are met:
122d244b227SJung-uk Kim  * 1. Redistributions of source code must retain the above copyright
123d244b227SJung-uk Kim  *    notice, this list of conditions, and the following disclaimer,
124d244b227SJung-uk Kim  *    without modification.
125d244b227SJung-uk Kim  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126d244b227SJung-uk Kim  *    substantially similar to the "NO WARRANTY" disclaimer below
127d244b227SJung-uk Kim  *    ("Disclaimer") and any redistribution must be conditioned upon
128d244b227SJung-uk Kim  *    including a substantially similar Disclaimer requirement for further
129d244b227SJung-uk Kim  *    binary redistribution.
130d244b227SJung-uk Kim  * 3. Neither the names of the above-listed copyright holders nor the names
131d244b227SJung-uk Kim  *    of any contributors may be used to endorse or promote products derived
132d244b227SJung-uk Kim  *    from this software without specific prior written permission.
133fba7fc7eSJung-uk Kim  *
1340d84335fSJung-uk Kim  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1350d84335fSJung-uk Kim  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1360d84335fSJung-uk Kim  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1370d84335fSJung-uk Kim  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1380d84335fSJung-uk Kim  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1390d84335fSJung-uk Kim  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1400d84335fSJung-uk Kim  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1410d84335fSJung-uk Kim  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1420d84335fSJung-uk Kim  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1430d84335fSJung-uk Kim  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1440d84335fSJung-uk Kim  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1450d84335fSJung-uk Kim  *
1460d84335fSJung-uk Kim  * Alternatively, you may choose to be licensed under the terms of the
147d244b227SJung-uk Kim  * GNU General Public License ("GPL") version 2 as published by the Free
148d244b227SJung-uk Kim  * Software Foundation.
149fba7fc7eSJung-uk Kim  *
1500d84335fSJung-uk Kim  *****************************************************************************/
151fba7fc7eSJung-uk Kim 
152fba7fc7eSJung-uk Kim #ifndef __ASLDEFINE_H
153fba7fc7eSJung-uk Kim #define __ASLDEFINE_H
154fba7fc7eSJung-uk Kim 
155fba7fc7eSJung-uk Kim 
156fba7fc7eSJung-uk Kim /*
157fba7fc7eSJung-uk Kim  * Compiler versions and names
158fba7fc7eSJung-uk Kim  */
15961673a1fSJung-uk Kim #define ASL_COMPILER_NAME           "ASL+ Optimizing Compiler/Disassembler"
1601c0e1b6dSJung-uk Kim #define AML_DISASSEMBLER_NAME       "AML/ASL+ Disassembler"
1613c1812acSJung-uk Kim #define ASL_INVOCATION_NAME         "iasl"
1623c1812acSJung-uk Kim #define ASL_CREATOR_ID              "INTL"
163fe0f0bbbSJung-uk Kim #define ASL_DEFINE                  "__IASL__"
164af051161SJung-uk Kim #define ASL_PREFIX                  "iASL: "
165278f0de6SJung-uk Kim #define ASL_COMPLIANCE              "Supports ACPI Specification Revision 6.3"
166fba7fc7eSJung-uk Kim 
167fba7fc7eSJung-uk Kim 
168fba7fc7eSJung-uk Kim /* Configuration constants */
169fba7fc7eSJung-uk Kim 
170fba7fc7eSJung-uk Kim #define ASL_MAX_ERROR_COUNT         200
171313a0c13SJung-uk Kim #define ASL_PARSEOP_CACHE_SIZE      (1024 * 16)
172313a0c13SJung-uk Kim #define ASL_STRING_CACHE_SIZE       (1024 * 64)
173fba7fc7eSJung-uk Kim 
174fba7fc7eSJung-uk Kim #define ASL_FIRST_PARSE_OPCODE      PARSEOP_ACCESSAS
175fba7fc7eSJung-uk Kim #define ASL_PARSE_OPCODE_BASE       PARSEOP_ACCESSAS        /* First Lex type */
176fba7fc7eSJung-uk Kim 
177fba7fc7eSJung-uk Kim 
178fba7fc7eSJung-uk Kim /*
17933a7ed1fSJung-uk Kim  * Per-parser-generator configuration. These values are used to cheat and
18033a7ed1fSJung-uk Kim  * directly access the bison/yacc token name table (yyname or yytname).
18133a7ed1fSJung-uk Kim  * Note: These values are the index in yyname for the first lex token
18233a7ed1fSJung-uk Kim  * (PARSEOP_ACCCESSAS).
18333a7ed1fSJung-uk Kim  */
18433a7ed1fSJung-uk Kim #if defined (YYBISON)
18533a7ed1fSJung-uk Kim #define ASL_YYTNAME_START           3   /* Bison */
18633a7ed1fSJung-uk Kim #elif defined (YYBYACC)
18733a7ed1fSJung-uk Kim #define ASL_YYTNAME_START           257 /* Berkeley yacc */
18833a7ed1fSJung-uk Kim #endif
18933a7ed1fSJung-uk Kim 
19033a7ed1fSJung-uk Kim 
19133a7ed1fSJung-uk Kim /*
192fba7fc7eSJung-uk Kim  * Macros
193fba7fc7eSJung-uk Kim  */
194fba7fc7eSJung-uk Kim #define ASL_RESDESC_OFFSET(m)       ACPI_OFFSET (AML_RESOURCE, m)
195fba7fc7eSJung-uk Kim #define ASL_PTR_DIFF(a,b)           ((UINT8 *)(b) - (UINT8 *)(a))
196fba7fc7eSJung-uk Kim #define ASL_PTR_ADD(a,b)            ((UINT8 *)(a) = ((UINT8 *)(a) + (b)))
197fba7fc7eSJung-uk Kim #define ASL_GET_CHILD_NODE(a)       (a)->Asl.Child
198fba7fc7eSJung-uk Kim #define ASL_GET_PEER_NODE(a)        (a)->Asl.Next
199fba7fc7eSJung-uk Kim #define OP_TABLE_ENTRY(a,b,c,d)     {b,d,a,c}
200fba7fc7eSJung-uk Kim 
201fba7fc7eSJung-uk Kim 
202fba7fc7eSJung-uk Kim /* Internal AML opcodes */
203fba7fc7eSJung-uk Kim 
204fba7fc7eSJung-uk Kim #define AML_RAW_DATA_BYTE           (UINT16) 0xAA01 /* write one raw byte */
205fba7fc7eSJung-uk Kim #define AML_RAW_DATA_WORD           (UINT16) 0xAA02 /* write 2 raw bytes */
206fba7fc7eSJung-uk Kim #define AML_RAW_DATA_DWORD          (UINT16) 0xAA04 /* write 4 raw bytes */
207fba7fc7eSJung-uk Kim #define AML_RAW_DATA_QWORD          (UINT16) 0xAA08 /* write 8 raw bytes */
208fba7fc7eSJung-uk Kim #define AML_RAW_DATA_BUFFER         (UINT16) 0xAA0B /* raw buffer with length */
209fba7fc7eSJung-uk Kim #define AML_RAW_DATA_CHAIN          (UINT16) 0xAA0C /* chain of raw buffers */
210fba7fc7eSJung-uk Kim #define AML_PACKAGE_LENGTH          (UINT16) 0xAA10
211fba7fc7eSJung-uk Kim #define AML_UNASSIGNED_OPCODE       (UINT16) 0xEEEE
212fba7fc7eSJung-uk Kim #define AML_DEFAULT_ARG_OP          (UINT16) 0xDDDD
213fba7fc7eSJung-uk Kim 
214fba7fc7eSJung-uk Kim 
215a88e22b7SJung-uk Kim /* Types for input files */
216a88e22b7SJung-uk Kim 
217a88e22b7SJung-uk Kim #define ASL_INPUT_TYPE_BINARY               0
218f8146b88SJung-uk Kim #define ASL_INPUT_TYPE_BINARY_ACPI_TABLE    1
2199c48c75eSJung-uk Kim #define ASL_INPUT_TYPE_ASCII_ASL            2
2209c48c75eSJung-uk Kim #define ASL_INPUT_TYPE_ASCII_DATA           3
221fba7fc7eSJung-uk Kim 
222fba7fc7eSJung-uk Kim 
223fba7fc7eSJung-uk Kim /* Misc */
224fba7fc7eSJung-uk Kim 
225f9a6772eSJung-uk Kim #define ASL_EXTERNAL_METHOD_UNKNOWN_PARAMS  255
226fba7fc7eSJung-uk Kim #define ASL_ABORT                           TRUE
227fba7fc7eSJung-uk Kim #define ASL_NO_ABORT                        FALSE
228d052a1ccSJung-uk Kim #define ASL_EOF                             ACPI_UINT32_MAX
229f8146b88SJung-uk Kim #define ASL_IGNORE_LINE                     (ACPI_UINT32_MAX -1)
2303ee58df5SJung-uk Kim #define ASL_ERROR_CODE_LENGTH               4
231fba7fc7eSJung-uk Kim 
232fba7fc7eSJung-uk Kim 
2339c7c683cSJung-uk Kim /* Listings */
2349c7c683cSJung-uk Kim 
2359c7c683cSJung-uk Kim #define ASL_LISTING_LINE_PREFIX         ":  "
2369c7c683cSJung-uk Kim 
2379c7c683cSJung-uk Kim 
238fba7fc7eSJung-uk Kim /* Support for reserved method names */
239fba7fc7eSJung-uk Kim 
240fba7fc7eSJung-uk Kim #define ACPI_VALID_RESERVED_NAME_MAX    0x80000000
241fba7fc7eSJung-uk Kim #define ACPI_NOT_RESERVED_NAME          ACPI_UINT32_MAX
242fba7fc7eSJung-uk Kim #define ACPI_PREDEFINED_NAME            (ACPI_UINT32_MAX - 1)
243fba7fc7eSJung-uk Kim #define ACPI_EVENT_RESERVED_NAME        (ACPI_UINT32_MAX - 2)
244fba7fc7eSJung-uk Kim #define ACPI_COMPILER_RESERVED_NAME     (ACPI_UINT32_MAX - 3)
245fba7fc7eSJung-uk Kim 
246fba7fc7eSJung-uk Kim 
2473f0275a0SJung-uk Kim /* Helper macros for resource tag creation */
2483f0275a0SJung-uk Kim 
2493f0275a0SJung-uk Kim #define RsCreateMultiBitField \
2503f0275a0SJung-uk Kim     RsCreateResourceField
2513f0275a0SJung-uk Kim 
2523f0275a0SJung-uk Kim #define RsCreateBitField(Op, Name, ByteOffset, BitOffset) \
2533f0275a0SJung-uk Kim     RsCreateResourceField (Op, Name, ByteOffset, BitOffset, 1)
2543f0275a0SJung-uk Kim 
2553f0275a0SJung-uk Kim #define RsCreateByteField(Op, Name, ByteOffset) \
2563f0275a0SJung-uk Kim     RsCreateResourceField (Op, Name, ByteOffset, 0, 8);
2573f0275a0SJung-uk Kim 
2583f0275a0SJung-uk Kim #define RsCreateWordField(Op, Name, ByteOffset) \
2593f0275a0SJung-uk Kim     RsCreateResourceField (Op, Name, ByteOffset, 0, 16);
2603f0275a0SJung-uk Kim 
2613f0275a0SJung-uk Kim #define RsCreateDwordField(Op, Name, ByteOffset) \
2623f0275a0SJung-uk Kim     RsCreateResourceField (Op, Name, ByteOffset, 0, 32);
2633f0275a0SJung-uk Kim 
2643f0275a0SJung-uk Kim #define RsCreateQwordField(Op, Name, ByteOffset) \
2653f0275a0SJung-uk Kim     RsCreateResourceField (Op, Name, ByteOffset, 0, 64);
2663f0275a0SJung-uk Kim 
267f8146b88SJung-uk Kim 
268f8146b88SJung-uk Kim /*
269f8146b88SJung-uk Kim  * Macros for debug output
270f8146b88SJung-uk Kim  */
271f8146b88SJung-uk Kim #define DEBUG_MAX_LINE_LENGTH       61
272f8146b88SJung-uk Kim #define DEBUG_SPACES_PER_INDENT     3
273f8146b88SJung-uk Kim #define DEBUG_FULL_LINE_LENGTH      71
274f8146b88SJung-uk Kim 
275f8146b88SJung-uk Kim #define ASL_PARSE_TREE_FULL_LINE    "\n%71.71s"
276f8146b88SJung-uk Kim 
277f8146b88SJung-uk Kim /* Header/Trailer for original parse tree directly from the parser */
278f8146b88SJung-uk Kim 
279f8146b88SJung-uk Kim #define ASL_PARSE_TREE_HEADER1 \
280f8146b88SJung-uk Kim     "%*s Value P_Op Flags     Line#  End# LogL# EndL#\n", 65, " "
281f8146b88SJung-uk Kim 
282f8146b88SJung-uk Kim #define ASL_PARSE_TREE_DEBUG1 \
283f8146b88SJung-uk Kim     " %4.4X %8.8X %5d %5d %5d %5d"
284f8146b88SJung-uk Kim 
285f8146b88SJung-uk Kim /* Header/Trailer for processed parse tree used for AML generation */
286f8146b88SJung-uk Kim 
287f8146b88SJung-uk Kim #define ASL_PARSE_TREE_HEADER2 \
288f8146b88SJung-uk Kim     "%*s NameString Value    P_Op A_Op OpLen PByts Len  SubLen PSubLen OpPtr"\
289f8146b88SJung-uk Kim     "    Parent   Child    Next     Flags    AcTyp    Final Col"\
290f8146b88SJung-uk Kim     " Line#  End# LogL# EndL#\n", 60, " "
291f8146b88SJung-uk Kim 
292f8146b88SJung-uk Kim #define ASL_PARSE_TREE_DEBUG2 \
293f8146b88SJung-uk Kim     " %08X %04X %04X %01X     %04X  %04X %05X  %05X   "\
294a009b7dcSJung-uk Kim     "%8p %8p %8p %8p %08X %08X %04X  %02d  %5d %5d %5d %5d"
295f8146b88SJung-uk Kim 
2960d84335fSJung-uk Kim /*
2970d84335fSJung-uk Kim  * Macros for ASL/ASL+ converter
2980d84335fSJung-uk Kim  */
2996f1f1a63SJung-uk Kim #define COMMENT_CAPTURE_ON    AslGbl_CommentState.CaptureComments = TRUE;
3006f1f1a63SJung-uk Kim #define COMMENT_CAPTURE_OFF   AslGbl_CommentState.CaptureComments = FALSE;
3010d84335fSJung-uk Kim 
30237d7a5bcSJung-uk Kim /*
30337d7a5bcSJung-uk Kim  * Special name segments - these must only be declared at the root scope
30437d7a5bcSJung-uk Kim  */
30537d7a5bcSJung-uk Kim #define NAMESEG__PTS    "_PTS"
30637d7a5bcSJung-uk Kim #define NAMESEG__WAK    "_WAK"
30737d7a5bcSJung-uk Kim #define NAMESEG__S0     "_S0_"
30837d7a5bcSJung-uk Kim #define NAMESEG__S1     "_S1_"
30937d7a5bcSJung-uk Kim #define NAMESEG__S2     "_S2_"
31037d7a5bcSJung-uk Kim #define NAMESEG__S3     "_S3_"
31137d7a5bcSJung-uk Kim #define NAMESEG__S4     "_S4_"
31237d7a5bcSJung-uk Kim #define NAMESEG__S5     "_S5_"
31337d7a5bcSJung-uk Kim #define NAMESEG__TTS    "_TTS"
31437d7a5bcSJung-uk Kim 
31537d7a5bcSJung-uk Kim #define MAX_SPECIAL_NAMES      9
31637d7a5bcSJung-uk Kim 
31737d7a5bcSJung-uk Kim 
318fba7fc7eSJung-uk Kim #endif /* ASLDEFINE.H */
319