xref: /freebsd/sys/contrib/dev/acpica/compiler/aslcompiler.h (revision 722b16673c40aedf280895f2f2f676bb494518d7)
153289f6aSNate Lawson /******************************************************************************
253289f6aSNate Lawson  *
3fba7fc7eSJung-uk Kim  * Module Name: aslcompiler.h - common include file for iASL
453289f6aSNate Lawson  *
553289f6aSNate Lawson  *****************************************************************************/
653289f6aSNate Lawson 
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.
1253289f6aSNate Lawson  * All rights reserved.
1353289f6aSNate Lawson  *
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.
13353289f6aSNate Lawson  *
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.
14953289f6aSNate Lawson  *
1500d84335fSJung-uk Kim  *****************************************************************************/
15153289f6aSNate Lawson 
15253289f6aSNate Lawson #ifndef __ASLCOMPILER_H
15353289f6aSNate Lawson #define __ASLCOMPILER_H
15453289f6aSNate Lawson 
155d244b227SJung-uk Kim #include <contrib/dev/acpica/include/acpi.h>
156d244b227SJung-uk Kim #include <contrib/dev/acpica/include/accommon.h>
157d244b227SJung-uk Kim #include <contrib/dev/acpica/include/amlresrc.h>
158d244b227SJung-uk Kim #include <contrib/dev/acpica/include/acdebug.h>
15953289f6aSNate Lawson 
16053289f6aSNate Lawson /* Microsoft-specific */
16153289f6aSNate Lawson 
16253289f6aSNate Lawson #if (defined WIN32 || defined WIN64)
16353289f6aSNate Lawson 
16453289f6aSNate Lawson /* warn : used #pragma pack */
16553289f6aSNate Lawson #pragma warning(disable:4103)
16653289f6aSNate Lawson 
16753289f6aSNate Lawson /* warn : named type definition in parentheses */
16853289f6aSNate Lawson #pragma warning(disable:4115)
16953289f6aSNate Lawson #endif
17053289f6aSNate Lawson 
17153289f6aSNate Lawson #include <stdio.h>
17253289f6aSNate Lawson #include <stdlib.h>
17353289f6aSNate Lawson #include <string.h>
17453289f6aSNate Lawson #include <errno.h>
17553289f6aSNate Lawson #include <ctype.h>
17653289f6aSNate Lawson 
177fba7fc7eSJung-uk Kim /* Compiler headers */
17853289f6aSNate Lawson 
179ab6f3bf9SJung-uk Kim #include <contrib/dev/acpica/compiler/asldefine.h>
180ab6f3bf9SJung-uk Kim #include <contrib/dev/acpica/compiler/asltypes.h>
1813c1812acSJung-uk Kim #include <contrib/dev/acpica/compiler/aslmessages.h>
182ab6f3bf9SJung-uk Kim #include <contrib/dev/acpica/compiler/aslglobal.h>
1834c52cad2SJung-uk Kim #include <contrib/dev/acpica/compiler/preprocess.h>
18467d9aa44SJung-uk Kim #include <contrib/dev/acpica/compiler/dtcompiler.h>
18553289f6aSNate Lawson 
18653289f6aSNate Lawson 
18753289f6aSNate Lawson /*******************************************************************************
18853289f6aSNate Lawson  *
18953289f6aSNate Lawson  * Compiler prototypes
19053289f6aSNate Lawson  *
19153289f6aSNate Lawson  ******************************************************************************/
19253289f6aSNate Lawson 
193fba7fc7eSJung-uk Kim /*
1944c52cad2SJung-uk Kim  * Main ASL parser - generated from flex/bison, lex/yacc, etc.
195fba7fc7eSJung-uk Kim  */
19653289f6aSNate Lawson ACPI_PARSE_OBJECT *
19753289f6aSNate Lawson AslDoError (
19853289f6aSNate Lawson     void);
19953289f6aSNate Lawson 
20053289f6aSNate Lawson int
20153289f6aSNate Lawson AslCompilerlex(
20253289f6aSNate Lawson     void);
20353289f6aSNate Lawson 
20453289f6aSNate Lawson void
205eef1b955SJung-uk Kim AslResetCurrentLineBuffer (
20653289f6aSNate Lawson     void);
20753289f6aSNate Lawson 
20853289f6aSNate Lawson void
209eef1b955SJung-uk Kim AslInsertLineBuffer (
21053289f6aSNate Lawson     int                     SourceChar);
21153289f6aSNate Lawson 
21253289f6aSNate Lawson int
21353289f6aSNate Lawson AslPopInputFileStack (
21453289f6aSNate Lawson     void);
21553289f6aSNate Lawson 
21653289f6aSNate Lawson void
21753289f6aSNate Lawson AslPushInputFileStack (
21853289f6aSNate Lawson     FILE                    *InputFile,
21953289f6aSNate Lawson     char                    *Filename);
22053289f6aSNate Lawson 
221313a0c13SJung-uk Kim void
222313a0c13SJung-uk Kim AslParserCleanup (
223313a0c13SJung-uk Kim     void);
224313a0c13SJung-uk Kim 
225313a0c13SJung-uk Kim 
226a9f12690SJung-uk Kim /*
227a88e22b7SJung-uk Kim  * aslstartup - entered from main()
228a9f12690SJung-uk Kim  */
229a88e22b7SJung-uk Kim void
230a88e22b7SJung-uk Kim AslInitializeGlobals (
231a88e22b7SJung-uk Kim     void);
232a88e22b7SJung-uk Kim 
233709fac06SJung-uk Kim typedef
234709fac06SJung-uk Kim ACPI_STATUS (*ASL_PATHNAME_CALLBACK) (
235709fac06SJung-uk Kim     char *);
236709fac06SJung-uk Kim 
237a9f12690SJung-uk Kim ACPI_STATUS
238a9f12690SJung-uk Kim AslDoOneFile (
239a9f12690SJung-uk Kim     char                    *Filename);
24053289f6aSNate Lawson 
241eef1b955SJung-uk Kim ACPI_STATUS
242eef1b955SJung-uk Kim AslCheckForErrorExit (
243eef1b955SJung-uk Kim     void);
244eef1b955SJung-uk Kim 
245eef1b955SJung-uk Kim 
246fba7fc7eSJung-uk Kim /*
247fba7fc7eSJung-uk Kim  * aslcompile - compile mainline
248fba7fc7eSJung-uk Kim  */
24953289f6aSNate Lawson void
25053289f6aSNate Lawson AslCompilerSignon (
25153289f6aSNate Lawson     UINT32                  FileId);
25253289f6aSNate Lawson 
25353289f6aSNate Lawson void
25453289f6aSNate Lawson AslCompilerFileHeader (
25553289f6aSNate Lawson     UINT32                  FileId);
25653289f6aSNate Lawson 
25744b0f624SJung-uk Kim ACPI_STATUS
258fba7fc7eSJung-uk Kim CmDoCompile (
25953289f6aSNate Lawson     void);
26053289f6aSNate Lawson 
26144b0f624SJung-uk Kim int
26244b0f624SJung-uk Kim CmDoAslMiddleAndBackEnd (
26344b0f624SJung-uk Kim     void);
26444b0f624SJung-uk Kim 
26553289f6aSNate Lawson void
266fba7fc7eSJung-uk Kim CmDoOutputFiles (
26753289f6aSNate Lawson     void);
26853289f6aSNate Lawson 
269a009b7dcSJung-uk Kim int
270fba7fc7eSJung-uk Kim CmCleanupAndExit (
27153289f6aSNate Lawson     void);
27253289f6aSNate Lawson 
27344b0f624SJung-uk Kim ACPI_STATUS
27444b0f624SJung-uk Kim AslDoDisassembly (
27544b0f624SJung-uk Kim     void);
27644b0f624SJung-uk Kim 
27767d9aa44SJung-uk Kim 
27867d9aa44SJung-uk Kim /*
27967d9aa44SJung-uk Kim  * aslallocate - memory allocation
28067d9aa44SJung-uk Kim  */
28167d9aa44SJung-uk Kim void *
28267d9aa44SJung-uk Kim UtLocalCalloc (
28367d9aa44SJung-uk Kim     UINT32                  Size);
28467d9aa44SJung-uk Kim 
285313a0c13SJung-uk Kim void
28667d9aa44SJung-uk Kim UtExpandLineBuffers (
28767d9aa44SJung-uk Kim     void);
28867d9aa44SJung-uk Kim 
28967d9aa44SJung-uk Kim void
29067d9aa44SJung-uk Kim UtReallocLineBuffers (
29167d9aa44SJung-uk Kim     char                    **Buffer,
29267d9aa44SJung-uk Kim     UINT32                  OldSize,
29367d9aa44SJung-uk Kim     UINT32                  NewSize);
29467d9aa44SJung-uk Kim 
29567d9aa44SJung-uk Kim void
29667d9aa44SJung-uk Kim UtFreeLineBuffers (
29767d9aa44SJung-uk Kim     void);
29867d9aa44SJung-uk Kim 
29967d9aa44SJung-uk Kim 
30067d9aa44SJung-uk Kim /*
30167d9aa44SJung-uk Kim  * aslcache - local cache support
30267d9aa44SJung-uk Kim  */
30367d9aa44SJung-uk Kim char *
30467d9aa44SJung-uk Kim UtLocalCacheCalloc (
30567d9aa44SJung-uk Kim     UINT32                  Length);
30667d9aa44SJung-uk Kim 
30767d9aa44SJung-uk Kim ACPI_PARSE_OBJECT *
30867d9aa44SJung-uk Kim UtParseOpCacheCalloc (
30967d9aa44SJung-uk Kim     void);
31067d9aa44SJung-uk Kim 
31167d9aa44SJung-uk Kim DT_SUBTABLE *
31267d9aa44SJung-uk Kim UtSubtableCacheCalloc (
31367d9aa44SJung-uk Kim     void);
31467d9aa44SJung-uk Kim 
31567d9aa44SJung-uk Kim DT_FIELD *
31667d9aa44SJung-uk Kim UtFieldCacheCalloc (
31767d9aa44SJung-uk Kim     void);
31867d9aa44SJung-uk Kim 
31967d9aa44SJung-uk Kim void
32067d9aa44SJung-uk Kim UtDeleteLocalCaches (
321313a0c13SJung-uk Kim     void);
322313a0c13SJung-uk Kim 
323313a0c13SJung-uk Kim 
324313a0c13SJung-uk Kim /*
325313a0c13SJung-uk Kim  * aslascii - ascii support
326313a0c13SJung-uk Kim  */
327a88e22b7SJung-uk Kim ACPI_STATUS
328f8146b88SJung-uk Kim FlIsFileAsciiSource (
329a7a3b383SJung-uk Kim     char                    *Filename,
330a7a3b383SJung-uk Kim     BOOLEAN                 DisplayErrors);
331a88e22b7SJung-uk Kim 
33253289f6aSNate Lawson 
33353289f6aSNate Lawson /*
3340b94ba42SJung-uk Kim  * aslwalks - semantic analysis and parse tree walks
33553289f6aSNate Lawson  */
33653289f6aSNate Lawson ACPI_STATUS
33753289f6aSNate Lawson AnOtherSemanticAnalysisWalkBegin (
33853289f6aSNate Lawson     ACPI_PARSE_OBJECT       *Op,
33953289f6aSNate Lawson     UINT32                  Level,
34053289f6aSNate Lawson     void                    *Context);
34153289f6aSNate Lawson 
34253289f6aSNate Lawson ACPI_STATUS
34353289f6aSNate Lawson AnOtherSemanticAnalysisWalkEnd (
34453289f6aSNate Lawson     ACPI_PARSE_OBJECT       *Op,
34553289f6aSNate Lawson     UINT32                  Level,
34653289f6aSNate Lawson     void                    *Context);
34753289f6aSNate Lawson 
34853289f6aSNate Lawson ACPI_STATUS
34953289f6aSNate Lawson AnOperandTypecheckWalkEnd (
35053289f6aSNate Lawson     ACPI_PARSE_OBJECT       *Op,
35153289f6aSNate Lawson     UINT32                  Level,
35253289f6aSNate Lawson     void                    *Context);
35353289f6aSNate Lawson 
35453289f6aSNate Lawson ACPI_STATUS
35553289f6aSNate Lawson AnMethodTypingWalkEnd (
35653289f6aSNate Lawson     ACPI_PARSE_OBJECT       *Op,
35753289f6aSNate Lawson     UINT32                  Level,
35853289f6aSNate Lawson     void                    *Context);
35953289f6aSNate Lawson 
36053289f6aSNate Lawson 
36153289f6aSNate Lawson /*
362efcc2a30SJung-uk Kim  * aslmethod - Control method analysis walk
363efcc2a30SJung-uk Kim  */
364efcc2a30SJung-uk Kim ACPI_STATUS
365efcc2a30SJung-uk Kim MtMethodAnalysisWalkBegin (
366efcc2a30SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
367efcc2a30SJung-uk Kim     UINT32                  Level,
368efcc2a30SJung-uk Kim     void                    *Context);
369efcc2a30SJung-uk Kim 
370efcc2a30SJung-uk Kim ACPI_STATUS
371efcc2a30SJung-uk Kim MtMethodAnalysisWalkEnd (
372efcc2a30SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
373efcc2a30SJung-uk Kim     UINT32                  Level,
374efcc2a30SJung-uk Kim     void                    *Context);
375efcc2a30SJung-uk Kim 
376ec0234b4SJung-uk Kim UINT32
377ec0234b4SJung-uk Kim MtProcessTypeOp (
378ec0234b4SJung-uk Kim     ACPI_PARSE_OBJECT       *TypeOp);
379ec0234b4SJung-uk Kim 
380ec0234b4SJung-uk Kim UINT8
381ec0234b4SJung-uk Kim MtProcessParameterTypeList (
382ec0234b4SJung-uk Kim     ACPI_PARSE_OBJECT       *ParamTypeOp,
383ec0234b4SJung-uk Kim     UINT32                  *TypeList);
384ec0234b4SJung-uk Kim 
385efcc2a30SJung-uk Kim 
386efcc2a30SJung-uk Kim /*
3870b94ba42SJung-uk Kim  * aslbtypes - bitfield data types
3880b94ba42SJung-uk Kim  */
3890b94ba42SJung-uk Kim UINT32
3900b94ba42SJung-uk Kim AnMapObjTypeToBtype (
3910b94ba42SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
3920b94ba42SJung-uk Kim 
3930b94ba42SJung-uk Kim UINT32
3940b94ba42SJung-uk Kim AnMapArgTypeToBtype (
3950b94ba42SJung-uk Kim     UINT32                  ArgType);
3960b94ba42SJung-uk Kim 
3970b94ba42SJung-uk Kim UINT32
3980b94ba42SJung-uk Kim AnGetBtype (
3990b94ba42SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
4000b94ba42SJung-uk Kim 
4010b94ba42SJung-uk Kim void
4020b94ba42SJung-uk Kim AnFormatBtype (
4030b94ba42SJung-uk Kim     char                    *Buffer,
4040b94ba42SJung-uk Kim     UINT32                  Btype);
4050b94ba42SJung-uk Kim 
4060b94ba42SJung-uk Kim 
4070b94ba42SJung-uk Kim /*
4080b94ba42SJung-uk Kim  * aslanalyze - Support functions for parse tree walks
4090b94ba42SJung-uk Kim  */
4100b94ba42SJung-uk Kim void
4110b94ba42SJung-uk Kim AnCheckId (
4120b94ba42SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
4130b94ba42SJung-uk Kim     ACPI_NAME               Type);
4140b94ba42SJung-uk Kim 
4150b94ba42SJung-uk Kim /* Values for Type argument above */
4160b94ba42SJung-uk Kim 
4170b94ba42SJung-uk Kim #define ASL_TYPE_HID        0
4180b94ba42SJung-uk Kim #define ASL_TYPE_CID        1
4190b94ba42SJung-uk Kim 
4200b94ba42SJung-uk Kim BOOLEAN
4210b94ba42SJung-uk Kim AnIsInternalMethod (
4220b94ba42SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
4230b94ba42SJung-uk Kim 
4240b94ba42SJung-uk Kim UINT32
4250b94ba42SJung-uk Kim AnGetInternalMethodReturnType (
4260b94ba42SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
4270b94ba42SJung-uk Kim 
4280b94ba42SJung-uk Kim BOOLEAN
4290b94ba42SJung-uk Kim AnLastStatementIsReturn (
4300b94ba42SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
4310b94ba42SJung-uk Kim 
4320b94ba42SJung-uk Kim void
4330b94ba42SJung-uk Kim AnCheckMethodReturnValue (
4340b94ba42SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
4350b94ba42SJung-uk Kim     const ACPI_OPCODE_INFO  *OpInfo,
4360b94ba42SJung-uk Kim     ACPI_PARSE_OBJECT       *ArgOp,
4370b94ba42SJung-uk Kim     UINT32                  RequiredBtypes,
4380b94ba42SJung-uk Kim     UINT32                  ThisNodeBtype);
4390b94ba42SJung-uk Kim 
4400b94ba42SJung-uk Kim BOOLEAN
4410b94ba42SJung-uk Kim AnIsResultUsed (
4420b94ba42SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
4430b94ba42SJung-uk Kim 
4440b94ba42SJung-uk Kim void
4450b94ba42SJung-uk Kim ApCheckForGpeNameConflict (
4460b94ba42SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
4470b94ba42SJung-uk Kim 
448d052a1ccSJung-uk Kim void
449d052a1ccSJung-uk Kim ApCheckRegMethod (
450d052a1ccSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
451d052a1ccSJung-uk Kim 
452313a0c13SJung-uk Kim BOOLEAN
453313a0c13SJung-uk Kim ApFindNameInScope (
454313a0c13SJung-uk Kim     char                    *Name,
455313a0c13SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
456313a0c13SJung-uk Kim 
457f8146b88SJung-uk Kim BOOLEAN
458f8146b88SJung-uk Kim ApFindNameInDeviceTree (
459f8146b88SJung-uk Kim     char                    *Name,
460f8146b88SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
4610b94ba42SJung-uk Kim 
4620b94ba42SJung-uk Kim /*
463fba7fc7eSJung-uk Kim  * aslerror - error handling/reporting
46453289f6aSNate Lawson  */
465fba7fc7eSJung-uk Kim void
466313a0c13SJung-uk Kim AslAbort (
467313a0c13SJung-uk Kim     void);
468313a0c13SJung-uk Kim 
469313a0c13SJung-uk Kim void
47067d9aa44SJung-uk Kim AslDualParseOpError (
47167d9aa44SJung-uk Kim     UINT8                   Level,
47267d9aa44SJung-uk Kim     UINT16                  MainMessageId,
47367d9aa44SJung-uk Kim     ACPI_PARSE_OBJECT       *MainOp,
47467d9aa44SJung-uk Kim     char                    *MainMessage,
47567d9aa44SJung-uk Kim     UINT16                  SecondMessageId,
47667d9aa44SJung-uk Kim     ACPI_PARSE_OBJECT       *SecondOp,
47767d9aa44SJung-uk Kim     char                    *SecondaryMessage);
47867d9aa44SJung-uk Kim 
47967d9aa44SJung-uk Kim void
480fba7fc7eSJung-uk Kim AslError (
481fba7fc7eSJung-uk Kim     UINT8                   Level,
482313a0c13SJung-uk Kim     UINT16                  MessageId,
483fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
484fba7fc7eSJung-uk Kim     char                    *ExtraMessage);
48553289f6aSNate Lawson 
4865f9b24faSJung-uk Kim void
4875f9b24faSJung-uk Kim AslCheckExpectedExceptions (
4885f9b24faSJung-uk Kim     void);
4895f9b24faSJung-uk Kim 
4905f9b24faSJung-uk Kim ACPI_STATUS
4913ee58df5SJung-uk Kim AslLogExpectedException (
4925f9b24faSJung-uk Kim     char                    *MessageIdString);
4935f9b24faSJung-uk Kim 
494a9d8d09cSJung-uk Kim ACPI_STATUS
49590b566fdSJung-uk Kim AslElevateException (
49690b566fdSJung-uk Kim     char                    *MessageIdString);
49790b566fdSJung-uk Kim 
49890b566fdSJung-uk Kim ACPI_STATUS
499a9d8d09cSJung-uk Kim AslDisableException (
500a9d8d09cSJung-uk Kim     char                    *MessageIdString);
501a9d8d09cSJung-uk Kim 
502a9d8d09cSJung-uk Kim BOOLEAN
5035f9b24faSJung-uk Kim AslIsExceptionIgnored (
5043ee58df5SJung-uk Kim     char                    *Filename,
5053ee58df5SJung-uk Kim     UINT32                  LineNumber,
506a9d8d09cSJung-uk Kim     UINT8                   Level,
507313a0c13SJung-uk Kim     UINT16                  MessageId);
508a9d8d09cSJung-uk Kim 
50953289f6aSNate Lawson void
5103ee58df5SJung-uk Kim AslLogExpectedExceptionByLine (
5113ee58df5SJung-uk Kim     char                    *MessageIdString);
5123ee58df5SJung-uk Kim 
5133ee58df5SJung-uk Kim void
514fba7fc7eSJung-uk Kim AslCoreSubsystemError (
515fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
516fba7fc7eSJung-uk Kim     ACPI_STATUS             Status,
517fba7fc7eSJung-uk Kim     char                    *ExtraMessage,
518fba7fc7eSJung-uk Kim     BOOLEAN                 Abort);
51953289f6aSNate Lawson 
520fba7fc7eSJung-uk Kim int
521fba7fc7eSJung-uk Kim AslCompilererror(
5223f0275a0SJung-uk Kim     const char              *s);
523fba7fc7eSJung-uk Kim 
524fba7fc7eSJung-uk Kim void
525fba7fc7eSJung-uk Kim AslCommonError (
526fba7fc7eSJung-uk Kim     UINT8                   Level,
527313a0c13SJung-uk Kim     UINT16                  MessageId,
528fba7fc7eSJung-uk Kim     UINT32                  CurrentLineNumber,
529fba7fc7eSJung-uk Kim     UINT32                  LogicalLineNumber,
530fba7fc7eSJung-uk Kim     UINT32                  LogicalByteOffset,
531fba7fc7eSJung-uk Kim     UINT32                  Column,
532fba7fc7eSJung-uk Kim     char                    *Filename,
533fba7fc7eSJung-uk Kim     char                    *ExtraMessage);
534fba7fc7eSJung-uk Kim 
535fba7fc7eSJung-uk Kim void
5364c52cad2SJung-uk Kim AslCommonError2 (
5374c52cad2SJung-uk Kim     UINT8                   Level,
538313a0c13SJung-uk Kim     UINT16                  MessageId,
5394c52cad2SJung-uk Kim     UINT32                  LineNumber,
5404c52cad2SJung-uk Kim     UINT32                  Column,
5414c52cad2SJung-uk Kim     char                    *SourceLine,
5424c52cad2SJung-uk Kim     char                    *Filename,
5434c52cad2SJung-uk Kim     char                    *ExtraMessage);
5444c52cad2SJung-uk Kim 
5454c52cad2SJung-uk Kim void
546fba7fc7eSJung-uk Kim AePrintException (
547fba7fc7eSJung-uk Kim     UINT32                  FileId,
548fba7fc7eSJung-uk Kim     ASL_ERROR_MSG           *Enode,
549fba7fc7eSJung-uk Kim     char                    *Header);
550fba7fc7eSJung-uk Kim 
551fba7fc7eSJung-uk Kim void
552fba7fc7eSJung-uk Kim AePrintErrorLog (
553fba7fc7eSJung-uk Kim     UINT32                  FileId);
554fba7fc7eSJung-uk Kim 
555a9f12690SJung-uk Kim void
556a9f12690SJung-uk Kim AeClearErrorLog (
557a9f12690SJung-uk Kim     void);
558a9f12690SJung-uk Kim 
559fba7fc7eSJung-uk Kim 
560fba7fc7eSJung-uk Kim /*
561fba7fc7eSJung-uk Kim  * asllisting - generate all "listing" type files
562fba7fc7eSJung-uk Kim  */
563fba7fc7eSJung-uk Kim void
564fba7fc7eSJung-uk Kim LsDoListings (
565fba7fc7eSJung-uk Kim     void);
566fba7fc7eSJung-uk Kim 
567fba7fc7eSJung-uk Kim void
568fba7fc7eSJung-uk Kim LsWriteNodeToAsmListing (
569fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
570fba7fc7eSJung-uk Kim 
571fba7fc7eSJung-uk Kim void
572fba7fc7eSJung-uk Kim LsWriteNode (
573fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
574fba7fc7eSJung-uk Kim     UINT32                  FileId);
575fba7fc7eSJung-uk Kim 
576fba7fc7eSJung-uk Kim void
5771a39cfb0SJung-uk Kim LsDumpParseTree (
5781a39cfb0SJung-uk Kim     void);
579fba7fc7eSJung-uk Kim 
580efcc2a30SJung-uk Kim 
581efcc2a30SJung-uk Kim /*
5829c7c683cSJung-uk Kim  * asllistsup - Listing file support utilities
5839c7c683cSJung-uk Kim  */
5849c7c683cSJung-uk Kim void
5859c7c683cSJung-uk Kim LsDumpAscii (
5869c7c683cSJung-uk Kim     UINT32                  FileId,
5879c7c683cSJung-uk Kim     UINT32                  Count,
5889c7c683cSJung-uk Kim     UINT8                   *Buffer);
5899c7c683cSJung-uk Kim 
5909c7c683cSJung-uk Kim void
5919c7c683cSJung-uk Kim LsDumpAsciiInComment (
5929c7c683cSJung-uk Kim     UINT32                  FileId,
5939c7c683cSJung-uk Kim     UINT32                  Count,
5949c7c683cSJung-uk Kim     UINT8                   *Buffer);
5959c7c683cSJung-uk Kim 
5969c7c683cSJung-uk Kim void
5979c7c683cSJung-uk Kim LsCheckException (
5989c7c683cSJung-uk Kim     UINT32                  LineNumber,
5999c7c683cSJung-uk Kim     UINT32                  FileId);
6009c7c683cSJung-uk Kim 
6019c7c683cSJung-uk Kim void
6029c7c683cSJung-uk Kim LsFlushListingBuffer (
6039c7c683cSJung-uk Kim     UINT32                  FileId);
6049c7c683cSJung-uk Kim 
6059c7c683cSJung-uk Kim void
6069c7c683cSJung-uk Kim LsWriteListingHexBytes (
6079c7c683cSJung-uk Kim     UINT8                   *Buffer,
6089c7c683cSJung-uk Kim     UINT32                  Length,
6099c7c683cSJung-uk Kim     UINT32                  FileId);
6109c7c683cSJung-uk Kim 
6119c7c683cSJung-uk Kim void
6129c7c683cSJung-uk Kim LsWriteSourceLines (
6139c7c683cSJung-uk Kim     UINT32                  ToLineNumber,
6149c7c683cSJung-uk Kim     UINT32                  ToLogicalLineNumber,
6159c7c683cSJung-uk Kim     UINT32                  FileId);
6169c7c683cSJung-uk Kim 
6179c7c683cSJung-uk Kim UINT32
6189c7c683cSJung-uk Kim LsWriteOneSourceLine (
6199c7c683cSJung-uk Kim     UINT32                  FileId);
6209c7c683cSJung-uk Kim 
6219c7c683cSJung-uk Kim void
6229c7c683cSJung-uk Kim LsPushNode (
6239c7c683cSJung-uk Kim     char                    *Filename);
6249c7c683cSJung-uk Kim 
6259c7c683cSJung-uk Kim ASL_LISTING_NODE *
6269c7c683cSJung-uk Kim LsPopNode (
6279c7c683cSJung-uk Kim     void);
6289c7c683cSJung-uk Kim 
6299c7c683cSJung-uk Kim 
6309c7c683cSJung-uk Kim /*
631efcc2a30SJung-uk Kim  * aslhex - generate all "hex" output files (C, ASM, ASL)
632efcc2a30SJung-uk Kim  */
633efcc2a30SJung-uk Kim void
634efcc2a30SJung-uk Kim HxDoHexOutput (
635efcc2a30SJung-uk Kim     void);
636efcc2a30SJung-uk Kim 
637efcc2a30SJung-uk Kim 
638fba7fc7eSJung-uk Kim /*
639fba7fc7eSJung-uk Kim  * aslfold - constant folding
640fba7fc7eSJung-uk Kim  */
641fba7fc7eSJung-uk Kim ACPI_STATUS
642fba7fc7eSJung-uk Kim OpcAmlConstantWalk (
643fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
644fba7fc7eSJung-uk Kim     UINT32                  Level,
645fba7fc7eSJung-uk Kim     void                    *Context);
646fba7fc7eSJung-uk Kim 
647fba7fc7eSJung-uk Kim 
648fba7fc7eSJung-uk Kim /*
649313a0c13SJung-uk Kim  * aslmessages - exception strings
650313a0c13SJung-uk Kim  */
651313a0c13SJung-uk Kim const char *
652313a0c13SJung-uk Kim AeDecodeMessageId (
653313a0c13SJung-uk Kim     UINT16                  MessageId);
654313a0c13SJung-uk Kim 
655313a0c13SJung-uk Kim const char *
656313a0c13SJung-uk Kim AeDecodeExceptionLevel (
657313a0c13SJung-uk Kim     UINT8                   Level);
658313a0c13SJung-uk Kim 
659313a0c13SJung-uk Kim UINT16
660313a0c13SJung-uk Kim AeBuildFullExceptionCode (
661313a0c13SJung-uk Kim     UINT8                   Level,
662313a0c13SJung-uk Kim     UINT16                  MessageId);
663313a0c13SJung-uk Kim 
664313a0c13SJung-uk Kim /*
6659c7c683cSJung-uk Kim  * asloffset - generate C offset file for BIOS support
6669c7c683cSJung-uk Kim  */
6679c7c683cSJung-uk Kim ACPI_STATUS
6689c7c683cSJung-uk Kim LsAmlOffsetWalk (
6699c7c683cSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
6709c7c683cSJung-uk Kim     UINT32                  Level,
6719c7c683cSJung-uk Kim     void                    *Context);
6729c7c683cSJung-uk Kim 
6739c7c683cSJung-uk Kim void
6749c7c683cSJung-uk Kim LsDoOffsetTableHeader (
6759c7c683cSJung-uk Kim     UINT32                  FileId);
6769c7c683cSJung-uk Kim 
6779c7c683cSJung-uk Kim void
6789c7c683cSJung-uk Kim LsDoOffsetTableFooter (
6799c7c683cSJung-uk Kim     UINT32                  FileId);
6809c7c683cSJung-uk Kim 
6819c7c683cSJung-uk Kim 
6829c7c683cSJung-uk Kim /*
683fba7fc7eSJung-uk Kim  * aslopcodes - generate AML opcodes
684fba7fc7eSJung-uk Kim  */
685fba7fc7eSJung-uk Kim ACPI_STATUS
686fba7fc7eSJung-uk Kim OpcAmlOpcodeWalk (
687fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
688fba7fc7eSJung-uk Kim     UINT32                  Level,
689fba7fc7eSJung-uk Kim     void                    *Context);
690fba7fc7eSJung-uk Kim 
691fba7fc7eSJung-uk Kim ACPI_STATUS
692fba7fc7eSJung-uk Kim OpcAmlOpcodeUpdateWalk (
693fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
694fba7fc7eSJung-uk Kim     UINT32                  Level,
695fba7fc7eSJung-uk Kim     void                    *Context);
696fba7fc7eSJung-uk Kim 
697fba7fc7eSJung-uk Kim void
698fba7fc7eSJung-uk Kim OpcGenerateAmlOpcode (
699fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
700fba7fc7eSJung-uk Kim 
701fba7fc7eSJung-uk Kim UINT32
702fba7fc7eSJung-uk Kim OpcSetOptimalIntegerSize (
703fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
704fba7fc7eSJung-uk Kim 
705fba7fc7eSJung-uk Kim void
706fba7fc7eSJung-uk Kim OpcGetIntegerWidth (
707fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
708fba7fc7eSJung-uk Kim 
709fba7fc7eSJung-uk Kim 
710fba7fc7eSJung-uk Kim /*
711fba7fc7eSJung-uk Kim  * asloperands - generate AML operands for the AML opcodes
712fba7fc7eSJung-uk Kim  */
713fba7fc7eSJung-uk Kim ACPI_PARSE_OBJECT  *
714fba7fc7eSJung-uk Kim UtGetArg (
715fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
716fba7fc7eSJung-uk Kim     UINT32                  Argn);
717fba7fc7eSJung-uk Kim 
718fba7fc7eSJung-uk Kim void
719fba7fc7eSJung-uk Kim OpnGenerateAmlOperands (
720fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
721fba7fc7eSJung-uk Kim 
722fba7fc7eSJung-uk Kim void
723fba7fc7eSJung-uk Kim OpnDoPackage (
724fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
725fba7fc7eSJung-uk Kim 
726fba7fc7eSJung-uk Kim 
727fba7fc7eSJung-uk Kim /*
728cd6518c7SJung-uk Kim  * aslopt - optimization
729fba7fc7eSJung-uk Kim  */
730fba7fc7eSJung-uk Kim void
731fba7fc7eSJung-uk Kim OptOptimizeNamePath (
732fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
733fba7fc7eSJung-uk Kim     UINT32                  Flags,
734fba7fc7eSJung-uk Kim     ACPI_WALK_STATE         *WalkState,
735fba7fc7eSJung-uk Kim     char                    *AmlNameString,
736fba7fc7eSJung-uk Kim     ACPI_NAMESPACE_NODE     *TargetNode);
737fba7fc7eSJung-uk Kim 
738fba7fc7eSJung-uk Kim 
739fba7fc7eSJung-uk Kim /*
740f8146b88SJung-uk Kim  * aslpld - ToPLD macro support
741f8146b88SJung-uk Kim  */
742f8146b88SJung-uk Kim void
743f8146b88SJung-uk Kim OpcDoPld (
744f8146b88SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
745f8146b88SJung-uk Kim 
746f8146b88SJung-uk Kim 
747f8146b88SJung-uk Kim /*
7481c0e1b6dSJung-uk Kim  * aslprintf - Printf/Fprintf macros
7491c0e1b6dSJung-uk Kim  */
7501c0e1b6dSJung-uk Kim void
7511c0e1b6dSJung-uk Kim OpcDoPrintf (
7521c0e1b6dSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
7531c0e1b6dSJung-uk Kim 
7541c0e1b6dSJung-uk Kim void
7551c0e1b6dSJung-uk Kim OpcDoFprintf (
7561c0e1b6dSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
7571c0e1b6dSJung-uk Kim 
7581c0e1b6dSJung-uk Kim 
7591c0e1b6dSJung-uk Kim /*
7601c0e1b6dSJung-uk Kim  * aslprune - parse tree pruner
7611c0e1b6dSJung-uk Kim  */
7621c0e1b6dSJung-uk Kim void
7631c0e1b6dSJung-uk Kim AslPruneParseTree (
7641c0e1b6dSJung-uk Kim     UINT32                  PruneDepth,
7651c0e1b6dSJung-uk Kim     UINT32                  Type);
7661c0e1b6dSJung-uk Kim 
7671c0e1b6dSJung-uk Kim 
7681c0e1b6dSJung-uk Kim /*
769fba7fc7eSJung-uk Kim  * aslcodegen - code generation
770fba7fc7eSJung-uk Kim  */
771fba7fc7eSJung-uk Kim void
772fba7fc7eSJung-uk Kim CgGenerateAmlOutput (
773fba7fc7eSJung-uk Kim     void);
774fba7fc7eSJung-uk Kim 
7750d84335fSJung-uk Kim void
7760d84335fSJung-uk Kim CgLocalWriteAmlData (
7770d84335fSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
7780d84335fSJung-uk Kim     void                    *Buffer,
7790d84335fSJung-uk Kim     UINT32                  Length);
7800d84335fSJung-uk Kim 
781fba7fc7eSJung-uk Kim 
782fba7fc7eSJung-uk Kim /*
783a88e22b7SJung-uk Kim  * aslfile
784a88e22b7SJung-uk Kim  */
785a88e22b7SJung-uk Kim void
786a88e22b7SJung-uk Kim FlOpenFile (
787a88e22b7SJung-uk Kim     UINT32                  FileId,
788a88e22b7SJung-uk Kim     char                    *Filename,
789a88e22b7SJung-uk Kim     char                    *Mode);
790a88e22b7SJung-uk Kim 
791a88e22b7SJung-uk Kim 
792a88e22b7SJung-uk Kim /*
793fba7fc7eSJung-uk Kim  * asllength - calculate/adjust AML package lengths
794fba7fc7eSJung-uk Kim  */
795fba7fc7eSJung-uk Kim ACPI_STATUS
796fba7fc7eSJung-uk Kim LnPackageLengthWalk (
797fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
798fba7fc7eSJung-uk Kim     UINT32                  Level,
799fba7fc7eSJung-uk Kim     void                    *Context);
800fba7fc7eSJung-uk Kim 
801fba7fc7eSJung-uk Kim ACPI_STATUS
802fba7fc7eSJung-uk Kim LnInitLengthsWalk (
803fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
804fba7fc7eSJung-uk Kim     UINT32                  Level,
805fba7fc7eSJung-uk Kim     void                    *Context);
806fba7fc7eSJung-uk Kim 
807fba7fc7eSJung-uk Kim void
808fba7fc7eSJung-uk Kim CgGenerateAmlLengths (
809fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
810fba7fc7eSJung-uk Kim 
811fba7fc7eSJung-uk Kim 
812fba7fc7eSJung-uk Kim /*
813fba7fc7eSJung-uk Kim  * aslmap - opcode mappings and reserved method names
814fba7fc7eSJung-uk Kim  */
815fba7fc7eSJung-uk Kim ACPI_OBJECT_TYPE
816fba7fc7eSJung-uk Kim AslMapNamedOpcodeToDataType (
817fba7fc7eSJung-uk Kim     UINT16                  Opcode);
818fba7fc7eSJung-uk Kim 
819ca3cf4faSJung-uk Kim 
820ca3cf4faSJung-uk Kim /*
821ca3cf4faSJung-uk Kim  * aslpredef - ACPI predefined names support
822ca3cf4faSJung-uk Kim  */
823d052a1ccSJung-uk Kim BOOLEAN
824ca3cf4faSJung-uk Kim ApCheckForPredefinedMethod (
825ca3cf4faSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
826ca3cf4faSJung-uk Kim     ASL_METHOD_INFO         *MethodInfo);
827ca3cf4faSJung-uk Kim 
8288c8be05fSJung-uk Kim void
8298c8be05fSJung-uk Kim ApCheckPredefinedReturnValue (
8308c8be05fSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
8318c8be05fSJung-uk Kim     ASL_METHOD_INFO         *MethodInfo);
8328c8be05fSJung-uk Kim 
833ca3cf4faSJung-uk Kim UINT32
834ca3cf4faSJung-uk Kim ApCheckForPredefinedName (
835ca3cf4faSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
836ca3cf4faSJung-uk Kim     char                    *Name);
837ca3cf4faSJung-uk Kim 
838ca3cf4faSJung-uk Kim void
839ca3cf4faSJung-uk Kim ApCheckForPredefinedObject (
840ca3cf4faSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
841ca3cf4faSJung-uk Kim     char                    *Name);
842ca3cf4faSJung-uk Kim 
8439c48c75eSJung-uk Kim ACPI_STATUS
8449c48c75eSJung-uk Kim ApCheckObjectType (
8459c48c75eSJung-uk Kim     const char              *PredefinedName,
8469c48c75eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
8479c48c75eSJung-uk Kim     UINT32                  ExpectedBtypes,
8489c48c75eSJung-uk Kim     UINT32                  PackageIndex);
8499c48c75eSJung-uk Kim 
850ca3cf4faSJung-uk Kim void
851ca3cf4faSJung-uk Kim ApDisplayReservedNames (
852fba7fc7eSJung-uk Kim     void);
853fba7fc7eSJung-uk Kim 
854fba7fc7eSJung-uk Kim 
855fba7fc7eSJung-uk Kim /*
8569c48c75eSJung-uk Kim  * aslprepkg - ACPI predefined names support for packages
8579c48c75eSJung-uk Kim  */
8589c48c75eSJung-uk Kim void
8599c48c75eSJung-uk Kim ApCheckPackage (
8609c48c75eSJung-uk Kim     ACPI_PARSE_OBJECT           *ParentOp,
8619c48c75eSJung-uk Kim     const ACPI_PREDEFINED_INFO  *Predefined);
8629c48c75eSJung-uk Kim 
8639c48c75eSJung-uk Kim 
8649c48c75eSJung-uk Kim /*
865fba7fc7eSJung-uk Kim  * asltransform - parse tree transformations
866fba7fc7eSJung-uk Kim  */
867fba7fc7eSJung-uk Kim ACPI_STATUS
868f8146b88SJung-uk Kim TrAmlTransformWalkBegin (
869f8146b88SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
870f8146b88SJung-uk Kim     UINT32                  Level,
871f8146b88SJung-uk Kim     void                    *Context);
872f8146b88SJung-uk Kim 
873f8146b88SJung-uk Kim ACPI_STATUS
874f8146b88SJung-uk Kim TrAmlTransformWalkEnd (
875fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
876fba7fc7eSJung-uk Kim     UINT32                  Level,
877fba7fc7eSJung-uk Kim     void                    *Context);
878fba7fc7eSJung-uk Kim 
879fba7fc7eSJung-uk Kim 
880fba7fc7eSJung-uk Kim /*
881f8146b88SJung-uk Kim  * aslexternal - External opcode support
882f8146b88SJung-uk Kim  */
883f8146b88SJung-uk Kim ACPI_STATUS
884f8146b88SJung-uk Kim ExAmlExternalWalkBegin (
885f8146b88SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
886f8146b88SJung-uk Kim     UINT32                  Level,
887f8146b88SJung-uk Kim     void                    *Context);
888f8146b88SJung-uk Kim 
889f8146b88SJung-uk Kim ACPI_STATUS
890f8146b88SJung-uk Kim ExAmlExternalWalkEnd (
891f8146b88SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
892f8146b88SJung-uk Kim     UINT32                  Level,
893f8146b88SJung-uk Kim     void                    *Context);
894f8146b88SJung-uk Kim 
895f8146b88SJung-uk Kim void
896f8146b88SJung-uk Kim ExDoExternal (
897f8146b88SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
898f8146b88SJung-uk Kim 
899fba7fc7eSJung-uk Kim /* Values for "Visitation" parameter above */
900fba7fc7eSJung-uk Kim 
901fba7fc7eSJung-uk Kim #define ASL_WALK_VISIT_DOWNWARD         0x01
902fba7fc7eSJung-uk Kim #define ASL_WALK_VISIT_UPWARD           0x02
90344b0f624SJung-uk Kim #define ASL_WALK_VISIT_DB_SEPARATELY    0x04
904fba7fc7eSJung-uk Kim #define ASL_WALK_VISIT_TWICE            (ASL_WALK_VISIT_DOWNWARD | ASL_WALK_VISIT_UPWARD)
905fba7fc7eSJung-uk Kim 
906fba7fc7eSJung-uk Kim 
9075f9b24faSJung-uk Kim /*
9085f9b24faSJung-uk Kim  * aslparseop.c - Parse op create/allocate/cache
9095f9b24faSJung-uk Kim  */
910fba7fc7eSJung-uk Kim ACPI_PARSE_OBJECT *
9115f9b24faSJung-uk Kim TrCreateOp (
912fba7fc7eSJung-uk Kim     UINT32                  ParseOpcode,
913fba7fc7eSJung-uk Kim     UINT32                  NumChildren,
914fba7fc7eSJung-uk Kim     ...);
915fba7fc7eSJung-uk Kim 
916fba7fc7eSJung-uk Kim ACPI_PARSE_OBJECT *
9175f9b24faSJung-uk Kim TrCreateLeafOp (
918fba7fc7eSJung-uk Kim     UINT32                  ParseOpcode);
919fba7fc7eSJung-uk Kim 
920fba7fc7eSJung-uk Kim ACPI_PARSE_OBJECT *
9215f9b24faSJung-uk Kim TrCreateNullTargetOp (
9227cf3e94aSJung-uk Kim     void);
9237cf3e94aSJung-uk Kim 
9247cf3e94aSJung-uk Kim ACPI_PARSE_OBJECT *
9255f9b24faSJung-uk Kim TrCreateAssignmentOp (
9261c0e1b6dSJung-uk Kim     ACPI_PARSE_OBJECT       *Target,
9271c0e1b6dSJung-uk Kim     ACPI_PARSE_OBJECT       *Source);
9281c0e1b6dSJung-uk Kim 
9291c0e1b6dSJung-uk Kim ACPI_PARSE_OBJECT *
9305f9b24faSJung-uk Kim TrCreateTargetOp (
9311c0e1b6dSJung-uk Kim     ACPI_PARSE_OBJECT       *OriginalOp,
9321c0e1b6dSJung-uk Kim     ACPI_PARSE_OBJECT       *ParentOp);
9331c0e1b6dSJung-uk Kim 
9341c0e1b6dSJung-uk Kim ACPI_PARSE_OBJECT *
9355f9b24faSJung-uk Kim TrCreateValuedLeafOp (
936fba7fc7eSJung-uk Kim     UINT32                  ParseOpcode,
9379a179dd8SJung-uk Kim     UINT64                  Value);
938fba7fc7eSJung-uk Kim 
939fba7fc7eSJung-uk Kim ACPI_PARSE_OBJECT *
9405f9b24faSJung-uk Kim TrCreateConstantLeafOp (
9410b94ba42SJung-uk Kim     UINT32                  ParseOpcode);
9420b94ba42SJung-uk Kim 
9430b94ba42SJung-uk Kim ACPI_PARSE_OBJECT *
9445f9b24faSJung-uk Kim TrAllocateOp (
9455f9b24faSJung-uk Kim     UINT32                  ParseOpcode);
9465f9b24faSJung-uk Kim 
9475f9b24faSJung-uk Kim void
9485f9b24faSJung-uk Kim TrPrintOpFlags (
9495f9b24faSJung-uk Kim     UINT32                  Flags,
9505f9b24faSJung-uk Kim     UINT32                  OutputLevel);
9515f9b24faSJung-uk Kim 
9525f9b24faSJung-uk Kim 
9535f9b24faSJung-uk Kim /*
9545f9b24faSJung-uk Kim  * asltree.c - Parse tree management
9555f9b24faSJung-uk Kim  */
9565f9b24faSJung-uk Kim void
9575f9b24faSJung-uk Kim TrSetOpParent (
9585f9b24faSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
9595f9b24faSJung-uk Kim     ACPI_PARSE_OBJECT       *ParentOp);
9605f9b24faSJung-uk Kim 
9615f9b24faSJung-uk Kim ACPI_PARSE_OBJECT *
9625f9b24faSJung-uk Kim TrSetOpIntegerValue (
9635f9b24faSJung-uk Kim     UINT32                  ParseOpcode,
9645f9b24faSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
9655f9b24faSJung-uk Kim 
9665f9b24faSJung-uk Kim void
9675f9b24faSJung-uk Kim TrSetOpEndLineNumber (
9685f9b24faSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
9695f9b24faSJung-uk Kim 
9705f9b24faSJung-uk Kim void
9715f9b24faSJung-uk Kim TrSetOpCurrentFilename (
9725f9b24faSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
9735f9b24faSJung-uk Kim 
9742f6a1a81SJung-uk Kim void
9752f6a1a81SJung-uk Kim TrSetOpIntegerWidth (
9762f6a1a81SJung-uk Kim     ACPI_PARSE_OBJECT       *TableSignature,
9772f6a1a81SJung-uk Kim     ACPI_PARSE_OBJECT       *Revision);
9782f6a1a81SJung-uk Kim 
9795f9b24faSJung-uk Kim ACPI_PARSE_OBJECT *
9805f9b24faSJung-uk Kim TrLinkOpChildren (
981fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
982fba7fc7eSJung-uk Kim     UINT32                  NumChildren,
983fba7fc7eSJung-uk Kim     ...);
984fba7fc7eSJung-uk Kim 
985fba7fc7eSJung-uk Kim ACPI_PARSE_OBJECT *
9865f9b24faSJung-uk Kim TrLinkPeerOp (
987fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op1,
988fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op2);
989fba7fc7eSJung-uk Kim 
990fba7fc7eSJung-uk Kim ACPI_PARSE_OBJECT *
9915f9b24faSJung-uk Kim TrLinkChildOp (
992fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op1,
993fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op2);
994fba7fc7eSJung-uk Kim 
995fba7fc7eSJung-uk Kim ACPI_PARSE_OBJECT *
9965f9b24faSJung-uk Kim TrSetOpFlags (
997fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
998fba7fc7eSJung-uk Kim     UINT32                  Flags);
999fba7fc7eSJung-uk Kim 
1000fba7fc7eSJung-uk Kim ACPI_PARSE_OBJECT *
10015f9b24faSJung-uk Kim TrSetOpAmlLength (
10021df130f1SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
10031df130f1SJung-uk Kim     UINT32                  Length);
10041df130f1SJung-uk Kim 
10051df130f1SJung-uk Kim ACPI_PARSE_OBJECT *
10065f9b24faSJung-uk Kim TrLinkPeerOps (
1007fba7fc7eSJung-uk Kim     UINT32                  NumPeers,
1008fba7fc7eSJung-uk Kim     ...);
1009fba7fc7eSJung-uk Kim 
10105f9b24faSJung-uk Kim ACPI_STATUS
10115f9b24faSJung-uk Kim TrWalkParseTree (
10125f9b24faSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
10135f9b24faSJung-uk Kim     UINT32                  Visitation,
10145f9b24faSJung-uk Kim     ASL_WALK_CALLBACK       DescendingCallback,
10155f9b24faSJung-uk Kim     ASL_WALK_CALLBACK       AscendingCallback,
10165f9b24faSJung-uk Kim     void                    *Context);
10175f9b24faSJung-uk Kim 
1018fba7fc7eSJung-uk Kim 
1019fba7fc7eSJung-uk Kim /*
1020fba7fc7eSJung-uk Kim  * aslfiles - File I/O support
1021fba7fc7eSJung-uk Kim  */
1022fba7fc7eSJung-uk Kim void
1023d6dd1baeSJung-uk Kim FlAddIncludeDirectory (
1024d6dd1baeSJung-uk Kim     char                    *Dir);
1025d6dd1baeSJung-uk Kim 
1026a7a3b383SJung-uk Kim char *
1027a7a3b383SJung-uk Kim FlMergePathnames (
1028a7a3b383SJung-uk Kim     char                    *PrefixDir,
1029a7a3b383SJung-uk Kim     char                    *FilePathname);
1030a7a3b383SJung-uk Kim 
1031d6dd1baeSJung-uk Kim void
103253289f6aSNate Lawson FlOpenIncludeFile (
103353289f6aSNate Lawson     ACPI_PARSE_OBJECT       *Op);
103453289f6aSNate Lawson 
103553289f6aSNate Lawson void
103653289f6aSNate Lawson FlFileError (
103753289f6aSNate Lawson     UINT32                  FileId,
103853289f6aSNate Lawson     UINT8                   ErrorId);
103953289f6aSNate Lawson 
10403f5e024cSJung-uk Kim UINT32
10413f5e024cSJung-uk Kim FlGetFileSize (
10423f5e024cSJung-uk Kim     UINT32                  FileId);
10433f5e024cSJung-uk Kim 
104453289f6aSNate Lawson ACPI_STATUS
104553289f6aSNate Lawson FlReadFile (
104653289f6aSNate Lawson     UINT32                  FileId,
104753289f6aSNate Lawson     void                    *Buffer,
104853289f6aSNate Lawson     UINT32                  Length);
104953289f6aSNate Lawson 
105053289f6aSNate Lawson void
105153289f6aSNate Lawson FlWriteFile (
105253289f6aSNate Lawson     UINT32                  FileId,
105353289f6aSNate Lawson     void                    *Buffer,
105453289f6aSNate Lawson     UINT32                  Length);
105553289f6aSNate Lawson 
105653289f6aSNate Lawson void
105753289f6aSNate Lawson FlSeekFile (
105853289f6aSNate Lawson     UINT32                  FileId,
105953289f6aSNate Lawson     long                    Offset);
106053289f6aSNate Lawson 
106153289f6aSNate Lawson void
106244b0f624SJung-uk Kim FlSeekFileSet (
106344b0f624SJung-uk Kim     UINT32                  FileId,
106444b0f624SJung-uk Kim     long                    Offset);
106544b0f624SJung-uk Kim 
106644b0f624SJung-uk Kim void
106753289f6aSNate Lawson FlCloseFile (
106853289f6aSNate Lawson     UINT32                  FileId);
106953289f6aSNate Lawson 
1070a009b7dcSJung-uk Kim ACPI_PRINTF_LIKE (2)
107153289f6aSNate Lawson void
107253289f6aSNate Lawson FlPrintFile (
107353289f6aSNate Lawson     UINT32                  FileId,
107453289f6aSNate Lawson     char                    *Format,
107553289f6aSNate Lawson     ...);
107653289f6aSNate Lawson 
107753289f6aSNate Lawson void
1078042ff955SJung-uk Kim FlDeleteFile (
1079042ff955SJung-uk Kim     UINT32                  FileId);
1080042ff955SJung-uk Kim 
1081042ff955SJung-uk Kim void
108253289f6aSNate Lawson FlSetLineNumber (
1083eef1b955SJung-uk Kim     UINT32                  LineNumber);
1084eef1b955SJung-uk Kim 
1085eef1b955SJung-uk Kim void
1086eef1b955SJung-uk Kim FlSetFilename (
1087eef1b955SJung-uk Kim     char                    *Filename);
108853289f6aSNate Lawson 
108953289f6aSNate Lawson ACPI_STATUS
109053289f6aSNate Lawson FlOpenInputFile (
109153289f6aSNate Lawson     char                    *InputFilename);
109253289f6aSNate Lawson 
109353289f6aSNate Lawson ACPI_STATUS
109453289f6aSNate Lawson FlOpenAmlOutputFile (
109553289f6aSNate Lawson     char                    *InputFilename);
109653289f6aSNate Lawson 
109753289f6aSNate Lawson ACPI_STATUS
109853289f6aSNate Lawson FlOpenMiscOutputFiles (
109953289f6aSNate Lawson     char                    *InputFilename);
110053289f6aSNate Lawson 
110144b0f624SJung-uk Kim ACPI_STATUS
110244b0f624SJung-uk Kim FlInitOneFile (
110344b0f624SJung-uk Kim     char                    *InputFilename);
110444b0f624SJung-uk Kim 
110544b0f624SJung-uk Kim ASL_FILE_SWITCH_STATUS
110644b0f624SJung-uk Kim FlSwitchFileSet (
110744b0f624SJung-uk Kim     char                    *InputFilename);
110844b0f624SJung-uk Kim 
110944b0f624SJung-uk Kim FILE *
111044b0f624SJung-uk Kim FlGetFileHandle (
111144b0f624SJung-uk Kim     UINT32                  OutFileId,
111244b0f624SJung-uk Kim     UINT32                  InFileId,
111344b0f624SJung-uk Kim     char                    *Filename);
111444b0f624SJung-uk Kim 
111544b0f624SJung-uk Kim ASL_GLOBAL_FILE_NODE *
111644b0f624SJung-uk Kim FlGetFileNode (
111744b0f624SJung-uk Kim     UINT32                  FileId,
111844b0f624SJung-uk Kim     char                    *Filename);
111944b0f624SJung-uk Kim 
112044b0f624SJung-uk Kim ASL_GLOBAL_FILE_NODE *
112144b0f624SJung-uk Kim FlGetCurrentFileNode (
112244b0f624SJung-uk Kim     void);
112344b0f624SJung-uk Kim 
112444b0f624SJung-uk Kim 
1125313a0c13SJung-uk Kim /*
1126313a0c13SJung-uk Kim  * aslhwmap - hardware map summary
1127313a0c13SJung-uk Kim  */
1128313a0c13SJung-uk Kim void
1129313a0c13SJung-uk Kim MpEmitMappingInfo (
1130313a0c13SJung-uk Kim     void);
1131313a0c13SJung-uk Kim 
113253289f6aSNate Lawson 
1133fba7fc7eSJung-uk Kim /*
1134fba7fc7eSJung-uk Kim  * asload - load namespace in prep for cross reference
1135fba7fc7eSJung-uk Kim  */
113653289f6aSNate Lawson ACPI_STATUS
113753289f6aSNate Lawson LdLoadNamespace (
113853289f6aSNate Lawson     ACPI_PARSE_OBJECT       *RootOp);
113953289f6aSNate Lawson 
1140fba7fc7eSJung-uk Kim /*
1141efcc2a30SJung-uk Kim  * asllookup - namespace lookup functions
1142fba7fc7eSJung-uk Kim  */
11431a39cfb0SJung-uk Kim void
11441a39cfb0SJung-uk Kim LkFindUnreferencedObjects (
11451a39cfb0SJung-uk Kim     void);
11461a39cfb0SJung-uk Kim 
114744b0f624SJung-uk Kim 
1148a9d8d09cSJung-uk Kim /*
1149493deb39SJung-uk Kim  * aslhelp - help screens
1150a9d8d09cSJung-uk Kim  */
1151a9d8d09cSJung-uk Kim void
1152a9d8d09cSJung-uk Kim Usage (
1153a9d8d09cSJung-uk Kim     void);
1154a9d8d09cSJung-uk Kim 
1155a9d8d09cSJung-uk Kim void
1156a9d8d09cSJung-uk Kim AslFilenameHelp (
1157a9d8d09cSJung-uk Kim     void);
1158a9d8d09cSJung-uk Kim 
1159493deb39SJung-uk Kim void
1160493deb39SJung-uk Kim AslDisassemblyHelp (
1161493deb39SJung-uk Kim     void);
1162493deb39SJung-uk Kim 
1163efcc2a30SJung-uk Kim 
1164efcc2a30SJung-uk Kim /*
1165efcc2a30SJung-uk Kim  * aslnamesp - namespace output file generation
1166efcc2a30SJung-uk Kim  */
116753289f6aSNate Lawson ACPI_STATUS
1168efcc2a30SJung-uk Kim NsDisplayNamespace (
116953289f6aSNate Lawson     void);
117053289f6aSNate Lawson 
117142fecd12SJung-uk Kim void
1172efcc2a30SJung-uk Kim NsSetupNamespaceListing (
117342fecd12SJung-uk Kim     void                    *Handle);
117442fecd12SJung-uk Kim 
117544b0f624SJung-uk Kim 
1176a9d8d09cSJung-uk Kim /*
1177a9d8d09cSJung-uk Kim  * asloptions - command line processing
1178a9d8d09cSJung-uk Kim  */
1179a9d8d09cSJung-uk Kim int
1180a9d8d09cSJung-uk Kim AslCommandLine (
1181a9d8d09cSJung-uk Kim     int                     argc,
1182a9d8d09cSJung-uk Kim     char                    **argv);
118353289f6aSNate Lawson 
118444b0f624SJung-uk Kim 
1185fba7fc7eSJung-uk Kim /*
1186efcc2a30SJung-uk Kim  * aslxref - namespace cross reference
1187efcc2a30SJung-uk Kim  */
1188efcc2a30SJung-uk Kim ACPI_STATUS
1189efcc2a30SJung-uk Kim XfCrossReferenceNamespace (
1190efcc2a30SJung-uk Kim     void);
1191efcc2a30SJung-uk Kim 
1192efcc2a30SJung-uk Kim 
1193efcc2a30SJung-uk Kim /*
1194f8146b88SJung-uk Kim  * aslxrefout
1195f8146b88SJung-uk Kim  */
1196f8146b88SJung-uk Kim void
1197f8146b88SJung-uk Kim OtPrintHeaders (
1198f8146b88SJung-uk Kim     char                    *Message);
1199f8146b88SJung-uk Kim 
1200f8146b88SJung-uk Kim void
1201f8146b88SJung-uk Kim OtCreateXrefFile (
1202f8146b88SJung-uk Kim     void);
1203f8146b88SJung-uk Kim 
1204f8146b88SJung-uk Kim void
1205f8146b88SJung-uk Kim OtXrefWalkPart1 (
1206f8146b88SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
1207f8146b88SJung-uk Kim     UINT32                  Level,
1208f8146b88SJung-uk Kim     ASL_METHOD_INFO         *MethodInfo);
1209f8146b88SJung-uk Kim 
1210f8146b88SJung-uk Kim 
1211f8146b88SJung-uk Kim /*
1212cd6518c7SJung-uk Kim  * aslutils - common compiler utilities
1213fba7fc7eSJung-uk Kim  */
1214a009b7dcSJung-uk Kim ACPI_PRINTF_LIKE(2)
1215fba7fc7eSJung-uk Kim void
1216fba7fc7eSJung-uk Kim DbgPrint (
1217fba7fc7eSJung-uk Kim     UINT32                  Type,
1218fba7fc7eSJung-uk Kim     char                    *Format,
1219fba7fc7eSJung-uk Kim     ...);
122053289f6aSNate Lawson 
1221fba7fc7eSJung-uk Kim /* Type values for above */
1222fba7fc7eSJung-uk Kim 
1223fba7fc7eSJung-uk Kim #define ASL_DEBUG_OUTPUT    0
1224fba7fc7eSJung-uk Kim #define ASL_PARSE_OUTPUT    1
1225fba7fc7eSJung-uk Kim #define ASL_TREE_OUTPUT     2
122653289f6aSNate Lawson 
12271970d693SJung-uk Kim BOOLEAN
12281970d693SJung-uk Kim UtIsIdInteger (
12291970d693SJung-uk Kim     UINT8                   *Target);
12301970d693SJung-uk Kim 
1231f8146b88SJung-uk Kim UINT8
1232f8146b88SJung-uk Kim UtIsBigEndianMachine (
1233f8146b88SJung-uk Kim     void);
1234f8146b88SJung-uk Kim 
1235f8146b88SJung-uk Kim BOOLEAN
1236f8146b88SJung-uk Kim UtQueryForOverwrite (
1237f8146b88SJung-uk Kim     char                    *Pathname);
1238f8146b88SJung-uk Kim 
1239f8146b88SJung-uk Kim void
1240f8146b88SJung-uk Kim UtDumpStringOp (
1241f8146b88SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
1242f8146b88SJung-uk Kim     UINT32                  Level);
1243f8146b88SJung-uk Kim 
1244f8146b88SJung-uk Kim void
1245f8146b88SJung-uk Kim UtDumpIntegerOp (
1246f8146b88SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
1247f8146b88SJung-uk Kim     UINT32                  Level,
1248f8146b88SJung-uk Kim     UINT32                  IntegerLength);
1249f8146b88SJung-uk Kim 
1250f8146b88SJung-uk Kim void
1251f8146b88SJung-uk Kim UtDumpBasicOp (
1252f8146b88SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
1253f8146b88SJung-uk Kim     UINT32                  Level);
1254f8146b88SJung-uk Kim 
1255ec0234b4SJung-uk Kim ACPI_NAMESPACE_NODE *
1256ec0234b4SJung-uk Kim UtGetParentMethodNode (
1257835b56bfSJung-uk Kim     ACPI_NAMESPACE_NODE     *Node);
1258835b56bfSJung-uk Kim 
1259ec0234b4SJung-uk Kim ACPI_PARSE_OBJECT *
1260ec0234b4SJung-uk Kim UtGetParentMethodOp (
1261ec0234b4SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
1262ec0234b4SJung-uk Kim 
1263835b56bfSJung-uk Kim BOOLEAN
1264835b56bfSJung-uk Kim UtNodeIsDescendantOf (
1265835b56bfSJung-uk Kim     ACPI_NAMESPACE_NODE     *Node1,
1266835b56bfSJung-uk Kim     ACPI_NAMESPACE_NODE     *Node2);
1267835b56bfSJung-uk Kim 
126853289f6aSNate Lawson void
1269a88e22b7SJung-uk Kim UtDisplaySupportedTables (
1270a88e22b7SJung-uk Kim     void);
1271a88e22b7SJung-uk Kim 
1272a88e22b7SJung-uk Kim void
127353289f6aSNate Lawson UtDisplayConstantOpcodes (
127453289f6aSNate Lawson     void);
127553289f6aSNate Lawson 
1276fba7fc7eSJung-uk Kim UINT8
127753289f6aSNate Lawson UtBeginEvent (
127853289f6aSNate Lawson     char                    *Name);
127953289f6aSNate Lawson 
128053289f6aSNate Lawson void
128153289f6aSNate Lawson UtEndEvent (
1282fba7fc7eSJung-uk Kim     UINT8                   Event);
128353289f6aSNate Lawson 
128453289f6aSNate Lawson void
128553289f6aSNate Lawson UtDisplaySummary (
128653289f6aSNate Lawson     UINT32                  FileId);
128753289f6aSNate Lawson 
128853289f6aSNate Lawson void
128944b0f624SJung-uk Kim UtDisplayOneSummary (
129044b0f624SJung-uk Kim     UINT32                  FileId,
129144b0f624SJung-uk Kim     BOOLEAN                 DisplayErrorSummary);
129244b0f624SJung-uk Kim 
129344b0f624SJung-uk Kim void
129453289f6aSNate Lawson UtConvertByteToHex (
129553289f6aSNate Lawson     UINT8                   RawByte,
129653289f6aSNate Lawson     UINT8                   *Buffer);
129753289f6aSNate Lawson 
129853289f6aSNate Lawson void
129953289f6aSNate Lawson UtConvertByteToAsmHex (
130053289f6aSNate Lawson     UINT8                   RawByte,
130153289f6aSNate Lawson     UINT8                   *Buffer);
130253289f6aSNate Lawson 
130353289f6aSNate Lawson char *
130453289f6aSNate Lawson UtGetOpName (
130553289f6aSNate Lawson     UINT32                  ParseOpcode);
130653289f6aSNate Lawson 
130753289f6aSNate Lawson void
130853289f6aSNate Lawson UtSetParseOpName (
130953289f6aSNate Lawson     ACPI_PARSE_OBJECT       *Op);
131053289f6aSNate Lawson 
131153289f6aSNate Lawson ACPI_STATUS
131253289f6aSNate Lawson UtInternalizeName (
131353289f6aSNate Lawson     char                    *ExternalName,
131453289f6aSNate Lawson     char                    **ConvertedName);
131553289f6aSNate Lawson 
1316a009b7dcSJung-uk Kim BOOLEAN
1317a009b7dcSJung-uk Kim UtNameContainsAllPrefix (
1318a009b7dcSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
1319a009b7dcSJung-uk Kim 
132053289f6aSNate Lawson void
132153289f6aSNate Lawson UtAttachNamepathToOwner (
132253289f6aSNate Lawson     ACPI_PARSE_OBJECT       *Op,
132353289f6aSNate Lawson     ACPI_PARSE_OBJECT       *NameNode);
132453289f6aSNate Lawson 
132553289f6aSNate Lawson ACPI_PARSE_OBJECT *
132653289f6aSNate Lawson UtCheckIntegerRange (
132753289f6aSNate Lawson     ACPI_PARSE_OBJECT       *Op,
132853289f6aSNate Lawson     UINT32                  LowValue,
132953289f6aSNate Lawson     UINT32                  HighValue);
133053289f6aSNate Lawson 
13319a179dd8SJung-uk Kim UINT64
133253289f6aSNate Lawson UtDoConstant (
133353289f6aSNate Lawson     char                    *String);
133453289f6aSNate Lawson 
1335a009b7dcSJung-uk Kim char *
1336a009b7dcSJung-uk Kim AcpiUtStrdup (
1337a009b7dcSJung-uk Kim     char                    *String);
1338a009b7dcSJung-uk Kim 
1339a009b7dcSJung-uk Kim char *
1340a009b7dcSJung-uk Kim AcpiUtStrcat (
1341a009b7dcSJung-uk Kim     char                    *String1,
1342a009b7dcSJung-uk Kim     char                    *String2);
1343a009b7dcSJung-uk Kim 
1344d052a1ccSJung-uk Kim 
1345d244b227SJung-uk Kim /*
1346d244b227SJung-uk Kim  * asluuid - UUID support
1347d244b227SJung-uk Kim  */
1348d244b227SJung-uk Kim ACPI_STATUS
1349d244b227SJung-uk Kim AuValidateUuid (
1350d244b227SJung-uk Kim     char                    *InString);
1351d244b227SJung-uk Kim 
1352d244b227SJung-uk Kim ACPI_STATUS
1353d244b227SJung-uk Kim AuConvertUuidToString (
1354d244b227SJung-uk Kim     char                    *UuIdBuffer,
1355d244b227SJung-uk Kim     char                    *OutString);
135653289f6aSNate Lawson 
135744b0f624SJung-uk Kim 
135853289f6aSNate Lawson /*
1359fba7fc7eSJung-uk Kim  * aslresource - Resource template generation utilities
136053289f6aSNate Lawson  */
13613f5e024cSJung-uk Kim void
13623f5e024cSJung-uk Kim RsSmallAddressCheck (
13633f5e024cSJung-uk Kim     UINT8                   Type,
13643f5e024cSJung-uk Kim     UINT32                  Minimum,
13653f5e024cSJung-uk Kim     UINT32                  Maximum,
13663f5e024cSJung-uk Kim     UINT32                  Length,
13673f5e024cSJung-uk Kim     UINT32                  Alignment,
13683f5e024cSJung-uk Kim     ACPI_PARSE_OBJECT       *MinOp,
13693f5e024cSJung-uk Kim     ACPI_PARSE_OBJECT       *MaxOp,
13703f5e024cSJung-uk Kim     ACPI_PARSE_OBJECT       *LengthOp,
13713c1812acSJung-uk Kim     ACPI_PARSE_OBJECT       *AlignOp,
13723c1812acSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
13733f5e024cSJung-uk Kim 
13743f5e024cSJung-uk Kim void
13753f5e024cSJung-uk Kim RsLargeAddressCheck (
13763f5e024cSJung-uk Kim     UINT64                  Minimum,
13773f5e024cSJung-uk Kim     UINT64                  Maximum,
13783f5e024cSJung-uk Kim     UINT64                  Length,
13793f5e024cSJung-uk Kim     UINT64                  Granularity,
13803f5e024cSJung-uk Kim     UINT8                   Flags,
13813f5e024cSJung-uk Kim     ACPI_PARSE_OBJECT       *MinOp,
13823f5e024cSJung-uk Kim     ACPI_PARSE_OBJECT       *MaxOp,
13833f5e024cSJung-uk Kim     ACPI_PARSE_OBJECT       *LengthOp,
13843c1812acSJung-uk Kim     ACPI_PARSE_OBJECT       *GranOp,
13853c1812acSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
13863f5e024cSJung-uk Kim 
13873f5e024cSJung-uk Kim UINT16
13883f5e024cSJung-uk Kim RsGetStringDataLength (
13893f5e024cSJung-uk Kim     ACPI_PARSE_OBJECT       *InitializerOp);
13903f5e024cSJung-uk Kim 
139153289f6aSNate Lawson ASL_RESOURCE_NODE *
139253289f6aSNate Lawson RsAllocateResourceNode (
139353289f6aSNate Lawson     UINT32                  Size);
139453289f6aSNate Lawson 
139553289f6aSNate Lawson void
13963f0275a0SJung-uk Kim RsCreateResourceField (
139753289f6aSNate Lawson     ACPI_PARSE_OBJECT       *Op,
139853289f6aSNate Lawson     char                    *Name,
139953289f6aSNate Lawson     UINT32                  ByteOffset,
14003f0275a0SJung-uk Kim     UINT32                  BitOffset,
14013f0275a0SJung-uk Kim     UINT32                  BitLength);
140253289f6aSNate Lawson 
140353289f6aSNate Lawson void
140453289f6aSNate Lawson RsSetFlagBits (
140553289f6aSNate Lawson     UINT8                   *Flags,
140653289f6aSNate Lawson     ACPI_PARSE_OBJECT       *Op,
140753289f6aSNate Lawson     UINT8                   Position,
140853289f6aSNate Lawson     UINT8                   DefaultBit);
140953289f6aSNate Lawson 
14103f0275a0SJung-uk Kim void
14113f0275a0SJung-uk Kim RsSetFlagBits16 (
14123f0275a0SJung-uk Kim     UINT16                  *Flags,
14133f0275a0SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
14143f0275a0SJung-uk Kim     UINT8                   Position,
14153f0275a0SJung-uk Kim     UINT8                   DefaultBit);
14163f0275a0SJung-uk Kim 
141753289f6aSNate Lawson ACPI_PARSE_OBJECT *
141853289f6aSNate Lawson RsCompleteNodeAndGetNext (
141953289f6aSNate Lawson     ACPI_PARSE_OBJECT       *Op);
142053289f6aSNate Lawson 
1421fba7fc7eSJung-uk Kim void
1422fba7fc7eSJung-uk Kim RsCheckListForDuplicates (
1423fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
1424fba7fc7eSJung-uk Kim 
142553289f6aSNate Lawson ASL_RESOURCE_NODE *
142653289f6aSNate Lawson RsDoOneResourceDescriptor (
1427313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info,
142853289f6aSNate Lawson     UINT8                   *State);
142953289f6aSNate Lawson 
1430fba7fc7eSJung-uk Kim /* Values for State above */
1431fba7fc7eSJung-uk Kim 
143253289f6aSNate Lawson #define ACPI_RSTATE_NORMAL              0
143353289f6aSNate Lawson #define ACPI_RSTATE_START_DEPENDENT     1
143453289f6aSNate Lawson #define ACPI_RSTATE_DEPENDENT_LIST      2
143553289f6aSNate Lawson 
143653289f6aSNate Lawson UINT32
143753289f6aSNate Lawson RsLinkDescriptorChain (
143853289f6aSNate Lawson     ASL_RESOURCE_NODE       **PreviousRnode,
143953289f6aSNate Lawson     ASL_RESOURCE_NODE       *Rnode);
144053289f6aSNate Lawson 
1441fba7fc7eSJung-uk Kim void
1442fba7fc7eSJung-uk Kim RsDoResourceTemplate (
1443fba7fc7eSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
1444fba7fc7eSJung-uk Kim 
144553289f6aSNate Lawson 
144653289f6aSNate Lawson /*
14473f5e024cSJung-uk Kim  * aslrestype1 - Miscellaneous Small descriptors
144853289f6aSNate Lawson  */
144953289f6aSNate Lawson ASL_RESOURCE_NODE *
14501a39cfb0SJung-uk Kim RsDoEndTagDescriptor (
1451313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
14521a39cfb0SJung-uk Kim 
14531a39cfb0SJung-uk Kim ASL_RESOURCE_NODE *
145453289f6aSNate Lawson RsDoEndDependentDescriptor (
1455313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
145653289f6aSNate Lawson 
145753289f6aSNate Lawson ASL_RESOURCE_NODE *
145853289f6aSNate Lawson RsDoMemory24Descriptor (
1459313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
146053289f6aSNate Lawson 
146153289f6aSNate Lawson ASL_RESOURCE_NODE *
146253289f6aSNate Lawson RsDoMemory32Descriptor (
1463313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
146453289f6aSNate Lawson 
146553289f6aSNate Lawson ASL_RESOURCE_NODE *
146653289f6aSNate Lawson RsDoMemory32FixedDescriptor (
1467313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
146853289f6aSNate Lawson 
146953289f6aSNate Lawson ASL_RESOURCE_NODE *
147053289f6aSNate Lawson RsDoStartDependentDescriptor (
1471313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
147253289f6aSNate Lawson 
147353289f6aSNate Lawson ASL_RESOURCE_NODE *
147453289f6aSNate Lawson RsDoStartDependentNoPriDescriptor (
1475313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
147653289f6aSNate Lawson 
147753289f6aSNate Lawson ASL_RESOURCE_NODE *
147853289f6aSNate Lawson RsDoVendorSmallDescriptor (
1479313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
148053289f6aSNate Lawson 
148153289f6aSNate Lawson 
148253289f6aSNate Lawson /*
14833f5e024cSJung-uk Kim  * aslrestype1i - I/O-related Small descriptors
14843f5e024cSJung-uk Kim  */
14853f5e024cSJung-uk Kim ASL_RESOURCE_NODE *
14863f5e024cSJung-uk Kim RsDoDmaDescriptor (
1487313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
14883f5e024cSJung-uk Kim 
14893f5e024cSJung-uk Kim ASL_RESOURCE_NODE *
14903f0275a0SJung-uk Kim RsDoFixedDmaDescriptor (
1491313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
14923f0275a0SJung-uk Kim 
14933f0275a0SJung-uk Kim ASL_RESOURCE_NODE *
14943f5e024cSJung-uk Kim RsDoFixedIoDescriptor (
1495313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
14963f5e024cSJung-uk Kim 
14973f5e024cSJung-uk Kim ASL_RESOURCE_NODE *
14983f5e024cSJung-uk Kim RsDoIoDescriptor (
1499313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
15003f5e024cSJung-uk Kim 
15013f5e024cSJung-uk Kim ASL_RESOURCE_NODE *
15023f5e024cSJung-uk Kim RsDoIrqDescriptor (
1503313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
15043f5e024cSJung-uk Kim 
15053f5e024cSJung-uk Kim ASL_RESOURCE_NODE *
15063f5e024cSJung-uk Kim RsDoIrqNoFlagsDescriptor (
1507313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
15083f5e024cSJung-uk Kim 
15093f5e024cSJung-uk Kim 
15103f5e024cSJung-uk Kim /*
15113f5e024cSJung-uk Kim  * aslrestype2 - Large resource descriptors
151253289f6aSNate Lawson  */
1513fba7fc7eSJung-uk Kim ASL_RESOURCE_NODE *
1514fba7fc7eSJung-uk Kim RsDoInterruptDescriptor (
1515313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
151653289f6aSNate Lawson 
151753289f6aSNate Lawson ASL_RESOURCE_NODE *
15183f5e024cSJung-uk Kim RsDoVendorLargeDescriptor (
1519313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
15203f5e024cSJung-uk Kim 
15213f5e024cSJung-uk Kim ASL_RESOURCE_NODE *
15223f5e024cSJung-uk Kim RsDoGeneralRegisterDescriptor (
1523313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
15243f5e024cSJung-uk Kim 
15253f0275a0SJung-uk Kim ASL_RESOURCE_NODE *
15263f0275a0SJung-uk Kim RsDoGpioIntDescriptor (
1527313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
15283f0275a0SJung-uk Kim 
15293f0275a0SJung-uk Kim ASL_RESOURCE_NODE *
15303f0275a0SJung-uk Kim RsDoGpioIoDescriptor (
1531313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
15323f0275a0SJung-uk Kim 
15333f0275a0SJung-uk Kim ASL_RESOURCE_NODE *
15343f0275a0SJung-uk Kim RsDoI2cSerialBusDescriptor (
1535313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
15363f0275a0SJung-uk Kim 
15373f0275a0SJung-uk Kim ASL_RESOURCE_NODE *
15383f0275a0SJung-uk Kim RsDoSpiSerialBusDescriptor (
1539313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
15403f0275a0SJung-uk Kim 
15413f0275a0SJung-uk Kim ASL_RESOURCE_NODE *
15423f0275a0SJung-uk Kim RsDoUartSerialBusDescriptor (
1543313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
15443f5e024cSJung-uk Kim 
1545af051161SJung-uk Kim ASL_RESOURCE_NODE *
1546cfd1ed46SJung-uk Kim RsDoCsi2SerialBusDescriptor (
1547cfd1ed46SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
1548cfd1ed46SJung-uk Kim 
1549cfd1ed46SJung-uk Kim ASL_RESOURCE_NODE *
1550af051161SJung-uk Kim RsDoPinFunctionDescriptor (
1551af051161SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
1552af051161SJung-uk Kim 
1553af051161SJung-uk Kim ASL_RESOURCE_NODE *
1554af051161SJung-uk Kim RsDoPinConfigDescriptor (
1555af051161SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
1556af051161SJung-uk Kim 
1557af051161SJung-uk Kim ASL_RESOURCE_NODE *
1558af051161SJung-uk Kim RsDoPinGroupDescriptor (
1559af051161SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
1560af051161SJung-uk Kim 
1561af051161SJung-uk Kim ASL_RESOURCE_NODE *
1562af051161SJung-uk Kim RsDoPinGroupFunctionDescriptor (
1563af051161SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
1564af051161SJung-uk Kim 
1565af051161SJung-uk Kim ASL_RESOURCE_NODE *
1566af051161SJung-uk Kim RsDoPinGroupConfigDescriptor (
1567af051161SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
1568af051161SJung-uk Kim 
1569*722b1667SJung-uk Kim ASL_RESOURCE_NODE *
1570*722b1667SJung-uk Kim RsDoClockInputDescriptor (
1571*722b1667SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
157244b0f624SJung-uk Kim 
15733f5e024cSJung-uk Kim /*
15743f5e024cSJung-uk Kim  * aslrestype2d - DWord address descriptors
15753f5e024cSJung-uk Kim  */
15763f5e024cSJung-uk Kim ASL_RESOURCE_NODE *
157753289f6aSNate Lawson RsDoDwordIoDescriptor (
1578313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
157953289f6aSNate Lawson 
158053289f6aSNate Lawson ASL_RESOURCE_NODE *
158153289f6aSNate Lawson RsDoDwordMemoryDescriptor (
1582313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
158353289f6aSNate Lawson 
158453289f6aSNate Lawson ASL_RESOURCE_NODE *
1585fba7fc7eSJung-uk Kim RsDoDwordSpaceDescriptor (
1586313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
1587fba7fc7eSJung-uk Kim 
15883f5e024cSJung-uk Kim 
15893f5e024cSJung-uk Kim /*
15903f5e024cSJung-uk Kim  * aslrestype2e - Extended address descriptors
15913f5e024cSJung-uk Kim  */
1592fba7fc7eSJung-uk Kim ASL_RESOURCE_NODE *
1593fba7fc7eSJung-uk Kim RsDoExtendedIoDescriptor (
1594313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
1595fba7fc7eSJung-uk Kim 
1596fba7fc7eSJung-uk Kim ASL_RESOURCE_NODE *
1597fba7fc7eSJung-uk Kim RsDoExtendedMemoryDescriptor (
1598313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
1599fba7fc7eSJung-uk Kim 
1600fba7fc7eSJung-uk Kim ASL_RESOURCE_NODE *
1601fba7fc7eSJung-uk Kim RsDoExtendedSpaceDescriptor (
1602313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
1603fba7fc7eSJung-uk Kim 
16043f5e024cSJung-uk Kim 
16053f5e024cSJung-uk Kim /*
16063f5e024cSJung-uk Kim  * aslrestype2q - QWord address descriptors
16073f5e024cSJung-uk Kim  */
1608fba7fc7eSJung-uk Kim ASL_RESOURCE_NODE *
160953289f6aSNate Lawson RsDoQwordIoDescriptor (
1610313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
161153289f6aSNate Lawson 
161253289f6aSNate Lawson ASL_RESOURCE_NODE *
161353289f6aSNate Lawson RsDoQwordMemoryDescriptor (
1614313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
161553289f6aSNate Lawson 
161653289f6aSNate Lawson ASL_RESOURCE_NODE *
1617fba7fc7eSJung-uk Kim RsDoQwordSpaceDescriptor (
1618313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
1619fba7fc7eSJung-uk Kim 
16203f5e024cSJung-uk Kim 
16213f5e024cSJung-uk Kim /*
16223f5e024cSJung-uk Kim  * aslrestype2w - Word address descriptors
16233f5e024cSJung-uk Kim  */
1624fba7fc7eSJung-uk Kim ASL_RESOURCE_NODE *
162553289f6aSNate Lawson RsDoWordIoDescriptor (
1626313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
162753289f6aSNate Lawson 
162853289f6aSNate Lawson ASL_RESOURCE_NODE *
1629fba7fc7eSJung-uk Kim RsDoWordSpaceDescriptor (
1630313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
1631fba7fc7eSJung-uk Kim 
1632fba7fc7eSJung-uk Kim ASL_RESOURCE_NODE *
163353289f6aSNate Lawson RsDoWordBusNumberDescriptor (
1634313a0c13SJung-uk Kim     ASL_RESOURCE_INFO       *Info);
1635313a0c13SJung-uk Kim 
163653289f6aSNate Lawson 
1637a88e22b7SJung-uk Kim /*
1638a88e22b7SJung-uk Kim  * Entry to data table compiler subsystem
1639a88e22b7SJung-uk Kim  */
1640a88e22b7SJung-uk Kim ACPI_STATUS
1641a88e22b7SJung-uk Kim DtDoCompile(
1642a88e22b7SJung-uk Kim     void);
1643a88e22b7SJung-uk Kim 
1644a88e22b7SJung-uk Kim ACPI_STATUS
1645a88e22b7SJung-uk Kim DtCreateTemplates (
1646f8146b88SJung-uk Kim     char                    **argv);
1647a88e22b7SJung-uk Kim 
16480d84335fSJung-uk Kim 
16490d84335fSJung-uk Kim /*
16500d84335fSJung-uk Kim  * ASL/ASL+ converter debug
16510d84335fSJung-uk Kim  */
1652a009b7dcSJung-uk Kim ACPI_PRINTF_LIKE (1)
16530d84335fSJung-uk Kim void
16540d84335fSJung-uk Kim CvDbgPrint (
16550d84335fSJung-uk Kim     char                    *Fmt,
16560d84335fSJung-uk Kim     ...);
16570d84335fSJung-uk Kim 
16580d84335fSJung-uk Kim 
165953289f6aSNate Lawson #endif /*  __ASLCOMPILER_H */
1660