Home | History | Annotate | Line # | Download | only in include
      1   1.1    jruoho /******************************************************************************
      2   1.1    jruoho  *
      3   1.1    jruoho  * Name: acpixf.h - External interfaces to the ACPI subsystem
      4   1.1    jruoho  *
      5   1.1    jruoho  *****************************************************************************/
      6   1.1    jruoho 
      7  1.37  christos /******************************************************************************
      8  1.37  christos  *
      9  1.37  christos  * 1. Copyright Notice
     10  1.37  christos  *
     11  1.38  christos  * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.
     12   1.1    jruoho  * All rights reserved.
     13   1.1    jruoho  *
     14  1.37  christos  * 2. License
     15  1.37  christos  *
     16  1.37  christos  * 2.1. This is your license from Intel Corp. under its intellectual property
     17  1.37  christos  * rights. You may have additional license terms from the party that provided
     18  1.37  christos  * you this software, covering your right to use that party's intellectual
     19  1.37  christos  * property rights.
     20  1.37  christos  *
     21  1.37  christos  * 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a
     22  1.37  christos  * copy of the source code appearing in this file ("Covered Code") an
     23  1.37  christos  * irrevocable, perpetual, worldwide license under Intel's copyrights in the
     24  1.37  christos  * base code distributed originally by Intel ("Original Intel Code") to copy,
     25  1.37  christos  * make derivatives, distribute, use and display any portion of the Covered
     26  1.37  christos  * Code in any form, with the right to sublicense such rights; and
     27  1.37  christos  *
     28  1.37  christos  * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent
     29  1.37  christos  * license (with the right to sublicense), under only those claims of Intel
     30  1.37  christos  * patents that are infringed by the Original Intel Code, to make, use, sell,
     31  1.37  christos  * offer to sell, and import the Covered Code and derivative works thereof
     32  1.37  christos  * solely to the minimum extent necessary to exercise the above copyright
     33  1.37  christos  * license, and in no event shall the patent license extend to any additions
     34  1.37  christos  * to or modifications of the Original Intel Code. No other license or right
     35  1.37  christos  * is granted directly or by implication, estoppel or otherwise;
     36  1.37  christos  *
     37  1.37  christos  * The above copyright and patent license is granted only if the following
     38  1.37  christos  * conditions are met:
     39  1.37  christos  *
     40  1.37  christos  * 3. Conditions
     41  1.37  christos  *
     42  1.37  christos  * 3.1. Redistribution of Source with Rights to Further Distribute Source.
     43  1.37  christos  * Redistribution of source code of any substantial portion of the Covered
     44  1.37  christos  * Code or modification with rights to further distribute source must include
     45  1.37  christos  * the above Copyright Notice, the above License, this list of Conditions,
     46  1.37  christos  * and the following Disclaimer and Export Compliance provision. In addition,
     47  1.37  christos  * Licensee must cause all Covered Code to which Licensee contributes to
     48  1.37  christos  * contain a file documenting the changes Licensee made to create that Covered
     49  1.37  christos  * Code and the date of any change. Licensee must include in that file the
     50  1.37  christos  * documentation of any changes made by any predecessor Licensee. Licensee
     51  1.37  christos  * must include a prominent statement that the modification is derived,
     52  1.37  christos  * directly or indirectly, from Original Intel Code.
     53  1.37  christos  *
     54  1.37  christos  * 3.2. Redistribution of Source with no Rights to Further Distribute Source.
     55  1.37  christos  * Redistribution of source code of any substantial portion of the Covered
     56  1.37  christos  * Code or modification without rights to further distribute source must
     57  1.37  christos  * include the following Disclaimer and Export Compliance provision in the
     58  1.37  christos  * documentation and/or other materials provided with distribution. In
     59  1.37  christos  * addition, Licensee may not authorize further sublicense of source of any
     60  1.37  christos  * portion of the Covered Code, and must include terms to the effect that the
     61  1.37  christos  * license from Licensee to its licensee is limited to the intellectual
     62  1.37  christos  * property embodied in the software Licensee provides to its licensee, and
     63  1.37  christos  * not to intellectual property embodied in modifications its licensee may
     64  1.37  christos  * make.
     65  1.37  christos  *
     66  1.37  christos  * 3.3. Redistribution of Executable. Redistribution in executable form of any
     67  1.37  christos  * substantial portion of the Covered Code or modification must reproduce the
     68  1.37  christos  * above Copyright Notice, and the following Disclaimer and Export Compliance
     69  1.37  christos  * provision in the documentation and/or other materials provided with the
     70  1.37  christos  * distribution.
     71  1.37  christos  *
     72  1.37  christos  * 3.4. Intel retains all right, title, and interest in and to the Original
     73  1.37  christos  * Intel Code.
     74  1.37  christos  *
     75  1.37  christos  * 3.5. Neither the name Intel nor any other trademark owned or controlled by
     76  1.37  christos  * Intel shall be used in advertising or otherwise to promote the sale, use or
     77  1.37  christos  * other dealings in products derived from or relating to the Covered Code
     78  1.37  christos  * without prior written authorization from Intel.
     79  1.37  christos  *
     80  1.37  christos  * 4. Disclaimer and Export Compliance
     81  1.37  christos  *
     82  1.37  christos  * 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED
     83  1.37  christos  * HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE
     84  1.37  christos  * IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,
     85  1.37  christos  * INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY
     86  1.37  christos  * UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY
     87  1.37  christos  * IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A
     88  1.37  christos  * PARTICULAR PURPOSE.
     89  1.37  christos  *
     90  1.37  christos  * 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES
     91  1.37  christos  * OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR
     92  1.37  christos  * COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,
     93  1.37  christos  * SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY
     94  1.37  christos  * CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL
     95  1.37  christos  * HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS
     96  1.37  christos  * SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY
     97  1.37  christos  * LIMITED REMEDY.
     98  1.37  christos  *
     99  1.37  christos  * 4.3. Licensee shall not export, either directly or indirectly, any of this
    100  1.37  christos  * software or system incorporating such software without first obtaining any
    101  1.37  christos  * required license or other approval from the U. S. Department of Commerce or
    102  1.37  christos  * any other agency or department of the United States Government. In the
    103  1.37  christos  * event Licensee exports any such software from the United States or
    104  1.37  christos  * re-exports any such software from a foreign destination, Licensee shall
    105  1.37  christos  * ensure that the distribution and export/re-export of the software is in
    106  1.37  christos  * compliance with all laws, regulations, orders, or other restrictions of the
    107  1.37  christos  * U.S. Export Administration Regulations. Licensee agrees that neither it nor
    108  1.37  christos  * any of its subsidiaries will export/re-export any technical data, process,
    109  1.37  christos  * software, or service, directly or indirectly, to any country for which the
    110  1.37  christos  * United States government or any agency thereof requires an export license,
    111  1.37  christos  * other governmental approval, or letter of assurance, without first obtaining
    112  1.37  christos  * such license, approval or letter.
    113  1.37  christos  *
    114  1.37  christos  *****************************************************************************
    115  1.37  christos  *
    116  1.37  christos  * Alternatively, you may choose to be licensed under the terms of the
    117  1.37  christos  * following license:
    118  1.37  christos  *
    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.29  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.37  christos  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    139  1.37  christos  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    140  1.37  christos  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    141  1.37  christos  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    142  1.37  christos  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    143  1.37  christos  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    144  1.37  christos  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    145  1.37  christos  *
    146  1.37  christos  * Alternatively, you may choose to be licensed under the terms of the
    147  1.37  christos  * GNU General Public License ("GPL") version 2 as published by the Free
    148  1.37  christos  * Software Foundation.
    149  1.37  christos  *
    150  1.37  christos  *****************************************************************************/
    151   1.1    jruoho 
    152   1.1    jruoho #ifndef __ACXFACE_H__
    153   1.1    jruoho #define __ACXFACE_H__
    154   1.1    jruoho 
    155   1.1    jruoho /* Current ACPICA subsystem version in YYYYMMDD format */
    156   1.1    jruoho 
    157  1.38  christos #define ACPI_CA_VERSION                 0x20250807
    158   1.1    jruoho 
    159   1.6  christos #include "acconfig.h"
    160   1.1    jruoho #include "actypes.h"
    161   1.1    jruoho #include "actbl.h"
    162   1.6  christos #include "acbuffer.h"
    163   1.1    jruoho 
    164   1.7  christos 
    165   1.7  christos /*****************************************************************************
    166   1.7  christos  *
    167   1.7  christos  * Macros used for ACPICA globals and configuration
    168   1.7  christos  *
    169   1.7  christos  ****************************************************************************/
    170   1.7  christos 
    171   1.7  christos /*
    172   1.7  christos  * Ensure that global variables are defined and initialized only once.
    173   1.7  christos  *
    174   1.7  christos  * The use of these macros allows for a single list of globals (here)
    175   1.7  christos  * in order to simplify maintenance of the code.
    176   1.7  christos  */
    177   1.7  christos #ifdef DEFINE_ACPI_GLOBALS
    178   1.7  christos #define ACPI_GLOBAL(type,name) \
    179   1.7  christos     extern type name; \
    180   1.7  christos     type name
    181   1.7  christos 
    182   1.7  christos #define ACPI_INIT_GLOBAL(type,name,value) \
    183   1.7  christos     type name=value
    184   1.7  christos 
    185   1.7  christos #else
    186   1.7  christos #ifndef ACPI_GLOBAL
    187   1.7  christos #define ACPI_GLOBAL(type,name) \
    188   1.7  christos     extern type name
    189   1.7  christos #endif
    190   1.7  christos 
    191   1.7  christos #ifndef ACPI_INIT_GLOBAL
    192   1.7  christos #define ACPI_INIT_GLOBAL(type,name,value) \
    193   1.7  christos     extern type name
    194   1.7  christos #endif
    195   1.7  christos #endif
    196   1.7  christos 
    197   1.7  christos /*
    198   1.7  christos  * These macros configure the various ACPICA interfaces. They are
    199   1.7  christos  * useful for generating stub inline functions for features that are
    200   1.7  christos  * configured out of the current kernel or ACPICA application.
    201   1.7  christos  */
    202   1.7  christos #ifndef ACPI_EXTERNAL_RETURN_STATUS
    203   1.7  christos #define ACPI_EXTERNAL_RETURN_STATUS(Prototype) \
    204   1.7  christos     Prototype;
    205   1.7  christos #endif
    206   1.7  christos 
    207   1.7  christos #ifndef ACPI_EXTERNAL_RETURN_OK
    208   1.7  christos #define ACPI_EXTERNAL_RETURN_OK(Prototype) \
    209   1.7  christos     Prototype;
    210   1.7  christos #endif
    211   1.7  christos 
    212   1.7  christos #ifndef ACPI_EXTERNAL_RETURN_VOID
    213   1.7  christos #define ACPI_EXTERNAL_RETURN_VOID(Prototype) \
    214   1.7  christos     Prototype;
    215   1.7  christos #endif
    216   1.7  christos 
    217   1.7  christos #ifndef ACPI_EXTERNAL_RETURN_UINT32
    218   1.7  christos #define ACPI_EXTERNAL_RETURN_UINT32(Prototype) \
    219   1.7  christos     Prototype;
    220   1.7  christos #endif
    221   1.7  christos 
    222   1.7  christos #ifndef ACPI_EXTERNAL_RETURN_PTR
    223   1.7  christos #define ACPI_EXTERNAL_RETURN_PTR(Prototype) \
    224   1.7  christos     Prototype;
    225   1.7  christos #endif
    226   1.7  christos 
    227   1.7  christos 
    228   1.7  christos /*****************************************************************************
    229   1.7  christos  *
    230   1.7  christos  * Public globals and runtime configuration options
    231   1.7  christos  *
    232   1.7  christos  ****************************************************************************/
    233   1.7  christos 
    234   1.7  christos /*
    235   1.7  christos  * Enable "slack mode" of the AML interpreter?  Default is FALSE, and the
    236   1.7  christos  * interpreter strictly follows the ACPI specification. Setting to TRUE
    237   1.7  christos  * allows the interpreter to ignore certain errors and/or bad AML constructs.
    238   1.7  christos  *
    239   1.7  christos  * Currently, these features are enabled by this flag:
    240   1.7  christos  *
    241   1.7  christos  * 1) Allow "implicit return" of last value in a control method
    242   1.7  christos  * 2) Allow access beyond the end of an operation region
    243   1.7  christos  * 3) Allow access to uninitialized locals/args (auto-init to integer 0)
    244   1.7  christos  * 4) Allow ANY object type to be a source operand for the Store() operator
    245   1.7  christos  * 5) Allow unresolved references (invalid target name) in package objects
    246   1.7  christos  * 6) Enable warning messages for behavior that is not ACPI spec compliant
    247   1.7  christos  */
    248   1.7  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_EnableInterpreterSlack, FALSE);
    249   1.7  christos 
    250   1.7  christos /*
    251   1.7  christos  * Automatically serialize all methods that create named objects? Default
    252   1.7  christos  * is TRUE, meaning that all NonSerialized methods are scanned once at
    253   1.7  christos  * table load time to determine those that create named objects. Methods
    254   1.7  christos  * that create named objects are marked Serialized in order to prevent
    255   1.7  christos  * possible run-time problems if they are entered by more than one thread.
    256   1.7  christos  */
    257   1.7  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_AutoSerializeMethods, TRUE);
    258   1.7  christos 
    259   1.7  christos /*
    260   1.7  christos  * Create the predefined _OSI method in the namespace? Default is TRUE
    261   1.7  christos  * because ACPICA is fully compatible with other ACPI implementations.
    262   1.7  christos  * Changing this will revert ACPICA (and machine ASL) to pre-OSI behavior.
    263   1.7  christos  */
    264   1.7  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_CreateOsiMethod, TRUE);
    265   1.7  christos 
    266   1.7  christos /*
    267   1.7  christos  * Optionally use default values for the ACPI register widths. Set this to
    268   1.7  christos  * TRUE to use the defaults, if an FADT contains incorrect widths/lengths.
    269   1.7  christos  */
    270   1.7  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_UseDefaultRegisterWidths, TRUE);
    271   1.7  christos 
    272   1.7  christos /*
    273  1.16  christos  * Whether or not to validate (map) an entire table to verify
    274  1.16  christos  * checksum/duplication in early stage before install. Set this to TRUE to
    275  1.16  christos  * allow early table validation before install it to the table manager.
    276  1.16  christos  * Note that enabling this option causes errors to happen in some OSPMs
    277  1.16  christos  * during early initialization stages. Default behavior is to allow such
    278  1.16  christos  * validation.
    279   1.7  christos  */
    280  1.16  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_EnableTableValidation, TRUE);
    281   1.7  christos 
    282   1.7  christos /*
    283   1.7  christos  * Optionally enable output from the AML Debug Object.
    284   1.7  christos  */
    285   1.7  christos ACPI_INIT_GLOBAL (_Bool,            AcpiGbl_EnableAmlDebugObject, FALSE);
    286   1.7  christos 
    287   1.7  christos /*
    288   1.7  christos  * Optionally copy the entire DSDT to local memory (instead of simply
    289   1.7  christos  * mapping it.) There are some BIOSs that corrupt or replace the original
    290   1.7  christos  * DSDT, creating the need for this option. Default is FALSE, do not copy
    291   1.7  christos  * the DSDT.
    292   1.7  christos  */
    293   1.7  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_CopyDsdtLocally, FALSE);
    294   1.7  christos 
    295   1.7  christos /*
    296   1.7  christos  * Optionally ignore an XSDT if present and use the RSDT instead.
    297   1.7  christos  * Although the ACPI specification requires that an XSDT be used instead
    298   1.7  christos  * of the RSDT, the XSDT has been found to be corrupt or ill-formed on
    299   1.7  christos  * some machines. Default behavior is to use the XSDT if present.
    300   1.7  christos  */
    301   1.7  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_DoNotUseXsdt, FALSE);
    302   1.7  christos 
    303   1.7  christos /*
    304   1.7  christos  * Optionally use 32-bit FADT addresses if and when there is a conflict
    305   1.7  christos  * (address mismatch) between the 32-bit and 64-bit versions of the
    306   1.7  christos  * address. Although ACPICA adheres to the ACPI specification which
    307   1.7  christos  * requires the use of the corresponding 64-bit address if it is non-zero,
    308   1.7  christos  * some machines have been found to have a corrupted non-zero 64-bit
    309   1.7  christos  * address. Default is FALSE, do not favor the 32-bit addresses.
    310   1.7  christos  */
    311   1.7  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_Use32BitFadtAddresses, FALSE);
    312   1.7  christos 
    313   1.7  christos /*
    314   1.9  christos  * Optionally use 32-bit FACS table addresses.
    315   1.9  christos  * It is reported that some platforms fail to resume from system suspending
    316   1.9  christos  * if 64-bit FACS table address is selected:
    317   1.9  christos  * https://bugzilla.kernel.org/show_bug.cgi?id=74021
    318   1.9  christos  * Default is TRUE, favor the 32-bit addresses.
    319   1.9  christos  */
    320   1.9  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_Use32BitFacsAddresses, TRUE);
    321   1.9  christos 
    322   1.9  christos /*
    323   1.7  christos  * Optionally truncate I/O addresses to 16 bits. Provides compatibility
    324   1.7  christos  * with other ACPI implementations. NOTE: During ACPICA initialization,
    325   1.7  christos  * this value is set to TRUE if any Windows OSI strings have been
    326   1.7  christos  * requested by the BIOS.
    327   1.7  christos  */
    328   1.7  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_TruncateIoAddresses, FALSE);
    329   1.7  christos 
    330   1.7  christos /*
    331   1.7  christos  * Disable runtime checking and repair of values returned by control methods.
    332   1.7  christos  * Use only if the repair is causing a problem on a particular machine.
    333   1.7  christos  */
    334   1.7  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_DisableAutoRepair, FALSE);
    335   1.7  christos 
    336   1.7  christos /*
    337   1.7  christos  * Optionally do not install any SSDTs from the RSDT/XSDT during initialization.
    338   1.7  christos  * This can be useful for debugging ACPI problems on some machines.
    339   1.7  christos  */
    340   1.7  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_DisableSsdtTableInstall, FALSE);
    341   1.7  christos 
    342   1.7  christos /*
    343   1.9  christos  * Optionally enable runtime namespace override.
    344   1.9  christos  */
    345   1.9  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_RuntimeNamespaceOverride, TRUE);
    346   1.9  christos 
    347   1.9  christos /*
    348   1.7  christos  * We keep track of the latest version of Windows that has been requested by
    349   1.7  christos  * the BIOS. ACPI 5.0.
    350   1.7  christos  */
    351   1.7  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_OsiData, 0);
    352   1.7  christos 
    353   1.7  christos /*
    354   1.7  christos  * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning
    355   1.7  christos  * that the ACPI hardware is no longer required. A flag in the FADT indicates
    356   1.7  christos  * a reduced HW machine, and that flag is duplicated here for convenience.
    357   1.7  christos  */
    358   1.7  christos ACPI_INIT_GLOBAL (BOOLEAN,          AcpiGbl_ReducedHardware, FALSE);
    359   1.7  christos 
    360   1.7  christos /*
    361  1.38  christos  * ACPI Global Lock is mainly used for systems with SMM, so no-SMM systems
    362  1.38  christos  * (such as LoongArch) may not have and not use Global Lock.
    363  1.38  christos  */
    364  1.38  christos ACPI_INIT_GLOBAL (BOOLEAN,          AcpiGbl_UseGlobalLock, TRUE);
    365  1.38  christos 
    366  1.38  christos /*
    367  1.17  christos  * Maximum timeout for While() loop iterations before forced method abort.
    368  1.13  christos  * This mechanism is intended to prevent infinite loops during interpreter
    369  1.13  christos  * execution within a host kernel.
    370  1.13  christos  */
    371  1.17  christos ACPI_INIT_GLOBAL (UINT32,           AcpiGbl_MaxLoopIterations, ACPI_MAX_LOOP_TIMEOUT);
    372  1.13  christos 
    373  1.13  christos /*
    374  1.18  christos  * Optionally ignore AE_NOT_FOUND errors from named reference package elements
    375  1.18  christos  * during DSDT/SSDT table loading. This reduces error "noise" in platforms
    376  1.18  christos  * whose firmware is carrying around a bunch of unused package objects that
    377  1.18  christos  * refer to non-existent named objects. However, If the AML actually tries to
    378  1.18  christos  * use such a package, the unresolved element(s) will be replaced with NULL
    379  1.18  christos  * elements.
    380  1.18  christos  */
    381  1.18  christos ACPI_INIT_GLOBAL (BOOLEAN,          AcpiGbl_IgnorePackageResolutionErrors, FALSE);
    382  1.18  christos 
    383  1.18  christos /*
    384   1.7  christos  * This mechanism is used to trace a specified AML method. The method is
    385   1.7  christos  * traced each time it is executed.
    386   1.7  christos  */
    387   1.7  christos ACPI_INIT_GLOBAL (UINT32,           AcpiGbl_TraceFlags, 0);
    388   1.9  christos ACPI_INIT_GLOBAL (const char *,     AcpiGbl_TraceMethodName, NULL);
    389   1.9  christos ACPI_INIT_GLOBAL (UINT32,           AcpiGbl_TraceDbgLevel, ACPI_TRACE_LEVEL_DEFAULT);
    390   1.9  christos ACPI_INIT_GLOBAL (UINT32,           AcpiGbl_TraceDbgLayer, ACPI_TRACE_LAYER_DEFAULT);
    391   1.7  christos 
    392   1.1    jruoho /*
    393   1.7  christos  * Runtime configuration of debug output control masks. We want the debug
    394   1.7  christos  * switches statically initialized so they are already set when the debugger
    395   1.7  christos  * is entered.
    396   1.1    jruoho  */
    397  1.21  christos #if defined(ACPI_DEBUG_OUTPUT) && defined(ACPI_DEBUG_TRACE)
    398   1.7  christos ACPI_INIT_GLOBAL (UINT32,           AcpiDbgLevel, ACPI_DEBUG_DEFAULT);
    399   1.7  christos #else
    400   1.7  christos ACPI_INIT_GLOBAL (UINT32,           AcpiDbgLevel, ACPI_NORMAL_DEFAULT);
    401   1.7  christos #endif
    402   1.7  christos ACPI_INIT_GLOBAL (UINT32,           AcpiDbgLayer, ACPI_COMPONENT_DEFAULT);
    403   1.7  christos 
    404  1.10  christos /* Optionally enable timer output with Debug Object output */
    405  1.10  christos 
    406  1.10  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_DisplayDebugTimer, FALSE);
    407  1.10  christos 
    408   1.7  christos /*
    409  1.14  christos  * Debugger command handshake globals. Host OSes need to access these
    410  1.14  christos  * variables to implement their own command handshake mechanism.
    411  1.14  christos  */
    412  1.14  christos #ifdef ACPI_DEBUGGER
    413  1.14  christos ACPI_INIT_GLOBAL (BOOLEAN,          AcpiGbl_MethodExecuting, FALSE);
    414  1.14  christos ACPI_GLOBAL (char,                  AcpiGbl_DbLineBuf[ACPI_DB_LINE_BUFFER_SIZE]);
    415  1.14  christos #endif
    416  1.14  christos 
    417  1.14  christos /*
    418   1.7  christos  * Other miscellaneous globals
    419   1.7  christos  */
    420   1.7  christos ACPI_GLOBAL (ACPI_TABLE_FADT,       AcpiGbl_FADT);
    421   1.7  christos ACPI_GLOBAL (UINT32,                AcpiCurrentGpeCount);
    422   1.7  christos ACPI_GLOBAL (BOOLEAN,               AcpiGbl_SystemAwakeAndRunning);
    423   1.6  christos 
    424   1.6  christos 
    425   1.7  christos /*****************************************************************************
    426   1.7  christos  *
    427   1.7  christos  * ACPICA public interface configuration.
    428   1.7  christos  *
    429   1.7  christos  * Interfaces that are configured out of the ACPICA build are replaced
    430   1.7  christos  * by inlined stubs by default.
    431   1.7  christos  *
    432   1.7  christos  ****************************************************************************/
    433   1.7  christos 
    434   1.6  christos /*
    435   1.7  christos  * Hardware-reduced prototypes (default: Not hardware reduced).
    436   1.7  christos  *
    437   1.7  christos  * All ACPICA hardware-related interfaces that use these macros will be
    438   1.7  christos  * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag
    439   1.6  christos  * is set to TRUE.
    440   1.7  christos  *
    441   1.7  christos  * Note: This static build option for reduced hardware is intended to
    442   1.7  christos  * reduce ACPICA code size if desired or necessary. However, even if this
    443   1.7  christos  * option is not specified, the runtime behavior of ACPICA is dependent
    444   1.7  christos  * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set,
    445   1.7  christos  * the flag will enable similar behavior -- ACPICA will not attempt
    446   1.7  christos  * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.)
    447   1.6  christos  */
    448   1.6  christos #if (!ACPI_REDUCED_HARDWARE)
    449   1.6  christos #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
    450   1.7  christos     ACPI_EXTERNAL_RETURN_STATUS(Prototype)
    451   1.6  christos 
    452   1.6  christos #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
    453   1.7  christos     ACPI_EXTERNAL_RETURN_OK(Prototype)
    454   1.6  christos 
    455  1.23  christos #define ACPI_HW_DEPENDENT_RETURN_UINT32(prototype) \
    456  1.23  christos     ACPI_EXTERNAL_RETURN_UINT32(prototype)
    457  1.23  christos 
    458   1.6  christos #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
    459   1.7  christos     ACPI_EXTERNAL_RETURN_VOID(Prototype)
    460   1.6  christos 
    461   1.6  christos #else
    462   1.6  christos #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
    463   1.6  christos     static ACPI_INLINE Prototype {return(AE_NOT_CONFIGURED);}
    464   1.6  christos 
    465   1.6  christos #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
    466   1.6  christos     static ACPI_INLINE Prototype {return(AE_OK);}
    467   1.6  christos 
    468  1.23  christos #define ACPI_HW_DEPENDENT_RETURN_UINT32(prototype) \
    469  1.23  christos     static ACPI_INLINE prototype {return(0);}
    470  1.23  christos 
    471   1.6  christos #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
    472   1.6  christos     static ACPI_INLINE Prototype {return;}
    473   1.6  christos 
    474   1.6  christos #endif /* !ACPI_REDUCED_HARDWARE */
    475   1.1    jruoho 
    476   1.1    jruoho 
    477   1.1    jruoho /*
    478   1.7  christos  * Error message prototypes (default: error messages enabled).
    479   1.7  christos  *
    480   1.7  christos  * All interfaces related to error and warning messages
    481   1.7  christos  * will be configured out of the ACPICA build if the
    482   1.7  christos  * ACPI_NO_ERROR_MESSAGE flag is defined.
    483   1.7  christos  */
    484   1.7  christos #ifndef ACPI_NO_ERROR_MESSAGES
    485   1.7  christos #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
    486   1.7  christos     Prototype;
    487   1.7  christos 
    488   1.7  christos #else
    489   1.7  christos #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
    490   1.7  christos     static ACPI_INLINE Prototype {return;}
    491   1.7  christos 
    492   1.7  christos #endif /* ACPI_NO_ERROR_MESSAGES */
    493   1.7  christos 
    494   1.7  christos 
    495   1.7  christos /*
    496   1.7  christos  * Debugging output prototypes (default: no debug output).
    497   1.7  christos  *
    498   1.7  christos  * All interfaces related to debug output messages
    499   1.7  christos  * will be configured out of the ACPICA build unless the
    500   1.7  christos  * ACPI_DEBUG_OUTPUT flag is defined.
    501   1.7  christos  */
    502   1.7  christos #ifdef ACPI_DEBUG_OUTPUT
    503   1.7  christos #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
    504   1.7  christos     Prototype;
    505   1.7  christos 
    506   1.7  christos #else
    507   1.7  christos #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
    508   1.7  christos     static ACPI_INLINE Prototype {return;}
    509   1.7  christos 
    510   1.7  christos #endif /* ACPI_DEBUG_OUTPUT */
    511   1.7  christos 
    512   1.7  christos 
    513   1.7  christos /*
    514   1.7  christos  * Application prototypes
    515   1.7  christos  *
    516   1.7  christos  * All interfaces used by application will be configured
    517   1.7  christos  * out of the ACPICA build unless the ACPI_APPLICATION
    518   1.7  christos  * flag is defined.
    519   1.7  christos  */
    520   1.7  christos #ifdef ACPI_APPLICATION
    521   1.7  christos #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
    522   1.7  christos     Prototype;
    523   1.7  christos 
    524   1.7  christos #else
    525   1.7  christos #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
    526   1.7  christos     static ACPI_INLINE Prototype {return;}
    527   1.7  christos 
    528   1.7  christos #endif /* ACPI_APPLICATION */
    529   1.7  christos 
    530   1.7  christos 
    531  1.10  christos /*
    532  1.10  christos  * Debugger prototypes
    533  1.10  christos  *
    534  1.10  christos  * All interfaces used by debugger will be configured
    535  1.10  christos  * out of the ACPICA build unless the ACPI_DEBUGGER
    536  1.10  christos  * flag is defined.
    537  1.10  christos  */
    538  1.10  christos #ifdef ACPI_DEBUGGER
    539  1.10  christos #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
    540  1.10  christos     ACPI_EXTERNAL_RETURN_OK(Prototype)
    541  1.10  christos 
    542  1.10  christos #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
    543  1.10  christos     ACPI_EXTERNAL_RETURN_VOID(Prototype)
    544  1.10  christos 
    545  1.10  christos #else
    546  1.10  christos #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
    547  1.10  christos     static ACPI_INLINE Prototype {return(AE_OK);}
    548  1.10  christos 
    549  1.10  christos #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
    550  1.10  christos     static ACPI_INLINE Prototype {return;}
    551  1.10  christos 
    552  1.10  christos #endif /* ACPI_DEBUGGER */
    553  1.10  christos 
    554  1.10  christos 
    555   1.7  christos /*****************************************************************************
    556   1.7  christos  *
    557   1.7  christos  * ACPICA public interface prototypes
    558   1.7  christos  *
    559   1.7  christos  ****************************************************************************/
    560   1.7  christos 
    561   1.7  christos /*
    562   1.3    jruoho  * Initialization
    563   1.1    jruoho  */
    564   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    565  1.13  christos ACPI_STATUS ACPI_INIT_FUNCTION
    566   1.1    jruoho AcpiInitializeTables (
    567   1.1    jruoho     ACPI_TABLE_DESC         *InitialStorage,
    568   1.1    jruoho     UINT32                  InitialTableCount,
    569   1.7  christos     BOOLEAN                 AllowResize))
    570   1.1    jruoho 
    571   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    572  1.13  christos ACPI_STATUS ACPI_INIT_FUNCTION
    573   1.1    jruoho AcpiInitializeSubsystem (
    574   1.7  christos     void))
    575   1.1    jruoho 
    576   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    577  1.13  christos ACPI_STATUS ACPI_INIT_FUNCTION
    578   1.1    jruoho AcpiEnableSubsystem (
    579   1.7  christos     UINT32                  Flags))
    580   1.1    jruoho 
    581   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    582  1.13  christos ACPI_STATUS ACPI_INIT_FUNCTION
    583   1.1    jruoho AcpiInitializeObjects (
    584   1.7  christos     UINT32                  Flags))
    585   1.1    jruoho 
    586   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    587  1.13  christos ACPI_STATUS ACPI_INIT_FUNCTION
    588   1.1    jruoho AcpiTerminate (
    589   1.7  christos     void))
    590   1.1    jruoho 
    591   1.3    jruoho 
    592   1.3    jruoho /*
    593   1.3    jruoho  * Miscellaneous global interfaces
    594   1.3    jruoho  */
    595   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    596   1.1    jruoho ACPI_STATUS
    597   1.3    jruoho AcpiEnable (
    598   1.6  christos     void))
    599   1.1    jruoho 
    600   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    601   1.1    jruoho ACPI_STATUS
    602   1.3    jruoho AcpiDisable (
    603   1.6  christos     void))
    604   1.1    jruoho 
    605   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    606   1.1    jruoho ACPI_STATUS
    607   1.3    jruoho AcpiSubsystemStatus (
    608   1.7  christos     void))
    609   1.1    jruoho 
    610   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    611   1.1    jruoho ACPI_STATUS
    612   1.1    jruoho AcpiGetSystemInfo (
    613   1.7  christos     ACPI_BUFFER             *RetBuffer))
    614   1.1    jruoho 
    615   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    616   1.1    jruoho ACPI_STATUS
    617   1.1    jruoho AcpiGetStatistics (
    618   1.7  christos     ACPI_STATISTICS         *Stats))
    619   1.1    jruoho 
    620   1.7  christos ACPI_EXTERNAL_RETURN_PTR (
    621   1.1    jruoho const char *
    622   1.1    jruoho AcpiFormatException (
    623   1.7  christos     ACPI_STATUS             Exception))
    624   1.1    jruoho 
    625   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    626   1.1    jruoho ACPI_STATUS
    627   1.1    jruoho AcpiPurgeCachedObjects (
    628   1.7  christos     void))
    629   1.1    jruoho 
    630   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    631   1.3    jruoho ACPI_STATUS
    632   1.3    jruoho AcpiInstallInterface (
    633   1.7  christos     ACPI_STRING             InterfaceName))
    634   1.3    jruoho 
    635   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    636   1.3    jruoho ACPI_STATUS
    637   1.3    jruoho AcpiRemoveInterface (
    638   1.7  christos     ACPI_STRING             InterfaceName))
    639   1.3    jruoho 
    640   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    641   1.6  christos ACPI_STATUS
    642   1.6  christos AcpiUpdateInterfaces (
    643   1.7  christos     UINT8                   Action))
    644   1.6  christos 
    645   1.7  christos ACPI_EXTERNAL_RETURN_UINT32 (
    646   1.6  christos UINT32
    647   1.6  christos AcpiCheckAddressRange (
    648   1.6  christos     ACPI_ADR_SPACE_TYPE     SpaceId,
    649   1.6  christos     ACPI_PHYSICAL_ADDRESS   Address,
    650   1.6  christos     ACPI_SIZE               Length,
    651   1.7  christos     BOOLEAN                 Warn))
    652   1.6  christos 
    653   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    654   1.6  christos ACPI_STATUS
    655   1.6  christos AcpiDecodePldBuffer (
    656   1.6  christos     UINT8                   *InBuffer,
    657   1.6  christos     ACPI_SIZE               Length,
    658   1.7  christos     ACPI_PLD_INFO           **ReturnBuffer))
    659   1.6  christos 
    660   1.1    jruoho 
    661   1.1    jruoho /*
    662   1.6  christos  * ACPI table load/unload interfaces
    663   1.1    jruoho  */
    664   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    665  1.13  christos ACPI_STATUS ACPI_INIT_FUNCTION
    666   1.7  christos AcpiInstallTable (
    667  1.32  christos     ACPI_TABLE_HEADER       *Table))
    668  1.32  christos 
    669  1.32  christos ACPI_EXTERNAL_RETURN_STATUS (
    670  1.32  christos ACPI_STATUS ACPI_INIT_FUNCTION
    671  1.32  christos AcpiInstallPhysicalTable (
    672  1.32  christos     ACPI_PHYSICAL_ADDRESS   Address))
    673   1.7  christos 
    674   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    675   1.6  christos ACPI_STATUS
    676   1.6  christos AcpiLoadTable (
    677  1.24  christos     ACPI_TABLE_HEADER       *Table,
    678  1.24  christos     UINT32                  *TableIdx))
    679  1.24  christos 
    680  1.24  christos ACPI_EXTERNAL_RETURN_STATUS (
    681  1.24  christos ACPI_STATUS
    682  1.24  christos AcpiUnloadTable (
    683  1.24  christos     UINT32                  TableIndex))
    684   1.6  christos 
    685   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    686   1.6  christos ACPI_STATUS
    687   1.6  christos AcpiUnloadParentTable (
    688   1.7  christos     ACPI_HANDLE             Object))
    689   1.6  christos 
    690   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    691  1.13  christos ACPI_STATUS ACPI_INIT_FUNCTION
    692   1.6  christos AcpiLoadTables (
    693   1.7  christos     void))
    694   1.1    jruoho 
    695   1.1    jruoho 
    696   1.1    jruoho /*
    697   1.1    jruoho  * ACPI table manipulation interfaces
    698   1.1    jruoho  */
    699   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    700  1.13  christos ACPI_STATUS ACPI_INIT_FUNCTION
    701   1.1    jruoho AcpiReallocateRootTable (
    702   1.7  christos     void))
    703   1.1    jruoho 
    704   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    705  1.13  christos ACPI_STATUS ACPI_INIT_FUNCTION
    706   1.1    jruoho AcpiFindRootPointer (
    707   1.8  christos     ACPI_PHYSICAL_ADDRESS   *RsdpAddress))
    708   1.1    jruoho 
    709   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    710   1.1    jruoho ACPI_STATUS
    711   1.1    jruoho AcpiGetTableHeader (
    712   1.2    jruoho     ACPI_CONST_STRING       Signature,
    713   1.1    jruoho     UINT32                  Instance,
    714   1.7  christos     ACPI_TABLE_HEADER       *OutTableHeader))
    715   1.1    jruoho 
    716   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    717   1.1    jruoho ACPI_STATUS
    718   1.1    jruoho AcpiGetTable (
    719   1.2    jruoho     ACPI_CONST_STRING       Signature,
    720   1.1    jruoho     UINT32                  Instance,
    721   1.7  christos     ACPI_TABLE_HEADER       **OutTable))
    722   1.1    jruoho 
    723  1.14  christos ACPI_EXTERNAL_RETURN_VOID (
    724  1.14  christos void
    725  1.14  christos AcpiPutTable (
    726  1.14  christos     ACPI_TABLE_HEADER       *Table))
    727  1.14  christos 
    728   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    729   1.1    jruoho ACPI_STATUS
    730   1.1    jruoho AcpiGetTableByIndex (
    731   1.1    jruoho     UINT32                  TableIndex,
    732   1.7  christos     ACPI_TABLE_HEADER       **OutTable))
    733   1.1    jruoho 
    734   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    735   1.1    jruoho ACPI_STATUS
    736   1.1    jruoho AcpiInstallTableHandler (
    737   1.1    jruoho     ACPI_TABLE_HANDLER      Handler,
    738   1.7  christos     void                    *Context))
    739   1.1    jruoho 
    740   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    741   1.1    jruoho ACPI_STATUS
    742   1.1    jruoho AcpiRemoveTableHandler (
    743   1.7  christos     ACPI_TABLE_HANDLER      Handler))
    744   1.1    jruoho 
    745   1.1    jruoho 
    746   1.1    jruoho /*
    747   1.1    jruoho  * Namespace and name interfaces
    748   1.1    jruoho  */
    749   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    750   1.1    jruoho ACPI_STATUS
    751   1.1    jruoho AcpiWalkNamespace (
    752   1.1    jruoho     ACPI_OBJECT_TYPE        Type,
    753   1.1    jruoho     ACPI_HANDLE             StartObject,
    754   1.1    jruoho     UINT32                  MaxDepth,
    755   1.6  christos     ACPI_WALK_CALLBACK      DescendingCallback,
    756   1.6  christos     ACPI_WALK_CALLBACK      AscendingCallback,
    757   1.1    jruoho     void                    *Context,
    758   1.7  christos     void                    **ReturnValue))
    759   1.1    jruoho 
    760   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    761   1.1    jruoho ACPI_STATUS
    762   1.1    jruoho AcpiGetDevices (
    763   1.1    jruoho     char                    *HID,
    764   1.1    jruoho     ACPI_WALK_CALLBACK      UserFunction,
    765   1.1    jruoho     void                    *Context,
    766   1.7  christos     void                    **ReturnValue))
    767   1.1    jruoho 
    768   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    769   1.1    jruoho ACPI_STATUS
    770   1.1    jruoho AcpiGetName (
    771   1.1    jruoho     ACPI_HANDLE             Object,
    772   1.1    jruoho     UINT32                  NameType,
    773   1.7  christos     ACPI_BUFFER             *RetPathPtr))
    774   1.1    jruoho 
    775   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    776   1.1    jruoho ACPI_STATUS
    777   1.1    jruoho AcpiGetHandle (
    778   1.1    jruoho     ACPI_HANDLE             Parent,
    779  1.35  christos     const char              *Pathname,
    780   1.7  christos     ACPI_HANDLE             *RetHandle))
    781   1.1    jruoho 
    782   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    783   1.1    jruoho ACPI_STATUS
    784   1.1    jruoho AcpiAttachData (
    785   1.1    jruoho     ACPI_HANDLE             Object,
    786   1.1    jruoho     ACPI_OBJECT_HANDLER     Handler,
    787   1.7  christos     void                    *Data))
    788   1.1    jruoho 
    789   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    790   1.1    jruoho ACPI_STATUS
    791   1.1    jruoho AcpiDetachData (
    792   1.1    jruoho     ACPI_HANDLE             Object,
    793   1.7  christos     ACPI_OBJECT_HANDLER     Handler))
    794   1.1    jruoho 
    795   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    796   1.1    jruoho ACPI_STATUS
    797   1.1    jruoho AcpiGetData (
    798   1.1    jruoho     ACPI_HANDLE             Object,
    799   1.1    jruoho     ACPI_OBJECT_HANDLER     Handler,
    800   1.7  christos     void                    **Data))
    801   1.1    jruoho 
    802   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    803   1.1    jruoho ACPI_STATUS
    804   1.1    jruoho AcpiDebugTrace (
    805   1.9  christos     const char              *Name,
    806   1.1    jruoho     UINT32                  DebugLevel,
    807   1.1    jruoho     UINT32                  DebugLayer,
    808   1.7  christos     UINT32                  Flags))
    809   1.1    jruoho 
    810   1.1    jruoho 
    811   1.1    jruoho /*
    812   1.1    jruoho  * Object manipulation and enumeration
    813   1.1    jruoho  */
    814   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    815   1.1    jruoho ACPI_STATUS
    816   1.1    jruoho AcpiEvaluateObject (
    817   1.1    jruoho     ACPI_HANDLE             Object,
    818   1.2    jruoho     ACPI_CONST_STRING       Pathname,
    819   1.1    jruoho     ACPI_OBJECT_LIST        *ParameterObjects,
    820   1.7  christos     ACPI_BUFFER             *ReturnObjectBuffer))
    821   1.1    jruoho 
    822   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    823   1.1    jruoho ACPI_STATUS
    824   1.1    jruoho AcpiEvaluateObjectTyped (
    825   1.1    jruoho     ACPI_HANDLE             Object,
    826   1.2    jruoho     ACPI_CONST_STRING       Pathname,
    827   1.1    jruoho     ACPI_OBJECT_LIST        *ExternalParams,
    828   1.1    jruoho     ACPI_BUFFER             *ReturnBuffer,
    829   1.7  christos     ACPI_OBJECT_TYPE        ReturnType))
    830   1.1    jruoho 
    831   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    832   1.1    jruoho ACPI_STATUS
    833   1.1    jruoho AcpiGetObjectInfo (
    834   1.1    jruoho     ACPI_HANDLE             Object,
    835   1.7  christos     ACPI_DEVICE_INFO        **ReturnBuffer))
    836   1.1    jruoho 
    837   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    838   1.1    jruoho ACPI_STATUS
    839   1.1    jruoho AcpiInstallMethod (
    840   1.7  christos     UINT8                   *Buffer))
    841   1.1    jruoho 
    842   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    843   1.1    jruoho ACPI_STATUS
    844   1.1    jruoho AcpiGetNextObject (
    845   1.1    jruoho     ACPI_OBJECT_TYPE        Type,
    846   1.1    jruoho     ACPI_HANDLE             Parent,
    847   1.1    jruoho     ACPI_HANDLE             Child,
    848   1.7  christos     ACPI_HANDLE             *OutHandle))
    849   1.1    jruoho 
    850   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    851   1.1    jruoho ACPI_STATUS
    852   1.1    jruoho AcpiGetType (
    853   1.1    jruoho     ACPI_HANDLE             Object,
    854   1.7  christos     ACPI_OBJECT_TYPE        *OutType))
    855   1.1    jruoho 
    856   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    857   1.1    jruoho ACPI_STATUS
    858   1.1    jruoho AcpiGetParent (
    859   1.1    jruoho     ACPI_HANDLE             Object,
    860   1.7  christos     ACPI_HANDLE             *OutHandle))
    861   1.1    jruoho 
    862   1.1    jruoho 
    863   1.1    jruoho /*
    864   1.1    jruoho  * Handler interfaces
    865   1.1    jruoho  */
    866   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    867   1.1    jruoho ACPI_STATUS
    868   1.1    jruoho AcpiInstallInitializationHandler (
    869   1.1    jruoho     ACPI_INIT_HANDLER       Handler,
    870   1.7  christos     UINT32                  Function))
    871   1.1    jruoho 
    872   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    873   1.6  christos ACPI_STATUS
    874   1.6  christos AcpiInstallSciHandler (
    875   1.6  christos     ACPI_SCI_HANDLER        Address,
    876   1.6  christos     void                    *Context))
    877   1.6  christos 
    878   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    879   1.6  christos ACPI_STATUS
    880   1.6  christos AcpiRemoveSciHandler (
    881   1.6  christos     ACPI_SCI_HANDLER        Address))
    882   1.6  christos 
    883   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    884   1.1    jruoho ACPI_STATUS
    885   1.3    jruoho AcpiInstallGlobalEventHandler (
    886   1.3    jruoho     ACPI_GBL_EVENT_HANDLER  Handler,
    887   1.6  christos     void                    *Context))
    888   1.3    jruoho 
    889   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    890   1.3    jruoho ACPI_STATUS
    891   1.1    jruoho AcpiInstallFixedEventHandler (
    892   1.1    jruoho     UINT32                  AcpiEvent,
    893   1.1    jruoho     ACPI_EVENT_HANDLER      Handler,
    894   1.6  christos     void                    *Context))
    895   1.1    jruoho 
    896   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    897   1.1    jruoho ACPI_STATUS
    898   1.1    jruoho AcpiRemoveFixedEventHandler (
    899   1.1    jruoho     UINT32                  AcpiEvent,
    900   1.6  christos     ACPI_EVENT_HANDLER      Handler))
    901   1.1    jruoho 
    902   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    903   1.1    jruoho ACPI_STATUS
    904   1.3    jruoho AcpiInstallGpeHandler (
    905   1.3    jruoho     ACPI_HANDLE             GpeDevice,
    906   1.3    jruoho     UINT32                  GpeNumber,
    907   1.3    jruoho     UINT32                  Type,
    908   1.3    jruoho     ACPI_GPE_HANDLER        Address,
    909   1.6  christos     void                    *Context))
    910   1.3    jruoho 
    911   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    912   1.3    jruoho ACPI_STATUS
    913   1.8  christos AcpiInstallGpeRawHandler (
    914   1.8  christos     ACPI_HANDLE             GpeDevice,
    915   1.8  christos     UINT32                  GpeNumber,
    916   1.8  christos     UINT32                  Type,
    917   1.8  christos     ACPI_GPE_HANDLER        Address,
    918   1.8  christos     void                    *Context))
    919   1.8  christos 
    920   1.8  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    921   1.8  christos ACPI_STATUS
    922   1.3    jruoho AcpiRemoveGpeHandler (
    923   1.3    jruoho     ACPI_HANDLE             GpeDevice,
    924   1.3    jruoho     UINT32                  GpeNumber,
    925   1.6  christos     ACPI_GPE_HANDLER        Address))
    926   1.3    jruoho 
    927   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    928   1.3    jruoho ACPI_STATUS
    929   1.1    jruoho AcpiInstallNotifyHandler (
    930   1.1    jruoho     ACPI_HANDLE             Device,
    931   1.1    jruoho     UINT32                  HandlerType,
    932   1.1    jruoho     ACPI_NOTIFY_HANDLER     Handler,
    933   1.7  christos     void                    *Context))
    934   1.1    jruoho 
    935   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    936   1.1    jruoho ACPI_STATUS
    937   1.1    jruoho AcpiRemoveNotifyHandler (
    938   1.1    jruoho     ACPI_HANDLE             Device,
    939   1.1    jruoho     UINT32                  HandlerType,
    940   1.7  christos     ACPI_NOTIFY_HANDLER     Handler))
    941   1.1    jruoho 
    942   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    943   1.1    jruoho ACPI_STATUS
    944   1.1    jruoho AcpiInstallAddressSpaceHandler (
    945   1.1    jruoho     ACPI_HANDLE             Device,
    946   1.1    jruoho     ACPI_ADR_SPACE_TYPE     SpaceId,
    947   1.1    jruoho     ACPI_ADR_SPACE_HANDLER  Handler,
    948   1.1    jruoho     ACPI_ADR_SPACE_SETUP    Setup,
    949   1.7  christos     void                    *Context))
    950   1.1    jruoho 
    951   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    952   1.1    jruoho ACPI_STATUS
    953  1.35  christos AcpiInstallAddressSpaceHandlerNo_Reg(
    954  1.35  christos     ACPI_HANDLE             Device,
    955  1.35  christos     ACPI_ADR_SPACE_TYPE     SpaceId,
    956  1.35  christos     ACPI_ADR_SPACE_HANDLER  Handler,
    957  1.35  christos     ACPI_ADR_SPACE_SETUP    Setup,
    958  1.35  christos     void                    *Context))
    959  1.35  christos 
    960  1.35  christos ACPI_EXTERNAL_RETURN_STATUS (
    961  1.35  christos ACPI_STATUS
    962  1.35  christos AcpiExecuteRegMethods (
    963  1.35  christos     ACPI_HANDLE             Device,
    964  1.35  christos     ACPI_ADR_SPACE_TYPE     SpaceId))
    965  1.35  christos 
    966  1.35  christos ACPI_EXTERNAL_RETURN_STATUS (
    967  1.35  christos ACPI_STATUS
    968   1.1    jruoho AcpiRemoveAddressSpaceHandler (
    969   1.1    jruoho     ACPI_HANDLE             Device,
    970   1.1    jruoho     ACPI_ADR_SPACE_TYPE     SpaceId,
    971   1.7  christos     ACPI_ADR_SPACE_HANDLER  Handler))
    972   1.1    jruoho 
    973   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    974   1.1    jruoho ACPI_STATUS
    975   1.3    jruoho AcpiInstallExceptionHandler (
    976   1.7  christos     ACPI_EXCEPTION_HANDLER  Handler))
    977   1.1    jruoho 
    978   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
    979   1.1    jruoho ACPI_STATUS
    980   1.3    jruoho AcpiInstallInterfaceHandler (
    981   1.7  christos     ACPI_INTERFACE_HANDLER  Handler))
    982   1.1    jruoho 
    983   1.1    jruoho 
    984   1.1    jruoho /*
    985   1.3    jruoho  * Global Lock interfaces
    986   1.1    jruoho  */
    987   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    988   1.1    jruoho ACPI_STATUS
    989   1.1    jruoho AcpiAcquireGlobalLock (
    990   1.1    jruoho     UINT16                  Timeout,
    991   1.6  christos     UINT32                  *Handle))
    992   1.1    jruoho 
    993   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    994   1.1    jruoho ACPI_STATUS
    995   1.1    jruoho AcpiReleaseGlobalLock (
    996   1.6  christos     UINT32                  Handle))
    997   1.6  christos 
    998   1.6  christos 
    999   1.6  christos /*
   1000   1.6  christos  * Interfaces to AML mutex objects
   1001   1.6  christos  */
   1002   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1003   1.6  christos ACPI_STATUS
   1004   1.6  christos AcpiAcquireMutex (
   1005   1.6  christos     ACPI_HANDLE             Handle,
   1006   1.6  christos     ACPI_STRING             Pathname,
   1007   1.7  christos     UINT16                  Timeout))
   1008   1.6  christos 
   1009   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1010   1.6  christos ACPI_STATUS
   1011   1.6  christos AcpiReleaseMutex (
   1012   1.6  christos     ACPI_HANDLE             Handle,
   1013   1.7  christos     ACPI_STRING             Pathname))
   1014   1.1    jruoho 
   1015   1.3    jruoho 
   1016   1.3    jruoho /*
   1017   1.3    jruoho  * Fixed Event interfaces
   1018   1.3    jruoho  */
   1019   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1020   1.1    jruoho ACPI_STATUS
   1021   1.1    jruoho AcpiEnableEvent (
   1022   1.1    jruoho     UINT32                  Event,
   1023   1.6  christos     UINT32                  Flags))
   1024   1.1    jruoho 
   1025   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1026   1.1    jruoho ACPI_STATUS
   1027   1.1    jruoho AcpiDisableEvent (
   1028   1.1    jruoho     UINT32                  Event,
   1029   1.6  christos     UINT32                  Flags))
   1030   1.1    jruoho 
   1031   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1032   1.1    jruoho ACPI_STATUS
   1033   1.1    jruoho AcpiClearEvent (
   1034   1.6  christos     UINT32                  Event))
   1035   1.1    jruoho 
   1036   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1037   1.1    jruoho ACPI_STATUS
   1038   1.1    jruoho AcpiGetEventStatus (
   1039   1.1    jruoho     UINT32                  Event,
   1040   1.6  christos     ACPI_EVENT_STATUS       *EventStatus))
   1041   1.1    jruoho 
   1042   1.1    jruoho 
   1043   1.1    jruoho /*
   1044   1.3    jruoho  * General Purpose Event (GPE) Interfaces
   1045   1.1    jruoho  */
   1046   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1047   1.1    jruoho ACPI_STATUS
   1048   1.3    jruoho AcpiUpdateAllGpes (
   1049   1.6  christos     void))
   1050   1.3    jruoho 
   1051   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1052   1.3    jruoho ACPI_STATUS
   1053   1.3    jruoho AcpiEnableGpe (
   1054   1.3    jruoho     ACPI_HANDLE             GpeDevice,
   1055   1.6  christos     UINT32                  GpeNumber))
   1056   1.3    jruoho 
   1057   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1058   1.3    jruoho ACPI_STATUS
   1059   1.3    jruoho AcpiDisableGpe (
   1060   1.3    jruoho     ACPI_HANDLE             GpeDevice,
   1061   1.6  christos     UINT32                  GpeNumber))
   1062   1.3    jruoho 
   1063   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1064   1.3    jruoho ACPI_STATUS
   1065   1.3    jruoho AcpiClearGpe (
   1066   1.3    jruoho     ACPI_HANDLE             GpeDevice,
   1067   1.6  christos     UINT32                  GpeNumber))
   1068   1.3    jruoho 
   1069   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1070   1.3    jruoho ACPI_STATUS
   1071   1.1    jruoho AcpiSetGpe (
   1072   1.1    jruoho     ACPI_HANDLE             GpeDevice,
   1073   1.1    jruoho     UINT32                  GpeNumber,
   1074   1.6  christos     UINT8                   Action))
   1075   1.1    jruoho 
   1076   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1077   1.1    jruoho ACPI_STATUS
   1078   1.3    jruoho AcpiFinishGpe (
   1079   1.1    jruoho     ACPI_HANDLE             GpeDevice,
   1080   1.6  christos     UINT32                  GpeNumber))
   1081   1.1    jruoho 
   1082   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1083   1.1    jruoho ACPI_STATUS
   1084  1.13  christos AcpiMaskGpe (
   1085  1.13  christos     ACPI_HANDLE             GpeDevice,
   1086  1.13  christos     UINT32                  GpeNumber,
   1087  1.13  christos     BOOLEAN                 IsMasked))
   1088  1.13  christos 
   1089  1.13  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1090  1.13  christos ACPI_STATUS
   1091   1.7  christos AcpiMarkGpeForWake (
   1092   1.7  christos     ACPI_HANDLE             GpeDevice,
   1093   1.7  christos     UINT32                  GpeNumber))
   1094   1.7  christos 
   1095   1.7  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1096   1.7  christos ACPI_STATUS
   1097   1.3    jruoho AcpiSetupGpeForWake (
   1098   1.3    jruoho     ACPI_HANDLE             ParentDevice,
   1099   1.1    jruoho     ACPI_HANDLE             GpeDevice,
   1100   1.6  christos     UINT32                  GpeNumber))
   1101   1.1    jruoho 
   1102   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1103   1.1    jruoho ACPI_STATUS
   1104   1.3    jruoho AcpiSetGpeWakeMask (
   1105   1.1    jruoho     ACPI_HANDLE             GpeDevice,
   1106   1.3    jruoho     UINT32                  GpeNumber,
   1107   1.6  christos     UINT8                   Action))
   1108   1.1    jruoho 
   1109   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1110   1.1    jruoho ACPI_STATUS
   1111   1.1    jruoho AcpiGetGpeStatus (
   1112   1.1    jruoho     ACPI_HANDLE             GpeDevice,
   1113   1.1    jruoho     UINT32                  GpeNumber,
   1114   1.6  christos     ACPI_EVENT_STATUS       *EventStatus))
   1115   1.1    jruoho 
   1116  1.23  christos ACPI_HW_DEPENDENT_RETURN_UINT32 (
   1117  1.23  christos UINT32
   1118  1.23  christos AcpiDispatchGpe (
   1119  1.23  christos     ACPI_HANDLE             GpeDevice,
   1120  1.23  christos     UINT32                  GpeNumber))
   1121  1.23  christos 
   1122   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1123   1.1    jruoho ACPI_STATUS
   1124   1.1    jruoho AcpiDisableAllGpes (
   1125   1.6  christos     void))
   1126   1.1    jruoho 
   1127   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1128   1.1    jruoho ACPI_STATUS
   1129   1.1    jruoho AcpiEnableAllRuntimeGpes (
   1130   1.6  christos     void))
   1131   1.1    jruoho 
   1132   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1133   1.1    jruoho ACPI_STATUS
   1134   1.8  christos AcpiEnableAllWakeupGpes (
   1135   1.8  christos     void))
   1136   1.8  christos 
   1137  1.25  christos ACPI_HW_DEPENDENT_RETURN_UINT32 (
   1138  1.25  christos     UINT32                  AcpiAnyGpeStatusSet (
   1139  1.25  christos     void))
   1140  1.25  christos 
   1141   1.8  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1142   1.8  christos ACPI_STATUS
   1143   1.1    jruoho AcpiGetGpeDevice (
   1144   1.1    jruoho     UINT32                  GpeIndex,
   1145   1.6  christos     ACPI_HANDLE             *GpeDevice))
   1146   1.1    jruoho 
   1147   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1148   1.1    jruoho ACPI_STATUS
   1149   1.1    jruoho AcpiInstallGpeBlock (
   1150   1.1    jruoho     ACPI_HANDLE             GpeDevice,
   1151   1.1    jruoho     ACPI_GENERIC_ADDRESS    *GpeBlockAddress,
   1152   1.1    jruoho     UINT32                  RegisterCount,
   1153   1.6  christos     UINT32                  InterruptNumber))
   1154   1.1    jruoho 
   1155   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1156   1.1    jruoho ACPI_STATUS
   1157   1.1    jruoho AcpiRemoveGpeBlock (
   1158   1.6  christos     ACPI_HANDLE             GpeDevice))
   1159   1.1    jruoho 
   1160   1.1    jruoho 
   1161   1.1    jruoho /*
   1162   1.1    jruoho  * Resource interfaces
   1163   1.1    jruoho  */
   1164   1.1    jruoho typedef
   1165   1.1    jruoho ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) (
   1166   1.1    jruoho     ACPI_RESOURCE           *Resource,
   1167   1.1    jruoho     void                    *Context);
   1168   1.1    jruoho 
   1169   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1170   1.1    jruoho ACPI_STATUS
   1171   1.1    jruoho AcpiGetVendorResource (
   1172   1.1    jruoho     ACPI_HANDLE             Device,
   1173   1.1    jruoho     char                    *Name,
   1174   1.1    jruoho     ACPI_VENDOR_UUID        *Uuid,
   1175   1.7  christos     ACPI_BUFFER             *RetBuffer))
   1176   1.1    jruoho 
   1177   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1178   1.1    jruoho ACPI_STATUS
   1179   1.1    jruoho AcpiGetCurrentResources (
   1180   1.1    jruoho     ACPI_HANDLE             Device,
   1181   1.7  christos     ACPI_BUFFER             *RetBuffer))
   1182   1.1    jruoho 
   1183   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1184   1.1    jruoho ACPI_STATUS
   1185   1.1    jruoho AcpiGetPossibleResources (
   1186   1.1    jruoho     ACPI_HANDLE             Device,
   1187   1.7  christos     ACPI_BUFFER             *RetBuffer))
   1188   1.1    jruoho 
   1189   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1190   1.1    jruoho ACPI_STATUS
   1191   1.6  christos AcpiGetEventResources (
   1192   1.6  christos     ACPI_HANDLE             DeviceHandle,
   1193   1.7  christos     ACPI_BUFFER             *RetBuffer))
   1194   1.6  christos 
   1195   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1196   1.6  christos ACPI_STATUS
   1197   1.6  christos AcpiWalkResourceBuffer (
   1198   1.6  christos     ACPI_BUFFER                 *Buffer,
   1199   1.6  christos     ACPI_WALK_RESOURCE_CALLBACK UserFunction,
   1200   1.7  christos     void                        *Context))
   1201   1.6  christos 
   1202   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1203   1.6  christos ACPI_STATUS
   1204   1.1    jruoho AcpiWalkResources (
   1205   1.1    jruoho     ACPI_HANDLE                 Device,
   1206   1.2    jruoho     const char                  *Name,
   1207   1.1    jruoho     ACPI_WALK_RESOURCE_CALLBACK UserFunction,
   1208   1.7  christos     void                        *Context))
   1209   1.1    jruoho 
   1210   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1211   1.1    jruoho ACPI_STATUS
   1212   1.1    jruoho AcpiSetCurrentResources (
   1213   1.1    jruoho     ACPI_HANDLE             Device,
   1214   1.7  christos     ACPI_BUFFER             *InBuffer))
   1215   1.1    jruoho 
   1216   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1217   1.1    jruoho ACPI_STATUS
   1218   1.1    jruoho AcpiGetIrqRoutingTable (
   1219   1.1    jruoho     ACPI_HANDLE             Device,
   1220   1.7  christos     ACPI_BUFFER             *RetBuffer))
   1221   1.1    jruoho 
   1222   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1223   1.1    jruoho ACPI_STATUS
   1224   1.1    jruoho AcpiResourceToAddress64 (
   1225   1.1    jruoho     ACPI_RESOURCE           *Resource,
   1226   1.7  christos     ACPI_RESOURCE_ADDRESS64 *Out))
   1227   1.1    jruoho 
   1228   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1229   1.6  christos ACPI_STATUS
   1230   1.6  christos AcpiBufferToResource (
   1231   1.6  christos     UINT8                   *AmlBuffer,
   1232   1.6  christos     UINT16                  AmlBufferLength,
   1233   1.7  christos     ACPI_RESOURCE           **ResourcePtr))
   1234   1.6  christos 
   1235   1.1    jruoho 
   1236   1.1    jruoho /*
   1237   1.1    jruoho  * Hardware (ACPI device) interfaces
   1238   1.1    jruoho  */
   1239   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1240   1.1    jruoho ACPI_STATUS
   1241   1.1    jruoho AcpiReset (
   1242   1.7  christos     void))
   1243   1.1    jruoho 
   1244   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1245   1.1    jruoho ACPI_STATUS
   1246   1.1    jruoho AcpiRead (
   1247   1.1    jruoho     UINT64                  *Value,
   1248   1.7  christos     ACPI_GENERIC_ADDRESS    *Reg))
   1249   1.1    jruoho 
   1250   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1251   1.1    jruoho ACPI_STATUS
   1252   1.1    jruoho AcpiWrite (
   1253   1.1    jruoho     UINT64                  Value,
   1254   1.7  christos     ACPI_GENERIC_ADDRESS    *Reg))
   1255   1.1    jruoho 
   1256   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1257   1.1    jruoho ACPI_STATUS
   1258   1.1    jruoho AcpiReadBitRegister (
   1259   1.1    jruoho     UINT32                  RegisterId,
   1260   1.6  christos     UINT32                  *ReturnValue))
   1261   1.1    jruoho 
   1262   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1263   1.1    jruoho ACPI_STATUS
   1264   1.1    jruoho AcpiWriteBitRegister (
   1265   1.1    jruoho     UINT32                  RegisterId,
   1266   1.6  christos     UINT32                  Value))
   1267   1.1    jruoho 
   1268   1.6  christos 
   1269   1.6  christos /*
   1270   1.6  christos  * Sleep/Wake interfaces
   1271   1.6  christos  */
   1272   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1273   1.1    jruoho ACPI_STATUS
   1274   1.1    jruoho AcpiGetSleepTypeData (
   1275   1.1    jruoho     UINT8                   SleepState,
   1276   1.1    jruoho     UINT8                   *Slp_TypA,
   1277   1.7  christos     UINT8                   *Slp_TypB))
   1278   1.1    jruoho 
   1279   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1280   1.1    jruoho ACPI_STATUS
   1281   1.1    jruoho AcpiEnterSleepStatePrep (
   1282   1.7  christos     UINT8                   SleepState))
   1283   1.1    jruoho 
   1284   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1285   1.1    jruoho ACPI_STATUS
   1286   1.1    jruoho AcpiEnterSleepState (
   1287   1.7  christos     UINT8                   SleepState))
   1288   1.1    jruoho 
   1289   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1290   1.1    jruoho ACPI_STATUS
   1291   1.1    jruoho AcpiEnterSleepStateS4bios (
   1292   1.6  christos     void))
   1293   1.6  christos 
   1294   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1295   1.6  christos ACPI_STATUS
   1296   1.6  christos AcpiLeaveSleepStatePrep (
   1297   1.7  christos     UINT8                   SleepState))
   1298   1.1    jruoho 
   1299   1.7  christos ACPI_EXTERNAL_RETURN_STATUS (
   1300   1.1    jruoho ACPI_STATUS
   1301   1.1    jruoho AcpiLeaveSleepState (
   1302   1.7  christos     UINT8                   SleepState))
   1303   1.6  christos 
   1304  1.36  christos ACPI_EXTERNAL_RETURN_STATUS (
   1305   1.1    jruoho ACPI_STATUS
   1306   1.1    jruoho AcpiSetFirmwareWakingVector (
   1307   1.9  christos     ACPI_PHYSICAL_ADDRESS   PhysicalAddress,
   1308   1.9  christos     ACPI_PHYSICAL_ADDRESS   PhysicalAddress64))
   1309   1.1    jruoho 
   1310   1.1    jruoho 
   1311   1.1    jruoho /*
   1312   1.6  christos  * ACPI Timer interfaces
   1313   1.6  christos  */
   1314   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1315   1.6  christos ACPI_STATUS
   1316   1.6  christos AcpiGetTimerResolution (
   1317   1.6  christos     UINT32                  *Resolution))
   1318   1.6  christos 
   1319   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1320   1.6  christos ACPI_STATUS
   1321   1.6  christos AcpiGetTimer (
   1322   1.6  christos     UINT32                  *Ticks))
   1323   1.6  christos 
   1324   1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1325   1.6  christos ACPI_STATUS
   1326   1.6  christos AcpiGetTimerDuration (
   1327   1.6  christos     UINT32                  StartTicks,
   1328   1.6  christos     UINT32                  EndTicks,
   1329   1.6  christos     UINT32                  *TimeElapsed))
   1330   1.6  christos 
   1331   1.6  christos 
   1332   1.6  christos /*
   1333   1.1    jruoho  * Error/Warning output
   1334   1.1    jruoho  */
   1335   1.7  christos ACPI_MSG_DEPENDENT_RETURN_VOID (
   1336   1.6  christos ACPI_PRINTF_LIKE(3)
   1337   1.1    jruoho void ACPI_INTERNAL_VAR_XFACE
   1338   1.1    jruoho AcpiError (
   1339   1.1    jruoho     const char              *ModuleName,
   1340   1.1    jruoho     UINT32                  LineNumber,
   1341   1.1    jruoho     const char              *Format,
   1342   1.7  christos     ...))
   1343   1.1    jruoho 
   1344   1.7  christos ACPI_MSG_DEPENDENT_RETURN_VOID (
   1345   1.6  christos ACPI_PRINTF_LIKE(4)
   1346   1.1    jruoho void  ACPI_INTERNAL_VAR_XFACE
   1347   1.1    jruoho AcpiException (
   1348   1.1    jruoho     const char              *ModuleName,
   1349   1.1    jruoho     UINT32                  LineNumber,
   1350   1.1    jruoho     ACPI_STATUS             Status,
   1351   1.1    jruoho     const char              *Format,
   1352   1.7  christos     ...))
   1353   1.1    jruoho 
   1354   1.7  christos ACPI_MSG_DEPENDENT_RETURN_VOID (
   1355   1.6  christos ACPI_PRINTF_LIKE(3)
   1356   1.1    jruoho void ACPI_INTERNAL_VAR_XFACE
   1357   1.1    jruoho AcpiWarning (
   1358   1.1    jruoho     const char              *ModuleName,
   1359   1.1    jruoho     UINT32                  LineNumber,
   1360   1.1    jruoho     const char              *Format,
   1361   1.7  christos     ...))
   1362   1.1    jruoho 
   1363   1.7  christos ACPI_MSG_DEPENDENT_RETURN_VOID (
   1364  1.11  christos ACPI_PRINTF_LIKE(1)
   1365   1.1    jruoho void ACPI_INTERNAL_VAR_XFACE
   1366   1.1    jruoho AcpiInfo (
   1367   1.1    jruoho     const char              *Format,
   1368   1.7  christos     ...))
   1369   1.6  christos 
   1370   1.7  christos ACPI_MSG_DEPENDENT_RETURN_VOID (
   1371   1.6  christos ACPI_PRINTF_LIKE(3)
   1372   1.6  christos void ACPI_INTERNAL_VAR_XFACE
   1373   1.6  christos AcpiBiosError (
   1374   1.6  christos     const char              *ModuleName,
   1375   1.6  christos     UINT32                  LineNumber,
   1376   1.6  christos     const char              *Format,
   1377   1.7  christos     ...))
   1378   1.6  christos 
   1379   1.7  christos ACPI_MSG_DEPENDENT_RETURN_VOID (
   1380  1.22  christos ACPI_PRINTF_LIKE(4)
   1381  1.22  christos void  ACPI_INTERNAL_VAR_XFACE
   1382  1.22  christos AcpiBiosException (
   1383  1.22  christos     const char              *ModuleName,
   1384  1.22  christos     UINT32                  LineNumber,
   1385  1.22  christos     ACPI_STATUS             Status,
   1386  1.22  christos     const char              *Format,
   1387  1.22  christos     ...))
   1388  1.22  christos 
   1389  1.22  christos ACPI_MSG_DEPENDENT_RETURN_VOID (
   1390   1.6  christos ACPI_PRINTF_LIKE(3)
   1391   1.6  christos void ACPI_INTERNAL_VAR_XFACE
   1392   1.6  christos AcpiBiosWarning (
   1393   1.6  christos     const char              *ModuleName,
   1394   1.6  christos     UINT32                  LineNumber,
   1395   1.6  christos     const char              *Format,
   1396   1.7  christos     ...))
   1397   1.1    jruoho 
   1398   1.1    jruoho 
   1399   1.1    jruoho /*
   1400   1.1    jruoho  * Debug output
   1401   1.1    jruoho  */
   1402   1.7  christos ACPI_DBG_DEPENDENT_RETURN_VOID (
   1403   1.6  christos ACPI_PRINTF_LIKE(6)
   1404   1.1    jruoho void ACPI_INTERNAL_VAR_XFACE
   1405   1.1    jruoho AcpiDebugPrint (
   1406   1.1    jruoho     UINT32                  RequestedDebugLevel,
   1407   1.1    jruoho     UINT32                  LineNumber,
   1408   1.1    jruoho     const char              *FunctionName,
   1409   1.1    jruoho     const char              *ModuleName,
   1410   1.1    jruoho     UINT32                  ComponentId,
   1411   1.1    jruoho     const char              *Format,
   1412   1.7  christos     ...))
   1413   1.1    jruoho 
   1414   1.7  christos ACPI_DBG_DEPENDENT_RETURN_VOID (
   1415   1.6  christos ACPI_PRINTF_LIKE(6)
   1416   1.1    jruoho void ACPI_INTERNAL_VAR_XFACE
   1417   1.1    jruoho AcpiDebugPrintRaw (
   1418   1.1    jruoho     UINT32                  RequestedDebugLevel,
   1419   1.1    jruoho     UINT32                  LineNumber,
   1420   1.1    jruoho     const char              *FunctionName,
   1421   1.1    jruoho     const char              *ModuleName,
   1422   1.1    jruoho     UINT32                  ComponentId,
   1423   1.1    jruoho     const char              *Format,
   1424   1.7  christos     ...))
   1425   1.7  christos 
   1426   1.9  christos ACPI_DBG_DEPENDENT_RETURN_VOID (
   1427   1.9  christos void
   1428   1.9  christos AcpiTracePoint (
   1429   1.9  christos     ACPI_TRACE_EVENT_TYPE   Type,
   1430   1.9  christos     BOOLEAN                 Begin,
   1431   1.9  christos     UINT8                   *Aml,
   1432   1.9  christos     char                    *Pathname))
   1433   1.9  christos 
   1434  1.10  christos ACPI_STATUS
   1435  1.10  christos AcpiInitializeDebugger (
   1436  1.10  christos     void);
   1437  1.10  christos 
   1438  1.10  christos void
   1439  1.10  christos AcpiTerminateDebugger (
   1440  1.10  christos     void);
   1441  1.10  christos 
   1442  1.10  christos void
   1443  1.14  christos AcpiRunDebugger (
   1444  1.14  christos     char                    *BatchBuffer);
   1445  1.14  christos 
   1446  1.14  christos void
   1447  1.10  christos AcpiSetDebuggerThreadId (
   1448  1.10  christos     ACPI_THREAD_ID          ThreadId);
   1449  1.10  christos 
   1450   1.1    jruoho #endif /* __ACXFACE_H__ */
   1451