1118611Snjl/******************************************************************************
2118611Snjl *
3118611Snjl * Module Name: asltypes.h - compiler data types and struct definitions
4118611Snjl *
5118611Snjl *****************************************************************************/
6118611Snjl
7316303Sjkim/******************************************************************************
8316303Sjkim *
9316303Sjkim * 1. Copyright Notice
10316303Sjkim *
11316303Sjkim * Some or all of this work - Copyright (c) 1999 - 2017, Intel Corp.
12118611Snjl * All rights reserved.
13118611Snjl *
14316303Sjkim * 2. License
15316303Sjkim *
16316303Sjkim * 2.1. This is your license from Intel Corp. under its intellectual property
17316303Sjkim * rights. You may have additional license terms from the party that provided
18316303Sjkim * you this software, covering your right to use that party's intellectual
19316303Sjkim * property rights.
20316303Sjkim *
21316303Sjkim * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
22316303Sjkim * copy of the source code appearing in this file ("Covered Code") an
23316303Sjkim * irrevocable, perpetual, worldwide license under Intel's copyrights in the
24316303Sjkim * base code distributed originally by Intel ("Original Intel Code") to copy,
25316303Sjkim * make derivatives, distribute, use and display any portion of the Covered
26316303Sjkim * Code in any form, with the right to sublicense such rights; and
27316303Sjkim *
28316303Sjkim * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
29316303Sjkim * license (with the right to sublicense), under only those claims of Intel
30316303Sjkim * patents that are infringed by the Original Intel Code, to make, use, sell,
31316303Sjkim * offer to sell, and import the Covered Code and derivative works thereof
32316303Sjkim * solely to the minimum extent necessary to exercise the above copyright
33316303Sjkim * license, and in no event shall the patent license extend to any additions
34316303Sjkim * to or modifications of the Original Intel Code. No other license or right
35316303Sjkim * is granted directly or by implication, estoppel or otherwise;
36316303Sjkim *
37316303Sjkim * The above copyright and patent license is granted only if the following
38316303Sjkim * conditions are met:
39316303Sjkim *
40316303Sjkim * 3. Conditions
41316303Sjkim *
42316303Sjkim * 3.1. Redistribution of Source with Rights to Further Distribute Source.
43316303Sjkim * Redistribution of source code of any substantial portion of the Covered
44316303Sjkim * Code or modification with rights to further distribute source must include
45316303Sjkim * the above Copyright Notice, the above License, this list of Conditions,
46316303Sjkim * and the following Disclaimer and Export Compliance provision. In addition,
47316303Sjkim * Licensee must cause all Covered Code to which Licensee contributes to
48316303Sjkim * contain a file documenting the changes Licensee made to create that Covered
49316303Sjkim * Code and the date of any change. Licensee must include in that file the
50316303Sjkim * documentation of any changes made by any predecessor Licensee. Licensee
51316303Sjkim * must include a prominent statement that the modification is derived,
52316303Sjkim * directly or indirectly, from Original Intel Code.
53316303Sjkim *
54316303Sjkim * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
55316303Sjkim * Redistribution of source code of any substantial portion of the Covered
56316303Sjkim * Code or modification without rights to further distribute source must
57316303Sjkim * include the following Disclaimer and Export Compliance provision in the
58316303Sjkim * documentation and/or other materials provided with distribution. In
59316303Sjkim * addition, Licensee may not authorize further sublicense of source of any
60316303Sjkim * portion of the Covered Code, and must include terms to the effect that the
61316303Sjkim * license from Licensee to its licensee is limited to the intellectual
62316303Sjkim * property embodied in the software Licensee provides to its licensee, and
63316303Sjkim * not to intellectual property embodied in modifications its licensee may
64316303Sjkim * make.
65316303Sjkim *
66316303Sjkim * 3.3. Redistribution of Executable. Redistribution in executable form of any
67316303Sjkim * substantial portion of the Covered Code or modification must reproduce the
68316303Sjkim * above Copyright Notice, and the following Disclaimer and Export Compliance
69316303Sjkim * provision in the documentation and/or other materials provided with the
70316303Sjkim * distribution.
71316303Sjkim *
72316303Sjkim * 3.4. Intel retains all right, title, and interest in and to the Original
73316303Sjkim * Intel Code.
74316303Sjkim *
75316303Sjkim * 3.5. Neither the name Intel nor any other trademark owned or controlled by
76316303Sjkim * Intel shall be used in advertising or otherwise to promote the sale, use or
77316303Sjkim * other dealings in products derived from or relating to the Covered Code
78316303Sjkim * without prior written authorization from Intel.
79316303Sjkim *
80316303Sjkim * 4. Disclaimer and Export Compliance
81316303Sjkim *
82316303Sjkim * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
83316303Sjkim * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
84316303Sjkim * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
85316303Sjkim * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
86316303Sjkim * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
87316303Sjkim * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
88316303Sjkim * PARTICULAR PURPOSE.
89316303Sjkim *
90316303Sjkim * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
91316303Sjkim * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
92316303Sjkim * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
93316303Sjkim * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
94316303Sjkim * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
95316303Sjkim * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
96316303Sjkim * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
97316303Sjkim * LIMITED REMEDY.
98316303Sjkim *
99316303Sjkim * 4.3. Licensee shall not export, either directly or indirectly, any of this
100316303Sjkim * software or system incorporating such software without first obtaining any
101316303Sjkim * required license or other approval from the U. S. Department of Commerce or
102316303Sjkim * any other agency or department of the United States Government. In the
103316303Sjkim * event Licensee exports any such software from the United States or
104316303Sjkim * re-exports any such software from a foreign destination, Licensee shall
105316303Sjkim * ensure that the distribution and export/re-export of the software is in
106316303Sjkim * compliance with all laws, regulations, orders, or other restrictions of the
107316303Sjkim * U.S. Export Administration Regulations. Licensee agrees that neither it nor
108316303Sjkim * any of its subsidiaries will export/re-export any technical data, process,
109316303Sjkim * software, or service, directly or indirectly, to any country for which the
110316303Sjkim * United States government or any agency thereof requires an export license,
111316303Sjkim * other governmental approval, or letter of assurance, without first obtaining
112316303Sjkim * such license, approval or letter.
113316303Sjkim *
114316303Sjkim *****************************************************************************
115316303Sjkim *
116316303Sjkim * Alternatively, you may choose to be licensed under the terms of the
117316303Sjkim * following license:
118316303Sjkim *
119217365Sjkim * Redistribution and use in source and binary forms, with or without
120217365Sjkim * modification, are permitted provided that the following conditions
121217365Sjkim * are met:
122217365Sjkim * 1. Redistributions of source code must retain the above copyright
123217365Sjkim *    notice, this list of conditions, and the following disclaimer,
124217365Sjkim *    without modification.
125217365Sjkim * 2. Redistributions in binary form must reproduce at minimum a disclaimer
126217365Sjkim *    substantially similar to the "NO WARRANTY" disclaimer below
127217365Sjkim *    ("Disclaimer") and any redistribution must be conditioned upon
128217365Sjkim *    including a substantially similar Disclaimer requirement for further
129217365Sjkim *    binary redistribution.
130217365Sjkim * 3. Neither the names of the above-listed copyright holders nor the names
131217365Sjkim *    of any contributors may be used to endorse or promote products derived
132217365Sjkim *    from this software without specific prior written permission.
133118611Snjl *
134316303Sjkim * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
135316303Sjkim * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
136316303Sjkim * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
137316303Sjkim * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
138316303Sjkim * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
139316303Sjkim * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
140316303Sjkim * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
141316303Sjkim * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
142316303Sjkim * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
143316303Sjkim * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
144316303Sjkim * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
145316303Sjkim *
146316303Sjkim * Alternatively, you may choose to be licensed under the terms of the
147217365Sjkim * GNU General Public License ("GPL") version 2 as published by the Free
148217365Sjkim * Software Foundation.
149118611Snjl *
150316303Sjkim *****************************************************************************/
151118611Snjl
152118611Snjl#ifndef __ASLTYPES_H
153118611Snjl#define __ASLTYPES_H
154118611Snjl
155118611Snjl
156118611Snjl/*******************************************************************************
157118611Snjl *
158118611Snjl * Structure definitions
159118611Snjl *
160118611Snjl ******************************************************************************/
161118611Snjl
162118611Snjl
163118611Snjl/* Op flags for the ACPI_PARSE_OBJECT */
164118611Snjl
165322877Sjkim#define OP_VISITED                  0x00000001
166322877Sjkim#define OP_AML_PACKAGE              0x00000002
167322877Sjkim#define OP_IS_TARGET                0x00000004
168322877Sjkim#define OP_IS_RESOURCE_DESC         0x00000008
169322877Sjkim#define OP_IS_RESOURCE_FIELD        0x00000010
170322877Sjkim#define OP_HAS_NO_EXIT              0x00000020
171322877Sjkim#define OP_IF_HAS_NO_EXIT           0x00000040
172322877Sjkim#define OP_NAME_INTERNALIZED        0x00000080
173322877Sjkim#define OP_METHOD_NO_RETVAL         0x00000100
174322877Sjkim#define OP_METHOD_SOME_NO_RETVAL    0x00000200
175322877Sjkim#define OP_RESULT_NOT_USED          0x00000400
176322877Sjkim#define OP_METHOD_TYPED             0x00000800
177322877Sjkim#define OP_COULD_NOT_REDUCE         0x00001000
178322877Sjkim#define OP_COMPILE_TIME_CONST       0x00002000
179322877Sjkim#define OP_IS_TERM_ARG              0x00004000
180322877Sjkim#define OP_WAS_ONES_OP              0x00008000
181322877Sjkim#define OP_IS_NAME_DECLARATION      0x00010000
182322877Sjkim#define OP_COMPILER_EMITTED         0x00020000
183322877Sjkim#define OP_IS_DUPLICATE             0x00040000
184322877Sjkim#define OP_IS_RESOURCE_DATA         0x00080000
185322877Sjkim#define OP_IS_NULL_RETURN           0x00100000
186118611Snjl
187322877Sjkim#define ACPI_NUM_OP_FLAGS           0x21
188322877Sjkim
189118611Snjl/* Keeps information about individual control methods */
190118611Snjl
191118611Snjltypedef struct asl_method_info
192118611Snjl{
193250838Sjkim    ACPI_PARSE_OBJECT       *Op;
194298714Sjkim    ACPI_PARSE_OBJECT       *CurrentOp;
195250838Sjkim    struct asl_method_info  *Next;
196138287Smarks    UINT32                  ValidArgTypes[ACPI_METHOD_NUM_ARGS];
197138287Smarks    UINT32                  ValidReturnTypes;
198118611Snjl    UINT32                  NumReturnNoValue;
199118611Snjl    UINT32                  NumReturnWithValue;
200250838Sjkim    UINT8                   NumArguments;
201250838Sjkim    UINT8                   LocalInitialized[ACPI_METHOD_NUM_LOCALS];
202250838Sjkim    UINT8                   ArgInitialized[ACPI_METHOD_NUM_ARGS];
203118611Snjl    UINT8                   HasBeenTyped;
204250838Sjkim    UINT8                   ShouldBeSerialized;
205327557Sjkim    UINT8                   CreatesNamedObjects;
206118611Snjl
207118611Snjl} ASL_METHOD_INFO;
208118611Snjl
209118611Snjl
210118611Snjl/* Parse tree walk info for control method analysis */
211118611Snjl
212118611Snjltypedef struct asl_analysis_walk_info
213118611Snjl{
214118611Snjl    ASL_METHOD_INFO         *MethodStack;
215118611Snjl
216118611Snjl} ASL_ANALYSIS_WALK_INFO;
217118611Snjl
218118611Snjl
219118611Snjl/* An entry in the ParseOpcode to AmlOpcode mapping table */
220118611Snjl
221118611Snjltypedef struct asl_mapping_entry
222118611Snjl{
223118611Snjl    UINT32                      Value;
224118611Snjl    UINT32                      AcpiBtype;   /* Object type or return type */
225118611Snjl    UINT16                      AmlOpcode;
226118611Snjl    UINT8                       Flags;
227118611Snjl
228118611Snjl} ASL_MAPPING_ENTRY;
229118611Snjl
230118611Snjl
231118611Snjl/* Parse tree walk info structure */
232118611Snjl
233118611Snjltypedef struct asl_walk_info
234118611Snjl{
235118611Snjl    ACPI_PARSE_OBJECT           **NodePtr;
236118611Snjl    UINT32                      *LevelPtr;
237118611Snjl
238118611Snjl} ASL_WALK_INFO;
239118611Snjl
240118611Snjl
241118611Snjl/* File info */
242118611Snjl
243118611Snjltypedef struct asl_file_info
244118611Snjl{
245118611Snjl    FILE                        *Handle;
246118611Snjl    char                        *Filename;
247240716Sjkim    const char                  *ShortDescription;
248240716Sjkim    const char                  *Description;
249118611Snjl
250118611Snjl} ASL_FILE_INFO;
251118611Snjl
252167802Sjkimtypedef struct asl_file_status
253167802Sjkim{
254167802Sjkim    UINT32                  Line;
255167802Sjkim    UINT32                  Offset;
256118611Snjl
257167802Sjkim} ASL_FILE_STATUS;
258167802Sjkim
259167802Sjkim
260228110Sjkim/*
261228110Sjkim * File types. Note: Any changes to this table must also be reflected
262240716Sjkim * in the Gbl_Files array.
263284583Sjkim *
264284583Sjkim * Corresponding filename suffixes are in comments
265284583Sjkim *
266284583Sjkim * NOTE: Don't move the first 4 file types
267316303Sjkim *
268316303Sjkim * .xxx file extension: this is used as a temporary .aml file for
269316303Sjkim * the ASL/ASL+ converter and is deleted after conversion. This file
270316303Sjkim * should never be used in the interpreter.
271228110Sjkim */
272118611Snjltypedef enum
273118611Snjl{
274118611Snjl    ASL_FILE_STDOUT             = 0,
275118611Snjl    ASL_FILE_STDERR,
276284583Sjkim    ASL_FILE_INPUT,             /* .asl */
277284583Sjkim    ASL_FILE_AML_OUTPUT,        /* .aml */
278284583Sjkim    ASL_FILE_SOURCE_OUTPUT,     /* .src */
279284583Sjkim    ASL_FILE_PREPROCESSOR,      /* .pre */
280284583Sjkim    ASL_FILE_PREPROCESSOR_USER, /* .i   */
281284583Sjkim    ASL_FILE_LISTING_OUTPUT,    /* .lst */
282284583Sjkim    ASL_FILE_HEX_OUTPUT,        /* .hex */
283284583Sjkim    ASL_FILE_NAMESPACE_OUTPUT,  /* .nsp */
284284583Sjkim    ASL_FILE_DEBUG_OUTPUT,      /* .txt */
285284583Sjkim    ASL_FILE_ASM_SOURCE_OUTPUT, /* .asm */
286284583Sjkim    ASL_FILE_C_SOURCE_OUTPUT,   /* .c   */
287284583Sjkim    ASL_FILE_ASM_INCLUDE_OUTPUT,/* .inc */
288284583Sjkim    ASL_FILE_C_INCLUDE_OUTPUT,  /* .h   */
289298714Sjkim    ASL_FILE_C_OFFSET_OUTPUT,   /* .offset.h */
290298714Sjkim    ASL_FILE_MAP_OUTPUT,        /* .map */
291316303Sjkim    ASL_FILE_XREF_OUTPUT,       /* .xrf */
292316303Sjkim    ASL_FILE_CONV_DEBUG_OUTPUT, /* .cdb */
293316303Sjkim    ASL_FILE_CONV_OUTPUT        /* .xxx */
294118611Snjl
295118611Snjl} ASL_FILE_TYPES;
296118611Snjl
297118611Snjl
298316303Sjkim#define ASL_MAX_FILE_TYPE       18
299118611Snjl#define ASL_NUM_FILES           (ASL_MAX_FILE_TYPE + 1)
300118611Snjl
301298714Sjkim/* Name suffixes used to create filenames for output files */
302118611Snjl
303298714Sjkim#define FILE_SUFFIX_ASL_CODE        "asl"
304298714Sjkim#define FILE_SUFFIX_AML_CODE        "aml"
305298714Sjkim#define FILE_SUFFIX_SOURCE          "src"
306284583Sjkim#define FILE_SUFFIX_PREPROCESSOR    "pre"
307298714Sjkim#define FILE_SUFFIX_PREPROC_USER    "i"
308284583Sjkim#define FILE_SUFFIX_LISTING         "lst"
309284583Sjkim#define FILE_SUFFIX_HEX_DUMP        "hex"
310298714Sjkim#define FILE_SUFFIX_NAMESPACE       "nsp"
311284583Sjkim#define FILE_SUFFIX_DEBUG           "txt"
312284583Sjkim#define FILE_SUFFIX_ASM_SOURCE      "asm"
313284583Sjkim#define FILE_SUFFIX_C_SOURCE        "c"
314284583Sjkim#define FILE_SUFFIX_ASM_INCLUDE     "inc"
315284583Sjkim#define FILE_SUFFIX_C_INCLUDE       "h"
316284583Sjkim#define FILE_SUFFIX_C_OFFSET        "offset.h"
317298714Sjkim#define FILE_SUFFIX_MAP             "map"
318298714Sjkim#define FILE_SUFFIX_XREF            "xrf"
319316303Sjkim#define FILE_SUFFIX_CONVERT_AML     "xxx"
320316303Sjkim#define FILE_SUFFIX_CONVERT_DEBUG   "cdb"
321284583Sjkim
322284583Sjkim
323272444Sjkim/* Cache block structure for ParseOps and Strings */
324272444Sjkim
325272444Sjkimtypedef struct asl_cache_info
326272444Sjkim{
327272444Sjkim    void                            *Next;
328272444Sjkim    char                            Buffer[1];
329272444Sjkim
330272444Sjkim} ASL_CACHE_INFO;
331272444Sjkim
332272444Sjkim
333197104Sjkimtypedef struct asl_include_dir
334197104Sjkim{
335197104Sjkim    char                        *Dir;
336197104Sjkim    struct asl_include_dir      *Next;
337197104Sjkim
338197104Sjkim} ASL_INCLUDE_DIR;
339197104Sjkim
340197104Sjkim
341327557Sjkim/*
342327557Sjkim * An entry in the exception list, one for each error/warning
343327557Sjkim * Note: SubError nodes would be treated with the same messageId and Level
344327557Sjkim * as the parent error node.
345327557Sjkim */
346118611Snjltypedef struct asl_error_msg
347118611Snjl{
348118611Snjl    UINT32                      LineNumber;
349118611Snjl    UINT32                      LogicalLineNumber;
350118611Snjl    UINT32                      LogicalByteOffset;
351118611Snjl    UINT32                      Column;
352118611Snjl    char                        *Message;
353118611Snjl    struct asl_error_msg        *Next;
354327557Sjkim    struct asl_error_msg        *SubError;
355118611Snjl    char                        *Filename;
356233250Sjkim    char                        *SourceLine;
357118611Snjl    UINT32                      FilenameLength;
358272444Sjkim    UINT16                      MessageId;
359118611Snjl    UINT8                       Level;
360118611Snjl
361118611Snjl} ASL_ERROR_MSG;
362118611Snjl
363322877Sjkim/* An entry in the expected messages array */
364322877Sjkimtypedef struct asl_expected_message
365322877Sjkim{
366322877Sjkim    UINT32                       MessageId;
367322877Sjkim    char                         *MessageIdStr;
368322877Sjkim    BOOLEAN                      MessageReceived;
369118611Snjl
370322877Sjkim} ASL_EXPECTED_MESSAGE;
371322877Sjkim
372322877Sjkim
373118611Snjl/* An entry in the listing file stack (for include files) */
374118611Snjl
375118611Snjltypedef struct asl_listing_node
376118611Snjl{
377118611Snjl    char                        *Filename;
378118611Snjl    UINT32                      LineNumber;
379118611Snjl    struct asl_listing_node     *Next;
380118611Snjl
381118611Snjl} ASL_LISTING_NODE;
382118611Snjl
383118611Snjl
384118611Snjl/* Callback interface for a parse tree walk */
385118611Snjl
386209746Sjkim/*
387209746Sjkim * TBD - another copy of this is in adisasm.h, fix
388209746Sjkim */
389209746Sjkim#ifndef ASL_WALK_CALLBACK_DEFINED
390118611Snjltypedef
391118611SnjlACPI_STATUS (*ASL_WALK_CALLBACK) (
392118611Snjl    ACPI_PARSE_OBJECT           *Op,
393118611Snjl    UINT32                      Level,
394118611Snjl    void                        *Context);
395209746Sjkim#define ASL_WALK_CALLBACK_DEFINED
396209746Sjkim#endif
397118611Snjl
398118611Snjl
399118611Snjltypedef struct asl_event_info
400118611Snjl{
401151937Sjkim    UINT64                      StartTime;
402151937Sjkim    UINT64                      EndTime;
403118611Snjl    char                        *EventName;
404118611Snjl    BOOLEAN                     Valid;
405118611Snjl
406118611Snjl} ASL_EVENT_INFO;
407118611Snjl
408118611Snjl
409272444Sjkim/* Hardware mapping file structures */
410272444Sjkim
411272444Sjkimtypedef struct acpi_gpio_info
412272444Sjkim{
413272444Sjkim    struct acpi_gpio_info   *Next;
414272444Sjkim    ACPI_PARSE_OBJECT       *Op;
415272444Sjkim    char                    *DeviceName;
416272444Sjkim    ACPI_NAMESPACE_NODE     *TargetNode;
417272444Sjkim    UINT32                  References;
418272444Sjkim    UINT32                  PinCount;
419272444Sjkim    UINT32                  PinIndex;
420272444Sjkim    UINT16                  PinNumber;
421272444Sjkim    UINT8                   Type;
422272444Sjkim    UINT8                   Direction;
423272444Sjkim    UINT8                   Polarity;
424272444Sjkim
425272444Sjkim} ACPI_GPIO_INFO;
426272444Sjkim
427272444Sjkimtypedef struct acpi_serial_info
428272444Sjkim{
429272444Sjkim    struct acpi_serial_info *Next;
430272444Sjkim    ACPI_PARSE_OBJECT       *Op;
431272444Sjkim    char                    *DeviceName;
432272444Sjkim    ACPI_NAMESPACE_NODE     *TargetNode;
433272444Sjkim    AML_RESOURCE            *Resource;
434272444Sjkim    UINT32                  Speed;
435272444Sjkim    UINT16                  Address;
436272444Sjkim
437272444Sjkim} ACPI_SERIAL_INFO;
438272444Sjkim
439285797Sjkimtypedef struct asl_method_local
440285797Sjkim{
441285797Sjkim    ACPI_PARSE_OBJECT       *Op;
442285797Sjkim    UINT8                   Flags;
443272444Sjkim
444285797Sjkim} ASL_METHOD_LOCAL;
445285797Sjkim
446285797Sjkim/* Values for Flags field above */
447285797Sjkim
448285797Sjkim#define ASL_LOCAL_INITIALIZED   (1)
449285797Sjkim#define ASL_LOCAL_REFERENCED    (1<<1)
450285797Sjkim#define ASL_ARG_IS_LOCAL        (1<<2)
451285797Sjkim#define ASL_ARG_INITIALIZED     (1<<3)
452285797Sjkim#define ASL_ARG_REFERENCED      (1<<4)
453285797Sjkim
454298714Sjkim/* Info used to track method counts for cross reference output file */
455298714Sjkim
456298714Sjkimtypedef struct asl_xref_info
457298714Sjkim{
458298714Sjkim    UINT32                  ThisMethodInvocations;
459298714Sjkim    UINT32                  TotalPredefinedMethods;
460298714Sjkim    UINT32                  TotalUserMethods;
461298714Sjkim    UINT32                  TotalUnreferenceUserMethods;
462298714Sjkim    UINT32                  ThisObjectReferences;
463298714Sjkim    UINT32                  TotalObjects;
464298714Sjkim    UINT32                  TotalUnreferencedObjects;
465298714Sjkim    ACPI_PARSE_OBJECT       *MethodOp;
466298714Sjkim    ACPI_PARSE_OBJECT       *CurrentMethodOp;
467298714Sjkim
468298714Sjkim} ASL_XREF_INFO;
469298714Sjkim
470298714Sjkim
471316303Sjkimtypedef struct asl_file_node
472316303Sjkim{
473316303Sjkim    FILE                    *File;
474316303Sjkim    UINT32                  CurrentLineNumber;
475316303Sjkim    void                    *State;
476316303Sjkim    char                    *Filename;
477316303Sjkim    struct asl_file_node    *Next;
478316303Sjkim
479316303Sjkim} ASL_FILE_NODE;
480316303Sjkim
481118611Snjl#endif  /* __ASLTYPES_H */
482