xref: /titanic_51/usr/src/uts/intel/sys/acpi/acparser.h (revision 385cc6b4ad1792caef3f84eb61eed3f27085801f)
17c478bd9Sstevel@tonic-gate /******************************************************************************
27c478bd9Sstevel@tonic-gate  *
37c478bd9Sstevel@tonic-gate  * Module Name: acparser.h - AML Parser subcomponent prototypes and defines
47c478bd9Sstevel@tonic-gate  *
57c478bd9Sstevel@tonic-gate  *****************************************************************************/
67c478bd9Sstevel@tonic-gate 
726f3cdf0SGordon Ross /*
8*385cc6b4SJerry Jelinek  * Copyright (C) 2000 - 2016, Intel Corp.
97c478bd9Sstevel@tonic-gate  * All rights reserved.
107c478bd9Sstevel@tonic-gate  *
1126f3cdf0SGordon Ross  * Redistribution and use in source and binary forms, with or without
1226f3cdf0SGordon Ross  * modification, are permitted provided that the following conditions
1326f3cdf0SGordon Ross  * are met:
1426f3cdf0SGordon Ross  * 1. Redistributions of source code must retain the above copyright
1526f3cdf0SGordon Ross  *    notice, this list of conditions, and the following disclaimer,
1626f3cdf0SGordon Ross  *    without modification.
1726f3cdf0SGordon Ross  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
1826f3cdf0SGordon Ross  *    substantially similar to the "NO WARRANTY" disclaimer below
1926f3cdf0SGordon Ross  *    ("Disclaimer") and any redistribution must be conditioned upon
2026f3cdf0SGordon Ross  *    including a substantially similar Disclaimer requirement for further
2126f3cdf0SGordon Ross  *    binary redistribution.
2226f3cdf0SGordon Ross  * 3. Neither the names of the above-listed copyright holders nor the names
2326f3cdf0SGordon Ross  *    of any contributors may be used to endorse or promote products derived
2426f3cdf0SGordon Ross  *    from this software without specific prior written permission.
257c478bd9Sstevel@tonic-gate  *
2626f3cdf0SGordon Ross  * Alternatively, this software may be distributed under the terms of the
2726f3cdf0SGordon Ross  * GNU General Public License ("GPL") version 2 as published by the Free
2826f3cdf0SGordon Ross  * Software Foundation.
297c478bd9Sstevel@tonic-gate  *
3026f3cdf0SGordon Ross  * NO WARRANTY
3126f3cdf0SGordon Ross  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
3226f3cdf0SGordon Ross  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
3326f3cdf0SGordon Ross  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
3426f3cdf0SGordon Ross  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
3526f3cdf0SGordon Ross  * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3626f3cdf0SGordon Ross  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
3726f3cdf0SGordon Ross  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3826f3cdf0SGordon Ross  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
3926f3cdf0SGordon Ross  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
4026f3cdf0SGordon Ross  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
4126f3cdf0SGordon Ross  * POSSIBILITY OF SUCH DAMAGES.
4226f3cdf0SGordon Ross  */
437c478bd9Sstevel@tonic-gate 
447c478bd9Sstevel@tonic-gate #ifndef __ACPARSER_H__
457c478bd9Sstevel@tonic-gate #define __ACPARSER_H__
467c478bd9Sstevel@tonic-gate 
477c478bd9Sstevel@tonic-gate 
487c478bd9Sstevel@tonic-gate #define OP_HAS_RETURN_VALUE             1
497c478bd9Sstevel@tonic-gate 
5027f7c583Smyers /* Variable number of arguments. This field must be 32 bits */
517c478bd9Sstevel@tonic-gate 
527c478bd9Sstevel@tonic-gate #define ACPI_VAR_ARGS                   ACPI_UINT32_MAX
537c478bd9Sstevel@tonic-gate 
547c478bd9Sstevel@tonic-gate 
557c478bd9Sstevel@tonic-gate #define ACPI_PARSE_DELETE_TREE          0x0001
567c478bd9Sstevel@tonic-gate #define ACPI_PARSE_NO_TREE_DELETE       0x0000
577c478bd9Sstevel@tonic-gate #define ACPI_PARSE_TREE_MASK            0x0001
587c478bd9Sstevel@tonic-gate 
597c478bd9Sstevel@tonic-gate #define ACPI_PARSE_LOAD_PASS1           0x0010
607c478bd9Sstevel@tonic-gate #define ACPI_PARSE_LOAD_PASS2           0x0020
617c478bd9Sstevel@tonic-gate #define ACPI_PARSE_EXECUTE              0x0030
627c478bd9Sstevel@tonic-gate #define ACPI_PARSE_MODE_MASK            0x0030
637c478bd9Sstevel@tonic-gate 
647c478bd9Sstevel@tonic-gate #define ACPI_PARSE_DEFERRED_OP          0x0100
65450d6964Smyers #define ACPI_PARSE_DISASSEMBLE          0x0200
667c478bd9Sstevel@tonic-gate 
6757190917SDana Myers #define ACPI_PARSE_MODULE_LEVEL         0x0400
687c478bd9Sstevel@tonic-gate 
697c478bd9Sstevel@tonic-gate /******************************************************************************
707c478bd9Sstevel@tonic-gate  *
717c478bd9Sstevel@tonic-gate  * Parser interfaces
727c478bd9Sstevel@tonic-gate  *
737c478bd9Sstevel@tonic-gate  *****************************************************************************/
747c478bd9Sstevel@tonic-gate 
75*385cc6b4SJerry Jelinek extern const UINT8      AcpiGbl_ShortOpIndex[];
76*385cc6b4SJerry Jelinek extern const UINT8      AcpiGbl_LongOpIndex[];
77*385cc6b4SJerry Jelinek 
787c478bd9Sstevel@tonic-gate 
797c478bd9Sstevel@tonic-gate /*
807c478bd9Sstevel@tonic-gate  * psxface - Parser external interfaces
817c478bd9Sstevel@tonic-gate  */
827c478bd9Sstevel@tonic-gate ACPI_STATUS
83186507a7Smyers AcpiPsExecuteMethod (
8427f7c583Smyers     ACPI_EVALUATE_INFO      *Info);
857c478bd9Sstevel@tonic-gate 
867c478bd9Sstevel@tonic-gate 
877c478bd9Sstevel@tonic-gate /*
887c478bd9Sstevel@tonic-gate  * psargs - Parse AML opcode arguments
897c478bd9Sstevel@tonic-gate  */
907c478bd9Sstevel@tonic-gate UINT8 *
917c478bd9Sstevel@tonic-gate AcpiPsGetNextPackageEnd (
927c478bd9Sstevel@tonic-gate     ACPI_PARSE_STATE        *ParserState);
937c478bd9Sstevel@tonic-gate 
947c478bd9Sstevel@tonic-gate char *
957c478bd9Sstevel@tonic-gate AcpiPsGetNextNamestring (
967c478bd9Sstevel@tonic-gate     ACPI_PARSE_STATE        *ParserState);
977c478bd9Sstevel@tonic-gate 
987c478bd9Sstevel@tonic-gate void
997c478bd9Sstevel@tonic-gate AcpiPsGetNextSimpleArg (
1007c478bd9Sstevel@tonic-gate     ACPI_PARSE_STATE        *ParserState,
1017c478bd9Sstevel@tonic-gate     UINT32                  ArgType,
1027c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Arg);
1037c478bd9Sstevel@tonic-gate 
1047c478bd9Sstevel@tonic-gate ACPI_STATUS
1057c478bd9Sstevel@tonic-gate AcpiPsGetNextNamepath (
1067c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
1077c478bd9Sstevel@tonic-gate     ACPI_PARSE_STATE        *ParserState,
1087c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Arg,
109*385cc6b4SJerry Jelinek     BOOLEAN                 PossibleMethodCall);
110*385cc6b4SJerry Jelinek 
111*385cc6b4SJerry Jelinek /* Values for BOOLEAN above */
112*385cc6b4SJerry Jelinek 
113*385cc6b4SJerry Jelinek #define ACPI_NOT_METHOD_CALL            FALSE
114*385cc6b4SJerry Jelinek #define ACPI_POSSIBLE_METHOD_CALL       TRUE
1157c478bd9Sstevel@tonic-gate 
1167c478bd9Sstevel@tonic-gate ACPI_STATUS
1177c478bd9Sstevel@tonic-gate AcpiPsGetNextArg (
1187c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
1197c478bd9Sstevel@tonic-gate     ACPI_PARSE_STATE        *ParserState,
1207c478bd9Sstevel@tonic-gate     UINT32                  ArgType,
1217c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       **ReturnArg);
1227c478bd9Sstevel@tonic-gate 
1237c478bd9Sstevel@tonic-gate 
1247c478bd9Sstevel@tonic-gate /*
1257c478bd9Sstevel@tonic-gate  * psfind
1267c478bd9Sstevel@tonic-gate  */
1277c478bd9Sstevel@tonic-gate ACPI_PARSE_OBJECT *
1287c478bd9Sstevel@tonic-gate AcpiPsFindName (
1297c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Scope,
1307c478bd9Sstevel@tonic-gate     UINT32                  Name,
1317c478bd9Sstevel@tonic-gate     UINT32                  Opcode);
1327c478bd9Sstevel@tonic-gate 
1337c478bd9Sstevel@tonic-gate ACPI_PARSE_OBJECT*
1347c478bd9Sstevel@tonic-gate AcpiPsGetParent (
1357c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op);
1367c478bd9Sstevel@tonic-gate 
1377c478bd9Sstevel@tonic-gate 
1387c478bd9Sstevel@tonic-gate /*
139*385cc6b4SJerry Jelinek  * psobject - support for parse object processing
140*385cc6b4SJerry Jelinek  */
141*385cc6b4SJerry Jelinek ACPI_STATUS
142*385cc6b4SJerry Jelinek AcpiPsBuildNamedOp (
143*385cc6b4SJerry Jelinek     ACPI_WALK_STATE         *WalkState,
144*385cc6b4SJerry Jelinek     UINT8                   *AmlOpStart,
145*385cc6b4SJerry Jelinek     ACPI_PARSE_OBJECT       *UnnamedOp,
146*385cc6b4SJerry Jelinek     ACPI_PARSE_OBJECT       **Op);
147*385cc6b4SJerry Jelinek 
148*385cc6b4SJerry Jelinek ACPI_STATUS
149*385cc6b4SJerry Jelinek AcpiPsCreateOp (
150*385cc6b4SJerry Jelinek     ACPI_WALK_STATE         *WalkState,
151*385cc6b4SJerry Jelinek     UINT8                   *AmlOpStart,
152*385cc6b4SJerry Jelinek     ACPI_PARSE_OBJECT       **NewOp);
153*385cc6b4SJerry Jelinek 
154*385cc6b4SJerry Jelinek ACPI_STATUS
155*385cc6b4SJerry Jelinek AcpiPsCompleteOp (
156*385cc6b4SJerry Jelinek     ACPI_WALK_STATE         *WalkState,
157*385cc6b4SJerry Jelinek     ACPI_PARSE_OBJECT       **Op,
158*385cc6b4SJerry Jelinek     ACPI_STATUS             Status);
159*385cc6b4SJerry Jelinek 
160*385cc6b4SJerry Jelinek ACPI_STATUS
161*385cc6b4SJerry Jelinek AcpiPsCompleteFinalOp (
162*385cc6b4SJerry Jelinek     ACPI_WALK_STATE         *WalkState,
163*385cc6b4SJerry Jelinek     ACPI_PARSE_OBJECT       *Op,
164*385cc6b4SJerry Jelinek     ACPI_STATUS             Status);
165*385cc6b4SJerry Jelinek 
166*385cc6b4SJerry Jelinek 
167*385cc6b4SJerry Jelinek /*
168*385cc6b4SJerry Jelinek  * psopinfo - AML Opcode information
1697c478bd9Sstevel@tonic-gate  */
1707c478bd9Sstevel@tonic-gate const ACPI_OPCODE_INFO *
1717c478bd9Sstevel@tonic-gate AcpiPsGetOpcodeInfo (
1727c478bd9Sstevel@tonic-gate     UINT16                  Opcode);
1737c478bd9Sstevel@tonic-gate 
174*385cc6b4SJerry Jelinek const char *
1757c478bd9Sstevel@tonic-gate AcpiPsGetOpcodeName (
1767c478bd9Sstevel@tonic-gate     UINT16                  Opcode);
1777c478bd9Sstevel@tonic-gate 
178db2bae30SDana Myers UINT8
179db2bae30SDana Myers AcpiPsGetArgumentCount (
180db2bae30SDana Myers     UINT32                  OpType);
181db2bae30SDana Myers 
1827c478bd9Sstevel@tonic-gate 
1837c478bd9Sstevel@tonic-gate /*
1847c478bd9Sstevel@tonic-gate  * psparse - top level parsing routines
1857c478bd9Sstevel@tonic-gate  */
1867c478bd9Sstevel@tonic-gate ACPI_STATUS
1877c478bd9Sstevel@tonic-gate AcpiPsParseAml (
1887c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
1897c478bd9Sstevel@tonic-gate 
1907c478bd9Sstevel@tonic-gate UINT32
1917c478bd9Sstevel@tonic-gate AcpiPsGetOpcodeSize (
1927c478bd9Sstevel@tonic-gate     UINT32                  Opcode);
1937c478bd9Sstevel@tonic-gate 
1947c478bd9Sstevel@tonic-gate UINT16
1957c478bd9Sstevel@tonic-gate AcpiPsPeekOpcode (
1967c478bd9Sstevel@tonic-gate     ACPI_PARSE_STATE        *state);
1977c478bd9Sstevel@tonic-gate 
198450d6964Smyers ACPI_STATUS
199450d6964Smyers AcpiPsCompleteThisOp (
200450d6964Smyers     ACPI_WALK_STATE         *WalkState,
201450d6964Smyers     ACPI_PARSE_OBJECT       *Op);
202450d6964Smyers 
203450d6964Smyers ACPI_STATUS
204450d6964Smyers AcpiPsNextParseState (
205450d6964Smyers     ACPI_WALK_STATE         *WalkState,
206450d6964Smyers     ACPI_PARSE_OBJECT       *Op,
207450d6964Smyers     ACPI_STATUS             CallbackStatus);
208450d6964Smyers 
209450d6964Smyers 
210450d6964Smyers /*
211450d6964Smyers  * psloop - main parse loop
212450d6964Smyers  */
213450d6964Smyers ACPI_STATUS
214450d6964Smyers AcpiPsParseLoop (
215450d6964Smyers     ACPI_WALK_STATE         *WalkState);
216450d6964Smyers 
2177c478bd9Sstevel@tonic-gate 
2187c478bd9Sstevel@tonic-gate /*
2197c478bd9Sstevel@tonic-gate  * psscope - Scope stack management routines
2207c478bd9Sstevel@tonic-gate  */
2217c478bd9Sstevel@tonic-gate ACPI_STATUS
2227c478bd9Sstevel@tonic-gate AcpiPsInitScope (
2237c478bd9Sstevel@tonic-gate     ACPI_PARSE_STATE        *ParserState,
2247c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Root);
2257c478bd9Sstevel@tonic-gate 
2267c478bd9Sstevel@tonic-gate ACPI_PARSE_OBJECT *
2277c478bd9Sstevel@tonic-gate AcpiPsGetParentScope (
2287c478bd9Sstevel@tonic-gate     ACPI_PARSE_STATE        *state);
2297c478bd9Sstevel@tonic-gate 
2307c478bd9Sstevel@tonic-gate BOOLEAN
2317c478bd9Sstevel@tonic-gate AcpiPsHasCompletedScope (
2327c478bd9Sstevel@tonic-gate     ACPI_PARSE_STATE        *ParserState);
2337c478bd9Sstevel@tonic-gate 
2347c478bd9Sstevel@tonic-gate void
2357c478bd9Sstevel@tonic-gate AcpiPsPopScope (
2367c478bd9Sstevel@tonic-gate     ACPI_PARSE_STATE        *ParserState,
2377c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       **Op,
2387c478bd9Sstevel@tonic-gate     UINT32                  *ArgList,
2397c478bd9Sstevel@tonic-gate     UINT32                  *ArgCount);
2407c478bd9Sstevel@tonic-gate 
2417c478bd9Sstevel@tonic-gate ACPI_STATUS
2427c478bd9Sstevel@tonic-gate AcpiPsPushScope (
2437c478bd9Sstevel@tonic-gate     ACPI_PARSE_STATE        *ParserState,
2447c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op,
2457c478bd9Sstevel@tonic-gate     UINT32                  RemainingArgs,
2467c478bd9Sstevel@tonic-gate     UINT32                  ArgCount);
2477c478bd9Sstevel@tonic-gate 
2487c478bd9Sstevel@tonic-gate void
2497c478bd9Sstevel@tonic-gate AcpiPsCleanupScope (
2507c478bd9Sstevel@tonic-gate     ACPI_PARSE_STATE        *state);
2517c478bd9Sstevel@tonic-gate 
2527c478bd9Sstevel@tonic-gate 
2537c478bd9Sstevel@tonic-gate /*
2547c478bd9Sstevel@tonic-gate  * pstree - parse tree manipulation routines
2557c478bd9Sstevel@tonic-gate  */
2567c478bd9Sstevel@tonic-gate void
2577c478bd9Sstevel@tonic-gate AcpiPsAppendArg(
2587c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *op,
2597c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *arg);
2607c478bd9Sstevel@tonic-gate 
2617c478bd9Sstevel@tonic-gate ACPI_PARSE_OBJECT*
2627c478bd9Sstevel@tonic-gate AcpiPsFind (
2637c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Scope,
2647c478bd9Sstevel@tonic-gate     char                    *Path,
2657c478bd9Sstevel@tonic-gate     UINT16                  Opcode,
2667c478bd9Sstevel@tonic-gate     UINT32                  Create);
2677c478bd9Sstevel@tonic-gate 
2687c478bd9Sstevel@tonic-gate ACPI_PARSE_OBJECT *
2697c478bd9Sstevel@tonic-gate AcpiPsGetArg(
2707c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *op,
2717c478bd9Sstevel@tonic-gate     UINT32                   argn);
2727c478bd9Sstevel@tonic-gate 
2737c478bd9Sstevel@tonic-gate ACPI_PARSE_OBJECT *
2747c478bd9Sstevel@tonic-gate AcpiPsGetDepthNext (
2757c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Origin,
2767c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op);
2777c478bd9Sstevel@tonic-gate 
2787c478bd9Sstevel@tonic-gate 
2797c478bd9Sstevel@tonic-gate /*
2807c478bd9Sstevel@tonic-gate  * pswalk - parse tree walk routines
2817c478bd9Sstevel@tonic-gate  */
2827c478bd9Sstevel@tonic-gate ACPI_STATUS
2837c478bd9Sstevel@tonic-gate AcpiPsWalkParsedAml (
2847c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *StartOp,
2857c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *EndOp,
2867c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     *MthDesc,
2877c478bd9Sstevel@tonic-gate     ACPI_NAMESPACE_NODE     *StartNode,
2887c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **Params,
2897c478bd9Sstevel@tonic-gate     ACPI_OPERAND_OBJECT     **CallerReturnDesc,
2907c478bd9Sstevel@tonic-gate     ACPI_OWNER_ID           OwnerId,
2917c478bd9Sstevel@tonic-gate     ACPI_PARSE_DOWNWARDS    DescendingCallback,
2927c478bd9Sstevel@tonic-gate     ACPI_PARSE_UPWARDS      AscendingCallback);
2937c478bd9Sstevel@tonic-gate 
2947c478bd9Sstevel@tonic-gate ACPI_STATUS
2957c478bd9Sstevel@tonic-gate AcpiPsGetNextWalkOp (
2967c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState,
2977c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op,
2987c478bd9Sstevel@tonic-gate     ACPI_PARSE_UPWARDS      AscendingCallback);
2997c478bd9Sstevel@tonic-gate 
3007c478bd9Sstevel@tonic-gate ACPI_STATUS
3017c478bd9Sstevel@tonic-gate AcpiPsDeleteCompletedOp (
3027c478bd9Sstevel@tonic-gate     ACPI_WALK_STATE         *WalkState);
3037c478bd9Sstevel@tonic-gate 
3047c478bd9Sstevel@tonic-gate void
3057c478bd9Sstevel@tonic-gate AcpiPsDeleteParseTree (
3067c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *root);
3077c478bd9Sstevel@tonic-gate 
3087c478bd9Sstevel@tonic-gate 
3097c478bd9Sstevel@tonic-gate /*
3107c478bd9Sstevel@tonic-gate  * psutils - parser utilities
3117c478bd9Sstevel@tonic-gate  */
3127c478bd9Sstevel@tonic-gate ACPI_PARSE_OBJECT *
3137c478bd9Sstevel@tonic-gate AcpiPsCreateScopeOp (
314*385cc6b4SJerry Jelinek     UINT8                   *Aml);
3157c478bd9Sstevel@tonic-gate 
3167c478bd9Sstevel@tonic-gate void
3177c478bd9Sstevel@tonic-gate AcpiPsInitOp (
3187c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *op,
3197c478bd9Sstevel@tonic-gate     UINT16                  opcode);
3207c478bd9Sstevel@tonic-gate 
3217c478bd9Sstevel@tonic-gate ACPI_PARSE_OBJECT *
3227c478bd9Sstevel@tonic-gate AcpiPsAllocOp (
323*385cc6b4SJerry Jelinek     UINT16                  Opcode,
324*385cc6b4SJerry Jelinek     UINT8                   *Aml);
3257c478bd9Sstevel@tonic-gate 
3267c478bd9Sstevel@tonic-gate void
3277c478bd9Sstevel@tonic-gate AcpiPsFreeOp (
3287c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op);
3297c478bd9Sstevel@tonic-gate 
3307c478bd9Sstevel@tonic-gate BOOLEAN
3317c478bd9Sstevel@tonic-gate AcpiPsIsLeadingChar (
3327c478bd9Sstevel@tonic-gate     UINT32                  c);
3337c478bd9Sstevel@tonic-gate 
3347c478bd9Sstevel@tonic-gate UINT32
3357c478bd9Sstevel@tonic-gate AcpiPsGetName(
3367c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *op);
3377c478bd9Sstevel@tonic-gate 
3387c478bd9Sstevel@tonic-gate void
3397c478bd9Sstevel@tonic-gate AcpiPsSetName(
3407c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *op,
3417c478bd9Sstevel@tonic-gate     UINT32                  name);
3427c478bd9Sstevel@tonic-gate 
3437c478bd9Sstevel@tonic-gate 
3447c478bd9Sstevel@tonic-gate /*
3457c478bd9Sstevel@tonic-gate  * psdump - display parser tree
3467c478bd9Sstevel@tonic-gate  */
3477c478bd9Sstevel@tonic-gate UINT32
3487c478bd9Sstevel@tonic-gate AcpiPsSprintPath (
3497c478bd9Sstevel@tonic-gate     char                    *BufferStart,
3507c478bd9Sstevel@tonic-gate     UINT32                  BufferSize,
3517c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op);
3527c478bd9Sstevel@tonic-gate 
3537c478bd9Sstevel@tonic-gate UINT32
3547c478bd9Sstevel@tonic-gate AcpiPsSprintOp (
3557c478bd9Sstevel@tonic-gate     char                    *BufferStart,
3567c478bd9Sstevel@tonic-gate     UINT32                  BufferSize,
3577c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *Op);
3587c478bd9Sstevel@tonic-gate 
3597c478bd9Sstevel@tonic-gate void
3607c478bd9Sstevel@tonic-gate AcpiPsShow (
3617c478bd9Sstevel@tonic-gate     ACPI_PARSE_OBJECT       *op);
3627c478bd9Sstevel@tonic-gate 
3637c478bd9Sstevel@tonic-gate 
3647c478bd9Sstevel@tonic-gate #endif /* __ACPARSER_H__ */
365