1a9f12690SJung-uk Kim /****************************************************************************** 2a9f12690SJung-uk Kim * 3a9f12690SJung-uk Kim * Name: acstruct.h - Internal structs 4a9f12690SJung-uk Kim * 5a9f12690SJung-uk Kim *****************************************************************************/ 6a9f12690SJung-uk Kim 70d84335fSJung-uk Kim /****************************************************************************** 80d84335fSJung-uk Kim * 90d84335fSJung-uk Kim * 1. Copyright Notice 100d84335fSJung-uk Kim * 11*58308fadSJung-uk Kim * Some or all of this work - Copyright (c) 1999 - 2025, 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 __ACSTRUCT_H__ 153a9f12690SJung-uk Kim #define __ACSTRUCT_H__ 154a9f12690SJung-uk Kim 155a9f12690SJung-uk Kim /* acpisrc:StructDefs -- for acpisrc conversion */ 156a9f12690SJung-uk Kim 157a9f12690SJung-uk Kim /***************************************************************************** 158a9f12690SJung-uk Kim * 159a9f12690SJung-uk Kim * Tree walking typedefs and structs 160a9f12690SJung-uk Kim * 161a9f12690SJung-uk Kim ****************************************************************************/ 162a9f12690SJung-uk Kim 163a9f12690SJung-uk Kim 164a9f12690SJung-uk Kim /* 165a9f12690SJung-uk Kim * Walk state - current state of a parse tree walk. Used for both a leisurely 166a9f12690SJung-uk Kim * stroll through the tree (for whatever reason), and for control method 167a9f12690SJung-uk Kim * execution. 168a9f12690SJung-uk Kim */ 169a9f12690SJung-uk Kim #define ACPI_NEXT_OP_DOWNWARD 1 170a9f12690SJung-uk Kim #define ACPI_NEXT_OP_UPWARD 2 171a9f12690SJung-uk Kim 172a9f12690SJung-uk Kim /* 173a9f12690SJung-uk Kim * Groups of definitions for WalkType used for different implementations of 174a9f12690SJung-uk Kim * walkers (never simultaneously) - flags for interpreter: 175a9f12690SJung-uk Kim */ 176a9f12690SJung-uk Kim #define ACPI_WALK_NON_METHOD 0 177a9f12690SJung-uk Kim #define ACPI_WALK_METHOD 0x01 178a9f12690SJung-uk Kim #define ACPI_WALK_METHOD_RESTART 0x02 179a9f12690SJung-uk Kim 180a9f12690SJung-uk Kim 181a9f12690SJung-uk Kim typedef struct acpi_walk_state 182a9f12690SJung-uk Kim { 183a9f12690SJung-uk Kim struct acpi_walk_state *Next; /* Next WalkState in list */ 184a9f12690SJung-uk Kim UINT8 DescriptorType; /* To differentiate various internal objs */ 185a9f12690SJung-uk Kim UINT8 WalkType; 186a9f12690SJung-uk Kim UINT16 Opcode; /* Current AML opcode */ 187a9f12690SJung-uk Kim UINT8 NextOpInfo; /* Info about NextOp */ 188a9f12690SJung-uk Kim UINT8 NumOperands; /* Stack pointer for Operands[] array */ 189a9f12690SJung-uk Kim UINT8 OperandIndex; /* Index into operand stack, to be used by AcpiDsObjStackPush */ 190a9f12690SJung-uk Kim ACPI_OWNER_ID OwnerId; /* Owner of objects created during the walk */ 191a9f12690SJung-uk Kim BOOLEAN LastPredicate; /* Result of last predicate */ 192a9f12690SJung-uk Kim UINT8 CurrentResult; 193a9f12690SJung-uk Kim UINT8 ReturnUsed; 194a9f12690SJung-uk Kim UINT8 ScopeDepth; 195a9f12690SJung-uk Kim UINT8 PassNumber; /* Parse pass during table load */ 1965ef50723SJung-uk Kim BOOLEAN NamespaceOverride; /* Override existing objects */ 197a9f12690SJung-uk Kim UINT8 ResultSize; /* Total elements for the result stack */ 198a9f12690SJung-uk Kim UINT8 ResultCount; /* Current number of occupied elements of result stack */ 199fe0f0bbbSJung-uk Kim UINT8 *Aml; 200a9f12690SJung-uk Kim UINT32 ArgTypes; 201a9f12690SJung-uk Kim UINT32 MethodBreakpoint; /* For single stepping */ 202a9f12690SJung-uk Kim UINT32 UserBreakpoint; /* User AML breakpoint */ 203a9f12690SJung-uk Kim UINT32 ParseFlags; 204a9f12690SJung-uk Kim 205a9f12690SJung-uk Kim ACPI_PARSE_STATE ParserState; /* Current state of parser */ 206a9f12690SJung-uk Kim UINT32 PrevArgTypes; 207a9f12690SJung-uk Kim UINT32 ArgCount; /* push for fixed or var args */ 20890b566fdSJung-uk Kim UINT16 MethodNestingDepth; 20990b566fdSJung-uk Kim UINT8 MethodIsNested; 210a9f12690SJung-uk Kim 211a9f12690SJung-uk Kim struct acpi_namespace_node Arguments[ACPI_METHOD_NUM_ARGS]; /* Control method arguments */ 212a9f12690SJung-uk Kim struct acpi_namespace_node LocalVariables[ACPI_METHOD_NUM_LOCALS]; /* Control method locals */ 213a9f12690SJung-uk Kim union acpi_operand_object *Operands[ACPI_OBJ_NUM_OPERANDS + 1]; /* Operands passed to the interpreter (+1 for NULL terminator) */ 214a9f12690SJung-uk Kim union acpi_operand_object **Params; 215a9f12690SJung-uk Kim 216a9f12690SJung-uk Kim UINT8 *AmlLastWhile; 217a9f12690SJung-uk Kim union acpi_operand_object **CallerReturnDesc; 218a9f12690SJung-uk Kim ACPI_GENERIC_STATE *ControlState; /* List of control states (nested IFs) */ 219a9f12690SJung-uk Kim struct acpi_namespace_node *DeferredNode; /* Used when executing deferred opcodes */ 220a9f12690SJung-uk Kim union acpi_operand_object *ImplicitReturnObj; 221a9f12690SJung-uk Kim struct acpi_namespace_node *MethodCallNode; /* Called method Node*/ 222a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *MethodCallOp; /* MethodCall Op if running a method */ 223a9f12690SJung-uk Kim union acpi_operand_object *MethodDesc; /* Method descriptor if running a method */ 22490b566fdSJung-uk Kim struct acpi_namespace_node *MethodNode; /* Method node if running a method */ 22590b566fdSJung-uk Kim char *MethodPathname; /* Full pathname of running method */ 226a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *Op; /* Current parser op */ 227a9f12690SJung-uk Kim const ACPI_OPCODE_INFO *OpInfo; /* Info on current opcode */ 228a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *Origin; /* Start of walk [Obsolete] */ 229a9f12690SJung-uk Kim union acpi_operand_object *ResultObj; 230a9f12690SJung-uk Kim ACPI_GENERIC_STATE *Results; /* Stack of accumulated results */ 231a9f12690SJung-uk Kim union acpi_operand_object *ReturnDesc; /* Return object, if any */ 232a9f12690SJung-uk Kim ACPI_GENERIC_STATE *ScopeInfo; /* Stack of nested scopes */ 233a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *PrevOp; /* Last op that was processed */ 234a9f12690SJung-uk Kim ACPI_PARSE_OBJECT *NextOp; /* next op to be processed */ 235a9f12690SJung-uk Kim ACPI_THREAD_STATE *Thread; 236a9f12690SJung-uk Kim ACPI_PARSE_DOWNWARDS DescendingCallback; 237a9f12690SJung-uk Kim ACPI_PARSE_UPWARDS AscendingCallback; 238a9f12690SJung-uk Kim 239a9f12690SJung-uk Kim } ACPI_WALK_STATE; 240a9f12690SJung-uk Kim 241a9f12690SJung-uk Kim 242a88e22b7SJung-uk Kim /* Info used by AcpiNsInitializeObjects and AcpiDsInitializeObjects */ 243a9f12690SJung-uk Kim 244a9f12690SJung-uk Kim typedef struct acpi_init_walk_info 245a9f12690SJung-uk Kim { 246a9f12690SJung-uk Kim UINT32 TableIndex; 247a88e22b7SJung-uk Kim UINT32 ObjectCount; 248a88e22b7SJung-uk Kim UINT32 MethodCount; 249313a0c13SJung-uk Kim UINT32 SerialMethodCount; 250313a0c13SJung-uk Kim UINT32 NonSerialMethodCount; 251313a0c13SJung-uk Kim UINT32 SerializedMethodCount; 252a88e22b7SJung-uk Kim UINT32 DeviceCount; 253a88e22b7SJung-uk Kim UINT32 OpRegionCount; 254a88e22b7SJung-uk Kim UINT32 FieldCount; 255a88e22b7SJung-uk Kim UINT32 BufferCount; 256a88e22b7SJung-uk Kim UINT32 PackageCount; 257a88e22b7SJung-uk Kim UINT32 OpRegionInit; 258a88e22b7SJung-uk Kim UINT32 FieldInit; 259a88e22b7SJung-uk Kim UINT32 BufferInit; 260a88e22b7SJung-uk Kim UINT32 PackageInit; 261a88e22b7SJung-uk Kim ACPI_OWNER_ID OwnerId; 262a9f12690SJung-uk Kim 263a9f12690SJung-uk Kim } ACPI_INIT_WALK_INFO; 264a9f12690SJung-uk Kim 265a9f12690SJung-uk Kim 266a9f12690SJung-uk Kim typedef struct acpi_get_devices_info 267a9f12690SJung-uk Kim { 268a9f12690SJung-uk Kim ACPI_WALK_CALLBACK UserFunction; 269a9f12690SJung-uk Kim void *Context; 270a9f12690SJung-uk Kim char *Hid; 271a9f12690SJung-uk Kim 272a9f12690SJung-uk Kim } ACPI_GET_DEVICES_INFO; 273a9f12690SJung-uk Kim 274a9f12690SJung-uk Kim 275a9f12690SJung-uk Kim typedef union acpi_aml_operands 276a9f12690SJung-uk Kim { 277a9f12690SJung-uk Kim ACPI_OPERAND_OBJECT *Operands[7]; 278a9f12690SJung-uk Kim 279a9f12690SJung-uk Kim struct 280a9f12690SJung-uk Kim { 281a9f12690SJung-uk Kim ACPI_OBJECT_INTEGER *Type; 282a9f12690SJung-uk Kim ACPI_OBJECT_INTEGER *Code; 283a9f12690SJung-uk Kim ACPI_OBJECT_INTEGER *Argument; 284a9f12690SJung-uk Kim 285a9f12690SJung-uk Kim } Fatal; 286a9f12690SJung-uk Kim 287a9f12690SJung-uk Kim struct 288a9f12690SJung-uk Kim { 289a9f12690SJung-uk Kim ACPI_OPERAND_OBJECT *Source; 290a9f12690SJung-uk Kim ACPI_OBJECT_INTEGER *Index; 291a9f12690SJung-uk Kim ACPI_OPERAND_OBJECT *Target; 292a9f12690SJung-uk Kim 293a9f12690SJung-uk Kim } Index; 294a9f12690SJung-uk Kim 295a9f12690SJung-uk Kim struct 296a9f12690SJung-uk Kim { 297a9f12690SJung-uk Kim ACPI_OPERAND_OBJECT *Source; 298a9f12690SJung-uk Kim ACPI_OBJECT_INTEGER *Index; 299a9f12690SJung-uk Kim ACPI_OBJECT_INTEGER *Length; 300a9f12690SJung-uk Kim ACPI_OPERAND_OBJECT *Target; 301a9f12690SJung-uk Kim 302a9f12690SJung-uk Kim } Mid; 303a9f12690SJung-uk Kim 304a9f12690SJung-uk Kim } ACPI_AML_OPERANDS; 305a9f12690SJung-uk Kim 306a9f12690SJung-uk Kim 307a9f12690SJung-uk Kim /* 308895f26a9SJung-uk Kim * Structure used to pass object evaluation information and parameters. 309a9f12690SJung-uk Kim * Purpose is to reduce CPU stack use. 310a9f12690SJung-uk Kim */ 311a9f12690SJung-uk Kim typedef struct acpi_evaluate_info 312a9f12690SJung-uk Kim { 313895f26a9SJung-uk Kim /* The first 3 elements are passed by the caller to AcpiNsEvaluate */ 314895f26a9SJung-uk Kim 315895f26a9SJung-uk Kim ACPI_NAMESPACE_NODE *PrefixNode; /* Input: starting node */ 316f8146b88SJung-uk Kim const char *RelativePathname; /* Input: path relative to PrefixNode */ 317895f26a9SJung-uk Kim ACPI_OPERAND_OBJECT **Parameters; /* Input: argument list */ 318895f26a9SJung-uk Kim 319895f26a9SJung-uk Kim ACPI_NAMESPACE_NODE *Node; /* Resolved node (PrefixNode:RelativePathname) */ 320895f26a9SJung-uk Kim ACPI_OPERAND_OBJECT *ObjDesc; /* Object attached to the resolved node */ 321895f26a9SJung-uk Kim char *FullPathname; /* Full pathname of the resolved node */ 322895f26a9SJung-uk Kim 323895f26a9SJung-uk Kim const ACPI_PREDEFINED_INFO *Predefined; /* Used if Node is a predefined name */ 324895f26a9SJung-uk Kim ACPI_OPERAND_OBJECT *ReturnObject; /* Object returned from the evaluation */ 325895f26a9SJung-uk Kim union acpi_operand_object *ParentPackage; /* Used if return object is a Package */ 326895f26a9SJung-uk Kim 327895f26a9SJung-uk Kim UINT32 ReturnFlags; /* Used for return value analysis */ 328895f26a9SJung-uk Kim UINT32 ReturnBtype; /* Bitmapped type of the returned object */ 329895f26a9SJung-uk Kim UINT16 ParamCount; /* Count of the input argument list */ 330a009b7dcSJung-uk Kim UINT16 NodeFlags; /* Same as Node->Flags */ 331895f26a9SJung-uk Kim UINT8 PassNumber; /* Parser pass number */ 332895f26a9SJung-uk Kim UINT8 ReturnObjectType; /* Object type of the returned object */ 333895f26a9SJung-uk Kim UINT8 Flags; /* General flags */ 334a9f12690SJung-uk Kim 335a9f12690SJung-uk Kim } ACPI_EVALUATE_INFO; 336a9f12690SJung-uk Kim 337a9f12690SJung-uk Kim /* Values for Flags above */ 338a9f12690SJung-uk Kim 339a9f12690SJung-uk Kim #define ACPI_IGNORE_RETURN_VALUE 1 340a9f12690SJung-uk Kim 341895f26a9SJung-uk Kim /* Defines for ReturnFlags field above */ 342895f26a9SJung-uk Kim 343895f26a9SJung-uk Kim #define ACPI_OBJECT_REPAIRED 1 344895f26a9SJung-uk Kim #define ACPI_OBJECT_WRAPPED 2 345895f26a9SJung-uk Kim 346a9f12690SJung-uk Kim 347a9f12690SJung-uk Kim /* Info used by AcpiNsInitializeDevices */ 348a9f12690SJung-uk Kim 349a9f12690SJung-uk Kim typedef struct acpi_device_walk_info 350a9f12690SJung-uk Kim { 351a9f12690SJung-uk Kim ACPI_TABLE_DESC *TableDesc; 352a9f12690SJung-uk Kim ACPI_EVALUATE_INFO *EvaluateInfo; 353a88e22b7SJung-uk Kim UINT32 DeviceCount; 354a88e22b7SJung-uk Kim UINT32 Num_STA; 355a88e22b7SJung-uk Kim UINT32 Num_INI; 356a9f12690SJung-uk Kim 357a9f12690SJung-uk Kim } ACPI_DEVICE_WALK_INFO; 358a9f12690SJung-uk Kim 359a9f12690SJung-uk Kim 360a009b7dcSJung-uk Kim /* Info used by Acpi AcpiDbDisplayFields */ 361a009b7dcSJung-uk Kim 362a009b7dcSJung-uk Kim typedef struct acpi_region_walk_info 363a009b7dcSJung-uk Kim { 364a009b7dcSJung-uk Kim UINT32 DebugLevel; 365a009b7dcSJung-uk Kim UINT32 Count; 366a009b7dcSJung-uk Kim ACPI_OWNER_ID OwnerId; 367a009b7dcSJung-uk Kim UINT8 DisplayType; 368a009b7dcSJung-uk Kim UINT32 AddressSpaceId; 369a009b7dcSJung-uk Kim 370a009b7dcSJung-uk Kim } ACPI_REGION_WALK_INFO; 371a009b7dcSJung-uk Kim 372a009b7dcSJung-uk Kim 373a9f12690SJung-uk Kim /* TBD: [Restructure] Merge with struct above */ 374a9f12690SJung-uk Kim 375a9f12690SJung-uk Kim typedef struct acpi_walk_info 376a9f12690SJung-uk Kim { 377a9f12690SJung-uk Kim UINT32 DebugLevel; 378a9f12690SJung-uk Kim UINT32 Count; 379a9f12690SJung-uk Kim ACPI_OWNER_ID OwnerId; 380a9f12690SJung-uk Kim UINT8 DisplayType; 381a9f12690SJung-uk Kim 382a9f12690SJung-uk Kim } ACPI_WALK_INFO; 383a9f12690SJung-uk Kim 384a9f12690SJung-uk Kim /* Display Types */ 385a9f12690SJung-uk Kim 386a9f12690SJung-uk Kim #define ACPI_DISPLAY_SUMMARY (UINT8) 0 387a9f12690SJung-uk Kim #define ACPI_DISPLAY_OBJECTS (UINT8) 1 388a9f12690SJung-uk Kim #define ACPI_DISPLAY_MASK (UINT8) 1 389a9f12690SJung-uk Kim 390a9f12690SJung-uk Kim #define ACPI_DISPLAY_SHORT (UINT8) 2 391a9f12690SJung-uk Kim 392a9f12690SJung-uk Kim 393a9f12690SJung-uk Kim #endif 394