Home | History | Annotate | Line # | Download | only in include
acutils.h revision 1.27.6.1
      1       1.1    jruoho /******************************************************************************
      2       1.1    jruoho  *
      3       1.1    jruoho  * Name: acutils.h -- prototypes for the common (subsystem-wide) procedures
      4       1.1    jruoho  *
      5       1.1    jruoho  *****************************************************************************/
      6       1.1    jruoho 
      7  1.27.6.1  perseant /******************************************************************************
      8  1.27.6.1  perseant  *
      9  1.27.6.1  perseant  * 1. Copyright Notice
     10  1.27.6.1  perseant  *
     11  1.27.6.1  perseant  * Some or all of this work - Copyright (c) 1999 - 2024, Intel Corp.
     12       1.1    jruoho  * All rights reserved.
     13       1.1    jruoho  *
     14  1.27.6.1  perseant  * 2. License
     15  1.27.6.1  perseant  *
     16  1.27.6.1  perseant  * 2.1. This is your license from Intel Corp. under its intellectual property
     17  1.27.6.1  perseant  * rights. You may have additional license terms from the party that provided
     18  1.27.6.1  perseant  * you this software, covering your right to use that party's intellectual
     19  1.27.6.1  perseant  * property rights.
     20  1.27.6.1  perseant  *
     21  1.27.6.1  perseant  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
     22  1.27.6.1  perseant  * copy of the source code appearing in this file ("Covered Code") an
     23  1.27.6.1  perseant  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
     24  1.27.6.1  perseant  * base code distributed originally by Intel ("Original Intel Code") to copy,
     25  1.27.6.1  perseant  * make derivatives, distribute, use and display any portion of the Covered
     26  1.27.6.1  perseant  * Code in any form, with the right to sublicense such rights; and
     27  1.27.6.1  perseant  *
     28  1.27.6.1  perseant  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
     29  1.27.6.1  perseant  * license (with the right to sublicense), under only those claims of Intel
     30  1.27.6.1  perseant  * patents that are infringed by the Original Intel Code, to make, use, sell,
     31  1.27.6.1  perseant  * offer to sell, and import the Covered Code and derivative works thereof
     32  1.27.6.1  perseant  * solely to the minimum extent necessary to exercise the above copyright
     33  1.27.6.1  perseant  * license, and in no event shall the patent license extend to any additions
     34  1.27.6.1  perseant  * to or modifications of the Original Intel Code. No other license or right
     35  1.27.6.1  perseant  * is granted directly or by implication, estoppel or otherwise;
     36  1.27.6.1  perseant  *
     37  1.27.6.1  perseant  * The above copyright and patent license is granted only if the following
     38  1.27.6.1  perseant  * conditions are met:
     39  1.27.6.1  perseant  *
     40  1.27.6.1  perseant  * 3. Conditions
     41  1.27.6.1  perseant  *
     42  1.27.6.1  perseant  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
     43  1.27.6.1  perseant  * Redistribution of source code of any substantial portion of the Covered
     44  1.27.6.1  perseant  * Code or modification with rights to further distribute source must include
     45  1.27.6.1  perseant  * the above Copyright Notice, the above License, this list of Conditions,
     46  1.27.6.1  perseant  * and the following Disclaimer and Export Compliance provision. In addition,
     47  1.27.6.1  perseant  * Licensee must cause all Covered Code to which Licensee contributes to
     48  1.27.6.1  perseant  * contain a file documenting the changes Licensee made to create that Covered
     49  1.27.6.1  perseant  * Code and the date of any change. Licensee must include in that file the
     50  1.27.6.1  perseant  * documentation of any changes made by any predecessor Licensee. Licensee
     51  1.27.6.1  perseant  * must include a prominent statement that the modification is derived,
     52  1.27.6.1  perseant  * directly or indirectly, from Original Intel Code.
     53  1.27.6.1  perseant  *
     54  1.27.6.1  perseant  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
     55  1.27.6.1  perseant  * Redistribution of source code of any substantial portion of the Covered
     56  1.27.6.1  perseant  * Code or modification without rights to further distribute source must
     57  1.27.6.1  perseant  * include the following Disclaimer and Export Compliance provision in the
     58  1.27.6.1  perseant  * documentation and/or other materials provided with distribution. In
     59  1.27.6.1  perseant  * addition, Licensee may not authorize further sublicense of source of any
     60  1.27.6.1  perseant  * portion of the Covered Code, and must include terms to the effect that the
     61  1.27.6.1  perseant  * license from Licensee to its licensee is limited to the intellectual
     62  1.27.6.1  perseant  * property embodied in the software Licensee provides to its licensee, and
     63  1.27.6.1  perseant  * not to intellectual property embodied in modifications its licensee may
     64  1.27.6.1  perseant  * make.
     65  1.27.6.1  perseant  *
     66  1.27.6.1  perseant  * 3.3. Redistribution of Executable. Redistribution in executable form of any
     67  1.27.6.1  perseant  * substantial portion of the Covered Code or modification must reproduce the
     68  1.27.6.1  perseant  * above Copyright Notice, and the following Disclaimer and Export Compliance
     69  1.27.6.1  perseant  * provision in the documentation and/or other materials provided with the
     70  1.27.6.1  perseant  * distribution.
     71  1.27.6.1  perseant  *
     72  1.27.6.1  perseant  * 3.4. Intel retains all right, title, and interest in and to the Original
     73  1.27.6.1  perseant  * Intel Code.
     74  1.27.6.1  perseant  *
     75  1.27.6.1  perseant  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
     76  1.27.6.1  perseant  * Intel shall be used in advertising or otherwise to promote the sale, use or
     77  1.27.6.1  perseant  * other dealings in products derived from or relating to the Covered Code
     78  1.27.6.1  perseant  * without prior written authorization from Intel.
     79  1.27.6.1  perseant  *
     80  1.27.6.1  perseant  * 4. Disclaimer and Export Compliance
     81  1.27.6.1  perseant  *
     82  1.27.6.1  perseant  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
     83  1.27.6.1  perseant  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
     84  1.27.6.1  perseant  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
     85  1.27.6.1  perseant  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
     86  1.27.6.1  perseant  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
     87  1.27.6.1  perseant  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
     88  1.27.6.1  perseant  * PARTICULAR PURPOSE.
     89  1.27.6.1  perseant  *
     90  1.27.6.1  perseant  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
     91  1.27.6.1  perseant  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
     92  1.27.6.1  perseant  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
     93  1.27.6.1  perseant  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
     94  1.27.6.1  perseant  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
     95  1.27.6.1  perseant  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
     96  1.27.6.1  perseant  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
     97  1.27.6.1  perseant  * LIMITED REMEDY.
     98  1.27.6.1  perseant  *
     99  1.27.6.1  perseant  * 4.3. Licensee shall not export, either directly or indirectly, any of this
    100  1.27.6.1  perseant  * software or system incorporating such software without first obtaining any
    101  1.27.6.1  perseant  * required license or other approval from the U. S. Department of Commerce or
    102  1.27.6.1  perseant  * any other agency or department of the United States Government. In the
    103  1.27.6.1  perseant  * event Licensee exports any such software from the United States or
    104  1.27.6.1  perseant  * re-exports any such software from a foreign destination, Licensee shall
    105  1.27.6.1  perseant  * ensure that the distribution and export/re-export of the software is in
    106  1.27.6.1  perseant  * compliance with all laws, regulations, orders, or other restrictions of the
    107  1.27.6.1  perseant  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
    108  1.27.6.1  perseant  * any of its subsidiaries will export/re-export any technical data, process,
    109  1.27.6.1  perseant  * software, or service, directly or indirectly, to any country for which the
    110  1.27.6.1  perseant  * United States government or any agency thereof requires an export license,
    111  1.27.6.1  perseant  * other governmental approval, or letter of assurance, without first obtaining
    112  1.27.6.1  perseant  * such license, approval or letter.
    113  1.27.6.1  perseant  *
    114  1.27.6.1  perseant  *****************************************************************************
    115  1.27.6.1  perseant  *
    116  1.27.6.1  perseant  * Alternatively, you may choose to be licensed under the terms of the
    117  1.27.6.1  perseant  * following license:
    118  1.27.6.1  perseant  *
    119       1.3    jruoho  * Redistribution and use in source and binary forms, with or without
    120       1.3    jruoho  * modification, are permitted provided that the following conditions
    121       1.3    jruoho  * are met:
    122       1.3    jruoho  * 1. Redistributions of source code must retain the above copyright
    123       1.3    jruoho  *    notice, this list of conditions, and the following disclaimer,
    124       1.3    jruoho  *    without modification.
    125       1.3    jruoho  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
    126       1.3    jruoho  *    substantially similar to the "NO WARRANTY" disclaimer below
    127       1.3    jruoho  *    ("Disclaimer") and any redistribution must be conditioned upon
    128       1.3    jruoho  *    including a substantially similar Disclaimer requirement for further
    129       1.3    jruoho  *    binary redistribution.
    130       1.3    jruoho  * 3. Neither the names of the above-listed copyright holders nor the names
    131       1.3    jruoho  *    of any contributors may be used to endorse or promote products derived
    132       1.3    jruoho  *    from this software without specific prior written permission.
    133       1.3    jruoho  *
    134       1.3    jruoho  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    135       1.3    jruoho  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    136      1.23  christos  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    137       1.3    jruoho  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
    138  1.27.6.1  perseant  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    139  1.27.6.1  perseant  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    140  1.27.6.1  perseant  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    141  1.27.6.1  perseant  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    142  1.27.6.1  perseant  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    143  1.27.6.1  perseant  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    144  1.27.6.1  perseant  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    145  1.27.6.1  perseant  *
    146  1.27.6.1  perseant  * Alternatively, you may choose to be licensed under the terms of the
    147  1.27.6.1  perseant  * GNU General Public License ("GPL") version 2 as published by the Free
    148  1.27.6.1  perseant  * Software Foundation.
    149  1.27.6.1  perseant  *
    150  1.27.6.1  perseant  *****************************************************************************/
    151       1.1    jruoho 
    152       1.1    jruoho #ifndef _ACUTILS_H
    153       1.1    jruoho #define _ACUTILS_H
    154       1.1    jruoho 
    155       1.1    jruoho 
    156       1.1    jruoho extern const UINT8                      AcpiGbl_ResourceAmlSizes[];
    157       1.6  christos extern const UINT8                      AcpiGbl_ResourceAmlSerialBusSizes[];
    158       1.1    jruoho 
    159       1.1    jruoho /* Strings used by the disassembler and debugger resource dump routines */
    160       1.1    jruoho 
    161       1.7  christos #if defined(ACPI_DEBUG_OUTPUT) || defined (ACPI_DISASSEMBLER) || defined (ACPI_DEBUGGER)
    162       1.1    jruoho 
    163       1.1    jruoho extern const char                       *AcpiGbl_BmDecode[];
    164       1.1    jruoho extern const char                       *AcpiGbl_ConfigDecode[];
    165       1.1    jruoho extern const char                       *AcpiGbl_ConsumeDecode[];
    166       1.1    jruoho extern const char                       *AcpiGbl_DecDecode[];
    167       1.1    jruoho extern const char                       *AcpiGbl_HeDecode[];
    168       1.1    jruoho extern const char                       *AcpiGbl_IoDecode[];
    169       1.1    jruoho extern const char                       *AcpiGbl_LlDecode[];
    170       1.1    jruoho extern const char                       *AcpiGbl_MaxDecode[];
    171       1.1    jruoho extern const char                       *AcpiGbl_MemDecode[];
    172       1.1    jruoho extern const char                       *AcpiGbl_MinDecode[];
    173       1.1    jruoho extern const char                       *AcpiGbl_MtpDecode[];
    174      1.23  christos extern const char                       *AcpiGbl_PhyDecode[];
    175       1.1    jruoho extern const char                       *AcpiGbl_RngDecode[];
    176       1.1    jruoho extern const char                       *AcpiGbl_RwDecode[];
    177       1.1    jruoho extern const char                       *AcpiGbl_ShrDecode[];
    178       1.1    jruoho extern const char                       *AcpiGbl_SizDecode[];
    179       1.1    jruoho extern const char                       *AcpiGbl_TrsDecode[];
    180       1.1    jruoho extern const char                       *AcpiGbl_TtpDecode[];
    181       1.1    jruoho extern const char                       *AcpiGbl_TypDecode[];
    182       1.6  christos extern const char                       *AcpiGbl_PpcDecode[];
    183       1.6  christos extern const char                       *AcpiGbl_IorDecode[];
    184       1.6  christos extern const char                       *AcpiGbl_DtsDecode[];
    185       1.6  christos extern const char                       *AcpiGbl_CtDecode[];
    186       1.6  christos extern const char                       *AcpiGbl_SbtDecode[];
    187       1.6  christos extern const char                       *AcpiGbl_AmDecode[];
    188       1.6  christos extern const char                       *AcpiGbl_SmDecode[];
    189       1.6  christos extern const char                       *AcpiGbl_WmDecode[];
    190       1.6  christos extern const char                       *AcpiGbl_CphDecode[];
    191       1.6  christos extern const char                       *AcpiGbl_CpoDecode[];
    192       1.6  christos extern const char                       *AcpiGbl_DpDecode[];
    193       1.6  christos extern const char                       *AcpiGbl_EdDecode[];
    194       1.6  christos extern const char                       *AcpiGbl_BpbDecode[];
    195       1.6  christos extern const char                       *AcpiGbl_SbDecode[];
    196       1.6  christos extern const char                       *AcpiGbl_FcDecode[];
    197       1.6  christos extern const char                       *AcpiGbl_PtDecode[];
    198      1.15  christos extern const char                       *AcpiGbl_PtypDecode[];
    199      1.27  christos extern const char                       *AcpiGbl_ClockInputMode[];
    200      1.27  christos extern const char                       *AcpiGbl_ClockInputScale[];
    201       1.1    jruoho #endif
    202       1.1    jruoho 
    203       1.6  christos /*
    204       1.6  christos  * For the iASL compiler case, the output is redirected to stderr so that
    205       1.6  christos  * any of the various ACPI errors and warnings do not appear in the output
    206       1.6  christos  * files, for either the compiler or disassembler portions of the tool.
    207       1.6  christos  */
    208       1.6  christos #ifdef ACPI_ASL_COMPILER
    209       1.6  christos 
    210       1.6  christos #include <stdio.h>
    211       1.6  christos 
    212       1.6  christos #define ACPI_MSG_REDIRECT_BEGIN \
    213       1.6  christos     FILE                    *OutputFile = AcpiGbl_OutputFile; \
    214       1.6  christos     AcpiOsRedirectOutput (stderr);
    215       1.6  christos 
    216       1.6  christos #define ACPI_MSG_REDIRECT_END \
    217       1.6  christos     AcpiOsRedirectOutput (OutputFile);
    218       1.6  christos 
    219       1.6  christos #else
    220       1.6  christos /*
    221       1.6  christos  * non-iASL case - no redirection, nothing to do
    222       1.6  christos  */
    223       1.6  christos #define ACPI_MSG_REDIRECT_BEGIN
    224       1.6  christos #define ACPI_MSG_REDIRECT_END
    225       1.6  christos #endif
    226       1.6  christos 
    227       1.6  christos /*
    228       1.6  christos  * Common error message prefixes
    229       1.6  christos  */
    230      1.12  christos #ifndef ACPI_MSG_ERROR
    231       1.6  christos #define ACPI_MSG_ERROR          "ACPI Error: "
    232      1.12  christos #endif
    233      1.12  christos #ifndef ACPI_MSG_WARNING
    234       1.6  christos #define ACPI_MSG_WARNING        "ACPI Warning: "
    235      1.12  christos #endif
    236      1.12  christos #ifndef ACPI_MSG_INFO
    237       1.6  christos #define ACPI_MSG_INFO           "ACPI: "
    238      1.12  christos #endif
    239       1.6  christos 
    240      1.12  christos #ifndef ACPI_MSG_BIOS_ERROR
    241      1.16  christos #define ACPI_MSG_BIOS_ERROR     "Firmware Error (ACPI): "
    242      1.12  christos #endif
    243      1.12  christos #ifndef ACPI_MSG_BIOS_WARNING
    244      1.16  christos #define ACPI_MSG_BIOS_WARNING   "Firmware Warning (ACPI): "
    245      1.12  christos #endif
    246       1.6  christos 
    247       1.6  christos /*
    248       1.6  christos  * Common message suffix
    249       1.6  christos  */
    250       1.6  christos #define ACPI_MSG_SUFFIX \
    251       1.6  christos     AcpiOsPrintf (" (%8.8X/%s-%u)\n", ACPI_CA_VERSION, ModuleName, LineNumber)
    252       1.6  christos 
    253      1.15  christos /* Flags to indicate implicit or explicit string-to-integer conversion */
    254      1.15  christos 
    255      1.15  christos #define ACPI_IMPLICIT_CONVERSION        TRUE
    256      1.15  christos #define ACPI_NO_IMPLICIT_CONVERSION     FALSE
    257       1.6  christos 
    258       1.1    jruoho /* Types for Resource descriptor entries */
    259       1.1    jruoho 
    260       1.1    jruoho #define ACPI_INVALID_RESOURCE           0
    261       1.1    jruoho #define ACPI_FIXED_LENGTH               1
    262       1.1    jruoho #define ACPI_VARIABLE_LENGTH            2
    263       1.1    jruoho #define ACPI_SMALL_VARIABLE_LENGTH      3
    264       1.1    jruoho 
    265       1.1    jruoho typedef
    266       1.1    jruoho ACPI_STATUS (*ACPI_WALK_AML_CALLBACK) (
    267       1.1    jruoho     UINT8                   *Aml,
    268       1.1    jruoho     UINT32                  Length,
    269       1.1    jruoho     UINT32                  Offset,
    270       1.1    jruoho     UINT8                   ResourceIndex,
    271       1.6  christos     void                    **Context);
    272       1.1    jruoho 
    273       1.1    jruoho typedef
    274       1.1    jruoho ACPI_STATUS (*ACPI_PKG_CALLBACK) (
    275       1.1    jruoho     UINT8                   ObjectType,
    276       1.1    jruoho     ACPI_OPERAND_OBJECT     *SourceObject,
    277       1.1    jruoho     ACPI_GENERIC_STATE      *State,
    278       1.1    jruoho     void                    *Context);
    279       1.1    jruoho 
    280       1.1    jruoho typedef struct acpi_pkg_info
    281       1.1    jruoho {
    282       1.1    jruoho     UINT8                   *FreeSpace;
    283       1.1    jruoho     ACPI_SIZE               Length;
    284       1.1    jruoho     UINT32                  ObjectSpace;
    285       1.1    jruoho     UINT32                  NumPackages;
    286       1.1    jruoho 
    287       1.1    jruoho } ACPI_PKG_INFO;
    288       1.1    jruoho 
    289       1.6  christos /* Object reference counts */
    290       1.6  christos 
    291       1.1    jruoho #define REF_INCREMENT       (UINT16) 0
    292       1.1    jruoho #define REF_DECREMENT       (UINT16) 1
    293       1.1    jruoho 
    294       1.1    jruoho /* AcpiUtDumpBuffer */
    295       1.1    jruoho 
    296      1.21  christos #define DB_BYTE_DISPLAY      0x01
    297      1.21  christos #define DB_WORD_DISPLAY      0x02
    298      1.21  christos #define DB_DWORD_DISPLAY     0x04
    299      1.21  christos #define DB_QWORD_DISPLAY     0x08
    300      1.21  christos #define DB_DISPLAY_DATA_ONLY 0x10
    301       1.1    jruoho 
    302       1.9  christos 
    303       1.9  christos /*
    304      1.11  christos  * utascii - ASCII utilities
    305      1.11  christos  */
    306      1.11  christos BOOLEAN
    307      1.11  christos AcpiUtValidNameseg (
    308      1.11  christos     char                    *Signature);
    309      1.11  christos 
    310      1.11  christos BOOLEAN
    311      1.11  christos AcpiUtValidNameChar (
    312      1.11  christos     char                    Character,
    313      1.11  christos     UINT32                  Position);
    314      1.11  christos 
    315      1.11  christos void
    316      1.11  christos AcpiUtCheckAndRepairAscii (
    317      1.11  christos     UINT8                   *Name,
    318      1.11  christos     char                    *RepairedName,
    319      1.11  christos     UINT32                  Count);
    320      1.11  christos 
    321      1.11  christos 
    322      1.11  christos /*
    323      1.26  christos  * utcksum - Checksum utilities
    324      1.26  christos  */
    325      1.26  christos UINT8
    326      1.26  christos AcpiUtGenerateChecksum (
    327      1.26  christos     void                    *Table,
    328      1.26  christos     UINT32                  Length,
    329      1.26  christos     UINT8                   OriginalChecksum);
    330      1.26  christos 
    331      1.26  christos UINT8
    332      1.26  christos AcpiUtChecksum (
    333      1.26  christos     UINT8                   *Buffer,
    334      1.26  christos     UINT32                  Length);
    335      1.26  christos 
    336      1.26  christos ACPI_STATUS
    337      1.26  christos AcpiUtVerifyCdatChecksum (
    338      1.26  christos     ACPI_TABLE_CDAT         *CdatTable,
    339      1.26  christos     UINT32                  Length);
    340      1.26  christos 
    341      1.26  christos ACPI_STATUS
    342      1.26  christos AcpiUtVerifyChecksum (
    343      1.26  christos     ACPI_TABLE_HEADER       *Table,
    344      1.26  christos     UINT32                  Length);
    345      1.26  christos 
    346      1.26  christos 
    347      1.26  christos /*
    348       1.9  christos  * utnonansi - Non-ANSI C library functions
    349       1.9  christos  */
    350       1.9  christos void
    351       1.9  christos AcpiUtStrupr (
    352       1.9  christos     char                    *SrcString);
    353       1.9  christos 
    354       1.9  christos void
    355       1.9  christos AcpiUtStrlwr (
    356       1.9  christos     char                    *SrcString);
    357       1.9  christos 
    358       1.9  christos int
    359       1.9  christos AcpiUtStricmp (
    360       1.9  christos     char                    *String1,
    361       1.9  christos     char                    *String2);
    362       1.9  christos 
    363      1.15  christos 
    364      1.15  christos /*
    365      1.15  christos  * utstrsuppt - string-to-integer conversion support functions
    366      1.15  christos  */
    367      1.15  christos ACPI_STATUS
    368      1.15  christos AcpiUtConvertOctalString (
    369      1.15  christos     char                    *String,
    370      1.15  christos     UINT64                  *ReturnValue);
    371      1.15  christos 
    372      1.15  christos ACPI_STATUS
    373      1.15  christos AcpiUtConvertDecimalString (
    374      1.15  christos     char                    *String,
    375      1.15  christos     UINT64                  *ReturnValuePtr);
    376      1.15  christos 
    377      1.15  christos ACPI_STATUS
    378      1.15  christos AcpiUtConvertHexString (
    379      1.15  christos     char                    *String,
    380      1.15  christos     UINT64                  *ReturnValuePtr);
    381      1.15  christos 
    382      1.15  christos char
    383      1.15  christos AcpiUtRemoveWhitespace (
    384      1.15  christos     char                    **String);
    385      1.15  christos 
    386      1.15  christos char
    387      1.15  christos AcpiUtRemoveLeadingZeros (
    388      1.15  christos     char                    **String);
    389      1.15  christos 
    390      1.15  christos BOOLEAN
    391      1.15  christos AcpiUtDetectHexPrefix (
    392      1.15  christos     char                    **String);
    393      1.15  christos 
    394      1.18  christos void
    395      1.18  christos AcpiUtRemoveHexPrefix (
    396      1.18  christos     char                    **String);
    397      1.18  christos 
    398      1.15  christos BOOLEAN
    399      1.15  christos AcpiUtDetectOctalPrefix (
    400      1.15  christos     char                    **String);
    401      1.15  christos 
    402      1.15  christos 
    403      1.15  christos /*
    404      1.15  christos  * utstrtoul64 - string-to-integer conversion functions
    405      1.15  christos  */
    406       1.9  christos ACPI_STATUS
    407       1.9  christos AcpiUtStrtoul64 (
    408       1.9  christos     char                    *String,
    409       1.9  christos     UINT64                  *RetInteger);
    410       1.9  christos 
    411      1.15  christos UINT64
    412      1.15  christos AcpiUtExplicitStrtoul64 (
    413      1.15  christos     char                    *String);
    414      1.15  christos 
    415      1.15  christos UINT64
    416      1.15  christos AcpiUtImplicitStrtoul64 (
    417      1.15  christos     char                    *String);
    418      1.11  christos 
    419       1.9  christos 
    420       1.1    jruoho /*
    421       1.1    jruoho  * utglobal - Global data structures and procedures
    422       1.1    jruoho  */
    423       1.1    jruoho ACPI_STATUS
    424       1.1    jruoho AcpiUtInitGlobals (
    425       1.1    jruoho     void);
    426       1.1    jruoho 
    427       1.2    jruoho const char *
    428       1.1    jruoho AcpiUtGetMutexName (
    429       1.1    jruoho     UINT32                  MutexId);
    430       1.1    jruoho 
    431      1.16  christos #if defined(ACPI_DEBUG_OUTPUT) || defined(ACPI_DEBUGGER)
    432      1.16  christos 
    433       1.1    jruoho const char *
    434       1.1    jruoho AcpiUtGetNotifyName (
    435       1.7  christos     UINT32                  NotifyValue,
    436       1.7  christos     ACPI_OBJECT_TYPE        Type);
    437       1.1    jruoho #endif
    438       1.1    jruoho 
    439      1.10  christos const char *
    440       1.1    jruoho AcpiUtGetTypeName (
    441       1.1    jruoho     ACPI_OBJECT_TYPE        Type);
    442       1.1    jruoho 
    443       1.4    jruoho const char *
    444       1.1    jruoho AcpiUtGetNodeName (
    445       1.1    jruoho     void                    *Object);
    446       1.1    jruoho 
    447       1.2    jruoho const char *
    448       1.1    jruoho AcpiUtGetDescriptorName (
    449       1.1    jruoho     void                    *Object);
    450       1.1    jruoho 
    451       1.1    jruoho const char *
    452       1.1    jruoho AcpiUtGetReferenceName (
    453       1.1    jruoho     ACPI_OPERAND_OBJECT     *Object);
    454       1.1    jruoho 
    455       1.4    jruoho const char *
    456       1.1    jruoho AcpiUtGetObjectTypeName (
    457       1.1    jruoho     ACPI_OPERAND_OBJECT     *ObjDesc);
    458       1.1    jruoho 
    459       1.4    jruoho const char *
    460       1.1    jruoho AcpiUtGetRegionName (
    461       1.1    jruoho     UINT8                   SpaceId);
    462       1.1    jruoho 
    463       1.4    jruoho const char *
    464       1.1    jruoho AcpiUtGetEventName (
    465       1.1    jruoho     UINT32                  EventId);
    466       1.1    jruoho 
    467      1.14  christos const char *
    468      1.14  christos AcpiUtGetArgumentTypeName (
    469      1.14  christos     UINT32                  ArgType);
    470      1.14  christos 
    471       1.1    jruoho char
    472       1.1    jruoho AcpiUtHexToAsciiChar (
    473       1.1    jruoho     UINT64                  Integer,
    474       1.1    jruoho     UINT32                  Position);
    475       1.1    jruoho 
    476      1.13  christos ACPI_STATUS
    477      1.13  christos AcpiUtAsciiToHexByte (
    478      1.13  christos     char                    *TwoAsciiChars,
    479      1.13  christos     UINT8                   *ReturnByte);
    480      1.13  christos 
    481       1.7  christos UINT8
    482       1.7  christos AcpiUtAsciiCharToHex (
    483       1.7  christos     int                     HexChar);
    484       1.7  christos 
    485       1.1    jruoho BOOLEAN
    486       1.1    jruoho AcpiUtValidObjectType (
    487       1.1    jruoho     ACPI_OBJECT_TYPE        Type);
    488       1.1    jruoho 
    489       1.1    jruoho 
    490       1.1    jruoho /*
    491       1.1    jruoho  * utinit - miscellaneous initialization and shutdown
    492       1.1    jruoho  */
    493       1.1    jruoho ACPI_STATUS
    494       1.1    jruoho AcpiUtHardwareInitialize (
    495       1.1    jruoho     void);
    496       1.1    jruoho 
    497       1.1    jruoho void
    498       1.1    jruoho AcpiUtSubsystemShutdown (
    499       1.1    jruoho     void);
    500       1.1    jruoho 
    501       1.1    jruoho 
    502       1.1    jruoho /*
    503       1.1    jruoho  * utcopy - Object construction and conversion interfaces
    504       1.1    jruoho  */
    505       1.1    jruoho ACPI_STATUS
    506       1.1    jruoho AcpiUtBuildSimpleObject(
    507       1.1    jruoho     ACPI_OPERAND_OBJECT     *Obj,
    508       1.1    jruoho     ACPI_OBJECT             *UserObj,
    509       1.1    jruoho     UINT8                   *DataSpace,
    510       1.1    jruoho     UINT32                  *BufferSpaceUsed);
    511       1.1    jruoho 
    512       1.1    jruoho ACPI_STATUS
    513       1.1    jruoho AcpiUtBuildPackageObject (
    514       1.1    jruoho     ACPI_OPERAND_OBJECT     *Obj,
    515       1.1    jruoho     UINT8                   *Buffer,
    516       1.1    jruoho     UINT32                  *SpaceUsed);
    517       1.1    jruoho 
    518       1.1    jruoho ACPI_STATUS
    519       1.1    jruoho AcpiUtCopyIobjectToEobject (
    520       1.1    jruoho     ACPI_OPERAND_OBJECT     *Obj,
    521       1.1    jruoho     ACPI_BUFFER             *RetBuffer);
    522       1.1    jruoho 
    523       1.1    jruoho ACPI_STATUS
    524       1.1    jruoho AcpiUtCopyEobjectToIobject (
    525       1.1    jruoho     ACPI_OBJECT             *Obj,
    526       1.1    jruoho     ACPI_OPERAND_OBJECT     **InternalObj);
    527       1.1    jruoho 
    528       1.1    jruoho ACPI_STATUS
    529       1.1    jruoho AcpiUtCopyISimpleToIsimple (
    530       1.1    jruoho     ACPI_OPERAND_OBJECT     *SourceObj,
    531       1.1    jruoho     ACPI_OPERAND_OBJECT     *DestObj);
    532       1.1    jruoho 
    533       1.1    jruoho ACPI_STATUS
    534       1.1    jruoho AcpiUtCopyIobjectToIobject (
    535       1.1    jruoho     ACPI_OPERAND_OBJECT     *SourceDesc,
    536       1.1    jruoho     ACPI_OPERAND_OBJECT     **DestDesc,
    537       1.1    jruoho     ACPI_WALK_STATE         *WalkState);
    538       1.1    jruoho 
    539       1.1    jruoho 
    540       1.1    jruoho /*
    541       1.1    jruoho  * utcreate - Object creation
    542       1.1    jruoho  */
    543       1.1    jruoho ACPI_STATUS
    544       1.1    jruoho AcpiUtUpdateObjectReference (
    545       1.1    jruoho     ACPI_OPERAND_OBJECT     *Object,
    546       1.1    jruoho     UINT16                  Action);
    547       1.1    jruoho 
    548       1.1    jruoho 
    549       1.1    jruoho /*
    550       1.1    jruoho  * utdebug - Debug interfaces
    551       1.1    jruoho  */
    552       1.1    jruoho void
    553       1.1    jruoho AcpiUtInitStackPtrTrace (
    554       1.1    jruoho     void);
    555       1.1    jruoho 
    556       1.1    jruoho void
    557       1.1    jruoho AcpiUtTrackStackPtr (
    558       1.1    jruoho     void);
    559       1.1    jruoho 
    560       1.1    jruoho void
    561       1.1    jruoho AcpiUtTrace (
    562       1.1    jruoho     UINT32                  LineNumber,
    563       1.1    jruoho     const char              *FunctionName,
    564       1.1    jruoho     const char              *ModuleName,
    565       1.1    jruoho     UINT32                  ComponentId);
    566       1.1    jruoho 
    567       1.1    jruoho void
    568       1.1    jruoho AcpiUtTracePtr (
    569       1.1    jruoho     UINT32                  LineNumber,
    570       1.1    jruoho     const char              *FunctionName,
    571       1.1    jruoho     const char              *ModuleName,
    572       1.1    jruoho     UINT32                  ComponentId,
    573      1.11  christos     const void              *Pointer);
    574       1.1    jruoho 
    575       1.1    jruoho void
    576       1.1    jruoho AcpiUtTraceU32 (
    577       1.1    jruoho     UINT32                  LineNumber,
    578       1.1    jruoho     const char              *FunctionName,
    579       1.1    jruoho     const char              *ModuleName,
    580       1.1    jruoho     UINT32                  ComponentId,
    581       1.1    jruoho     UINT32                  Integer);
    582       1.1    jruoho 
    583       1.1    jruoho void
    584       1.1    jruoho AcpiUtTraceStr (
    585       1.1    jruoho     UINT32                  LineNumber,
    586       1.1    jruoho     const char              *FunctionName,
    587       1.1    jruoho     const char              *ModuleName,
    588       1.1    jruoho     UINT32                  ComponentId,
    589       1.5    jruoho     const char              *String);
    590       1.1    jruoho 
    591       1.1    jruoho void
    592       1.1    jruoho AcpiUtExit (
    593       1.1    jruoho     UINT32                  LineNumber,
    594       1.1    jruoho     const char              *FunctionName,
    595       1.1    jruoho     const char              *ModuleName,
    596       1.1    jruoho     UINT32                  ComponentId);
    597       1.1    jruoho 
    598       1.1    jruoho void
    599       1.1    jruoho AcpiUtStatusExit (
    600       1.1    jruoho     UINT32                  LineNumber,
    601       1.1    jruoho     const char              *FunctionName,
    602       1.1    jruoho     const char              *ModuleName,
    603       1.1    jruoho     UINT32                  ComponentId,
    604       1.1    jruoho     ACPI_STATUS             Status);
    605       1.1    jruoho 
    606       1.1    jruoho void
    607       1.1    jruoho AcpiUtValueExit (
    608       1.1    jruoho     UINT32                  LineNumber,
    609       1.1    jruoho     const char              *FunctionName,
    610       1.1    jruoho     const char              *ModuleName,
    611       1.1    jruoho     UINT32                  ComponentId,
    612       1.1    jruoho     UINT64                  Value);
    613       1.1    jruoho 
    614       1.1    jruoho void
    615       1.1    jruoho AcpiUtPtrExit (
    616       1.1    jruoho     UINT32                  LineNumber,
    617       1.1    jruoho     const char              *FunctionName,
    618       1.1    jruoho     const char              *ModuleName,
    619       1.1    jruoho     UINT32                  ComponentId,
    620       1.1    jruoho     UINT8                   *Ptr);
    621       1.1    jruoho 
    622       1.1    jruoho void
    623      1.12  christos AcpiUtStrExit (
    624      1.12  christos     UINT32                  LineNumber,
    625      1.12  christos     const char              *FunctionName,
    626      1.12  christos     const char              *ModuleName,
    627      1.12  christos     UINT32                  ComponentId,
    628      1.12  christos     const char              *String);
    629      1.12  christos 
    630      1.12  christos void
    631       1.6  christos AcpiUtDebugDumpBuffer (
    632       1.1    jruoho     UINT8                   *Buffer,
    633       1.1    jruoho     UINT32                  Count,
    634       1.1    jruoho     UINT32                  Display,
    635       1.6  christos     UINT32                  ComponentId);
    636       1.1    jruoho 
    637       1.1    jruoho void
    638       1.6  christos AcpiUtDumpBuffer (
    639       1.1    jruoho     UINT8                   *Buffer,
    640       1.1    jruoho     UINT32                  Count,
    641       1.6  christos     UINT32                  Display,
    642       1.6  christos     UINT32                  Offset);
    643       1.1    jruoho 
    644       1.7  christos #ifdef ACPI_APPLICATION
    645       1.7  christos void
    646       1.7  christos AcpiUtDumpBufferToFile (
    647       1.7  christos     ACPI_FILE               File,
    648       1.7  christos     UINT8                   *Buffer,
    649       1.7  christos     UINT32                  Count,
    650       1.7  christos     UINT32                  Display,
    651       1.7  christos     UINT32                  BaseOffset);
    652       1.7  christos #endif
    653       1.7  christos 
    654       1.1    jruoho void
    655       1.1    jruoho AcpiUtReportError (
    656       1.1    jruoho     char                    *ModuleName,
    657       1.1    jruoho     UINT32                  LineNumber);
    658       1.1    jruoho 
    659       1.1    jruoho void
    660       1.1    jruoho AcpiUtReportInfo (
    661       1.1    jruoho     char                    *ModuleName,
    662       1.1    jruoho     UINT32                  LineNumber);
    663       1.1    jruoho 
    664       1.1    jruoho void
    665       1.1    jruoho AcpiUtReportWarning (
    666       1.1    jruoho     char                    *ModuleName,
    667       1.1    jruoho     UINT32                  LineNumber);
    668       1.1    jruoho 
    669       1.9  christos 
    670       1.1    jruoho /*
    671       1.1    jruoho  * utdelete - Object deletion and reference counts
    672       1.1    jruoho  */
    673       1.1    jruoho void
    674       1.1    jruoho AcpiUtAddReference (
    675       1.1    jruoho     ACPI_OPERAND_OBJECT     *Object);
    676       1.1    jruoho 
    677       1.1    jruoho void
    678       1.1    jruoho AcpiUtRemoveReference (
    679       1.1    jruoho     ACPI_OPERAND_OBJECT     *Object);
    680       1.1    jruoho 
    681       1.1    jruoho void
    682       1.1    jruoho AcpiUtDeleteInternalPackageObject (
    683       1.1    jruoho     ACPI_OPERAND_OBJECT     *Object);
    684       1.1    jruoho 
    685       1.1    jruoho void
    686       1.1    jruoho AcpiUtDeleteInternalSimpleObject (
    687       1.1    jruoho     ACPI_OPERAND_OBJECT     *Object);
    688       1.1    jruoho 
    689       1.1    jruoho void
    690       1.1    jruoho AcpiUtDeleteInternalObjectList (
    691       1.1    jruoho     ACPI_OPERAND_OBJECT     **ObjList);
    692       1.1    jruoho 
    693       1.1    jruoho 
    694       1.1    jruoho /*
    695       1.1    jruoho  * uteval - object evaluation
    696       1.1    jruoho  */
    697       1.1    jruoho ACPI_STATUS
    698       1.1    jruoho AcpiUtEvaluateObject (
    699       1.1    jruoho     ACPI_NAMESPACE_NODE     *PrefixNode,
    700       1.2    jruoho     const char              *Path,
    701       1.1    jruoho     UINT32                  ExpectedReturnBtypes,
    702       1.1    jruoho     ACPI_OPERAND_OBJECT     **ReturnDesc);
    703       1.1    jruoho 
    704       1.1    jruoho ACPI_STATUS
    705       1.1    jruoho AcpiUtEvaluateNumericObject (
    706       1.2    jruoho     const char              *ObjectName,
    707       1.1    jruoho     ACPI_NAMESPACE_NODE     *DeviceNode,
    708       1.1    jruoho     UINT64                  *Value);
    709       1.1    jruoho 
    710       1.1    jruoho ACPI_STATUS
    711       1.1    jruoho AcpiUtExecute_STA (
    712       1.1    jruoho     ACPI_NAMESPACE_NODE     *DeviceNode,
    713       1.1    jruoho     UINT32                  *StatusFlags);
    714       1.1    jruoho 
    715       1.1    jruoho ACPI_STATUS
    716       1.1    jruoho AcpiUtExecutePowerMethods (
    717       1.1    jruoho     ACPI_NAMESPACE_NODE     *DeviceNode,
    718       1.1    jruoho     const char              **MethodNames,
    719       1.1    jruoho     UINT8                   MethodCount,
    720       1.1    jruoho     UINT8                   *OutValues);
    721       1.1    jruoho 
    722       1.1    jruoho 
    723       1.1    jruoho /*
    724       1.1    jruoho  * utids - device ID support
    725       1.1    jruoho  */
    726       1.1    jruoho ACPI_STATUS
    727       1.1    jruoho AcpiUtExecute_HID (
    728       1.1    jruoho     ACPI_NAMESPACE_NODE     *DeviceNode,
    729       1.6  christos     ACPI_PNP_DEVICE_ID      **ReturnId);
    730       1.1    jruoho 
    731       1.1    jruoho ACPI_STATUS
    732       1.1    jruoho AcpiUtExecute_UID (
    733       1.1    jruoho     ACPI_NAMESPACE_NODE     *DeviceNode,
    734       1.6  christos     ACPI_PNP_DEVICE_ID      **ReturnId);
    735       1.6  christos 
    736       1.6  christos ACPI_STATUS
    737       1.1    jruoho AcpiUtExecute_CID (
    738       1.1    jruoho     ACPI_NAMESPACE_NODE     *DeviceNode,
    739       1.6  christos     ACPI_PNP_DEVICE_ID_LIST **ReturnCidList);
    740       1.1    jruoho 
    741       1.9  christos ACPI_STATUS
    742       1.9  christos AcpiUtExecute_CLS (
    743       1.9  christos     ACPI_NAMESPACE_NODE     *DeviceNode,
    744       1.9  christos     ACPI_PNP_DEVICE_ID      **ReturnId);
    745       1.9  christos 
    746       1.1    jruoho 
    747       1.1    jruoho /*
    748       1.1    jruoho  * utlock - reader/writer locks
    749       1.1    jruoho  */
    750       1.1    jruoho ACPI_STATUS
    751       1.1    jruoho AcpiUtCreateRwLock (
    752       1.1    jruoho     ACPI_RW_LOCK            *Lock);
    753       1.1    jruoho 
    754       1.1    jruoho void
    755       1.1    jruoho AcpiUtDeleteRwLock (
    756       1.1    jruoho     ACPI_RW_LOCK            *Lock);
    757       1.1    jruoho 
    758       1.1    jruoho ACPI_STATUS
    759       1.1    jruoho AcpiUtAcquireReadLock (
    760       1.1    jruoho     ACPI_RW_LOCK            *Lock);
    761       1.1    jruoho 
    762       1.1    jruoho ACPI_STATUS
    763       1.1    jruoho AcpiUtReleaseReadLock (
    764       1.1    jruoho     ACPI_RW_LOCK            *Lock);
    765       1.1    jruoho 
    766       1.1    jruoho ACPI_STATUS
    767       1.1    jruoho AcpiUtAcquireWriteLock (
    768       1.1    jruoho     ACPI_RW_LOCK            *Lock);
    769       1.1    jruoho 
    770       1.1    jruoho void
    771       1.1    jruoho AcpiUtReleaseWriteLock (
    772       1.1    jruoho     ACPI_RW_LOCK            *Lock);
    773       1.1    jruoho 
    774       1.1    jruoho 
    775       1.1    jruoho /*
    776       1.1    jruoho  * utobject - internal object create/delete/cache routines
    777       1.1    jruoho  */
    778       1.1    jruoho ACPI_OPERAND_OBJECT  *
    779       1.1    jruoho AcpiUtCreateInternalObjectDbg (
    780       1.1    jruoho     const char              *ModuleName,
    781       1.1    jruoho     UINT32                  LineNumber,
    782       1.1    jruoho     UINT32                  ComponentId,
    783       1.1    jruoho     ACPI_OBJECT_TYPE        Type);
    784       1.1    jruoho 
    785       1.1    jruoho void *
    786       1.1    jruoho AcpiUtAllocateObjectDescDbg (
    787       1.1    jruoho     const char              *ModuleName,
    788       1.1    jruoho     UINT32                  LineNumber,
    789       1.1    jruoho     UINT32                  ComponentId);
    790       1.1    jruoho 
    791       1.1    jruoho #define AcpiUtCreateInternalObject(t)   AcpiUtCreateInternalObjectDbg (_AcpiModuleName,__LINE__,_COMPONENT,t)
    792       1.1    jruoho #define AcpiUtAllocateObjectDesc()      AcpiUtAllocateObjectDescDbg (_AcpiModuleName,__LINE__,_COMPONENT)
    793       1.1    jruoho 
    794       1.1    jruoho void
    795       1.1    jruoho AcpiUtDeleteObjectDesc (
    796       1.1    jruoho     ACPI_OPERAND_OBJECT     *Object);
    797       1.1    jruoho 
    798       1.1    jruoho BOOLEAN
    799       1.1    jruoho AcpiUtValidInternalObject (
    800       1.1    jruoho     void                    *Object);
    801       1.1    jruoho 
    802       1.1    jruoho ACPI_OPERAND_OBJECT *
    803       1.1    jruoho AcpiUtCreatePackageObject (
    804       1.1    jruoho     UINT32                  Count);
    805       1.1    jruoho 
    806       1.1    jruoho ACPI_OPERAND_OBJECT *
    807       1.1    jruoho AcpiUtCreateIntegerObject (
    808       1.1    jruoho     UINT64                  Value);
    809       1.1    jruoho 
    810       1.1    jruoho ACPI_OPERAND_OBJECT *
    811       1.1    jruoho AcpiUtCreateBufferObject (
    812       1.1    jruoho     ACPI_SIZE               BufferSize);
    813       1.1    jruoho 
    814       1.1    jruoho ACPI_OPERAND_OBJECT *
    815       1.1    jruoho AcpiUtCreateStringObject (
    816       1.1    jruoho     ACPI_SIZE               StringSize);
    817       1.1    jruoho 
    818       1.1    jruoho ACPI_STATUS
    819       1.1    jruoho AcpiUtGetObjectSize(
    820       1.1    jruoho     ACPI_OPERAND_OBJECT     *Obj,
    821       1.1    jruoho     ACPI_SIZE               *ObjLength);
    822       1.1    jruoho 
    823       1.1    jruoho 
    824       1.1    jruoho /*
    825       1.3    jruoho  * utosi - Support for the _OSI predefined control method
    826       1.3    jruoho  */
    827       1.3    jruoho ACPI_STATUS
    828       1.3    jruoho AcpiUtInitializeInterfaces (
    829       1.3    jruoho     void);
    830       1.3    jruoho 
    831       1.6  christos ACPI_STATUS
    832       1.3    jruoho AcpiUtInterfaceTerminate (
    833       1.3    jruoho     void);
    834       1.3    jruoho 
    835       1.3    jruoho ACPI_STATUS
    836       1.3    jruoho AcpiUtInstallInterface (
    837       1.3    jruoho     ACPI_STRING             InterfaceName);
    838       1.3    jruoho 
    839       1.3    jruoho ACPI_STATUS
    840       1.3    jruoho AcpiUtRemoveInterface (
    841       1.3    jruoho     ACPI_STRING             InterfaceName);
    842       1.3    jruoho 
    843       1.6  christos ACPI_STATUS
    844       1.6  christos AcpiUtUpdateInterfaces (
    845       1.6  christos     UINT8                   Action);
    846       1.6  christos 
    847       1.3    jruoho ACPI_INTERFACE_INFO *
    848       1.3    jruoho AcpiUtGetInterface (
    849       1.3    jruoho     ACPI_STRING             InterfaceName);
    850       1.3    jruoho 
    851       1.3    jruoho ACPI_STATUS
    852       1.3    jruoho AcpiUtOsiImplementation (
    853       1.3    jruoho     ACPI_WALK_STATE         *WalkState);
    854       1.3    jruoho 
    855       1.3    jruoho 
    856       1.3    jruoho /*
    857       1.6  christos  * utpredef - support for predefined names
    858       1.6  christos  */
    859       1.6  christos const ACPI_PREDEFINED_INFO *
    860       1.6  christos AcpiUtGetNextPredefinedMethod (
    861       1.6  christos     const ACPI_PREDEFINED_INFO  *ThisName);
    862       1.6  christos 
    863       1.6  christos const ACPI_PREDEFINED_INFO *
    864       1.6  christos AcpiUtMatchPredefinedMethod (
    865       1.6  christos     char                        *Name);
    866       1.6  christos 
    867       1.8  christos void
    868       1.8  christos AcpiUtGetExpectedReturnTypes (
    869       1.8  christos     char                    *Buffer,
    870       1.8  christos     UINT32                  ExpectedBtypes);
    871       1.8  christos 
    872       1.8  christos #if (defined ACPI_ASL_COMPILER || defined ACPI_HELP_APP)
    873       1.6  christos const ACPI_PREDEFINED_INFO *
    874       1.6  christos AcpiUtMatchResourceName (
    875       1.6  christos     char                        *Name);
    876       1.6  christos 
    877       1.6  christos void
    878       1.6  christos AcpiUtDisplayPredefinedMethod (
    879       1.6  christos     char                        *Buffer,
    880       1.6  christos     const ACPI_PREDEFINED_INFO  *ThisName,
    881       1.6  christos     BOOLEAN                     MultiLine);
    882       1.6  christos 
    883       1.6  christos UINT32
    884       1.6  christos AcpiUtGetResourceBitWidth (
    885       1.6  christos     char                    *Buffer,
    886       1.6  christos     UINT16                  Types);
    887       1.8  christos #endif
    888       1.6  christos 
    889       1.6  christos 
    890       1.6  christos /*
    891       1.1    jruoho  * utstate - Generic state creation/cache routines
    892       1.1    jruoho  */
    893       1.1    jruoho void
    894       1.1    jruoho AcpiUtPushGenericState (
    895       1.1    jruoho     ACPI_GENERIC_STATE      **ListHead,
    896       1.1    jruoho     ACPI_GENERIC_STATE      *State);
    897       1.1    jruoho 
    898       1.1    jruoho ACPI_GENERIC_STATE *
    899       1.1    jruoho AcpiUtPopGenericState (
    900       1.1    jruoho     ACPI_GENERIC_STATE      **ListHead);
    901       1.1    jruoho 
    902       1.1    jruoho 
    903       1.1    jruoho ACPI_GENERIC_STATE *
    904       1.1    jruoho AcpiUtCreateGenericState (
    905       1.1    jruoho     void);
    906       1.1    jruoho 
    907       1.1    jruoho ACPI_THREAD_STATE *
    908       1.1    jruoho AcpiUtCreateThreadState (
    909       1.1    jruoho     void);
    910       1.1    jruoho 
    911       1.1    jruoho ACPI_GENERIC_STATE *
    912       1.1    jruoho AcpiUtCreateUpdateState (
    913       1.1    jruoho     ACPI_OPERAND_OBJECT     *Object,
    914       1.1    jruoho     UINT16                  Action);
    915       1.1    jruoho 
    916       1.1    jruoho ACPI_GENERIC_STATE *
    917       1.1    jruoho AcpiUtCreatePkgState (
    918       1.1    jruoho     void                    *InternalObject,
    919       1.1    jruoho     void                    *ExternalObject,
    920      1.15  christos     UINT32                  Index);
    921       1.1    jruoho 
    922       1.1    jruoho ACPI_STATUS
    923       1.1    jruoho AcpiUtCreateUpdateStateAndPush (
    924       1.1    jruoho     ACPI_OPERAND_OBJECT     *Object,
    925       1.1    jruoho     UINT16                  Action,
    926       1.1    jruoho     ACPI_GENERIC_STATE      **StateList);
    927       1.1    jruoho 
    928       1.1    jruoho ACPI_GENERIC_STATE *
    929       1.1    jruoho AcpiUtCreateControlState (
    930       1.1    jruoho     void);
    931       1.1    jruoho 
    932       1.1    jruoho void
    933       1.1    jruoho AcpiUtDeleteGenericState (
    934       1.1    jruoho     ACPI_GENERIC_STATE      *State);
    935       1.1    jruoho 
    936       1.1    jruoho 
    937       1.1    jruoho /*
    938       1.1    jruoho  * utmath
    939       1.1    jruoho  */
    940       1.1    jruoho ACPI_STATUS
    941       1.1    jruoho AcpiUtDivide (
    942       1.1    jruoho     UINT64                  InDividend,
    943       1.1    jruoho     UINT64                  InDivisor,
    944       1.1    jruoho     UINT64                  *OutQuotient,
    945       1.1    jruoho     UINT64                  *OutRemainder);
    946       1.1    jruoho 
    947       1.1    jruoho ACPI_STATUS
    948       1.1    jruoho AcpiUtShortDivide (
    949       1.1    jruoho     UINT64                  InDividend,
    950       1.1    jruoho     UINT32                  Divisor,
    951       1.1    jruoho     UINT64                  *OutQuotient,
    952       1.1    jruoho     UINT32                  *OutRemainder);
    953       1.1    jruoho 
    954      1.15  christos ACPI_STATUS
    955      1.15  christos AcpiUtShortMultiply (
    956      1.15  christos     UINT64                  InMultiplicand,
    957      1.15  christos     UINT32                  Multiplier,
    958      1.15  christos     UINT64                  *Outproduct);
    959      1.15  christos 
    960      1.15  christos ACPI_STATUS
    961      1.15  christos AcpiUtShortShiftLeft (
    962      1.15  christos     UINT64                  Operand,
    963      1.15  christos     UINT32                  Count,
    964      1.15  christos     UINT64                  *OutResult);
    965      1.15  christos 
    966      1.15  christos ACPI_STATUS
    967      1.15  christos AcpiUtShortShiftRight (
    968      1.15  christos     UINT64                  Operand,
    969      1.15  christos     UINT32                  Count,
    970      1.15  christos     UINT64                  *OutResult);
    971      1.15  christos 
    972       1.6  christos 
    973       1.1    jruoho /*
    974       1.1    jruoho  * utmisc
    975       1.1    jruoho  */
    976       1.6  christos const ACPI_EXCEPTION_INFO *
    977       1.1    jruoho AcpiUtValidateException (
    978       1.1    jruoho     ACPI_STATUS             Status);
    979       1.1    jruoho 
    980       1.1    jruoho BOOLEAN
    981       1.1    jruoho AcpiUtIsPciRootBridge (
    982       1.1    jruoho     char                    *Id);
    983       1.1    jruoho 
    984      1.10  christos #if (defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP || defined ACPI_NAMES_APP)
    985       1.1    jruoho BOOLEAN
    986       1.1    jruoho AcpiUtIsAmlTable (
    987       1.1    jruoho     ACPI_TABLE_HEADER       *Table);
    988       1.8  christos #endif
    989       1.1    jruoho 
    990       1.1    jruoho ACPI_STATUS
    991       1.1    jruoho AcpiUtWalkPackageTree (
    992       1.1    jruoho     ACPI_OPERAND_OBJECT     *SourceObject,
    993       1.1    jruoho     void                    *TargetObject,
    994       1.1    jruoho     ACPI_PKG_CALLBACK       WalkCallback,
    995       1.1    jruoho     void                    *Context);
    996       1.1    jruoho 
    997       1.1    jruoho /* Values for Base above (16=Hex, 10=Decimal) */
    998       1.1    jruoho 
    999       1.1    jruoho #define ACPI_ANY_BASE        0
   1000       1.1    jruoho 
   1001       1.9  christos 
   1002       1.1    jruoho UINT32
   1003       1.1    jruoho AcpiUtDwordByteSwap (
   1004       1.1    jruoho     UINT32                  Value);
   1005       1.1    jruoho 
   1006       1.1    jruoho void
   1007       1.1    jruoho AcpiUtSetIntegerWidth (
   1008       1.1    jruoho     UINT8                   Revision);
   1009       1.1    jruoho 
   1010       1.1    jruoho #ifdef ACPI_DEBUG_OUTPUT
   1011       1.1    jruoho void
   1012       1.1    jruoho AcpiUtDisplayInitPathname (
   1013       1.1    jruoho     UINT8                   Type,
   1014       1.1    jruoho     ACPI_NAMESPACE_NODE     *ObjHandle,
   1015       1.2    jruoho     const char              *Path);
   1016       1.1    jruoho #endif
   1017       1.1    jruoho 
   1018       1.1    jruoho 
   1019       1.1    jruoho /*
   1020       1.6  christos  * utownerid - Support for Table/Method Owner IDs
   1021       1.6  christos  */
   1022       1.6  christos ACPI_STATUS
   1023       1.6  christos AcpiUtAllocateOwnerId (
   1024       1.6  christos     ACPI_OWNER_ID           *OwnerId);
   1025       1.6  christos 
   1026       1.6  christos void
   1027       1.6  christos AcpiUtReleaseOwnerId (
   1028       1.6  christos     ACPI_OWNER_ID           *OwnerId);
   1029       1.6  christos 
   1030       1.6  christos 
   1031       1.6  christos /*
   1032       1.1    jruoho  * utresrc
   1033       1.1    jruoho  */
   1034       1.1    jruoho ACPI_STATUS
   1035       1.1    jruoho AcpiUtWalkAmlResources (
   1036       1.6  christos     ACPI_WALK_STATE         *WalkState,
   1037       1.1    jruoho     UINT8                   *Aml,
   1038       1.1    jruoho     ACPI_SIZE               AmlLength,
   1039       1.1    jruoho     ACPI_WALK_AML_CALLBACK  UserFunction,
   1040       1.6  christos     void                    **Context);
   1041       1.1    jruoho 
   1042       1.1    jruoho ACPI_STATUS
   1043       1.1    jruoho AcpiUtValidateResource (
   1044       1.6  christos     ACPI_WALK_STATE         *WalkState,
   1045       1.1    jruoho     void                    *Aml,
   1046       1.1    jruoho     UINT8                   *ReturnIndex);
   1047       1.1    jruoho 
   1048       1.1    jruoho UINT32
   1049       1.1    jruoho AcpiUtGetDescriptorLength (
   1050       1.1    jruoho     void                    *Aml);
   1051       1.1    jruoho 
   1052       1.1    jruoho UINT16
   1053       1.1    jruoho AcpiUtGetResourceLength (
   1054       1.1    jruoho     void                    *Aml);
   1055       1.1    jruoho 
   1056       1.1    jruoho UINT8
   1057       1.1    jruoho AcpiUtGetResourceHeaderLength (
   1058       1.1    jruoho     void                    *Aml);
   1059       1.1    jruoho 
   1060       1.1    jruoho UINT8
   1061       1.1    jruoho AcpiUtGetResourceType (
   1062       1.1    jruoho     void                    *Aml);
   1063       1.1    jruoho 
   1064       1.1    jruoho ACPI_STATUS
   1065       1.1    jruoho AcpiUtGetResourceEndTag (
   1066       1.1    jruoho     ACPI_OPERAND_OBJECT     *ObjDesc,
   1067       1.1    jruoho     UINT8                   **EndTag);
   1068       1.1    jruoho 
   1069       1.1    jruoho 
   1070       1.1    jruoho /*
   1071       1.6  christos  * utstring - String and character utilities
   1072       1.6  christos  */
   1073       1.6  christos void
   1074       1.6  christos AcpiUtPrintString (
   1075       1.6  christos     char                    *String,
   1076       1.6  christos     UINT16                  MaxLength);
   1077       1.6  christos 
   1078       1.8  christos #if defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP
   1079       1.6  christos void
   1080       1.6  christos UtConvertBackslashes (
   1081       1.6  christos     char                    *Pathname);
   1082       1.8  christos #endif
   1083       1.6  christos 
   1084       1.6  christos void
   1085       1.6  christos AcpiUtRepairName (
   1086       1.6  christos     char                    *Name);
   1087       1.6  christos 
   1088      1.17  christos #if defined (ACPI_DEBUGGER) || defined (ACPI_APPLICATION) || defined (ACPI_DEBUG_OUTPUT)
   1089       1.6  christos BOOLEAN
   1090       1.6  christos AcpiUtSafeStrcpy (
   1091       1.6  christos     char                    *Dest,
   1092       1.6  christos     ACPI_SIZE               DestSize,
   1093       1.6  christos     char                    *Source);
   1094       1.6  christos 
   1095      1.17  christos void
   1096      1.17  christos AcpiUtSafeStrncpy (
   1097      1.17  christos     char                    *Dest,
   1098      1.17  christos     const char              *Source,
   1099      1.17  christos     ACPI_SIZE               DestSize);
   1100      1.17  christos 
   1101       1.6  christos BOOLEAN
   1102       1.6  christos AcpiUtSafeStrcat (
   1103       1.6  christos     char                    *Dest,
   1104       1.6  christos     ACPI_SIZE               DestSize,
   1105       1.6  christos     char                    *Source);
   1106       1.6  christos 
   1107       1.6  christos BOOLEAN
   1108       1.6  christos AcpiUtSafeStrncat (
   1109       1.6  christos     char                    *Dest,
   1110       1.6  christos     ACPI_SIZE               DestSize,
   1111       1.6  christos     char                    *Source,
   1112       1.6  christos     ACPI_SIZE               MaxTransferLength);
   1113       1.6  christos #endif
   1114       1.6  christos 
   1115       1.6  christos 
   1116       1.6  christos /*
   1117       1.1    jruoho  * utmutex - mutex support
   1118       1.1    jruoho  */
   1119       1.1    jruoho ACPI_STATUS
   1120       1.1    jruoho AcpiUtMutexInitialize (
   1121       1.1    jruoho     void);
   1122       1.1    jruoho 
   1123       1.1    jruoho void
   1124       1.1    jruoho AcpiUtMutexTerminate (
   1125       1.1    jruoho     void);
   1126       1.1    jruoho 
   1127       1.1    jruoho ACPI_STATUS
   1128       1.1    jruoho AcpiUtAcquireMutex (
   1129       1.1    jruoho     ACPI_MUTEX_HANDLE       MutexId);
   1130       1.1    jruoho 
   1131       1.1    jruoho ACPI_STATUS
   1132       1.1    jruoho AcpiUtReleaseMutex (
   1133       1.1    jruoho     ACPI_MUTEX_HANDLE       MutexId);
   1134       1.1    jruoho 
   1135       1.1    jruoho 
   1136       1.1    jruoho /*
   1137       1.1    jruoho  * utalloc - memory allocation and object caching
   1138       1.1    jruoho  */
   1139       1.1    jruoho ACPI_STATUS
   1140       1.1    jruoho AcpiUtCreateCaches (
   1141       1.1    jruoho     void);
   1142       1.1    jruoho 
   1143       1.1    jruoho ACPI_STATUS
   1144       1.1    jruoho AcpiUtDeleteCaches (
   1145       1.1    jruoho     void);
   1146       1.1    jruoho 
   1147       1.1    jruoho ACPI_STATUS
   1148       1.1    jruoho AcpiUtValidateBuffer (
   1149       1.1    jruoho     ACPI_BUFFER             *Buffer);
   1150       1.1    jruoho 
   1151       1.1    jruoho ACPI_STATUS
   1152       1.1    jruoho AcpiUtInitializeBuffer (
   1153       1.1    jruoho     ACPI_BUFFER             *Buffer,
   1154       1.1    jruoho     ACPI_SIZE               RequiredLength);
   1155       1.1    jruoho 
   1156       1.1    jruoho #ifdef ACPI_DBG_TRACK_ALLOCATIONS
   1157       1.1    jruoho void *
   1158       1.1    jruoho AcpiUtAllocateAndTrack (
   1159       1.1    jruoho     ACPI_SIZE               Size,
   1160       1.1    jruoho     UINT32                  Component,
   1161       1.1    jruoho     const char              *Module,
   1162       1.1    jruoho     UINT32                  Line);
   1163       1.1    jruoho 
   1164       1.1    jruoho void *
   1165       1.1    jruoho AcpiUtAllocateZeroedAndTrack (
   1166       1.1    jruoho     ACPI_SIZE               Size,
   1167       1.1    jruoho     UINT32                  Component,
   1168       1.1    jruoho     const char              *Module,
   1169       1.1    jruoho     UINT32                  Line);
   1170       1.1    jruoho 
   1171       1.1    jruoho void
   1172       1.1    jruoho AcpiUtFreeAndTrack (
   1173       1.1    jruoho     void                    *Address,
   1174       1.1    jruoho     UINT32                  Component,
   1175       1.1    jruoho     const char              *Module,
   1176       1.1    jruoho     UINT32                  Line);
   1177       1.1    jruoho 
   1178       1.1    jruoho void
   1179       1.1    jruoho AcpiUtDumpAllocationInfo (
   1180       1.1    jruoho     void);
   1181       1.1    jruoho 
   1182       1.1    jruoho void
   1183       1.1    jruoho AcpiUtDumpAllocations (
   1184       1.1    jruoho     UINT32                  Component,
   1185       1.1    jruoho     const char              *Module);
   1186       1.1    jruoho 
   1187       1.1    jruoho ACPI_STATUS
   1188       1.1    jruoho AcpiUtCreateList (
   1189       1.2    jruoho     const char              *ListName,
   1190       1.1    jruoho     UINT16                  ObjectSize,
   1191       1.1    jruoho     ACPI_MEMORY_LIST        **ReturnCache);
   1192       1.1    jruoho 
   1193       1.3    jruoho #endif /* ACPI_DBG_TRACK_ALLOCATIONS */
   1194       1.3    jruoho 
   1195       1.9  christos 
   1196       1.6  christos /*
   1197       1.6  christos  * utaddress - address range check
   1198       1.6  christos  */
   1199       1.6  christos ACPI_STATUS
   1200       1.6  christos AcpiUtAddAddressRange (
   1201       1.6  christos     ACPI_ADR_SPACE_TYPE     SpaceId,
   1202       1.6  christos     ACPI_PHYSICAL_ADDRESS   Address,
   1203       1.6  christos     UINT32                  Length,
   1204       1.6  christos     ACPI_NAMESPACE_NODE     *RegionNode);
   1205       1.6  christos 
   1206       1.6  christos void
   1207       1.6  christos AcpiUtRemoveAddressRange (
   1208       1.6  christos     ACPI_ADR_SPACE_TYPE     SpaceId,
   1209       1.6  christos     ACPI_NAMESPACE_NODE     *RegionNode);
   1210       1.6  christos 
   1211       1.6  christos UINT32
   1212       1.6  christos AcpiUtCheckAddressRange (
   1213       1.6  christos     ACPI_ADR_SPACE_TYPE     SpaceId,
   1214       1.6  christos     ACPI_PHYSICAL_ADDRESS   Address,
   1215       1.6  christos     UINT32                  Length,
   1216       1.6  christos     BOOLEAN                 Warn);
   1217       1.6  christos 
   1218       1.6  christos void
   1219       1.6  christos AcpiUtDeleteAddressLists (
   1220       1.6  christos     void);
   1221       1.3    jruoho 
   1222       1.9  christos 
   1223       1.3    jruoho /*
   1224       1.3    jruoho  * utxferror - various error/warning output functions
   1225       1.3    jruoho  */
   1226      1.20  christos ACPI_PRINTF_LIKE(5)
   1227       1.3    jruoho void ACPI_INTERNAL_VAR_XFACE
   1228       1.3    jruoho AcpiUtPredefinedWarning (
   1229       1.3    jruoho     const char              *ModuleName,
   1230       1.3    jruoho     UINT32                  LineNumber,
   1231       1.3    jruoho     char                    *Pathname,
   1232      1.20  christos     UINT16                  NodeFlags,
   1233       1.3    jruoho     const char              *Format,
   1234       1.3    jruoho     ...);
   1235       1.3    jruoho 
   1236      1.20  christos ACPI_PRINTF_LIKE(5)
   1237       1.3    jruoho void ACPI_INTERNAL_VAR_XFACE
   1238       1.3    jruoho AcpiUtPredefinedInfo (
   1239       1.3    jruoho     const char              *ModuleName,
   1240       1.3    jruoho     UINT32                  LineNumber,
   1241       1.3    jruoho     char                    *Pathname,
   1242      1.20  christos     UINT16                  NodeFlags,
   1243       1.3    jruoho     const char              *Format,
   1244       1.3    jruoho     ...);
   1245       1.3    jruoho 
   1246      1.20  christos ACPI_PRINTF_LIKE(5)
   1247       1.6  christos void ACPI_INTERNAL_VAR_XFACE
   1248       1.6  christos AcpiUtPredefinedBiosError (
   1249       1.6  christos     const char              *ModuleName,
   1250       1.6  christos     UINT32                  LineNumber,
   1251       1.6  christos     char                    *Pathname,
   1252      1.20  christos     UINT16                  NodeFlags,
   1253       1.6  christos     const char              *Format,
   1254       1.6  christos     ...);
   1255       1.6  christos 
   1256       1.3    jruoho void
   1257      1.16  christos AcpiUtPrefixedNamespaceError (
   1258       1.3    jruoho     const char              *ModuleName,
   1259       1.3    jruoho     UINT32                  LineNumber,
   1260      1.16  christos     ACPI_GENERIC_STATE      *PrefixScope,
   1261       1.3    jruoho     const char              *InternalName,
   1262       1.3    jruoho     ACPI_STATUS             LookupStatus);
   1263       1.1    jruoho 
   1264       1.3    jruoho void
   1265       1.3    jruoho AcpiUtMethodError (
   1266       1.3    jruoho     const char              *ModuleName,
   1267       1.3    jruoho     UINT32                  LineNumber,
   1268       1.3    jruoho     const char              *Message,
   1269       1.3    jruoho     ACPI_NAMESPACE_NODE     *Node,
   1270       1.3    jruoho     const char              *Path,
   1271       1.3    jruoho     ACPI_STATUS             LookupStatus);
   1272       1.1    jruoho 
   1273       1.9  christos 
   1274       1.7  christos /*
   1275       1.7  christos  * Utility functions for ACPI names and IDs
   1276       1.7  christos  */
   1277       1.7  christos const AH_PREDEFINED_NAME *
   1278       1.7  christos AcpiAhMatchPredefinedName (
   1279       1.7  christos     char                    *Nameseg);
   1280       1.7  christos 
   1281       1.7  christos const AH_DEVICE_ID *
   1282       1.7  christos AcpiAhMatchHardwareId (
   1283       1.7  christos     char                    *Hid);
   1284       1.7  christos 
   1285       1.7  christos const char *
   1286       1.7  christos AcpiAhMatchUuid (
   1287       1.7  christos     UINT8                   *Data);
   1288       1.7  christos 
   1289       1.9  christos 
   1290       1.7  christos /*
   1291       1.7  christos  * utuuid -- UUID support functions
   1292       1.7  christos  */
   1293       1.8  christos #if (defined ACPI_ASL_COMPILER || defined ACPI_EXEC_APP || defined ACPI_HELP_APP|| defined ACPI_DISASSEMBLER)
   1294       1.7  christos void
   1295       1.7  christos AcpiUtConvertStringToUuid (
   1296       1.7  christos     const char              *InString,
   1297       1.7  christos     UINT8                   *UuidBuffer);
   1298      1.24  christos 
   1299      1.24  christos ACPI_STATUS
   1300      1.24  christos AcpiUtConvertUuidToString (
   1301      1.24  christos     char                    *UuidBuffer,
   1302      1.24  christos     char                    *OutString);
   1303       1.8  christos #endif
   1304       1.7  christos 
   1305       1.1    jruoho #endif /* _ACUTILS_H */
   1306