Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:41

0001 /******************************************************************************
0002  *
0003  * Name: acnamesp.h - Namespace subcomponent prototypes and defines
0004  *
0005  *****************************************************************************/
0006 
0007 /******************************************************************************
0008  *
0009  * 1. Copyright Notice
0010  *
0011  * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp.
0012  * All rights reserved.
0013  *
0014  * 2. License
0015  *
0016  * 2.1. This is your license from Intel Corp. under its intellectual property
0017  * rights. You may have additional license terms from the party that provided
0018  * you this software, covering your right to use that party's intellectual
0019  * property rights.
0020  *
0021  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
0022  * copy of the source code appearing in this file ("Covered Code") an
0023  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
0024  * base code distributed originally by Intel ("Original Intel Code") to copy,
0025  * make derivatives, distribute, use and display any portion of the Covered
0026  * Code in any form, with the right to sublicense such rights; and
0027  *
0028  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
0029  * license (with the right to sublicense), under only those claims of Intel
0030  * patents that are infringed by the Original Intel Code, to make, use, sell,
0031  * offer to sell, and import the Covered Code and derivative works thereof
0032  * solely to the minimum extent necessary to exercise the above copyright
0033  * license, and in no event shall the patent license extend to any additions
0034  * to or modifications of the Original Intel Code. No other license or right
0035  * is granted directly or by implication, estoppel or otherwise;
0036  *
0037  * The above copyright and patent license is granted only if the following
0038  * conditions are met:
0039  *
0040  * 3. Conditions
0041  *
0042  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
0043  * Redistribution of source code of any substantial portion of the Covered
0044  * Code or modification with rights to further distribute source must include
0045  * the above Copyright Notice, the above License, this list of Conditions,
0046  * and the following Disclaimer and Export Compliance provision. In addition,
0047  * Licensee must cause all Covered Code to which Licensee contributes to
0048  * contain a file documenting the changes Licensee made to create that Covered
0049  * Code and the date of any change. Licensee must include in that file the
0050  * documentation of any changes made by any predecessor Licensee. Licensee
0051  * must include a prominent statement that the modification is derived,
0052  * directly or indirectly, from Original Intel Code.
0053  *
0054  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
0055  * Redistribution of source code of any substantial portion of the Covered
0056  * Code or modification without rights to further distribute source must
0057  * include the following Disclaimer and Export Compliance provision in the
0058  * documentation and/or other materials provided with distribution. In
0059  * addition, Licensee may not authorize further sublicense of source of any
0060  * portion of the Covered Code, and must include terms to the effect that the
0061  * license from Licensee to its licensee is limited to the intellectual
0062  * property embodied in the software Licensee provides to its licensee, and
0063  * not to intellectual property embodied in modifications its licensee may
0064  * make.
0065  *
0066  * 3.3. Redistribution of Executable. Redistribution in executable form of any
0067  * substantial portion of the Covered Code or modification must reproduce the
0068  * above Copyright Notice, and the following Disclaimer and Export Compliance
0069  * provision in the documentation and/or other materials provided with the
0070  * distribution.
0071  *
0072  * 3.4. Intel retains all right, title, and interest in and to the Original
0073  * Intel Code.
0074  *
0075  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
0076  * Intel shall be used in advertising or otherwise to promote the sale, use or
0077  * other dealings in products derived from or relating to the Covered Code
0078  * without prior written authorization from Intel.
0079  *
0080  * 4. Disclaimer and Export Compliance
0081  *
0082  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
0083  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
0084  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
0085  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
0086  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
0087  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
0088  * PARTICULAR PURPOSE.
0089  *
0090  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
0091  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
0092  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
0093  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
0094  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
0095  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
0096  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
0097  * LIMITED REMEDY.
0098  *
0099  * 4.3. Licensee shall not export, either directly or indirectly, any of this
0100  * software or system incorporating such software without first obtaining any
0101  * required license or other approval from the U. S. Department of Commerce or
0102  * any other agency or department of the United States Government. In the
0103  * event Licensee exports any such software from the United States or
0104  * re-exports any such software from a foreign destination, Licensee shall
0105  * ensure that the distribution and export/re-export of the software is in
0106  * compliance with all laws, regulations, orders, or other restrictions of the
0107  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
0108  * any of its subsidiaries will export/re-export any technical data, process,
0109  * software, or service, directly or indirectly, to any country for which the
0110  * United States government or any agency thereof requires an export license,
0111  * other governmental approval, or letter of assurance, without first obtaining
0112  * such license, approval or letter.
0113  *
0114  *****************************************************************************
0115  *
0116  * Alternatively, you may choose to be licensed under the terms of the
0117  * following license:
0118  *
0119  * Redistribution and use in source and binary forms, with or without
0120  * modification, are permitted provided that the following conditions
0121  * are met:
0122  * 1. Redistributions of source code must retain the above copyright
0123  *    notice, this list of conditions, and the following disclaimer,
0124  *    without modification.
0125  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
0126  *    substantially similar to the "NO WARRANTY" disclaimer below
0127  *    ("Disclaimer") and any redistribution must be conditioned upon
0128  *    including a substantially similar Disclaimer requirement for further
0129  *    binary redistribution.
0130  * 3. Neither the names of the above-listed copyright holders nor the names
0131  *    of any contributors may be used to endorse or promote products derived
0132  *    from this software without specific prior written permission.
0133  *
0134  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
0135  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
0136  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
0137  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
0138  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0139  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
0140  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
0141  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
0142  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0143  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
0144  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0145  *
0146  * Alternatively, you may choose to be licensed under the terms of the
0147  * GNU General Public License ("GPL") version 2 as published by the Free
0148  * Software Foundation.
0149  *
0150  *****************************************************************************/
0151 
0152 #ifndef __ACNAMESP_H__
0153 #define __ACNAMESP_H__
0154 
0155 
0156 /* To search the entire name space, pass this as SearchBase */
0157 
0158 #define ACPI_NS_ALL                 ((ACPI_HANDLE)0)
0159 
0160 /*
0161  * Elements of AcpiNsProperties are bit significant
0162  * and should be one-to-one with values of ACPI_OBJECT_TYPE
0163  */
0164 #define ACPI_NS_NORMAL              0
0165 #define ACPI_NS_NEWSCOPE            1   /* a definition of this type opens a name scope */
0166 #define ACPI_NS_LOCAL               2   /* suppress search of enclosing scopes */
0167 
0168 /* Flags for AcpiNsLookup, AcpiNsSearchAndEnter */
0169 
0170 #define ACPI_NS_NO_UPSEARCH         0
0171 #define ACPI_NS_SEARCH_PARENT       0x0001
0172 #define ACPI_NS_DONT_OPEN_SCOPE     0x0002
0173 #define ACPI_NS_NO_PEER_SEARCH      0x0004
0174 #define ACPI_NS_ERROR_IF_FOUND      0x0008
0175 #define ACPI_NS_PREFIX_IS_SCOPE     0x0010
0176 #define ACPI_NS_EXTERNAL            0x0020
0177 #define ACPI_NS_TEMPORARY           0x0040
0178 #define ACPI_NS_OVERRIDE_IF_FOUND   0x0080
0179 #define ACPI_NS_EARLY_INIT          0x0100
0180 #define ACPI_NS_PREFIX_MUST_EXIST   0x0200
0181 
0182 /* Flags for AcpiNsWalkNamespace */
0183 
0184 #define ACPI_NS_WALK_NO_UNLOCK      0
0185 #define ACPI_NS_WALK_UNLOCK         0x01
0186 #define ACPI_NS_WALK_TEMP_NODES     0x02
0187 
0188 /* Object is not a package element */
0189 
0190 #define ACPI_NOT_PACKAGE_ELEMENT    ACPI_UINT32_MAX
0191 #define ACPI_ALL_PACKAGE_ELEMENTS   (ACPI_UINT32_MAX-1)
0192 
0193 /* Always emit warning message, not dependent on node flags */
0194 
0195 #define ACPI_WARN_ALWAYS            0
0196 
0197 
0198 /*
0199  * nsinit - Namespace initialization
0200  */
0201 ACPI_STATUS
0202 AcpiNsInitializeObjects (
0203     void);
0204 
0205 ACPI_STATUS
0206 AcpiNsInitializeDevices (
0207     UINT32                  Flags);
0208 
0209 ACPI_STATUS
0210 AcpiNsInitOnePackage (
0211     ACPI_HANDLE             ObjHandle,
0212     UINT32                  Level,
0213     void                    *Context,
0214     void                    **ReturnValue);
0215 
0216 /*
0217  * nsload -  Namespace loading
0218  */
0219 ACPI_STATUS
0220 AcpiNsLoadNamespace (
0221     void);
0222 
0223 ACPI_STATUS
0224 AcpiNsLoadTable (
0225     UINT32                  TableIndex,
0226     ACPI_NAMESPACE_NODE     *Node);
0227 
0228 
0229 /*
0230  * nswalk - walk the namespace
0231  */
0232 ACPI_STATUS
0233 AcpiNsWalkNamespace (
0234     ACPI_OBJECT_TYPE        Type,
0235     ACPI_HANDLE             StartObject,
0236     UINT32                  MaxDepth,
0237     UINT32                  Flags,
0238     ACPI_WALK_CALLBACK      DescendingCallback,
0239     ACPI_WALK_CALLBACK      AscendingCallback,
0240     void                    *Context,
0241     void                    **ReturnValue);
0242 
0243 ACPI_NAMESPACE_NODE *
0244 AcpiNsGetNextNode (
0245     ACPI_NAMESPACE_NODE     *Parent,
0246     ACPI_NAMESPACE_NODE     *Child);
0247 
0248 ACPI_NAMESPACE_NODE *
0249 AcpiNsGetNextNodeTyped (
0250     ACPI_OBJECT_TYPE        Type,
0251     ACPI_NAMESPACE_NODE     *Parent,
0252     ACPI_NAMESPACE_NODE     *Child);
0253 
0254 /*
0255  * nsparse - table parsing
0256  */
0257 ACPI_STATUS
0258 AcpiNsParseTable (
0259     UINT32                  TableIndex,
0260     ACPI_NAMESPACE_NODE     *StartNode);
0261 
0262 ACPI_STATUS
0263 AcpiNsExecuteTable (
0264     UINT32                  TableIndex,
0265     ACPI_NAMESPACE_NODE     *StartNode);
0266 
0267 ACPI_STATUS
0268 AcpiNsOneCompleteParse (
0269     UINT32                  PassNumber,
0270     UINT32                  TableIndex,
0271     ACPI_NAMESPACE_NODE     *StartNode);
0272 
0273 
0274 /*
0275  * nsaccess - Top-level namespace access
0276  */
0277 ACPI_STATUS
0278 AcpiNsRootInitialize (
0279     void);
0280 
0281 ACPI_STATUS
0282 AcpiNsLookup (
0283     ACPI_GENERIC_STATE      *ScopeInfo,
0284     char                    *Name,
0285     ACPI_OBJECT_TYPE        Type,
0286     ACPI_INTERPRETER_MODE   InterpreterMode,
0287     UINT32                  Flags,
0288     ACPI_WALK_STATE         *WalkState,
0289     ACPI_NAMESPACE_NODE     **RetNode);
0290 
0291 
0292 /*
0293  * nsalloc - Named object allocation/deallocation
0294  */
0295 ACPI_NAMESPACE_NODE *
0296 AcpiNsCreateNode (
0297     UINT32                  Name);
0298 
0299 void
0300 AcpiNsDeleteNode (
0301     ACPI_NAMESPACE_NODE     *Node);
0302 
0303 void
0304 AcpiNsRemoveNode (
0305     ACPI_NAMESPACE_NODE     *Node);
0306 
0307 void
0308 AcpiNsDeleteNamespaceSubtree (
0309     ACPI_NAMESPACE_NODE     *ParentHandle);
0310 
0311 void
0312 AcpiNsDeleteNamespaceByOwner (
0313     ACPI_OWNER_ID           OwnerId);
0314 
0315 void
0316 AcpiNsDetachObject (
0317     ACPI_NAMESPACE_NODE     *Node);
0318 
0319 void
0320 AcpiNsDeleteChildren (
0321     ACPI_NAMESPACE_NODE     *Parent);
0322 
0323 int
0324 AcpiNsCompareNames (
0325     char                    *Name1,
0326     char                    *Name2);
0327 
0328 
0329 /*
0330  * nsconvert - Dynamic object conversion routines
0331  */
0332 ACPI_STATUS
0333 AcpiNsConvertToInteger (
0334     ACPI_OPERAND_OBJECT     *OriginalObject,
0335     ACPI_OPERAND_OBJECT     **ReturnObject);
0336 
0337 ACPI_STATUS
0338 AcpiNsConvertToString (
0339     ACPI_OPERAND_OBJECT     *OriginalObject,
0340     ACPI_OPERAND_OBJECT     **ReturnObject);
0341 
0342 ACPI_STATUS
0343 AcpiNsConvertToBuffer (
0344     ACPI_OPERAND_OBJECT     *OriginalObject,
0345     ACPI_OPERAND_OBJECT     **ReturnObject);
0346 
0347 ACPI_STATUS
0348 AcpiNsConvertToUnicode (
0349     ACPI_NAMESPACE_NODE     *Scope,
0350     ACPI_OPERAND_OBJECT     *OriginalObject,
0351     ACPI_OPERAND_OBJECT     **ReturnObject);
0352 
0353 ACPI_STATUS
0354 AcpiNsConvertToResource (
0355     ACPI_NAMESPACE_NODE     *Scope,
0356     ACPI_OPERAND_OBJECT     *OriginalObject,
0357     ACPI_OPERAND_OBJECT     **ReturnObject);
0358 
0359 ACPI_STATUS
0360 AcpiNsConvertToReference (
0361     ACPI_NAMESPACE_NODE     *Scope,
0362     ACPI_OPERAND_OBJECT     *OriginalObject,
0363     ACPI_OPERAND_OBJECT     **ReturnObject);
0364 
0365 
0366 /*
0367  * nsdump - Namespace dump/print utilities
0368  */
0369 void
0370 AcpiNsDumpTables (
0371     ACPI_HANDLE             SearchBase,
0372     UINT32                  MaxDepth);
0373 
0374 void
0375 AcpiNsDumpEntry (
0376     ACPI_HANDLE             Handle,
0377     UINT32                  DebugLevel);
0378 
0379 void
0380 AcpiNsDumpPathname (
0381     ACPI_HANDLE             Handle,
0382     const char              *Msg,
0383     UINT32                  Level,
0384     UINT32                  Component);
0385 
0386 void
0387 AcpiNsPrintPathname (
0388     UINT32                  NumSegments,
0389     const char              *Pathname);
0390 
0391 ACPI_STATUS
0392 AcpiNsDumpOneObject (
0393     ACPI_HANDLE             ObjHandle,
0394     UINT32                  Level,
0395     void                    *Context,
0396     void                    **ReturnValue);
0397 
0398 void
0399 AcpiNsDumpObjects (
0400     ACPI_OBJECT_TYPE        Type,
0401     UINT8                   DisplayType,
0402     UINT32                  MaxDepth,
0403     ACPI_OWNER_ID           OwnerId,
0404     ACPI_HANDLE             StartHandle);
0405 
0406 void
0407 AcpiNsDumpObjectPaths (
0408     ACPI_OBJECT_TYPE        Type,
0409     UINT8                   DisplayType,
0410     UINT32                  MaxDepth,
0411     ACPI_OWNER_ID           OwnerId,
0412     ACPI_HANDLE             StartHandle);
0413 
0414 
0415 /*
0416  * nseval - Namespace evaluation functions
0417  */
0418 ACPI_STATUS
0419 AcpiNsEvaluate (
0420     ACPI_EVALUATE_INFO      *Info);
0421 
0422 
0423 /*
0424  * nsarguments - Argument count/type checking for predefined/reserved names
0425  */
0426 void
0427 AcpiNsCheckArgumentCount (
0428     char                        *Pathname,
0429     ACPI_NAMESPACE_NODE         *Node,
0430     UINT32                      UserParamCount,
0431     const ACPI_PREDEFINED_INFO  *Info);
0432 
0433 void
0434 AcpiNsCheckAcpiCompliance (
0435     char                        *Pathname,
0436     ACPI_NAMESPACE_NODE         *Node,
0437     const ACPI_PREDEFINED_INFO  *Predefined);
0438 
0439 void
0440 AcpiNsCheckArgumentTypes (
0441     ACPI_EVALUATE_INFO          *Info);
0442 
0443 
0444 /*
0445  * nspredef - Return value checking for predefined/reserved names
0446  */
0447 ACPI_STATUS
0448 AcpiNsCheckReturnValue (
0449     ACPI_NAMESPACE_NODE         *Node,
0450     ACPI_EVALUATE_INFO          *Info,
0451     UINT32                      UserParamCount,
0452     ACPI_STATUS                 ReturnStatus,
0453     ACPI_OPERAND_OBJECT         **ReturnObject);
0454 
0455 ACPI_STATUS
0456 AcpiNsCheckObjectType (
0457     ACPI_EVALUATE_INFO          *Info,
0458     ACPI_OPERAND_OBJECT         **ReturnObjectPtr,
0459     UINT32                      ExpectedBtypes,
0460     UINT32                      PackageIndex);
0461 
0462 
0463 /*
0464  * nsprepkg - Validation of predefined name packages
0465  */
0466 ACPI_STATUS
0467 AcpiNsCheckPackage (
0468     ACPI_EVALUATE_INFO          *Info,
0469     ACPI_OPERAND_OBJECT         **ReturnObjectPtr);
0470 
0471 
0472 /*
0473  * nsnames - Name and Scope manipulation
0474  */
0475 UINT32
0476 AcpiNsOpensScope (
0477     ACPI_OBJECT_TYPE        Type);
0478 
0479 char *
0480 AcpiNsGetExternalPathname (
0481     ACPI_NAMESPACE_NODE     *Node);
0482 
0483 UINT32
0484 AcpiNsBuildNormalizedPath (
0485     ACPI_NAMESPACE_NODE     *Node,
0486     char                    *FullPath,
0487     UINT32                  PathSize,
0488     BOOLEAN                 NoTrailing);
0489 
0490 void
0491 AcpiNsNormalizePathname (
0492     char                    *OriginalPath);
0493 
0494 char *
0495 AcpiNsGetNormalizedPathname (
0496     ACPI_NAMESPACE_NODE     *Node,
0497     BOOLEAN                 NoTrailing);
0498 
0499 char *
0500 AcpiNsBuildPrefixedPathname (
0501     ACPI_GENERIC_STATE      *PrefixScope,
0502     const char              *InternalPath);
0503 
0504 char *
0505 AcpiNsNameOfCurrentScope (
0506     ACPI_WALK_STATE         *WalkState);
0507 
0508 ACPI_STATUS
0509 AcpiNsHandleToName (
0510     ACPI_HANDLE             TargetHandle,
0511     ACPI_BUFFER             *Buffer);
0512 
0513 ACPI_STATUS
0514 AcpiNsHandleToPathname (
0515     ACPI_HANDLE             TargetHandle,
0516     ACPI_BUFFER             *Buffer,
0517     BOOLEAN                 NoTrailing);
0518 
0519 BOOLEAN
0520 AcpiNsPatternMatch (
0521     ACPI_NAMESPACE_NODE     *ObjNode,
0522     char                    *SearchFor);
0523 
0524 ACPI_STATUS
0525 AcpiNsGetNodeUnlocked (
0526     ACPI_NAMESPACE_NODE     *PrefixNode,
0527     const char              *ExternalPathname,
0528     UINT32                  Flags,
0529     ACPI_NAMESPACE_NODE     **OutNode);
0530 
0531 ACPI_STATUS
0532 AcpiNsGetNode (
0533     ACPI_NAMESPACE_NODE     *PrefixNode,
0534     const char              *ExternalPathname,
0535     UINT32                  Flags,
0536     ACPI_NAMESPACE_NODE     **OutNode);
0537 
0538 ACPI_SIZE
0539 AcpiNsGetPathnameLength (
0540     ACPI_NAMESPACE_NODE     *Node);
0541 
0542 
0543 /*
0544  * nsobject - Object management for namespace nodes
0545  */
0546 ACPI_STATUS
0547 AcpiNsAttachObject (
0548     ACPI_NAMESPACE_NODE     *Node,
0549     ACPI_OPERAND_OBJECT     *Object,
0550     ACPI_OBJECT_TYPE        Type);
0551 
0552 ACPI_OPERAND_OBJECT *
0553 AcpiNsGetAttachedObject (
0554     ACPI_NAMESPACE_NODE     *Node);
0555 
0556 ACPI_OPERAND_OBJECT *
0557 AcpiNsGetSecondaryObject (
0558     ACPI_OPERAND_OBJECT     *ObjDesc);
0559 
0560 ACPI_STATUS
0561 AcpiNsAttachData (
0562     ACPI_NAMESPACE_NODE     *Node,
0563     ACPI_OBJECT_HANDLER     Handler,
0564     void                    *Data);
0565 
0566 ACPI_STATUS
0567 AcpiNsDetachData (
0568     ACPI_NAMESPACE_NODE     *Node,
0569     ACPI_OBJECT_HANDLER     Handler);
0570 
0571 ACPI_STATUS
0572 AcpiNsGetAttachedData (
0573     ACPI_NAMESPACE_NODE     *Node,
0574     ACPI_OBJECT_HANDLER     Handler,
0575     void                    **Data);
0576 
0577 
0578 /*
0579  * nsrepair - General return object repair for all
0580  * predefined methods/objects
0581  */
0582 ACPI_STATUS
0583 AcpiNsSimpleRepair (
0584     ACPI_EVALUATE_INFO      *Info,
0585     UINT32                  ExpectedBtypes,
0586     UINT32                  PackageIndex,
0587     ACPI_OPERAND_OBJECT     **ReturnObjectPtr);
0588 
0589 ACPI_STATUS
0590 AcpiNsWrapWithPackage (
0591     ACPI_EVALUATE_INFO      *Info,
0592     ACPI_OPERAND_OBJECT     *OriginalObject,
0593     ACPI_OPERAND_OBJECT     **ObjDescPtr);
0594 
0595 ACPI_STATUS
0596 AcpiNsRepairNullElement (
0597     ACPI_EVALUATE_INFO      *Info,
0598     UINT32                  ExpectedBtypes,
0599     UINT32                  PackageIndex,
0600     ACPI_OPERAND_OBJECT     **ReturnObjectPtr);
0601 
0602 void
0603 AcpiNsRemoveNullElements (
0604     ACPI_EVALUATE_INFO      *Info,
0605     UINT8                   PackageType,
0606     ACPI_OPERAND_OBJECT     *ObjDesc);
0607 
0608 
0609 /*
0610  * nsrepair2 - Return object repair for specific
0611  * predefined methods/objects
0612  */
0613 ACPI_STATUS
0614 AcpiNsComplexRepairs (
0615     ACPI_EVALUATE_INFO      *Info,
0616     ACPI_NAMESPACE_NODE     *Node,
0617     ACPI_STATUS             ValidateStatus,
0618     ACPI_OPERAND_OBJECT     **ReturnObjectPtr);
0619 
0620 
0621 /*
0622  * nssearch - Namespace searching and entry
0623  */
0624 ACPI_STATUS
0625 AcpiNsSearchAndEnter (
0626     UINT32                  EntryName,
0627     ACPI_WALK_STATE         *WalkState,
0628     ACPI_NAMESPACE_NODE     *Node,
0629     ACPI_INTERPRETER_MODE   InterpreterMode,
0630     ACPI_OBJECT_TYPE        Type,
0631     UINT32                  Flags,
0632     ACPI_NAMESPACE_NODE     **RetNode);
0633 
0634 ACPI_STATUS
0635 AcpiNsSearchOneScope (
0636     UINT32                  EntryName,
0637     ACPI_NAMESPACE_NODE     *Node,
0638     ACPI_OBJECT_TYPE        Type,
0639     ACPI_NAMESPACE_NODE     **RetNode);
0640 
0641 void
0642 AcpiNsInstallNode (
0643     ACPI_WALK_STATE         *WalkState,
0644     ACPI_NAMESPACE_NODE     *ParentNode,
0645     ACPI_NAMESPACE_NODE     *Node,
0646     ACPI_OBJECT_TYPE        Type);
0647 
0648 
0649 /*
0650  * nsutils - Utility functions
0651  */
0652 ACPI_OBJECT_TYPE
0653 AcpiNsGetType (
0654     ACPI_NAMESPACE_NODE     *Node);
0655 
0656 UINT32
0657 AcpiNsLocal (
0658     ACPI_OBJECT_TYPE        Type);
0659 
0660 void
0661 AcpiNsPrintNodePathname (
0662     ACPI_NAMESPACE_NODE     *Node,
0663     const char              *Msg);
0664 
0665 ACPI_STATUS
0666 AcpiNsBuildInternalName (
0667     ACPI_NAMESTRING_INFO    *Info);
0668 
0669 void
0670 AcpiNsGetInternalNameLength (
0671     ACPI_NAMESTRING_INFO    *Info);
0672 
0673 ACPI_STATUS
0674 AcpiNsInternalizeName (
0675     const char              *DottedName,
0676     char                    **ConvertedName);
0677 
0678 ACPI_STATUS
0679 AcpiNsExternalizeName (
0680     UINT32                  InternalNameLength,
0681     const char              *InternalName,
0682     UINT32                  *ConvertedNameLength,
0683     char                    **ConvertedName);
0684 
0685 ACPI_NAMESPACE_NODE *
0686 AcpiNsValidateHandle (
0687     ACPI_HANDLE             Handle);
0688 
0689 void
0690 AcpiNsTerminate (
0691     void);
0692 
0693 #endif /* __ACNAMESP_H__ */