xref: /onnv-gate/usr/src/uts/intel/sys/acpi/acdispat.h (revision 0:68f95e015346)
1*0Sstevel@tonic-gate /******************************************************************************
2*0Sstevel@tonic-gate  *
3*0Sstevel@tonic-gate  * Name: acdispat.h - dispatcher (parser to interpreter interface)
4*0Sstevel@tonic-gate  *       $Revision: 64 $
5*0Sstevel@tonic-gate  *
6*0Sstevel@tonic-gate  *****************************************************************************/
7*0Sstevel@tonic-gate 
8*0Sstevel@tonic-gate /******************************************************************************
9*0Sstevel@tonic-gate  *
10*0Sstevel@tonic-gate  * 1. Copyright Notice
11*0Sstevel@tonic-gate  *
12*0Sstevel@tonic-gate  * Some or all of this work - Copyright (c) 1999 - 2005, Intel Corp.
13*0Sstevel@tonic-gate  * All rights reserved.
14*0Sstevel@tonic-gate  *
15*0Sstevel@tonic-gate  * 2. License
16*0Sstevel@tonic-gate  *
17*0Sstevel@tonic-gate  * 2.1. This is your license from Intel Corp. under its intellectual property
18*0Sstevel@tonic-gate  * rights.  You may have additional license terms from the party that provided
19*0Sstevel@tonic-gate  * you this software, covering your right to use that party's intellectual
20*0Sstevel@tonic-gate  * property rights.
21*0Sstevel@tonic-gate  *
22*0Sstevel@tonic-gate  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
23*0Sstevel@tonic-gate  * copy of the source code appearing in this file ("Covered Code") an
24*0Sstevel@tonic-gate  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
25*0Sstevel@tonic-gate  * base code distributed originally by Intel ("Original Intel Code") to copy,
26*0Sstevel@tonic-gate  * make derivatives, distribute, use and display any portion of the Covered
27*0Sstevel@tonic-gate  * Code in any form, with the right to sublicense such rights; and
28*0Sstevel@tonic-gate  *
29*0Sstevel@tonic-gate  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
30*0Sstevel@tonic-gate  * license (with the right to sublicense), under only those claims of Intel
31*0Sstevel@tonic-gate  * patents that are infringed by the Original Intel Code, to make, use, sell,
32*0Sstevel@tonic-gate  * offer to sell, and import the Covered Code and derivative works thereof
33*0Sstevel@tonic-gate  * solely to the minimum extent necessary to exercise the above copyright
34*0Sstevel@tonic-gate  * license, and in no event shall the patent license extend to any additions
35*0Sstevel@tonic-gate  * to or modifications of the Original Intel Code.  No other license or right
36*0Sstevel@tonic-gate  * is granted directly or by implication, estoppel or otherwise;
37*0Sstevel@tonic-gate  *
38*0Sstevel@tonic-gate  * The above copyright and patent license is granted only if the following
39*0Sstevel@tonic-gate  * conditions are met:
40*0Sstevel@tonic-gate  *
41*0Sstevel@tonic-gate  * 3. Conditions
42*0Sstevel@tonic-gate  *
43*0Sstevel@tonic-gate  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
44*0Sstevel@tonic-gate  * Redistribution of source code of any substantial portion of the Covered
45*0Sstevel@tonic-gate  * Code or modification with rights to further distribute source must include
46*0Sstevel@tonic-gate  * the above Copyright Notice, the above License, this list of Conditions,
47*0Sstevel@tonic-gate  * and the following Disclaimer and Export Compliance provision.  In addition,
48*0Sstevel@tonic-gate  * Licensee must cause all Covered Code to which Licensee contributes to
49*0Sstevel@tonic-gate  * contain a file documenting the changes Licensee made to create that Covered
50*0Sstevel@tonic-gate  * Code and the date of any change.  Licensee must include in that file the
51*0Sstevel@tonic-gate  * documentation of any changes made by any predecessor Licensee.  Licensee
52*0Sstevel@tonic-gate  * must include a prominent statement that the modification is derived,
53*0Sstevel@tonic-gate  * directly or indirectly, from Original Intel Code.
54*0Sstevel@tonic-gate  *
55*0Sstevel@tonic-gate  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
56*0Sstevel@tonic-gate  * Redistribution of source code of any substantial portion of the Covered
57*0Sstevel@tonic-gate  * Code or modification without rights to further distribute source must
58*0Sstevel@tonic-gate  * include the following Disclaimer and Export Compliance provision in the
59*0Sstevel@tonic-gate  * documentation and/or other materials provided with distribution.  In
60*0Sstevel@tonic-gate  * addition, Licensee may not authorize further sublicense of source of any
61*0Sstevel@tonic-gate  * portion of the Covered Code, and must include terms to the effect that the
62*0Sstevel@tonic-gate  * license from Licensee to its licensee is limited to the intellectual
63*0Sstevel@tonic-gate  * property embodied in the software Licensee provides to its licensee, and
64*0Sstevel@tonic-gate  * not to intellectual property embodied in modifications its licensee may
65*0Sstevel@tonic-gate  * make.
66*0Sstevel@tonic-gate  *
67*0Sstevel@tonic-gate  * 3.3. Redistribution of Executable. Redistribution in executable form of any
68*0Sstevel@tonic-gate  * substantial portion of the Covered Code or modification must reproduce the
69*0Sstevel@tonic-gate  * above Copyright Notice, and the following Disclaimer and Export Compliance
70*0Sstevel@tonic-gate  * provision in the documentation and/or other materials provided with the
71*0Sstevel@tonic-gate  * distribution.
72*0Sstevel@tonic-gate  *
73*0Sstevel@tonic-gate  * 3.4. Intel retains all right, title, and interest in and to the Original
74*0Sstevel@tonic-gate  * Intel Code.
75*0Sstevel@tonic-gate  *
76*0Sstevel@tonic-gate  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
77*0Sstevel@tonic-gate  * Intel shall be used in advertising or otherwise to promote the sale, use or
78*0Sstevel@tonic-gate  * other dealings in products derived from or relating to the Covered Code
79*0Sstevel@tonic-gate  * without prior written authorization from Intel.
80*0Sstevel@tonic-gate  *
81*0Sstevel@tonic-gate  * 4. Disclaimer and Export Compliance
82*0Sstevel@tonic-gate  *
83*0Sstevel@tonic-gate  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
84*0Sstevel@tonic-gate  * HERE.  ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
85*0Sstevel@tonic-gate  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT,  ASSISTANCE,
86*0Sstevel@tonic-gate  * INSTALLATION, TRAINING OR OTHER SERVICES.  INTEL WILL NOT PROVIDE ANY
87*0Sstevel@tonic-gate  * UPDATES, ENHANCEMENTS OR EXTENSIONS.  INTEL SPECIFICALLY DISCLAIMS ANY
88*0Sstevel@tonic-gate  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
89*0Sstevel@tonic-gate  * PARTICULAR PURPOSE.
90*0Sstevel@tonic-gate  *
91*0Sstevel@tonic-gate  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
92*0Sstevel@tonic-gate  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
93*0Sstevel@tonic-gate  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
94*0Sstevel@tonic-gate  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
95*0Sstevel@tonic-gate  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
96*0Sstevel@tonic-gate  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.  THESE LIMITATIONS
97*0Sstevel@tonic-gate  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
98*0Sstevel@tonic-gate  * LIMITED REMEDY.
99*0Sstevel@tonic-gate  *
100*0Sstevel@tonic-gate  * 4.3. Licensee shall not export, either directly or indirectly, any of this
101*0Sstevel@tonic-gate  * software or system incorporating such software without first obtaining any
102*0Sstevel@tonic-gate  * required license or other approval from the U. S. Department of Commerce or
103*0Sstevel@tonic-gate  * any other agency or department of the United States Government.  In the
104*0Sstevel@tonic-gate  * event Licensee exports any such software from the United States or
105*0Sstevel@tonic-gate  * re-exports any such software from a foreign destination, Licensee shall
106*0Sstevel@tonic-gate  * ensure that the distribution and export/re-export of the software is in
107*0Sstevel@tonic-gate  * compliance with all laws, regulations, orders, or other restrictions of the
108*0Sstevel@tonic-gate  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
109*0Sstevel@tonic-gate  * any of its subsidiaries will export/re-export any technical data, process,
110*0Sstevel@tonic-gate  * software, or service, directly or indirectly, to any country for which the
111*0Sstevel@tonic-gate  * United States government or any agency thereof requires an export license,
112*0Sstevel@tonic-gate  * other governmental approval, or letter of assurance, without first obtaining
113*0Sstevel@tonic-gate  * such license, approval or letter.
114*0Sstevel@tonic-gate  *
115*0Sstevel@tonic-gate  *****************************************************************************/
116*0Sstevel@tonic-gate 
117*0Sstevel@tonic-gate 
118*0Sstevel@tonic-gate #ifndef _ACDISPAT_H_
119*0Sstevel@tonic-gate #define _ACDISPAT_H_
120*0Sstevel@tonic-gate 
121*0Sstevel@tonic-gate 
122*0Sstevel@tonic-gate #define NAMEOF_LOCAL_NTE    "__L0"
123*0Sstevel@tonic-gate #define NAMEOF_ARG_NTE      "__A0"
124*0Sstevel@tonic-gate 
125*0Sstevel@tonic-gate 
126*0Sstevel@tonic-gate /*
127*0Sstevel@tonic-gate  * dsopcode - support for late evaluation
128*0Sstevel@tonic-gate  */
129*0Sstevel@tonic-gate ACPI_STATUS
130*0Sstevel@tonic-gate AcpiDsGetBufferFieldArguments (
131*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc);
132*0Sstevel@tonic-gate 
133*0Sstevel@tonic-gate ACPI_STATUS
134*0Sstevel@tonic-gate AcpiDsGetRegionArguments (
135*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *RgnDesc);
136*0Sstevel@tonic-gate 
137*0Sstevel@tonic-gate ACPI_STATUS
138*0Sstevel@tonic-gate AcpiDsGetBufferArguments (
139*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc);
140*0Sstevel@tonic-gate 
141*0Sstevel@tonic-gate ACPI_STATUS
142*0Sstevel@tonic-gate AcpiDsGetPackageArguments (
143*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc);
144*0Sstevel@tonic-gate 
145*0Sstevel@tonic-gate ACPI_STATUS
146*0Sstevel@tonic-gate AcpiDsEvalBufferFieldOperands (
147*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
148*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op);
149*0Sstevel@tonic-gate 
150*0Sstevel@tonic-gate ACPI_STATUS
151*0Sstevel@tonic-gate AcpiDsEvalRegionOperands (
152*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
153*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op);
154*0Sstevel@tonic-gate 
155*0Sstevel@tonic-gate ACPI_STATUS
156*0Sstevel@tonic-gate AcpiDsEvalDataObjectOperands (
157*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
158*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op,
159*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc);
160*0Sstevel@tonic-gate 
161*0Sstevel@tonic-gate ACPI_STATUS
162*0Sstevel@tonic-gate AcpiDsInitializeRegion (
163*0Sstevel@tonic-gate     ACPI_HANDLE             ObjHandle);
164*0Sstevel@tonic-gate 
165*0Sstevel@tonic-gate 
166*0Sstevel@tonic-gate /*
167*0Sstevel@tonic-gate  * dsctrl - Parser/Interpreter interface, control stack routines
168*0Sstevel@tonic-gate  */
169*0Sstevel@tonic-gate ACPI_STATUS
170*0Sstevel@tonic-gate AcpiDsExecBeginControlOp (
171*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
172*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op);
173*0Sstevel@tonic-gate 
174*0Sstevel@tonic-gate ACPI_STATUS
175*0Sstevel@tonic-gate AcpiDsExecEndControlOp (
176*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
177*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op);
178*0Sstevel@tonic-gate 
179*0Sstevel@tonic-gate 
180*0Sstevel@tonic-gate /*
181*0Sstevel@tonic-gate  * dsexec - Parser/Interpreter interface, method execution callbacks
182*0Sstevel@tonic-gate  */
183*0Sstevel@tonic-gate ACPI_STATUS
184*0Sstevel@tonic-gate AcpiDsGetPredicateValue (
185*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
186*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ResultObj);
187*0Sstevel@tonic-gate 
188*0Sstevel@tonic-gate ACPI_STATUS
189*0Sstevel@tonic-gate AcpiDsExecBeginOp (
190*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
191*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       **OutOp);
192*0Sstevel@tonic-gate 
193*0Sstevel@tonic-gate ACPI_STATUS
194*0Sstevel@tonic-gate AcpiDsExecEndOp (
195*0Sstevel@tonic-gate     ACPI_WALK_STATE         *State);
196*0Sstevel@tonic-gate 
197*0Sstevel@tonic-gate 
198*0Sstevel@tonic-gate /*
199*0Sstevel@tonic-gate  * dsfield - Parser/Interpreter interface for AML fields
200*0Sstevel@tonic-gate  */
201*0Sstevel@tonic-gate ACPI_STATUS
202*0Sstevel@tonic-gate AcpiDsCreateField (
203*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op,
204*0Sstevel@tonic-gate     ACPI_NAMESPACE_NODE     *RegionNode,
205*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
206*0Sstevel@tonic-gate 
207*0Sstevel@tonic-gate ACPI_STATUS
208*0Sstevel@tonic-gate AcpiDsCreateBankField (
209*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op,
210*0Sstevel@tonic-gate     ACPI_NAMESPACE_NODE     *RegionNode,
211*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
212*0Sstevel@tonic-gate 
213*0Sstevel@tonic-gate ACPI_STATUS
214*0Sstevel@tonic-gate AcpiDsCreateIndexField (
215*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op,
216*0Sstevel@tonic-gate     ACPI_NAMESPACE_NODE     *RegionNode,
217*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
218*0Sstevel@tonic-gate 
219*0Sstevel@tonic-gate ACPI_STATUS
220*0Sstevel@tonic-gate AcpiDsCreateBufferField (
221*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op,
222*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
223*0Sstevel@tonic-gate 
224*0Sstevel@tonic-gate ACPI_STATUS
225*0Sstevel@tonic-gate AcpiDsInitFieldObjects (
226*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op,
227*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
228*0Sstevel@tonic-gate 
229*0Sstevel@tonic-gate 
230*0Sstevel@tonic-gate /*
231*0Sstevel@tonic-gate  * dsload - Parser/Interpreter interface, namespace load callbacks
232*0Sstevel@tonic-gate  */
233*0Sstevel@tonic-gate ACPI_STATUS
234*0Sstevel@tonic-gate AcpiDsLoad1BeginOp (
235*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
236*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       **OutOp);
237*0Sstevel@tonic-gate 
238*0Sstevel@tonic-gate ACPI_STATUS
239*0Sstevel@tonic-gate AcpiDsLoad1EndOp (
240*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
241*0Sstevel@tonic-gate 
242*0Sstevel@tonic-gate ACPI_STATUS
243*0Sstevel@tonic-gate AcpiDsLoad2BeginOp (
244*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
245*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       **OutOp);
246*0Sstevel@tonic-gate 
247*0Sstevel@tonic-gate ACPI_STATUS
248*0Sstevel@tonic-gate AcpiDsLoad2EndOp (
249*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
250*0Sstevel@tonic-gate 
251*0Sstevel@tonic-gate ACPI_STATUS
252*0Sstevel@tonic-gate AcpiDsInitCallbacks (
253*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
254*0Sstevel@tonic-gate     UINT32                  PassNumber);
255*0Sstevel@tonic-gate 
256*0Sstevel@tonic-gate 
257*0Sstevel@tonic-gate /*
258*0Sstevel@tonic-gate  * dsmthdat - method data (locals/args)
259*0Sstevel@tonic-gate  */
260*0Sstevel@tonic-gate ACPI_STATUS
261*0Sstevel@tonic-gate AcpiDsStoreObjectToLocal (
262*0Sstevel@tonic-gate     UINT16                  Opcode,
263*0Sstevel@tonic-gate     UINT32                  Index,
264*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *SrcDesc,
265*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
266*0Sstevel@tonic-gate 
267*0Sstevel@tonic-gate ACPI_STATUS
268*0Sstevel@tonic-gate AcpiDsMethodDataGetEntry (
269*0Sstevel@tonic-gate     UINT16                  Opcode,
270*0Sstevel@tonic-gate     UINT32                  Index,
271*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
272*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     ***Node);
273*0Sstevel@tonic-gate 
274*0Sstevel@tonic-gate void
275*0Sstevel@tonic-gate AcpiDsMethodDataDeleteAll (
276*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
277*0Sstevel@tonic-gate 
278*0Sstevel@tonic-gate BOOLEAN
279*0Sstevel@tonic-gate AcpiDsIsMethodValue (
280*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc);
281*0Sstevel@tonic-gate 
282*0Sstevel@tonic-gate ACPI_STATUS
283*0Sstevel@tonic-gate AcpiDsMethodDataGetValue (
284*0Sstevel@tonic-gate     UINT16                  Opcode,
285*0Sstevel@tonic-gate     UINT32                  Index,
286*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
287*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **DestDesc);
288*0Sstevel@tonic-gate 
289*0Sstevel@tonic-gate ACPI_STATUS
290*0Sstevel@tonic-gate AcpiDsMethodDataInitArgs (
291*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **Params,
292*0Sstevel@tonic-gate     UINT32                  MaxParamCount,
293*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
294*0Sstevel@tonic-gate 
295*0Sstevel@tonic-gate ACPI_STATUS
296*0Sstevel@tonic-gate AcpiDsMethodDataGetNode (
297*0Sstevel@tonic-gate     UINT16                  Opcode,
298*0Sstevel@tonic-gate     UINT32                  Index,
299*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
300*0Sstevel@tonic-gate     ACPI_NAMESPACE_NODE     **Node);
301*0Sstevel@tonic-gate 
302*0Sstevel@tonic-gate void
303*0Sstevel@tonic-gate AcpiDsMethodDataInit (
304*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
305*0Sstevel@tonic-gate 
306*0Sstevel@tonic-gate 
307*0Sstevel@tonic-gate /*
308*0Sstevel@tonic-gate  * dsmethod - Parser/Interpreter interface - control method parsing
309*0Sstevel@tonic-gate  */
310*0Sstevel@tonic-gate ACPI_STATUS
311*0Sstevel@tonic-gate AcpiDsParseMethod (
312*0Sstevel@tonic-gate     ACPI_HANDLE             ObjHandle);
313*0Sstevel@tonic-gate 
314*0Sstevel@tonic-gate ACPI_STATUS
315*0Sstevel@tonic-gate AcpiDsCallControlMethod (
316*0Sstevel@tonic-gate     ACPI_THREAD_STATE       *Thread,
317*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
318*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op);
319*0Sstevel@tonic-gate 
320*0Sstevel@tonic-gate ACPI_STATUS
321*0Sstevel@tonic-gate AcpiDsRestartControlMethod (
322*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
323*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ReturnDesc);
324*0Sstevel@tonic-gate 
325*0Sstevel@tonic-gate ACPI_STATUS
326*0Sstevel@tonic-gate AcpiDsTerminateControlMethod (
327*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
328*0Sstevel@tonic-gate 
329*0Sstevel@tonic-gate ACPI_STATUS
330*0Sstevel@tonic-gate AcpiDsBeginMethodExecution (
331*0Sstevel@tonic-gate     ACPI_NAMESPACE_NODE     *MethodNode,
332*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ObjDesc,
333*0Sstevel@tonic-gate     ACPI_NAMESPACE_NODE     *CallingMethodNode);
334*0Sstevel@tonic-gate 
335*0Sstevel@tonic-gate 
336*0Sstevel@tonic-gate /*
337*0Sstevel@tonic-gate  * dsinit
338*0Sstevel@tonic-gate  */
339*0Sstevel@tonic-gate ACPI_STATUS
340*0Sstevel@tonic-gate AcpiDsInitializeObjects (
341*0Sstevel@tonic-gate     ACPI_TABLE_DESC         *TableDesc,
342*0Sstevel@tonic-gate     ACPI_NAMESPACE_NODE     *StartNode);
343*0Sstevel@tonic-gate 
344*0Sstevel@tonic-gate 
345*0Sstevel@tonic-gate /*
346*0Sstevel@tonic-gate  * dsobject - Parser/Interpreter interface - object initialization and conversion
347*0Sstevel@tonic-gate  */
348*0Sstevel@tonic-gate ACPI_STATUS
349*0Sstevel@tonic-gate AcpiDsBuildInternalBufferObj (
350*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
351*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op,
352*0Sstevel@tonic-gate     UINT32                  BufferLength,
353*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **ObjDescPtr);
354*0Sstevel@tonic-gate 
355*0Sstevel@tonic-gate ACPI_STATUS
356*0Sstevel@tonic-gate AcpiDsBuildInternalPackageObj (
357*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
358*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *op,
359*0Sstevel@tonic-gate     UINT32                  PackageLength,
360*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **ObjDesc);
361*0Sstevel@tonic-gate 
362*0Sstevel@tonic-gate ACPI_STATUS
363*0Sstevel@tonic-gate AcpiDsInitObjectFromOp (
364*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
365*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op,
366*0Sstevel@tonic-gate     UINT16                  Opcode,
367*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **ObjDesc);
368*0Sstevel@tonic-gate 
369*0Sstevel@tonic-gate ACPI_STATUS
370*0Sstevel@tonic-gate AcpiDsCreateNode (
371*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
372*0Sstevel@tonic-gate     ACPI_NAMESPACE_NODE     *Node,
373*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op);
374*0Sstevel@tonic-gate 
375*0Sstevel@tonic-gate 
376*0Sstevel@tonic-gate /*
377*0Sstevel@tonic-gate  * dsutils - Parser/Interpreter interface utility routines
378*0Sstevel@tonic-gate  */
379*0Sstevel@tonic-gate void
380*0Sstevel@tonic-gate AcpiDsClearImplicitReturn (
381*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
382*0Sstevel@tonic-gate 
383*0Sstevel@tonic-gate BOOLEAN
384*0Sstevel@tonic-gate AcpiDsDoImplicitReturn (
385*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ReturnDesc,
386*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
387*0Sstevel@tonic-gate     BOOLEAN                 AddReference);
388*0Sstevel@tonic-gate 
389*0Sstevel@tonic-gate BOOLEAN
390*0Sstevel@tonic-gate AcpiDsIsResultUsed (
391*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op,
392*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
393*0Sstevel@tonic-gate 
394*0Sstevel@tonic-gate void
395*0Sstevel@tonic-gate AcpiDsDeleteResultIfNotUsed (
396*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op,
397*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *ResultObj,
398*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
399*0Sstevel@tonic-gate 
400*0Sstevel@tonic-gate ACPI_STATUS
401*0Sstevel@tonic-gate AcpiDsCreateOperand (
402*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
403*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Arg,
404*0Sstevel@tonic-gate     UINT32                  ArgsRemaining);
405*0Sstevel@tonic-gate 
406*0Sstevel@tonic-gate ACPI_STATUS
407*0Sstevel@tonic-gate AcpiDsCreateOperands (
408*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
409*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *FirstArg);
410*0Sstevel@tonic-gate 
411*0Sstevel@tonic-gate ACPI_STATUS
412*0Sstevel@tonic-gate AcpiDsResolveOperands (
413*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
414*0Sstevel@tonic-gate 
415*0Sstevel@tonic-gate void
416*0Sstevel@tonic-gate AcpiDsClearOperands (
417*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
418*0Sstevel@tonic-gate 
419*0Sstevel@tonic-gate 
420*0Sstevel@tonic-gate /*
421*0Sstevel@tonic-gate  * dswscope - Scope Stack manipulation
422*0Sstevel@tonic-gate  */
423*0Sstevel@tonic-gate ACPI_STATUS
424*0Sstevel@tonic-gate AcpiDsScopeStackPush (
425*0Sstevel@tonic-gate     ACPI_NAMESPACE_NODE     *Node,
426*0Sstevel@tonic-gate     ACPI_OBJECT_TYPE        Type,
427*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
428*0Sstevel@tonic-gate 
429*0Sstevel@tonic-gate 
430*0Sstevel@tonic-gate ACPI_STATUS
431*0Sstevel@tonic-gate AcpiDsScopeStackPop (
432*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
433*0Sstevel@tonic-gate 
434*0Sstevel@tonic-gate void
435*0Sstevel@tonic-gate AcpiDsScopeStackClear (
436*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
437*0Sstevel@tonic-gate 
438*0Sstevel@tonic-gate 
439*0Sstevel@tonic-gate /*
440*0Sstevel@tonic-gate  * dswstate - parser WALK_STATE management routines
441*0Sstevel@tonic-gate  */
442*0Sstevel@tonic-gate ACPI_STATUS
443*0Sstevel@tonic-gate AcpiDsObjStackPush (
444*0Sstevel@tonic-gate     void                    *Object,
445*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
446*0Sstevel@tonic-gate 
447*0Sstevel@tonic-gate ACPI_STATUS
448*0Sstevel@tonic-gate AcpiDsObjStackPop (
449*0Sstevel@tonic-gate     UINT32                  PopCount,
450*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
451*0Sstevel@tonic-gate 
452*0Sstevel@tonic-gate ACPI_WALK_STATE *
453*0Sstevel@tonic-gate AcpiDsCreateWalkState (
454*0Sstevel@tonic-gate     ACPI_OWNER_ID           OwnerId,
455*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Origin,
456*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *MthDesc,
457*0Sstevel@tonic-gate     ACPI_THREAD_STATE       *Thread);
458*0Sstevel@tonic-gate 
459*0Sstevel@tonic-gate ACPI_STATUS
460*0Sstevel@tonic-gate AcpiDsInitAmlWalk (
461*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
462*0Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op,
463*0Sstevel@tonic-gate     ACPI_NAMESPACE_NODE     *MethodNode,
464*0Sstevel@tonic-gate     UINT8                   *AmlStart,
465*0Sstevel@tonic-gate     UINT32                  AmlLength,
466*0Sstevel@tonic-gate     ACPI_PARAMETER_INFO     *Info,
467*0Sstevel@tonic-gate     UINT32                  PassNumber);
468*0Sstevel@tonic-gate 
469*0Sstevel@tonic-gate ACPI_STATUS
470*0Sstevel@tonic-gate AcpiDsObjStackPopAndDelete (
471*0Sstevel@tonic-gate     UINT32                  PopCount,
472*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
473*0Sstevel@tonic-gate 
474*0Sstevel@tonic-gate void
475*0Sstevel@tonic-gate AcpiDsDeleteWalkState (
476*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
477*0Sstevel@tonic-gate 
478*0Sstevel@tonic-gate ACPI_WALK_STATE *
479*0Sstevel@tonic-gate AcpiDsPopWalkState (
480*0Sstevel@tonic-gate     ACPI_THREAD_STATE       *Thread);
481*0Sstevel@tonic-gate 
482*0Sstevel@tonic-gate void
483*0Sstevel@tonic-gate AcpiDsPushWalkState (
484*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
485*0Sstevel@tonic-gate     ACPI_THREAD_STATE       *Thread);
486*0Sstevel@tonic-gate 
487*0Sstevel@tonic-gate ACPI_STATUS
488*0Sstevel@tonic-gate AcpiDsResultStackPop (
489*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
490*0Sstevel@tonic-gate 
491*0Sstevel@tonic-gate ACPI_STATUS
492*0Sstevel@tonic-gate AcpiDsResultStackPush (
493*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
494*0Sstevel@tonic-gate 
495*0Sstevel@tonic-gate ACPI_STATUS
496*0Sstevel@tonic-gate AcpiDsResultStackClear (
497*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
498*0Sstevel@tonic-gate 
499*0Sstevel@tonic-gate ACPI_WALK_STATE *
500*0Sstevel@tonic-gate AcpiDsGetCurrentWalkState (
501*0Sstevel@tonic-gate     ACPI_THREAD_STATE       *Thread);
502*0Sstevel@tonic-gate 
503*0Sstevel@tonic-gate ACPI_STATUS
504*0Sstevel@tonic-gate AcpiDsResultRemove (
505*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **Object,
506*0Sstevel@tonic-gate     UINT32                  Index,
507*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
508*0Sstevel@tonic-gate 
509*0Sstevel@tonic-gate ACPI_STATUS
510*0Sstevel@tonic-gate AcpiDsResultPop (
511*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **Object,
512*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
513*0Sstevel@tonic-gate 
514*0Sstevel@tonic-gate ACPI_STATUS
515*0Sstevel@tonic-gate AcpiDsResultPush (
516*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *Object,
517*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
518*0Sstevel@tonic-gate 
519*0Sstevel@tonic-gate ACPI_STATUS
520*0Sstevel@tonic-gate AcpiDsResultPopFromBottom (
521*0Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **Object,
522*0Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
523*0Sstevel@tonic-gate 
524*0Sstevel@tonic-gate #ifdef ACPI_ENABLE_OBJECT_CACHE
525*0Sstevel@tonic-gate void
526*0Sstevel@tonic-gate AcpiDsDeleteWalkStateCache (
527*0Sstevel@tonic-gate     void);
528*0Sstevel@tonic-gate #endif
529*0Sstevel@tonic-gate 
530*0Sstevel@tonic-gate #endif /* _ACDISPAT_H_ */
531