1a9f12690SJung-uk Kim /******************************************************************************
2a9f12690SJung-uk Kim  *
3a9f12690SJung-uk Kim  * Name: acdispat.h - dispatcher (parser to interpreter interface)
4a9f12690SJung-uk Kim  *
5a9f12690SJung-uk Kim  *****************************************************************************/
6a9f12690SJung-uk Kim 
70d84335fSJung-uk Kim /******************************************************************************
80d84335fSJung-uk Kim  *
90d84335fSJung-uk Kim  * 1. Copyright Notice
100d84335fSJung-uk Kim  *
11722b1667SJung-uk Kim  * Some or all of this work - Copyright (c) 1999 - 2023, Intel Corp.
12a9f12690SJung-uk Kim  * All rights reserved.
13a9f12690SJung-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.
133a9f12690SJung-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.
149a9f12690SJung-uk Kim  *
1500d84335fSJung-uk Kim  *****************************************************************************/
151a9f12690SJung-uk Kim 
152a9f12690SJung-uk Kim #ifndef _ACDISPAT_H_
153a9f12690SJung-uk Kim #define _ACDISPAT_H_
154a9f12690SJung-uk Kim 
155a9f12690SJung-uk Kim 
156a9f12690SJung-uk Kim #define NAMEOF_LOCAL_NTE    "__L0"
157a9f12690SJung-uk Kim #define NAMEOF_ARG_NTE      "__A0"
158a9f12690SJung-uk Kim 
159a9f12690SJung-uk Kim 
160a9f12690SJung-uk Kim /*
1610b94ba42SJung-uk Kim  * dsargs - execution of dynamic arguments for static objects
162a9f12690SJung-uk Kim  */
163a9f12690SJung-uk Kim ACPI_STATUS
164a9f12690SJung-uk Kim AcpiDsGetBufferFieldArguments (
165a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *ObjDesc);
166a9f12690SJung-uk Kim 
167a9f12690SJung-uk Kim ACPI_STATUS
168a9f12690SJung-uk Kim AcpiDsGetBankFieldArguments (
169a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *ObjDesc);
170a9f12690SJung-uk Kim 
171a9f12690SJung-uk Kim ACPI_STATUS
172a9f12690SJung-uk Kim AcpiDsGetRegionArguments (
173a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *RgnDesc);
174a9f12690SJung-uk Kim 
175a9f12690SJung-uk Kim ACPI_STATUS
176a9f12690SJung-uk Kim AcpiDsGetBufferArguments (
177a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *ObjDesc);
178a9f12690SJung-uk Kim 
179a9f12690SJung-uk Kim ACPI_STATUS
180a9f12690SJung-uk Kim AcpiDsGetPackageArguments (
181a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *ObjDesc);
182a9f12690SJung-uk Kim 
1830b94ba42SJung-uk Kim 
1840b94ba42SJung-uk Kim /*
1850b94ba42SJung-uk Kim  * dscontrol - support for execution control opcodes
1860b94ba42SJung-uk Kim  */
1870b94ba42SJung-uk Kim ACPI_STATUS
1880b94ba42SJung-uk Kim AcpiDsExecBeginControlOp (
1890b94ba42SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
1900b94ba42SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
1910b94ba42SJung-uk Kim 
1920b94ba42SJung-uk Kim ACPI_STATUS
1930b94ba42SJung-uk Kim AcpiDsExecEndControlOp (
1940b94ba42SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
1950b94ba42SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
1960b94ba42SJung-uk Kim 
1970b94ba42SJung-uk Kim 
1980b94ba42SJung-uk Kim /*
1990b94ba42SJung-uk Kim  * dsopcode - support for late operand evaluation
2000b94ba42SJung-uk Kim  */
201a9f12690SJung-uk Kim ACPI_STATUS
202a9f12690SJung-uk Kim AcpiDsEvalBufferFieldOperands (
203a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
204a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
205a9f12690SJung-uk Kim 
206a9f12690SJung-uk Kim ACPI_STATUS
207a9f12690SJung-uk Kim AcpiDsEvalRegionOperands (
208a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
209a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
210a9f12690SJung-uk Kim 
211a9f12690SJung-uk Kim ACPI_STATUS
212a9f12690SJung-uk Kim AcpiDsEvalTableRegionOperands (
213a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
214a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
215a9f12690SJung-uk Kim 
216a9f12690SJung-uk Kim ACPI_STATUS
217a9f12690SJung-uk Kim AcpiDsEvalDataObjectOperands (
218a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
219a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
220a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *ObjDesc);
221a9f12690SJung-uk Kim 
222a9f12690SJung-uk Kim ACPI_STATUS
223a9f12690SJung-uk Kim AcpiDsEvalBankFieldOperands (
224a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
225a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
226a9f12690SJung-uk Kim 
227a9f12690SJung-uk Kim ACPI_STATUS
228a9f12690SJung-uk Kim AcpiDsInitializeRegion (
229a9f12690SJung-uk Kim     ACPI_HANDLE             ObjHandle);
230a9f12690SJung-uk Kim 
231a9f12690SJung-uk Kim 
232a9f12690SJung-uk Kim /*
233a9f12690SJung-uk Kim  * dsexec - Parser/Interpreter interface, method execution callbacks
234a9f12690SJung-uk Kim  */
235a9f12690SJung-uk Kim ACPI_STATUS
236a9f12690SJung-uk Kim AcpiDsGetPredicateValue (
237a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
238a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *ResultObj);
239a9f12690SJung-uk Kim 
240a9f12690SJung-uk Kim ACPI_STATUS
241a9f12690SJung-uk Kim AcpiDsExecBeginOp (
242a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
243a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       **OutOp);
244a9f12690SJung-uk Kim 
245a9f12690SJung-uk Kim ACPI_STATUS
246a9f12690SJung-uk Kim AcpiDsExecEndOp (
247a9f12690SJung-uk Kim     ACPI_WALK_STATE         *State);
248a9f12690SJung-uk Kim 
249a9f12690SJung-uk Kim 
250a9f12690SJung-uk Kim /*
251a9f12690SJung-uk Kim  * dsfield - Parser/Interpreter interface for AML fields
252a9f12690SJung-uk Kim  */
253a9f12690SJung-uk Kim ACPI_STATUS
254a9f12690SJung-uk Kim AcpiDsCreateField (
255a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
256a9f12690SJung-uk Kim     ACPI_NAMESPACE_NODE     *RegionNode,
257a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
258a9f12690SJung-uk Kim 
259a9f12690SJung-uk Kim ACPI_STATUS
260a9f12690SJung-uk Kim AcpiDsCreateBankField (
261a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
262a9f12690SJung-uk Kim     ACPI_NAMESPACE_NODE     *RegionNode,
263a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
264a9f12690SJung-uk Kim 
265a9f12690SJung-uk Kim ACPI_STATUS
266a9f12690SJung-uk Kim AcpiDsCreateIndexField (
267a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
268a9f12690SJung-uk Kim     ACPI_NAMESPACE_NODE     *RegionNode,
269a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
270a9f12690SJung-uk Kim 
271a9f12690SJung-uk Kim ACPI_STATUS
272a9f12690SJung-uk Kim AcpiDsCreateBufferField (
273a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
274a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
275a9f12690SJung-uk Kim 
276a9f12690SJung-uk Kim ACPI_STATUS
277a9f12690SJung-uk Kim AcpiDsInitFieldObjects (
278a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
279a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
280a9f12690SJung-uk Kim 
281a9f12690SJung-uk Kim 
282a9f12690SJung-uk Kim /*
283313a0c13SJung-uk Kim  * dsload - Parser/Interpreter interface
284a9f12690SJung-uk Kim  */
285a9f12690SJung-uk Kim ACPI_STATUS
2860b94ba42SJung-uk Kim AcpiDsInitCallbacks (
2870b94ba42SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
2880b94ba42SJung-uk Kim     UINT32                  PassNumber);
2890b94ba42SJung-uk Kim 
290313a0c13SJung-uk Kim /* dsload - pass 1 namespace load callbacks */
291313a0c13SJung-uk Kim 
2920b94ba42SJung-uk Kim ACPI_STATUS
293a9f12690SJung-uk Kim AcpiDsLoad1BeginOp (
294a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
295a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       **OutOp);
296a9f12690SJung-uk Kim 
297a9f12690SJung-uk Kim ACPI_STATUS
298a9f12690SJung-uk Kim AcpiDsLoad1EndOp (
299a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
300a9f12690SJung-uk Kim 
3010b94ba42SJung-uk Kim 
302313a0c13SJung-uk Kim /* dsload - pass 2 namespace load callbacks */
303313a0c13SJung-uk Kim 
304a9f12690SJung-uk Kim ACPI_STATUS
305a9f12690SJung-uk Kim AcpiDsLoad2BeginOp (
306a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
307a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       **OutOp);
308a9f12690SJung-uk Kim 
309a9f12690SJung-uk Kim ACPI_STATUS
310a9f12690SJung-uk Kim AcpiDsLoad2EndOp (
311a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
312a9f12690SJung-uk Kim 
313a9f12690SJung-uk Kim 
314a9f12690SJung-uk Kim /*
315a9f12690SJung-uk Kim  * dsmthdat - method data (locals/args)
316a9f12690SJung-uk Kim  */
317a9f12690SJung-uk Kim ACPI_STATUS
318a9f12690SJung-uk Kim AcpiDsStoreObjectToLocal (
319a9f12690SJung-uk Kim     UINT8                   Type,
320a9f12690SJung-uk Kim     UINT32                  Index,
321a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *SrcDesc,
322a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
323a9f12690SJung-uk Kim 
324a9f12690SJung-uk Kim ACPI_STATUS
325a9f12690SJung-uk Kim AcpiDsMethodDataGetEntry (
326a9f12690SJung-uk Kim     UINT16                  Opcode,
327a9f12690SJung-uk Kim     UINT32                  Index,
328a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
329a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     ***Node);
330a9f12690SJung-uk Kim 
331a9f12690SJung-uk Kim void
332a9f12690SJung-uk Kim AcpiDsMethodDataDeleteAll (
333a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
334a9f12690SJung-uk Kim 
335a9f12690SJung-uk Kim BOOLEAN
336a9f12690SJung-uk Kim AcpiDsIsMethodValue (
337a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *ObjDesc);
338a9f12690SJung-uk Kim 
339a9f12690SJung-uk Kim ACPI_STATUS
340a9f12690SJung-uk Kim AcpiDsMethodDataGetValue (
341a9f12690SJung-uk Kim     UINT8                   Type,
342a9f12690SJung-uk Kim     UINT32                  Index,
343a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
344a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     **DestDesc);
345a9f12690SJung-uk Kim 
346a9f12690SJung-uk Kim ACPI_STATUS
347a9f12690SJung-uk Kim AcpiDsMethodDataInitArgs (
348a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     **Params,
349a9f12690SJung-uk Kim     UINT32                  MaxParamCount,
350a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
351a9f12690SJung-uk Kim 
352a9f12690SJung-uk Kim ACPI_STATUS
353a9f12690SJung-uk Kim AcpiDsMethodDataGetNode (
354a9f12690SJung-uk Kim     UINT8                   Type,
355a9f12690SJung-uk Kim     UINT32                  Index,
356a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
357a9f12690SJung-uk Kim     ACPI_NAMESPACE_NODE     **Node);
358a9f12690SJung-uk Kim 
359a9f12690SJung-uk Kim void
360a9f12690SJung-uk Kim AcpiDsMethodDataInit (
361a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
362a9f12690SJung-uk Kim 
363a9f12690SJung-uk Kim 
364a9f12690SJung-uk Kim /*
365a9f12690SJung-uk Kim  * dsmethod - Parser/Interpreter interface - control method parsing
366a9f12690SJung-uk Kim  */
367a9f12690SJung-uk Kim ACPI_STATUS
368313a0c13SJung-uk Kim AcpiDsAutoSerializeMethod (
369313a0c13SJung-uk Kim     ACPI_NAMESPACE_NODE     *Node,
370313a0c13SJung-uk Kim     ACPI_OPERAND_OBJECT     *ObjDesc);
371a9f12690SJung-uk Kim 
372a9f12690SJung-uk Kim ACPI_STATUS
373a9f12690SJung-uk Kim AcpiDsCallControlMethod (
374a9f12690SJung-uk Kim     ACPI_THREAD_STATE       *Thread,
375a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
376a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
377a9f12690SJung-uk Kim 
378a9f12690SJung-uk Kim ACPI_STATUS
379a9f12690SJung-uk Kim AcpiDsRestartControlMethod (
380a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
381a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *ReturnDesc);
382a9f12690SJung-uk Kim 
383a9f12690SJung-uk Kim void
384a9f12690SJung-uk Kim AcpiDsTerminateControlMethod (
385a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *MethodDesc,
386a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
387a9f12690SJung-uk Kim 
388a9f12690SJung-uk Kim ACPI_STATUS
389a9f12690SJung-uk Kim AcpiDsBeginMethodExecution (
390a9f12690SJung-uk Kim     ACPI_NAMESPACE_NODE     *MethodNode,
391a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *ObjDesc,
392a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
393a9f12690SJung-uk Kim 
394a9f12690SJung-uk Kim ACPI_STATUS
395a9f12690SJung-uk Kim AcpiDsMethodError (
396a9f12690SJung-uk Kim     ACPI_STATUS             Status,
397a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
398a9f12690SJung-uk Kim 
399a9f12690SJung-uk Kim /*
400a9f12690SJung-uk Kim  * dsinit
401a9f12690SJung-uk Kim  */
402a9f12690SJung-uk Kim ACPI_STATUS
403a9f12690SJung-uk Kim AcpiDsInitializeObjects (
404a9f12690SJung-uk Kim     UINT32                  TableIndex,
405a9f12690SJung-uk Kim     ACPI_NAMESPACE_NODE     *StartNode);
406a9f12690SJung-uk Kim 
407a9f12690SJung-uk Kim 
408a9f12690SJung-uk Kim /*
409a9f12690SJung-uk Kim  * dsobject - Parser/Interpreter interface - object initialization and conversion
410a9f12690SJung-uk Kim  */
411a9f12690SJung-uk Kim ACPI_STATUS
4125f9b24faSJung-uk Kim AcpiDsBuildInternalObject (
4135f9b24faSJung-uk Kim     ACPI_WALK_STATE         *WalkState,
4145f9b24faSJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
4155f9b24faSJung-uk Kim     ACPI_OPERAND_OBJECT     **ObjDescPtr);
4165f9b24faSJung-uk Kim 
4175f9b24faSJung-uk Kim ACPI_STATUS
418a9f12690SJung-uk Kim AcpiDsBuildInternalBufferObj (
419a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
420a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
421a9f12690SJung-uk Kim     UINT32                  BufferLength,
422a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     **ObjDescPtr);
423a9f12690SJung-uk Kim 
424a9f12690SJung-uk Kim ACPI_STATUS
425a9f12690SJung-uk Kim AcpiDsBuildInternalPackageObj (
426a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
427a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *op,
428a9f12690SJung-uk Kim     UINT32                  PackageLength,
429a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     **ObjDesc);
430a9f12690SJung-uk Kim 
431a9f12690SJung-uk Kim ACPI_STATUS
432a9f12690SJung-uk Kim AcpiDsInitObjectFromOp (
433a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
434a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
435a9f12690SJung-uk Kim     UINT16                  Opcode,
436a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     **ObjDesc);
437a9f12690SJung-uk Kim 
438a9f12690SJung-uk Kim ACPI_STATUS
439a9f12690SJung-uk Kim AcpiDsCreateNode (
440a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
441a9f12690SJung-uk Kim     ACPI_NAMESPACE_NODE     *Node,
442a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
443a9f12690SJung-uk Kim 
444a9f12690SJung-uk Kim 
445a9f12690SJung-uk Kim /*
4465f9b24faSJung-uk Kim  * dspkginit - Package object initialization
4475f9b24faSJung-uk Kim  */
4485f9b24faSJung-uk Kim ACPI_STATUS
4495f9b24faSJung-uk Kim AcpiDsInitPackageElement (
4505f9b24faSJung-uk Kim     UINT8                   ObjectType,
4515f9b24faSJung-uk Kim     ACPI_OPERAND_OBJECT     *SourceObject,
4525f9b24faSJung-uk Kim     ACPI_GENERIC_STATE      *State,
4535f9b24faSJung-uk Kim     void                    *Context);
4545f9b24faSJung-uk Kim 
4555f9b24faSJung-uk Kim 
4565f9b24faSJung-uk Kim /*
457a9f12690SJung-uk Kim  * dsutils - Parser/Interpreter interface utility routines
458a9f12690SJung-uk Kim  */
459a9f12690SJung-uk Kim void
460a9f12690SJung-uk Kim AcpiDsClearImplicitReturn (
461a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
462a9f12690SJung-uk Kim 
463a9f12690SJung-uk Kim BOOLEAN
464a9f12690SJung-uk Kim AcpiDsDoImplicitReturn (
465a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *ReturnDesc,
466a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
467a9f12690SJung-uk Kim     BOOLEAN                 AddReference);
468a9f12690SJung-uk Kim 
469a9f12690SJung-uk Kim BOOLEAN
470a9f12690SJung-uk Kim AcpiDsIsResultUsed (
471a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
472a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
473a9f12690SJung-uk Kim 
474a9f12690SJung-uk Kim void
475a9f12690SJung-uk Kim AcpiDsDeleteResultIfNotUsed (
476a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
477a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *ResultObj,
478a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
479a9f12690SJung-uk Kim 
480a9f12690SJung-uk Kim ACPI_STATUS
481a9f12690SJung-uk Kim AcpiDsCreateOperand (
482a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
483a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Arg,
484a9f12690SJung-uk Kim     UINT32                  ArgsRemaining);
485a9f12690SJung-uk Kim 
486a9f12690SJung-uk Kim ACPI_STATUS
487a9f12690SJung-uk Kim AcpiDsCreateOperands (
488a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
489a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *FirstArg);
490a9f12690SJung-uk Kim 
491a9f12690SJung-uk Kim ACPI_STATUS
492a9f12690SJung-uk Kim AcpiDsResolveOperands (
493a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
494a9f12690SJung-uk Kim 
495a9f12690SJung-uk Kim void
496a9f12690SJung-uk Kim AcpiDsClearOperands (
497a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
498a9f12690SJung-uk Kim 
499a9f12690SJung-uk Kim ACPI_STATUS
500a9f12690SJung-uk Kim AcpiDsEvaluateNamePath (
501a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
502a9f12690SJung-uk Kim 
503a9f12690SJung-uk Kim 
504a9f12690SJung-uk Kim /*
505a9f12690SJung-uk Kim  * dswscope - Scope Stack manipulation
506a9f12690SJung-uk Kim  */
507a9f12690SJung-uk Kim ACPI_STATUS
508a9f12690SJung-uk Kim AcpiDsScopeStackPush (
509a9f12690SJung-uk Kim     ACPI_NAMESPACE_NODE     *Node,
510a9f12690SJung-uk Kim     ACPI_OBJECT_TYPE        Type,
511a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
512a9f12690SJung-uk Kim 
513a9f12690SJung-uk Kim 
514a9f12690SJung-uk Kim ACPI_STATUS
515a9f12690SJung-uk Kim AcpiDsScopeStackPop (
516a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
517a9f12690SJung-uk Kim 
518a9f12690SJung-uk Kim void
519a9f12690SJung-uk Kim AcpiDsScopeStackClear (
520a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
521a9f12690SJung-uk Kim 
522a9f12690SJung-uk Kim 
523a9f12690SJung-uk Kim /*
524a9f12690SJung-uk Kim  * dswstate - parser WALK_STATE management routines
525a9f12690SJung-uk Kim  */
526a9f12690SJung-uk Kim ACPI_STATUS
527a9f12690SJung-uk Kim AcpiDsObjStackPush (
528a9f12690SJung-uk Kim     void                    *Object,
529a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
530a9f12690SJung-uk Kim 
531a9f12690SJung-uk Kim ACPI_STATUS
532a9f12690SJung-uk Kim AcpiDsObjStackPop (
533a9f12690SJung-uk Kim     UINT32                  PopCount,
534a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
535a9f12690SJung-uk Kim 
536a9f12690SJung-uk Kim ACPI_WALK_STATE *
537a9f12690SJung-uk Kim AcpiDsCreateWalkState (
538a9f12690SJung-uk Kim     ACPI_OWNER_ID           OwnerId,
539a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Origin,
540a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *MthDesc,
541a9f12690SJung-uk Kim     ACPI_THREAD_STATE       *Thread);
542a9f12690SJung-uk Kim 
543a9f12690SJung-uk Kim ACPI_STATUS
544a9f12690SJung-uk Kim AcpiDsInitAmlWalk (
545a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
546a9f12690SJung-uk Kim     ACPI_PARSE_OBJECT       *Op,
547a9f12690SJung-uk Kim     ACPI_NAMESPACE_NODE     *MethodNode,
548a9f12690SJung-uk Kim     UINT8                   *AmlStart,
549a9f12690SJung-uk Kim     UINT32                  AmlLength,
550a9f12690SJung-uk Kim     ACPI_EVALUATE_INFO      *Info,
551a9f12690SJung-uk Kim     UINT8                   PassNumber);
552a9f12690SJung-uk Kim 
553a9f12690SJung-uk Kim void
554a9f12690SJung-uk Kim AcpiDsObjStackPopAndDelete (
555a9f12690SJung-uk Kim     UINT32                  PopCount,
556a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
557a9f12690SJung-uk Kim 
558a9f12690SJung-uk Kim void
559a9f12690SJung-uk Kim AcpiDsDeleteWalkState (
560a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
561a9f12690SJung-uk Kim 
562a9f12690SJung-uk Kim ACPI_WALK_STATE *
563a9f12690SJung-uk Kim AcpiDsPopWalkState (
564a9f12690SJung-uk Kim     ACPI_THREAD_STATE       *Thread);
565a9f12690SJung-uk Kim 
566a9f12690SJung-uk Kim void
567a9f12690SJung-uk Kim AcpiDsPushWalkState (
568a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState,
569a9f12690SJung-uk Kim     ACPI_THREAD_STATE       *Thread);
570a9f12690SJung-uk Kim 
571a9f12690SJung-uk Kim ACPI_STATUS
572a9f12690SJung-uk Kim AcpiDsResultStackClear (
573a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
574a9f12690SJung-uk Kim 
575a9f12690SJung-uk Kim ACPI_WALK_STATE *
576a9f12690SJung-uk Kim AcpiDsGetCurrentWalkState (
577a9f12690SJung-uk Kim     ACPI_THREAD_STATE       *Thread);
578a9f12690SJung-uk Kim 
579a9f12690SJung-uk Kim ACPI_STATUS
580a9f12690SJung-uk Kim AcpiDsResultPop (
581a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     **Object,
582a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
583a9f12690SJung-uk Kim 
584a9f12690SJung-uk Kim ACPI_STATUS
585a9f12690SJung-uk Kim AcpiDsResultPush (
586a9f12690SJung-uk Kim     ACPI_OPERAND_OBJECT     *Object,
587a9f12690SJung-uk Kim     ACPI_WALK_STATE         *WalkState);
588a9f12690SJung-uk Kim 
589fe0f0bbbSJung-uk Kim 
590fe0f0bbbSJung-uk Kim /*
591fe0f0bbbSJung-uk Kim  * dsdebug - parser debugging routines
592fe0f0bbbSJung-uk Kim  */
593fe0f0bbbSJung-uk Kim void
594fe0f0bbbSJung-uk Kim AcpiDsDumpMethodStack (
595fe0f0bbbSJung-uk Kim     ACPI_STATUS             Status,
596fe0f0bbbSJung-uk Kim     ACPI_WALK_STATE         *WalkState,
597fe0f0bbbSJung-uk Kim     ACPI_PARSE_OBJECT       *Op);
598fe0f0bbbSJung-uk Kim 
599a9f12690SJung-uk Kim #endif /* _ACDISPAT_H_ */
600