17c478bd9Sstevel@tonic-gate /****************************************************************************** 27c478bd9Sstevel@tonic-gate * 37c478bd9Sstevel@tonic-gate * Name: acnamesp.h - Namespace subcomponent prototypes and defines 4*27f7c583Smyers * $Revision: 1.149 $ 57c478bd9Sstevel@tonic-gate * 67c478bd9Sstevel@tonic-gate *****************************************************************************/ 77c478bd9Sstevel@tonic-gate 87c478bd9Sstevel@tonic-gate /****************************************************************************** 97c478bd9Sstevel@tonic-gate * 107c478bd9Sstevel@tonic-gate * 1. Copyright Notice 117c478bd9Sstevel@tonic-gate * 1230082d0cSmyers * Some or all of this work - Copyright (c) 1999 - 2006, Intel Corp. 137c478bd9Sstevel@tonic-gate * All rights reserved. 147c478bd9Sstevel@tonic-gate * 157c478bd9Sstevel@tonic-gate * 2. License 167c478bd9Sstevel@tonic-gate * 177c478bd9Sstevel@tonic-gate * 2.1. This is your license from Intel Corp. under its intellectual property 187c478bd9Sstevel@tonic-gate * rights. You may have additional license terms from the party that provided 197c478bd9Sstevel@tonic-gate * you this software, covering your right to use that party's intellectual 207c478bd9Sstevel@tonic-gate * property rights. 217c478bd9Sstevel@tonic-gate * 227c478bd9Sstevel@tonic-gate * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a 237c478bd9Sstevel@tonic-gate * copy of the source code appearing in this file ("Covered Code") an 247c478bd9Sstevel@tonic-gate * irrevocable, perpetual, worldwide license under Intel's copyrights in the 257c478bd9Sstevel@tonic-gate * base code distributed originally by Intel ("Original Intel Code") to copy, 267c478bd9Sstevel@tonic-gate * make derivatives, distribute, use and display any portion of the Covered 277c478bd9Sstevel@tonic-gate * Code in any form, with the right to sublicense such rights; and 287c478bd9Sstevel@tonic-gate * 297c478bd9Sstevel@tonic-gate * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 307c478bd9Sstevel@tonic-gate * license (with the right to sublicense), under only those claims of Intel 317c478bd9Sstevel@tonic-gate * patents that are infringed by the Original Intel Code, to make, use, sell, 327c478bd9Sstevel@tonic-gate * offer to sell, and import the Covered Code and derivative works thereof 337c478bd9Sstevel@tonic-gate * solely to the minimum extent necessary to exercise the above copyright 347c478bd9Sstevel@tonic-gate * license, and in no event shall the patent license extend to any additions 357c478bd9Sstevel@tonic-gate * to or modifications of the Original Intel Code. No other license or right 367c478bd9Sstevel@tonic-gate * is granted directly or by implication, estoppel or otherwise; 377c478bd9Sstevel@tonic-gate * 387c478bd9Sstevel@tonic-gate * The above copyright and patent license is granted only if the following 397c478bd9Sstevel@tonic-gate * conditions are met: 407c478bd9Sstevel@tonic-gate * 417c478bd9Sstevel@tonic-gate * 3. Conditions 427c478bd9Sstevel@tonic-gate * 437c478bd9Sstevel@tonic-gate * 3.1. Redistribution of Source with Rights to Further Distribute Source. 447c478bd9Sstevel@tonic-gate * Redistribution of source code of any substantial portion of the Covered 457c478bd9Sstevel@tonic-gate * Code or modification with rights to further distribute source must include 467c478bd9Sstevel@tonic-gate * the above Copyright Notice, the above License, this list of Conditions, 477c478bd9Sstevel@tonic-gate * and the following Disclaimer and Export Compliance provision. In addition, 487c478bd9Sstevel@tonic-gate * Licensee must cause all Covered Code to which Licensee contributes to 497c478bd9Sstevel@tonic-gate * contain a file documenting the changes Licensee made to create that Covered 507c478bd9Sstevel@tonic-gate * Code and the date of any change. Licensee must include in that file the 517c478bd9Sstevel@tonic-gate * documentation of any changes made by any predecessor Licensee. Licensee 527c478bd9Sstevel@tonic-gate * must include a prominent statement that the modification is derived, 537c478bd9Sstevel@tonic-gate * directly or indirectly, from Original Intel Code. 547c478bd9Sstevel@tonic-gate * 557c478bd9Sstevel@tonic-gate * 3.2. Redistribution of Source with no Rights to Further Distribute Source. 567c478bd9Sstevel@tonic-gate * Redistribution of source code of any substantial portion of the Covered 577c478bd9Sstevel@tonic-gate * Code or modification without rights to further distribute source must 587c478bd9Sstevel@tonic-gate * include the following Disclaimer and Export Compliance provision in the 597c478bd9Sstevel@tonic-gate * documentation and/or other materials provided with distribution. In 607c478bd9Sstevel@tonic-gate * addition, Licensee may not authorize further sublicense of source of any 617c478bd9Sstevel@tonic-gate * portion of the Covered Code, and must include terms to the effect that the 627c478bd9Sstevel@tonic-gate * license from Licensee to its licensee is limited to the intellectual 637c478bd9Sstevel@tonic-gate * property embodied in the software Licensee provides to its licensee, and 647c478bd9Sstevel@tonic-gate * not to intellectual property embodied in modifications its licensee may 657c478bd9Sstevel@tonic-gate * make. 667c478bd9Sstevel@tonic-gate * 677c478bd9Sstevel@tonic-gate * 3.3. Redistribution of Executable. Redistribution in executable form of any 687c478bd9Sstevel@tonic-gate * substantial portion of the Covered Code or modification must reproduce the 697c478bd9Sstevel@tonic-gate * above Copyright Notice, and the following Disclaimer and Export Compliance 707c478bd9Sstevel@tonic-gate * provision in the documentation and/or other materials provided with the 717c478bd9Sstevel@tonic-gate * distribution. 727c478bd9Sstevel@tonic-gate * 737c478bd9Sstevel@tonic-gate * 3.4. Intel retains all right, title, and interest in and to the Original 747c478bd9Sstevel@tonic-gate * Intel Code. 757c478bd9Sstevel@tonic-gate * 767c478bd9Sstevel@tonic-gate * 3.5. Neither the name Intel nor any other trademark owned or controlled by 777c478bd9Sstevel@tonic-gate * Intel shall be used in advertising or otherwise to promote the sale, use or 787c478bd9Sstevel@tonic-gate * other dealings in products derived from or relating to the Covered Code 797c478bd9Sstevel@tonic-gate * without prior written authorization from Intel. 807c478bd9Sstevel@tonic-gate * 817c478bd9Sstevel@tonic-gate * 4. Disclaimer and Export Compliance 827c478bd9Sstevel@tonic-gate * 837c478bd9Sstevel@tonic-gate * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED 847c478bd9Sstevel@tonic-gate * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE 857c478bd9Sstevel@tonic-gate * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE, 867c478bd9Sstevel@tonic-gate * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY 877c478bd9Sstevel@tonic-gate * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY 887c478bd9Sstevel@tonic-gate * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A 897c478bd9Sstevel@tonic-gate * PARTICULAR PURPOSE. 907c478bd9Sstevel@tonic-gate * 917c478bd9Sstevel@tonic-gate * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES 927c478bd9Sstevel@tonic-gate * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR 937c478bd9Sstevel@tonic-gate * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT, 947c478bd9Sstevel@tonic-gate * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY 957c478bd9Sstevel@tonic-gate * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL 967c478bd9Sstevel@tonic-gate * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS 977c478bd9Sstevel@tonic-gate * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY 987c478bd9Sstevel@tonic-gate * LIMITED REMEDY. 997c478bd9Sstevel@tonic-gate * 1007c478bd9Sstevel@tonic-gate * 4.3. Licensee shall not export, either directly or indirectly, any of this 1017c478bd9Sstevel@tonic-gate * software or system incorporating such software without first obtaining any 1027c478bd9Sstevel@tonic-gate * required license or other approval from the U. S. Department of Commerce or 1037c478bd9Sstevel@tonic-gate * any other agency or department of the United States Government. In the 1047c478bd9Sstevel@tonic-gate * event Licensee exports any such software from the United States or 1057c478bd9Sstevel@tonic-gate * re-exports any such software from a foreign destination, Licensee shall 1067c478bd9Sstevel@tonic-gate * ensure that the distribution and export/re-export of the software is in 1077c478bd9Sstevel@tonic-gate * compliance with all laws, regulations, orders, or other restrictions of the 1087c478bd9Sstevel@tonic-gate * U.S. Export Administration Regulations. Licensee agrees that neither it nor 1097c478bd9Sstevel@tonic-gate * any of its subsidiaries will export/re-export any technical data, process, 1107c478bd9Sstevel@tonic-gate * software, or service, directly or indirectly, to any country for which the 1117c478bd9Sstevel@tonic-gate * United States government or any agency thereof requires an export license, 1127c478bd9Sstevel@tonic-gate * other governmental approval, or letter of assurance, without first obtaining 1137c478bd9Sstevel@tonic-gate * such license, approval or letter. 1147c478bd9Sstevel@tonic-gate * 1157c478bd9Sstevel@tonic-gate *****************************************************************************/ 1167c478bd9Sstevel@tonic-gate 1177c478bd9Sstevel@tonic-gate #ifndef __ACNAMESP_H__ 1187c478bd9Sstevel@tonic-gate #define __ACNAMESP_H__ 1197c478bd9Sstevel@tonic-gate 1207c478bd9Sstevel@tonic-gate 1217c478bd9Sstevel@tonic-gate /* To search the entire name space, pass this as SearchBase */ 1227c478bd9Sstevel@tonic-gate 1237c478bd9Sstevel@tonic-gate #define ACPI_NS_ALL ((ACPI_HANDLE)0) 1247c478bd9Sstevel@tonic-gate 1257c478bd9Sstevel@tonic-gate /* 1267c478bd9Sstevel@tonic-gate * Elements of AcpiNsProperties are bit significant 1277c478bd9Sstevel@tonic-gate * and should be one-to-one with values of ACPI_OBJECT_TYPE 1287c478bd9Sstevel@tonic-gate */ 1297c478bd9Sstevel@tonic-gate #define ACPI_NS_NORMAL 0 1307c478bd9Sstevel@tonic-gate #define ACPI_NS_NEWSCOPE 1 /* a definition of this type opens a name scope */ 1317c478bd9Sstevel@tonic-gate #define ACPI_NS_LOCAL 2 /* suppress search of enclosing scopes */ 1327c478bd9Sstevel@tonic-gate 1337c478bd9Sstevel@tonic-gate /* Flags for AcpiNsLookup, AcpiNsSearchAndEnter */ 1347c478bd9Sstevel@tonic-gate 1357c478bd9Sstevel@tonic-gate #define ACPI_NS_NO_UPSEARCH 0 1367c478bd9Sstevel@tonic-gate #define ACPI_NS_SEARCH_PARENT 0x01 1377c478bd9Sstevel@tonic-gate #define ACPI_NS_DONT_OPEN_SCOPE 0x02 1387c478bd9Sstevel@tonic-gate #define ACPI_NS_NO_PEER_SEARCH 0x04 1397c478bd9Sstevel@tonic-gate #define ACPI_NS_ERROR_IF_FOUND 0x08 140*27f7c583Smyers #define ACPI_NS_PREFIX_IS_SCOPE 0x10 141*27f7c583Smyers #define ACPI_NS_EXTERNAL 0x20 1427c478bd9Sstevel@tonic-gate 1437c478bd9Sstevel@tonic-gate #define ACPI_NS_WALK_UNLOCK TRUE 1447c478bd9Sstevel@tonic-gate #define ACPI_NS_WALK_NO_UNLOCK FALSE 1457c478bd9Sstevel@tonic-gate 1467c478bd9Sstevel@tonic-gate 1477c478bd9Sstevel@tonic-gate /* 1487c478bd9Sstevel@tonic-gate * nsinit - Namespace initialization 1497c478bd9Sstevel@tonic-gate */ 1507c478bd9Sstevel@tonic-gate ACPI_STATUS 1517c478bd9Sstevel@tonic-gate AcpiNsInitializeObjects ( 1527c478bd9Sstevel@tonic-gate void); 1537c478bd9Sstevel@tonic-gate 1547c478bd9Sstevel@tonic-gate ACPI_STATUS 1557c478bd9Sstevel@tonic-gate AcpiNsInitializeDevices ( 1567c478bd9Sstevel@tonic-gate void); 1577c478bd9Sstevel@tonic-gate 1587c478bd9Sstevel@tonic-gate 1597c478bd9Sstevel@tonic-gate /* 1607c478bd9Sstevel@tonic-gate * nsload - Namespace loading 1617c478bd9Sstevel@tonic-gate */ 1627c478bd9Sstevel@tonic-gate ACPI_STATUS 1637c478bd9Sstevel@tonic-gate AcpiNsLoadNamespace ( 1647c478bd9Sstevel@tonic-gate void); 1657c478bd9Sstevel@tonic-gate 1667c478bd9Sstevel@tonic-gate ACPI_STATUS 1677c478bd9Sstevel@tonic-gate AcpiNsLoadTable ( 1687c478bd9Sstevel@tonic-gate ACPI_TABLE_DESC *TableDesc, 1697c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node); 1707c478bd9Sstevel@tonic-gate 1717c478bd9Sstevel@tonic-gate 1727c478bd9Sstevel@tonic-gate /* 1737c478bd9Sstevel@tonic-gate * nswalk - walk the namespace 1747c478bd9Sstevel@tonic-gate */ 1757c478bd9Sstevel@tonic-gate ACPI_STATUS 1767c478bd9Sstevel@tonic-gate AcpiNsWalkNamespace ( 1777c478bd9Sstevel@tonic-gate ACPI_OBJECT_TYPE Type, 1787c478bd9Sstevel@tonic-gate ACPI_HANDLE StartObject, 1797c478bd9Sstevel@tonic-gate UINT32 MaxDepth, 1807c478bd9Sstevel@tonic-gate BOOLEAN UnlockBeforeCallback, 1817c478bd9Sstevel@tonic-gate ACPI_WALK_CALLBACK UserFunction, 1827c478bd9Sstevel@tonic-gate void *Context, 1837c478bd9Sstevel@tonic-gate void **ReturnValue); 1847c478bd9Sstevel@tonic-gate 1857c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE * 1867c478bd9Sstevel@tonic-gate AcpiNsGetNextNode ( 1877c478bd9Sstevel@tonic-gate ACPI_OBJECT_TYPE Type, 1887c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Parent, 1897c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Child); 1907c478bd9Sstevel@tonic-gate 1917c478bd9Sstevel@tonic-gate 1927c478bd9Sstevel@tonic-gate /* 1937c478bd9Sstevel@tonic-gate * nsparse - table parsing 1947c478bd9Sstevel@tonic-gate */ 1957c478bd9Sstevel@tonic-gate ACPI_STATUS 1967c478bd9Sstevel@tonic-gate AcpiNsParseTable ( 1977c478bd9Sstevel@tonic-gate ACPI_TABLE_DESC *TableDesc, 1987c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Scope); 1997c478bd9Sstevel@tonic-gate 2007c478bd9Sstevel@tonic-gate ACPI_STATUS 2017c478bd9Sstevel@tonic-gate AcpiNsOneCompleteParse ( 202186507a7Smyers UINT8 PassNumber, 2037c478bd9Sstevel@tonic-gate ACPI_TABLE_DESC *TableDesc); 2047c478bd9Sstevel@tonic-gate 2057c478bd9Sstevel@tonic-gate 2067c478bd9Sstevel@tonic-gate /* 2077c478bd9Sstevel@tonic-gate * nsaccess - Top-level namespace access 2087c478bd9Sstevel@tonic-gate */ 2097c478bd9Sstevel@tonic-gate ACPI_STATUS 2107c478bd9Sstevel@tonic-gate AcpiNsRootInitialize ( 2117c478bd9Sstevel@tonic-gate void); 2127c478bd9Sstevel@tonic-gate 2137c478bd9Sstevel@tonic-gate ACPI_STATUS 2147c478bd9Sstevel@tonic-gate AcpiNsLookup ( 2157c478bd9Sstevel@tonic-gate ACPI_GENERIC_STATE *ScopeInfo, 2167c478bd9Sstevel@tonic-gate char *Name, 2177c478bd9Sstevel@tonic-gate ACPI_OBJECT_TYPE Type, 2187c478bd9Sstevel@tonic-gate ACPI_INTERPRETER_MODE InterpreterMode, 2197c478bd9Sstevel@tonic-gate UINT32 Flags, 2207c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState, 2217c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE **RetNode); 2227c478bd9Sstevel@tonic-gate 2237c478bd9Sstevel@tonic-gate 2247c478bd9Sstevel@tonic-gate /* 2257c478bd9Sstevel@tonic-gate * nsalloc - Named object allocation/deallocation 2267c478bd9Sstevel@tonic-gate */ 2277c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE * 2287c478bd9Sstevel@tonic-gate AcpiNsCreateNode ( 2297c478bd9Sstevel@tonic-gate UINT32 Name); 2307c478bd9Sstevel@tonic-gate 2317c478bd9Sstevel@tonic-gate void 2327c478bd9Sstevel@tonic-gate AcpiNsDeleteNode ( 2337c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node); 2347c478bd9Sstevel@tonic-gate 2357c478bd9Sstevel@tonic-gate void 2367c478bd9Sstevel@tonic-gate AcpiNsDeleteNamespaceSubtree ( 2377c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *ParentHandle); 2387c478bd9Sstevel@tonic-gate 2397c478bd9Sstevel@tonic-gate void 2407c478bd9Sstevel@tonic-gate AcpiNsDeleteNamespaceByOwner ( 241450d6964Smyers ACPI_OWNER_ID OwnerId); 2427c478bd9Sstevel@tonic-gate 2437c478bd9Sstevel@tonic-gate void 2447c478bd9Sstevel@tonic-gate AcpiNsDetachObject ( 2457c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node); 2467c478bd9Sstevel@tonic-gate 2477c478bd9Sstevel@tonic-gate void 2487c478bd9Sstevel@tonic-gate AcpiNsDeleteChildren ( 2497c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Parent); 2507c478bd9Sstevel@tonic-gate 2517c478bd9Sstevel@tonic-gate int 2527c478bd9Sstevel@tonic-gate AcpiNsCompareNames ( 2537c478bd9Sstevel@tonic-gate char *Name1, 2547c478bd9Sstevel@tonic-gate char *Name2); 2557c478bd9Sstevel@tonic-gate 2567c478bd9Sstevel@tonic-gate 2577c478bd9Sstevel@tonic-gate /* 2587c478bd9Sstevel@tonic-gate * nsdump - Namespace dump/print utilities 2597c478bd9Sstevel@tonic-gate */ 2607c478bd9Sstevel@tonic-gate void 2617c478bd9Sstevel@tonic-gate AcpiNsDumpTables ( 2627c478bd9Sstevel@tonic-gate ACPI_HANDLE SearchBase, 2637c478bd9Sstevel@tonic-gate UINT32 MaxDepth); 2647c478bd9Sstevel@tonic-gate 2657c478bd9Sstevel@tonic-gate void 2667c478bd9Sstevel@tonic-gate AcpiNsDumpEntry ( 2677c478bd9Sstevel@tonic-gate ACPI_HANDLE Handle, 2687c478bd9Sstevel@tonic-gate UINT32 DebugLevel); 2697c478bd9Sstevel@tonic-gate 2707c478bd9Sstevel@tonic-gate void 2717c478bd9Sstevel@tonic-gate AcpiNsDumpPathname ( 2727c478bd9Sstevel@tonic-gate ACPI_HANDLE Handle, 2737c478bd9Sstevel@tonic-gate char *Msg, 2747c478bd9Sstevel@tonic-gate UINT32 Level, 2757c478bd9Sstevel@tonic-gate UINT32 Component); 2767c478bd9Sstevel@tonic-gate 2777c478bd9Sstevel@tonic-gate void 2787c478bd9Sstevel@tonic-gate AcpiNsPrintPathname ( 2797c478bd9Sstevel@tonic-gate UINT32 NumSegments, 2807c478bd9Sstevel@tonic-gate char *Pathname); 2817c478bd9Sstevel@tonic-gate 2827c478bd9Sstevel@tonic-gate ACPI_STATUS 2837c478bd9Sstevel@tonic-gate AcpiNsDumpOneObject ( 2847c478bd9Sstevel@tonic-gate ACPI_HANDLE ObjHandle, 2857c478bd9Sstevel@tonic-gate UINT32 Level, 2867c478bd9Sstevel@tonic-gate void *Context, 2877c478bd9Sstevel@tonic-gate void **ReturnValue); 2887c478bd9Sstevel@tonic-gate 2897c478bd9Sstevel@tonic-gate void 2907c478bd9Sstevel@tonic-gate AcpiNsDumpObjects ( 2917c478bd9Sstevel@tonic-gate ACPI_OBJECT_TYPE Type, 2927c478bd9Sstevel@tonic-gate UINT8 DisplayType, 2937c478bd9Sstevel@tonic-gate UINT32 MaxDepth, 294450d6964Smyers ACPI_OWNER_ID OwnerId, 2957c478bd9Sstevel@tonic-gate ACPI_HANDLE StartHandle); 2967c478bd9Sstevel@tonic-gate 2977c478bd9Sstevel@tonic-gate 2987c478bd9Sstevel@tonic-gate /* 2997c478bd9Sstevel@tonic-gate * nseval - Namespace evaluation functions 3007c478bd9Sstevel@tonic-gate */ 3017c478bd9Sstevel@tonic-gate ACPI_STATUS 302*27f7c583Smyers AcpiNsEvaluate ( 303*27f7c583Smyers ACPI_EVALUATE_INFO *Info); 3047c478bd9Sstevel@tonic-gate 3057c478bd9Sstevel@tonic-gate 3067c478bd9Sstevel@tonic-gate /* 3077c478bd9Sstevel@tonic-gate * nsnames - Name and Scope manipulation 3087c478bd9Sstevel@tonic-gate */ 3097c478bd9Sstevel@tonic-gate UINT32 3107c478bd9Sstevel@tonic-gate AcpiNsOpensScope ( 3117c478bd9Sstevel@tonic-gate ACPI_OBJECT_TYPE Type); 3127c478bd9Sstevel@tonic-gate 313*27f7c583Smyers void 314*27f7c583Smyers AcpiNsBuildExternalPath ( 315*27f7c583Smyers ACPI_NAMESPACE_NODE *Node, 316*27f7c583Smyers ACPI_SIZE Size, 317*27f7c583Smyers char *NameBuffer); 318*27f7c583Smyers 3197c478bd9Sstevel@tonic-gate char * 3207c478bd9Sstevel@tonic-gate AcpiNsGetExternalPathname ( 3217c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node); 3227c478bd9Sstevel@tonic-gate 3237c478bd9Sstevel@tonic-gate char * 3247c478bd9Sstevel@tonic-gate AcpiNsNameOfCurrentScope ( 3257c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState); 3267c478bd9Sstevel@tonic-gate 3277c478bd9Sstevel@tonic-gate ACPI_STATUS 3287c478bd9Sstevel@tonic-gate AcpiNsHandleToPathname ( 3297c478bd9Sstevel@tonic-gate ACPI_HANDLE TargetHandle, 3307c478bd9Sstevel@tonic-gate ACPI_BUFFER *Buffer); 3317c478bd9Sstevel@tonic-gate 3327c478bd9Sstevel@tonic-gate BOOLEAN 3337c478bd9Sstevel@tonic-gate AcpiNsPatternMatch ( 3347c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *ObjNode, 3357c478bd9Sstevel@tonic-gate char *SearchFor); 3367c478bd9Sstevel@tonic-gate 3377c478bd9Sstevel@tonic-gate ACPI_STATUS 338*27f7c583Smyers AcpiNsGetNode ( 339*27f7c583Smyers ACPI_NAMESPACE_NODE *PrefixNode, 3407c478bd9Sstevel@tonic-gate char *ExternalPathname, 3417c478bd9Sstevel@tonic-gate UINT32 Flags, 3427c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE **OutNode); 3437c478bd9Sstevel@tonic-gate 3447c478bd9Sstevel@tonic-gate ACPI_SIZE 3457c478bd9Sstevel@tonic-gate AcpiNsGetPathnameLength ( 3467c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node); 3477c478bd9Sstevel@tonic-gate 3487c478bd9Sstevel@tonic-gate 3497c478bd9Sstevel@tonic-gate /* 3507c478bd9Sstevel@tonic-gate * nsobject - Object management for namespace nodes 3517c478bd9Sstevel@tonic-gate */ 3527c478bd9Sstevel@tonic-gate ACPI_STATUS 3537c478bd9Sstevel@tonic-gate AcpiNsAttachObject ( 3547c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node, 3557c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *Object, 3567c478bd9Sstevel@tonic-gate ACPI_OBJECT_TYPE Type); 3577c478bd9Sstevel@tonic-gate 3587c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT * 3597c478bd9Sstevel@tonic-gate AcpiNsGetAttachedObject ( 3607c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node); 3617c478bd9Sstevel@tonic-gate 3627c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT * 3637c478bd9Sstevel@tonic-gate AcpiNsGetSecondaryObject ( 3647c478bd9Sstevel@tonic-gate ACPI_OPERAND_OBJECT *ObjDesc); 3657c478bd9Sstevel@tonic-gate 3667c478bd9Sstevel@tonic-gate ACPI_STATUS 3677c478bd9Sstevel@tonic-gate AcpiNsAttachData ( 3687c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node, 3697c478bd9Sstevel@tonic-gate ACPI_OBJECT_HANDLER Handler, 3707c478bd9Sstevel@tonic-gate void *Data); 3717c478bd9Sstevel@tonic-gate 3727c478bd9Sstevel@tonic-gate ACPI_STATUS 3737c478bd9Sstevel@tonic-gate AcpiNsDetachData ( 3747c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node, 3757c478bd9Sstevel@tonic-gate ACPI_OBJECT_HANDLER Handler); 3767c478bd9Sstevel@tonic-gate 3777c478bd9Sstevel@tonic-gate ACPI_STATUS 3787c478bd9Sstevel@tonic-gate AcpiNsGetAttachedData ( 3797c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node, 3807c478bd9Sstevel@tonic-gate ACPI_OBJECT_HANDLER Handler, 3817c478bd9Sstevel@tonic-gate void **Data); 3827c478bd9Sstevel@tonic-gate 3837c478bd9Sstevel@tonic-gate 3847c478bd9Sstevel@tonic-gate /* 3857c478bd9Sstevel@tonic-gate * nssearch - Namespace searching and entry 3867c478bd9Sstevel@tonic-gate */ 3877c478bd9Sstevel@tonic-gate ACPI_STATUS 3887c478bd9Sstevel@tonic-gate AcpiNsSearchAndEnter ( 3897c478bd9Sstevel@tonic-gate UINT32 EntryName, 3907c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState, 3917c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node, 3927c478bd9Sstevel@tonic-gate ACPI_INTERPRETER_MODE InterpreterMode, 3937c478bd9Sstevel@tonic-gate ACPI_OBJECT_TYPE Type, 3947c478bd9Sstevel@tonic-gate UINT32 Flags, 3957c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE **RetNode); 3967c478bd9Sstevel@tonic-gate 3977c478bd9Sstevel@tonic-gate ACPI_STATUS 398*27f7c583Smyers AcpiNsSearchOneScope ( 3997c478bd9Sstevel@tonic-gate UINT32 EntryName, 4007c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node, 4017c478bd9Sstevel@tonic-gate ACPI_OBJECT_TYPE Type, 4027c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE **RetNode); 4037c478bd9Sstevel@tonic-gate 4047c478bd9Sstevel@tonic-gate void 4057c478bd9Sstevel@tonic-gate AcpiNsInstallNode ( 4067c478bd9Sstevel@tonic-gate ACPI_WALK_STATE *WalkState, 4077c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *ParentNode, 4087c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node, 4097c478bd9Sstevel@tonic-gate ACPI_OBJECT_TYPE Type); 4107c478bd9Sstevel@tonic-gate 4117c478bd9Sstevel@tonic-gate 4127c478bd9Sstevel@tonic-gate /* 4137c478bd9Sstevel@tonic-gate * nsutils - Utility functions 4147c478bd9Sstevel@tonic-gate */ 4157c478bd9Sstevel@tonic-gate BOOLEAN 4167c478bd9Sstevel@tonic-gate AcpiNsValidRootPrefix ( 4177c478bd9Sstevel@tonic-gate char Prefix); 4187c478bd9Sstevel@tonic-gate 4197c478bd9Sstevel@tonic-gate ACPI_OBJECT_TYPE 4207c478bd9Sstevel@tonic-gate AcpiNsGetType ( 4217c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node); 4227c478bd9Sstevel@tonic-gate 4237c478bd9Sstevel@tonic-gate UINT32 4247c478bd9Sstevel@tonic-gate AcpiNsLocal ( 4257c478bd9Sstevel@tonic-gate ACPI_OBJECT_TYPE Type); 4267c478bd9Sstevel@tonic-gate 4277c478bd9Sstevel@tonic-gate void 4287c478bd9Sstevel@tonic-gate AcpiNsReportError ( 4297c478bd9Sstevel@tonic-gate char *ModuleName, 4307c478bd9Sstevel@tonic-gate UINT32 LineNumber, 4317c478bd9Sstevel@tonic-gate char *InternalName, 4327c478bd9Sstevel@tonic-gate ACPI_STATUS LookupStatus); 4337c478bd9Sstevel@tonic-gate 4347c478bd9Sstevel@tonic-gate void 4357c478bd9Sstevel@tonic-gate AcpiNsReportMethodError ( 4367c478bd9Sstevel@tonic-gate char *ModuleName, 4377c478bd9Sstevel@tonic-gate UINT32 LineNumber, 4387c478bd9Sstevel@tonic-gate char *Message, 4397c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node, 4407c478bd9Sstevel@tonic-gate char *Path, 4417c478bd9Sstevel@tonic-gate ACPI_STATUS LookupStatus); 4427c478bd9Sstevel@tonic-gate 4437c478bd9Sstevel@tonic-gate void 4447c478bd9Sstevel@tonic-gate AcpiNsPrintNodePathname ( 4457c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node, 4467c478bd9Sstevel@tonic-gate char *Msg); 4477c478bd9Sstevel@tonic-gate 4487c478bd9Sstevel@tonic-gate ACPI_STATUS 4497c478bd9Sstevel@tonic-gate AcpiNsBuildInternalName ( 4507c478bd9Sstevel@tonic-gate ACPI_NAMESTRING_INFO *Info); 4517c478bd9Sstevel@tonic-gate 4527c478bd9Sstevel@tonic-gate void 4537c478bd9Sstevel@tonic-gate AcpiNsGetInternalNameLength ( 4547c478bd9Sstevel@tonic-gate ACPI_NAMESTRING_INFO *Info); 4557c478bd9Sstevel@tonic-gate 4567c478bd9Sstevel@tonic-gate ACPI_STATUS 4577c478bd9Sstevel@tonic-gate AcpiNsInternalizeName ( 4587c478bd9Sstevel@tonic-gate char *DottedName, 4597c478bd9Sstevel@tonic-gate char **ConvertedName); 4607c478bd9Sstevel@tonic-gate 4617c478bd9Sstevel@tonic-gate ACPI_STATUS 4627c478bd9Sstevel@tonic-gate AcpiNsExternalizeName ( 4637c478bd9Sstevel@tonic-gate UINT32 InternalNameLength, 4647c478bd9Sstevel@tonic-gate char *InternalName, 4657c478bd9Sstevel@tonic-gate UINT32 *ConvertedNameLength, 4667c478bd9Sstevel@tonic-gate char **ConvertedName); 4677c478bd9Sstevel@tonic-gate 4687c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE * 4697c478bd9Sstevel@tonic-gate AcpiNsMapHandleToNode ( 4707c478bd9Sstevel@tonic-gate ACPI_HANDLE Handle); 4717c478bd9Sstevel@tonic-gate 4727c478bd9Sstevel@tonic-gate ACPI_HANDLE 4737c478bd9Sstevel@tonic-gate AcpiNsConvertEntryToHandle( 4747c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node); 4757c478bd9Sstevel@tonic-gate 4767c478bd9Sstevel@tonic-gate void 4777c478bd9Sstevel@tonic-gate AcpiNsTerminate ( 4787c478bd9Sstevel@tonic-gate void); 4797c478bd9Sstevel@tonic-gate 4807c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE * 4817c478bd9Sstevel@tonic-gate AcpiNsGetParentNode ( 4827c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node); 4837c478bd9Sstevel@tonic-gate 4847c478bd9Sstevel@tonic-gate 4857c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE * 4867c478bd9Sstevel@tonic-gate AcpiNsGetNextValidNode ( 4877c478bd9Sstevel@tonic-gate ACPI_NAMESPACE_NODE *Node); 4887c478bd9Sstevel@tonic-gate 4897c478bd9Sstevel@tonic-gate #endif /* __ACNAMESP_H__ */ 490