Home | History | Annotate | Line # | Download | only in include
acpixf.h revision 1.1.1.10
      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.1.1.2    jruoho /*
      8   1.1.1.8  christos  * Copyright (C) 2000 - 2016, Intel Corp.
      9       1.1    jruoho  * All rights reserved.
     10       1.1    jruoho  *
     11   1.1.1.2    jruoho  * Redistribution and use in source and binary forms, with or without
     12   1.1.1.2    jruoho  * modification, are permitted provided that the following conditions
     13   1.1.1.2    jruoho  * are met:
     14   1.1.1.2    jruoho  * 1. Redistributions of source code must retain the above copyright
     15   1.1.1.2    jruoho  *    notice, this list of conditions, and the following disclaimer,
     16   1.1.1.2    jruoho  *    without modification.
     17   1.1.1.2    jruoho  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
     18   1.1.1.2    jruoho  *    substantially similar to the "NO WARRANTY" disclaimer below
     19   1.1.1.2    jruoho  *    ("Disclaimer") and any redistribution must be conditioned upon
     20   1.1.1.2    jruoho  *    including a substantially similar Disclaimer requirement for further
     21   1.1.1.2    jruoho  *    binary redistribution.
     22   1.1.1.2    jruoho  * 3. Neither the names of the above-listed copyright holders nor the names
     23   1.1.1.2    jruoho  *    of any contributors may be used to endorse or promote products derived
     24   1.1.1.2    jruoho  *    from this software without specific prior written permission.
     25   1.1.1.2    jruoho  *
     26   1.1.1.2    jruoho  * Alternatively, this software may be distributed under the terms of the
     27   1.1.1.2    jruoho  * GNU General Public License ("GPL") version 2 as published by the Free
     28   1.1.1.2    jruoho  * Software Foundation.
     29   1.1.1.2    jruoho  *
     30   1.1.1.2    jruoho  * NO WARRANTY
     31   1.1.1.2    jruoho  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     32   1.1.1.2    jruoho  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     33   1.1.1.2    jruoho  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
     34   1.1.1.2    jruoho  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
     35   1.1.1.2    jruoho  * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     36   1.1.1.2    jruoho  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     37   1.1.1.2    jruoho  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     38   1.1.1.2    jruoho  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
     39   1.1.1.2    jruoho  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
     40   1.1.1.2    jruoho  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     41   1.1.1.2    jruoho  * POSSIBILITY OF SUCH DAMAGES.
     42   1.1.1.2    jruoho  */
     43       1.1    jruoho 
     44       1.1    jruoho #ifndef __ACXFACE_H__
     45       1.1    jruoho #define __ACXFACE_H__
     46       1.1    jruoho 
     47       1.1    jruoho /* Current ACPICA subsystem version in YYYYMMDD format */
     48       1.1    jruoho 
     49  1.1.1.10  christos #define ACPI_CA_VERSION                 0x20160527
     50       1.1    jruoho 
     51   1.1.1.4  christos #include "acconfig.h"
     52       1.1    jruoho #include "actypes.h"
     53       1.1    jruoho #include "actbl.h"
     54   1.1.1.4  christos #include "acbuffer.h"
     55       1.1    jruoho 
     56   1.1.1.5  christos 
     57   1.1.1.5  christos /*****************************************************************************
     58   1.1.1.5  christos  *
     59   1.1.1.5  christos  * Macros used for ACPICA globals and configuration
     60   1.1.1.5  christos  *
     61   1.1.1.5  christos  ****************************************************************************/
     62   1.1.1.5  christos 
     63   1.1.1.5  christos /*
     64   1.1.1.5  christos  * Ensure that global variables are defined and initialized only once.
     65   1.1.1.5  christos  *
     66   1.1.1.5  christos  * The use of these macros allows for a single list of globals (here)
     67   1.1.1.5  christos  * in order to simplify maintenance of the code.
     68   1.1.1.5  christos  */
     69   1.1.1.5  christos #ifdef DEFINE_ACPI_GLOBALS
     70   1.1.1.5  christos #define ACPI_GLOBAL(type,name) \
     71   1.1.1.5  christos     extern type name; \
     72   1.1.1.5  christos     type name
     73   1.1.1.5  christos 
     74   1.1.1.5  christos #define ACPI_INIT_GLOBAL(type,name,value) \
     75   1.1.1.5  christos     type name=value
     76   1.1.1.5  christos 
     77   1.1.1.5  christos #else
     78   1.1.1.5  christos #ifndef ACPI_GLOBAL
     79   1.1.1.5  christos #define ACPI_GLOBAL(type,name) \
     80   1.1.1.5  christos     extern type name
     81   1.1.1.5  christos #endif
     82   1.1.1.5  christos 
     83   1.1.1.5  christos #ifndef ACPI_INIT_GLOBAL
     84   1.1.1.5  christos #define ACPI_INIT_GLOBAL(type,name,value) \
     85   1.1.1.5  christos     extern type name
     86   1.1.1.5  christos #endif
     87   1.1.1.5  christos #endif
     88   1.1.1.5  christos 
     89   1.1.1.5  christos /*
     90   1.1.1.5  christos  * These macros configure the various ACPICA interfaces. They are
     91   1.1.1.5  christos  * useful for generating stub inline functions for features that are
     92   1.1.1.5  christos  * configured out of the current kernel or ACPICA application.
     93   1.1.1.5  christos  */
     94   1.1.1.5  christos #ifndef ACPI_EXTERNAL_RETURN_STATUS
     95   1.1.1.5  christos #define ACPI_EXTERNAL_RETURN_STATUS(Prototype) \
     96   1.1.1.5  christos     Prototype;
     97   1.1.1.5  christos #endif
     98   1.1.1.5  christos 
     99   1.1.1.5  christos #ifndef ACPI_EXTERNAL_RETURN_OK
    100   1.1.1.5  christos #define ACPI_EXTERNAL_RETURN_OK(Prototype) \
    101   1.1.1.5  christos     Prototype;
    102   1.1.1.5  christos #endif
    103   1.1.1.5  christos 
    104   1.1.1.5  christos #ifndef ACPI_EXTERNAL_RETURN_VOID
    105   1.1.1.5  christos #define ACPI_EXTERNAL_RETURN_VOID(Prototype) \
    106   1.1.1.5  christos     Prototype;
    107   1.1.1.5  christos #endif
    108   1.1.1.5  christos 
    109   1.1.1.5  christos #ifndef ACPI_EXTERNAL_RETURN_UINT32
    110   1.1.1.5  christos #define ACPI_EXTERNAL_RETURN_UINT32(Prototype) \
    111   1.1.1.5  christos     Prototype;
    112   1.1.1.5  christos #endif
    113   1.1.1.5  christos 
    114   1.1.1.5  christos #ifndef ACPI_EXTERNAL_RETURN_PTR
    115   1.1.1.5  christos #define ACPI_EXTERNAL_RETURN_PTR(Prototype) \
    116   1.1.1.5  christos     Prototype;
    117   1.1.1.5  christos #endif
    118   1.1.1.5  christos 
    119   1.1.1.5  christos 
    120   1.1.1.5  christos /*****************************************************************************
    121   1.1.1.5  christos  *
    122   1.1.1.5  christos  * Public globals and runtime configuration options
    123   1.1.1.5  christos  *
    124   1.1.1.5  christos  ****************************************************************************/
    125   1.1.1.5  christos 
    126   1.1.1.5  christos /*
    127   1.1.1.5  christos  * Enable "slack mode" of the AML interpreter?  Default is FALSE, and the
    128   1.1.1.5  christos  * interpreter strictly follows the ACPI specification. Setting to TRUE
    129   1.1.1.5  christos  * allows the interpreter to ignore certain errors and/or bad AML constructs.
    130   1.1.1.5  christos  *
    131   1.1.1.5  christos  * Currently, these features are enabled by this flag:
    132   1.1.1.5  christos  *
    133   1.1.1.5  christos  * 1) Allow "implicit return" of last value in a control method
    134   1.1.1.5  christos  * 2) Allow access beyond the end of an operation region
    135   1.1.1.5  christos  * 3) Allow access to uninitialized locals/args (auto-init to integer 0)
    136   1.1.1.5  christos  * 4) Allow ANY object type to be a source operand for the Store() operator
    137   1.1.1.5  christos  * 5) Allow unresolved references (invalid target name) in package objects
    138   1.1.1.5  christos  * 6) Enable warning messages for behavior that is not ACPI spec compliant
    139   1.1.1.5  christos  */
    140   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_EnableInterpreterSlack, FALSE);
    141   1.1.1.5  christos 
    142   1.1.1.5  christos /*
    143   1.1.1.5  christos  * Automatically serialize all methods that create named objects? Default
    144   1.1.1.5  christos  * is TRUE, meaning that all NonSerialized methods are scanned once at
    145   1.1.1.5  christos  * table load time to determine those that create named objects. Methods
    146   1.1.1.5  christos  * that create named objects are marked Serialized in order to prevent
    147   1.1.1.5  christos  * possible run-time problems if they are entered by more than one thread.
    148   1.1.1.5  christos  */
    149   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_AutoSerializeMethods, TRUE);
    150   1.1.1.5  christos 
    151   1.1.1.5  christos /*
    152   1.1.1.5  christos  * Create the predefined _OSI method in the namespace? Default is TRUE
    153   1.1.1.5  christos  * because ACPICA is fully compatible with other ACPI implementations.
    154   1.1.1.5  christos  * Changing this will revert ACPICA (and machine ASL) to pre-OSI behavior.
    155   1.1.1.5  christos  */
    156   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_CreateOsiMethod, TRUE);
    157   1.1.1.5  christos 
    158   1.1.1.5  christos /*
    159   1.1.1.5  christos  * Optionally use default values for the ACPI register widths. Set this to
    160   1.1.1.5  christos  * TRUE to use the defaults, if an FADT contains incorrect widths/lengths.
    161   1.1.1.5  christos  */
    162   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_UseDefaultRegisterWidths, TRUE);
    163   1.1.1.5  christos 
    164   1.1.1.5  christos /*
    165   1.1.1.5  christos  * Whether or not to verify the table checksum before installation. Set
    166   1.1.1.5  christos  * this to TRUE to verify the table checksum before install it to the table
    167   1.1.1.5  christos  * manager. Note that enabling this option causes errors to happen in some
    168   1.1.1.5  christos  * OSPMs during early initialization stages. Default behavior is to do such
    169   1.1.1.5  christos  * verification.
    170   1.1.1.5  christos  */
    171   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_VerifyTableChecksum, TRUE);
    172   1.1.1.5  christos 
    173   1.1.1.5  christos /*
    174   1.1.1.5  christos  * Optionally enable output from the AML Debug Object.
    175   1.1.1.5  christos  */
    176   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_EnableAmlDebugObject, FALSE);
    177   1.1.1.5  christos 
    178   1.1.1.5  christos /*
    179   1.1.1.5  christos  * Optionally copy the entire DSDT to local memory (instead of simply
    180   1.1.1.5  christos  * mapping it.) There are some BIOSs that corrupt or replace the original
    181   1.1.1.5  christos  * DSDT, creating the need for this option. Default is FALSE, do not copy
    182   1.1.1.5  christos  * the DSDT.
    183   1.1.1.5  christos  */
    184   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_CopyDsdtLocally, FALSE);
    185   1.1.1.5  christos 
    186   1.1.1.5  christos /*
    187   1.1.1.5  christos  * Optionally ignore an XSDT if present and use the RSDT instead.
    188   1.1.1.5  christos  * Although the ACPI specification requires that an XSDT be used instead
    189   1.1.1.5  christos  * of the RSDT, the XSDT has been found to be corrupt or ill-formed on
    190   1.1.1.5  christos  * some machines. Default behavior is to use the XSDT if present.
    191   1.1.1.5  christos  */
    192   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_DoNotUseXsdt, FALSE);
    193   1.1.1.5  christos 
    194   1.1.1.5  christos /*
    195   1.1.1.9  christos  * Optionally support group module level code.
    196   1.1.1.8  christos  */
    197   1.1.1.9  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_GroupModuleLevelCode, FALSE);
    198   1.1.1.8  christos 
    199   1.1.1.8  christos /*
    200   1.1.1.5  christos  * Optionally use 32-bit FADT addresses if and when there is a conflict
    201   1.1.1.5  christos  * (address mismatch) between the 32-bit and 64-bit versions of the
    202   1.1.1.5  christos  * address. Although ACPICA adheres to the ACPI specification which
    203   1.1.1.5  christos  * requires the use of the corresponding 64-bit address if it is non-zero,
    204   1.1.1.5  christos  * some machines have been found to have a corrupted non-zero 64-bit
    205   1.1.1.5  christos  * address. Default is FALSE, do not favor the 32-bit addresses.
    206   1.1.1.5  christos  */
    207   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_Use32BitFadtAddresses, FALSE);
    208   1.1.1.5  christos 
    209   1.1.1.5  christos /*
    210   1.1.1.7  christos  * Optionally use 32-bit FACS table addresses.
    211   1.1.1.7  christos  * It is reported that some platforms fail to resume from system suspending
    212   1.1.1.7  christos  * if 64-bit FACS table address is selected:
    213   1.1.1.7  christos  * https://bugzilla.kernel.org/show_bug.cgi?id=74021
    214   1.1.1.7  christos  * Default is TRUE, favor the 32-bit addresses.
    215   1.1.1.7  christos  */
    216   1.1.1.7  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_Use32BitFacsAddresses, TRUE);
    217   1.1.1.7  christos 
    218   1.1.1.7  christos /*
    219   1.1.1.5  christos  * Optionally truncate I/O addresses to 16 bits. Provides compatibility
    220   1.1.1.5  christos  * with other ACPI implementations. NOTE: During ACPICA initialization,
    221   1.1.1.5  christos  * this value is set to TRUE if any Windows OSI strings have been
    222   1.1.1.5  christos  * requested by the BIOS.
    223   1.1.1.5  christos  */
    224   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_TruncateIoAddresses, FALSE);
    225   1.1.1.5  christos 
    226   1.1.1.5  christos /*
    227   1.1.1.5  christos  * Disable runtime checking and repair of values returned by control methods.
    228   1.1.1.5  christos  * Use only if the repair is causing a problem on a particular machine.
    229   1.1.1.5  christos  */
    230   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_DisableAutoRepair, FALSE);
    231   1.1.1.5  christos 
    232   1.1.1.5  christos /*
    233   1.1.1.5  christos  * Optionally do not install any SSDTs from the RSDT/XSDT during initialization.
    234   1.1.1.5  christos  * This can be useful for debugging ACPI problems on some machines.
    235   1.1.1.5  christos  */
    236   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_DisableSsdtTableInstall, FALSE);
    237   1.1.1.5  christos 
    238   1.1.1.5  christos /*
    239   1.1.1.7  christos  * Optionally enable runtime namespace override.
    240   1.1.1.7  christos  */
    241   1.1.1.7  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_RuntimeNamespaceOverride, TRUE);
    242   1.1.1.7  christos 
    243   1.1.1.7  christos /*
    244   1.1.1.5  christos  * We keep track of the latest version of Windows that has been requested by
    245   1.1.1.5  christos  * the BIOS. ACPI 5.0.
    246   1.1.1.5  christos  */
    247   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_OsiData, 0);
    248   1.1.1.5  christos 
    249   1.1.1.5  christos /*
    250   1.1.1.5  christos  * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning
    251   1.1.1.5  christos  * that the ACPI hardware is no longer required. A flag in the FADT indicates
    252   1.1.1.5  christos  * a reduced HW machine, and that flag is duplicated here for convenience.
    253   1.1.1.5  christos  */
    254   1.1.1.5  christos ACPI_INIT_GLOBAL (BOOLEAN,          AcpiGbl_ReducedHardware, FALSE);
    255   1.1.1.5  christos 
    256   1.1.1.5  christos /*
    257   1.1.1.5  christos  * This mechanism is used to trace a specified AML method. The method is
    258   1.1.1.5  christos  * traced each time it is executed.
    259   1.1.1.5  christos  */
    260   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT32,           AcpiGbl_TraceFlags, 0);
    261   1.1.1.7  christos ACPI_INIT_GLOBAL (const char *,     AcpiGbl_TraceMethodName, NULL);
    262   1.1.1.7  christos ACPI_INIT_GLOBAL (UINT32,           AcpiGbl_TraceDbgLevel, ACPI_TRACE_LEVEL_DEFAULT);
    263   1.1.1.7  christos ACPI_INIT_GLOBAL (UINT32,           AcpiGbl_TraceDbgLayer, ACPI_TRACE_LAYER_DEFAULT);
    264   1.1.1.5  christos 
    265       1.1    jruoho /*
    266   1.1.1.5  christos  * Runtime configuration of debug output control masks. We want the debug
    267   1.1.1.5  christos  * switches statically initialized so they are already set when the debugger
    268   1.1.1.5  christos  * is entered.
    269       1.1    jruoho  */
    270   1.1.1.5  christos #ifdef ACPI_DEBUG_OUTPUT
    271   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT32,           AcpiDbgLevel, ACPI_DEBUG_DEFAULT);
    272   1.1.1.5  christos #else
    273   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT32,           AcpiDbgLevel, ACPI_NORMAL_DEFAULT);
    274   1.1.1.5  christos #endif
    275   1.1.1.5  christos ACPI_INIT_GLOBAL (UINT32,           AcpiDbgLayer, ACPI_COMPONENT_DEFAULT);
    276   1.1.1.5  christos 
    277   1.1.1.8  christos /* Optionally enable timer output with Debug Object output */
    278   1.1.1.8  christos 
    279   1.1.1.8  christos ACPI_INIT_GLOBAL (UINT8,            AcpiGbl_DisplayDebugTimer, FALSE);
    280   1.1.1.8  christos 
    281   1.1.1.5  christos /*
    282   1.1.1.5  christos  * Other miscellaneous globals
    283   1.1.1.5  christos  */
    284   1.1.1.5  christos ACPI_GLOBAL (ACPI_TABLE_FADT,       AcpiGbl_FADT);
    285   1.1.1.5  christos ACPI_GLOBAL (UINT32,                AcpiCurrentGpeCount);
    286   1.1.1.5  christos ACPI_GLOBAL (BOOLEAN,               AcpiGbl_SystemAwakeAndRunning);
    287   1.1.1.4  christos 
    288   1.1.1.4  christos 
    289   1.1.1.5  christos /*****************************************************************************
    290   1.1.1.5  christos  *
    291   1.1.1.5  christos  * ACPICA public interface configuration.
    292   1.1.1.5  christos  *
    293   1.1.1.5  christos  * Interfaces that are configured out of the ACPICA build are replaced
    294   1.1.1.5  christos  * by inlined stubs by default.
    295   1.1.1.5  christos  *
    296   1.1.1.5  christos  ****************************************************************************/
    297   1.1.1.5  christos 
    298   1.1.1.4  christos /*
    299   1.1.1.5  christos  * Hardware-reduced prototypes (default: Not hardware reduced).
    300   1.1.1.5  christos  *
    301   1.1.1.5  christos  * All ACPICA hardware-related interfaces that use these macros will be
    302   1.1.1.5  christos  * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag
    303   1.1.1.4  christos  * is set to TRUE.
    304   1.1.1.5  christos  *
    305   1.1.1.5  christos  * Note: This static build option for reduced hardware is intended to
    306   1.1.1.5  christos  * reduce ACPICA code size if desired or necessary. However, even if this
    307   1.1.1.5  christos  * option is not specified, the runtime behavior of ACPICA is dependent
    308   1.1.1.5  christos  * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set,
    309   1.1.1.5  christos  * the flag will enable similar behavior -- ACPICA will not attempt
    310   1.1.1.5  christos  * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.)
    311   1.1.1.4  christos  */
    312   1.1.1.4  christos #if (!ACPI_REDUCED_HARDWARE)
    313   1.1.1.4  christos #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
    314   1.1.1.5  christos     ACPI_EXTERNAL_RETURN_STATUS(Prototype)
    315   1.1.1.4  christos 
    316   1.1.1.4  christos #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
    317   1.1.1.5  christos     ACPI_EXTERNAL_RETURN_OK(Prototype)
    318   1.1.1.4  christos 
    319   1.1.1.4  christos #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
    320   1.1.1.5  christos     ACPI_EXTERNAL_RETURN_VOID(Prototype)
    321   1.1.1.4  christos 
    322   1.1.1.4  christos #else
    323   1.1.1.4  christos #define ACPI_HW_DEPENDENT_RETURN_STATUS(Prototype) \
    324   1.1.1.4  christos     static ACPI_INLINE Prototype {return(AE_NOT_CONFIGURED);}
    325   1.1.1.4  christos 
    326   1.1.1.4  christos #define ACPI_HW_DEPENDENT_RETURN_OK(Prototype) \
    327   1.1.1.4  christos     static ACPI_INLINE Prototype {return(AE_OK);}
    328   1.1.1.4  christos 
    329   1.1.1.4  christos #define ACPI_HW_DEPENDENT_RETURN_VOID(Prototype) \
    330   1.1.1.4  christos     static ACPI_INLINE Prototype {return;}
    331   1.1.1.4  christos 
    332   1.1.1.4  christos #endif /* !ACPI_REDUCED_HARDWARE */
    333       1.1    jruoho 
    334       1.1    jruoho 
    335       1.1    jruoho /*
    336   1.1.1.5  christos  * Error message prototypes (default: error messages enabled).
    337   1.1.1.5  christos  *
    338   1.1.1.5  christos  * All interfaces related to error and warning messages
    339   1.1.1.5  christos  * will be configured out of the ACPICA build if the
    340   1.1.1.5  christos  * ACPI_NO_ERROR_MESSAGE flag is defined.
    341   1.1.1.5  christos  */
    342   1.1.1.5  christos #ifndef ACPI_NO_ERROR_MESSAGES
    343   1.1.1.5  christos #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
    344   1.1.1.5  christos     Prototype;
    345   1.1.1.5  christos 
    346   1.1.1.5  christos #else
    347   1.1.1.5  christos #define ACPI_MSG_DEPENDENT_RETURN_VOID(Prototype) \
    348   1.1.1.5  christos     static ACPI_INLINE Prototype {return;}
    349   1.1.1.5  christos 
    350   1.1.1.5  christos #endif /* ACPI_NO_ERROR_MESSAGES */
    351   1.1.1.5  christos 
    352   1.1.1.5  christos 
    353   1.1.1.5  christos /*
    354   1.1.1.5  christos  * Debugging output prototypes (default: no debug output).
    355   1.1.1.5  christos  *
    356   1.1.1.5  christos  * All interfaces related to debug output messages
    357   1.1.1.5  christos  * will be configured out of the ACPICA build unless the
    358   1.1.1.5  christos  * ACPI_DEBUG_OUTPUT flag is defined.
    359   1.1.1.5  christos  */
    360   1.1.1.5  christos #ifdef ACPI_DEBUG_OUTPUT
    361   1.1.1.5  christos #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
    362   1.1.1.5  christos     Prototype;
    363   1.1.1.5  christos 
    364   1.1.1.5  christos #else
    365   1.1.1.5  christos #define ACPI_DBG_DEPENDENT_RETURN_VOID(Prototype) \
    366   1.1.1.5  christos     static ACPI_INLINE Prototype {return;}
    367   1.1.1.5  christos 
    368   1.1.1.5  christos #endif /* ACPI_DEBUG_OUTPUT */
    369   1.1.1.5  christos 
    370   1.1.1.5  christos 
    371   1.1.1.5  christos /*
    372   1.1.1.5  christos  * Application prototypes
    373   1.1.1.5  christos  *
    374   1.1.1.5  christos  * All interfaces used by application will be configured
    375   1.1.1.5  christos  * out of the ACPICA build unless the ACPI_APPLICATION
    376   1.1.1.5  christos  * flag is defined.
    377   1.1.1.5  christos  */
    378   1.1.1.5  christos #ifdef ACPI_APPLICATION
    379   1.1.1.5  christos #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
    380   1.1.1.5  christos     Prototype;
    381   1.1.1.5  christos 
    382   1.1.1.5  christos #else
    383   1.1.1.5  christos #define ACPI_APP_DEPENDENT_RETURN_VOID(Prototype) \
    384   1.1.1.5  christos     static ACPI_INLINE Prototype {return;}
    385   1.1.1.5  christos 
    386   1.1.1.5  christos #endif /* ACPI_APPLICATION */
    387   1.1.1.5  christos 
    388   1.1.1.5  christos 
    389   1.1.1.8  christos /*
    390   1.1.1.8  christos  * Debugger prototypes
    391   1.1.1.8  christos  *
    392   1.1.1.8  christos  * All interfaces used by debugger will be configured
    393   1.1.1.8  christos  * out of the ACPICA build unless the ACPI_DEBUGGER
    394   1.1.1.8  christos  * flag is defined.
    395   1.1.1.8  christos  */
    396   1.1.1.8  christos #ifdef ACPI_DEBUGGER
    397   1.1.1.8  christos #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
    398   1.1.1.8  christos     ACPI_EXTERNAL_RETURN_OK(Prototype)
    399   1.1.1.8  christos 
    400   1.1.1.8  christos #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
    401   1.1.1.8  christos     ACPI_EXTERNAL_RETURN_VOID(Prototype)
    402   1.1.1.8  christos 
    403   1.1.1.8  christos #else
    404   1.1.1.8  christos #define ACPI_DBR_DEPENDENT_RETURN_OK(Prototype) \
    405   1.1.1.8  christos     static ACPI_INLINE Prototype {return(AE_OK);}
    406   1.1.1.8  christos 
    407   1.1.1.8  christos #define ACPI_DBR_DEPENDENT_RETURN_VOID(Prototype) \
    408   1.1.1.8  christos     static ACPI_INLINE Prototype {return;}
    409   1.1.1.8  christos 
    410   1.1.1.8  christos #endif /* ACPI_DEBUGGER */
    411   1.1.1.8  christos 
    412   1.1.1.8  christos 
    413   1.1.1.5  christos /*****************************************************************************
    414   1.1.1.5  christos  *
    415   1.1.1.5  christos  * ACPICA public interface prototypes
    416   1.1.1.5  christos  *
    417   1.1.1.5  christos  ****************************************************************************/
    418   1.1.1.5  christos 
    419   1.1.1.5  christos /*
    420   1.1.1.2    jruoho  * Initialization
    421       1.1    jruoho  */
    422   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    423       1.1    jruoho ACPI_STATUS
    424       1.1    jruoho AcpiInitializeTables (
    425       1.1    jruoho     ACPI_TABLE_DESC         *InitialStorage,
    426       1.1    jruoho     UINT32                  InitialTableCount,
    427   1.1.1.5  christos     BOOLEAN                 AllowResize))
    428       1.1    jruoho 
    429   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    430       1.1    jruoho ACPI_STATUS
    431       1.1    jruoho AcpiInitializeSubsystem (
    432   1.1.1.5  christos     void))
    433       1.1    jruoho 
    434   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    435       1.1    jruoho ACPI_STATUS
    436       1.1    jruoho AcpiEnableSubsystem (
    437   1.1.1.5  christos     UINT32                  Flags))
    438       1.1    jruoho 
    439   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    440       1.1    jruoho ACPI_STATUS
    441       1.1    jruoho AcpiInitializeObjects (
    442   1.1.1.5  christos     UINT32                  Flags))
    443       1.1    jruoho 
    444   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    445       1.1    jruoho ACPI_STATUS
    446       1.1    jruoho AcpiTerminate (
    447   1.1.1.5  christos     void))
    448       1.1    jruoho 
    449       1.1    jruoho 
    450   1.1.1.2    jruoho /*
    451   1.1.1.2    jruoho  * Miscellaneous global interfaces
    452   1.1.1.2    jruoho  */
    453   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    454       1.1    jruoho ACPI_STATUS
    455       1.1    jruoho AcpiEnable (
    456   1.1.1.4  christos     void))
    457       1.1    jruoho 
    458   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    459       1.1    jruoho ACPI_STATUS
    460       1.1    jruoho AcpiDisable (
    461   1.1.1.4  christos     void))
    462       1.1    jruoho 
    463   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    464       1.1    jruoho ACPI_STATUS
    465   1.1.1.2    jruoho AcpiSubsystemStatus (
    466   1.1.1.5  christos     void))
    467   1.1.1.2    jruoho 
    468   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    469   1.1.1.2    jruoho ACPI_STATUS
    470       1.1    jruoho AcpiGetSystemInfo (
    471   1.1.1.5  christos     ACPI_BUFFER             *RetBuffer))
    472       1.1    jruoho 
    473   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    474       1.1    jruoho ACPI_STATUS
    475       1.1    jruoho AcpiGetStatistics (
    476   1.1.1.5  christos     ACPI_STATISTICS         *Stats))
    477       1.1    jruoho 
    478   1.1.1.5  christos ACPI_EXTERNAL_RETURN_PTR (
    479       1.1    jruoho const char *
    480       1.1    jruoho AcpiFormatException (
    481   1.1.1.5  christos     ACPI_STATUS             Exception))
    482       1.1    jruoho 
    483   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    484       1.1    jruoho ACPI_STATUS
    485       1.1    jruoho AcpiPurgeCachedObjects (
    486   1.1.1.5  christos     void))
    487       1.1    jruoho 
    488   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    489   1.1.1.2    jruoho ACPI_STATUS
    490   1.1.1.2    jruoho AcpiInstallInterface (
    491   1.1.1.5  christos     ACPI_STRING             InterfaceName))
    492   1.1.1.2    jruoho 
    493   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    494   1.1.1.2    jruoho ACPI_STATUS
    495   1.1.1.2    jruoho AcpiRemoveInterface (
    496   1.1.1.5  christos     ACPI_STRING             InterfaceName))
    497   1.1.1.2    jruoho 
    498   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    499   1.1.1.4  christos ACPI_STATUS
    500   1.1.1.4  christos AcpiUpdateInterfaces (
    501   1.1.1.5  christos     UINT8                   Action))
    502   1.1.1.4  christos 
    503   1.1.1.5  christos ACPI_EXTERNAL_RETURN_UINT32 (
    504   1.1.1.4  christos UINT32
    505   1.1.1.4  christos AcpiCheckAddressRange (
    506   1.1.1.4  christos     ACPI_ADR_SPACE_TYPE     SpaceId,
    507   1.1.1.4  christos     ACPI_PHYSICAL_ADDRESS   Address,
    508   1.1.1.4  christos     ACPI_SIZE               Length,
    509   1.1.1.5  christos     BOOLEAN                 Warn))
    510   1.1.1.4  christos 
    511   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    512   1.1.1.4  christos ACPI_STATUS
    513   1.1.1.4  christos AcpiDecodePldBuffer (
    514   1.1.1.4  christos     UINT8                   *InBuffer,
    515   1.1.1.4  christos     ACPI_SIZE               Length,
    516   1.1.1.5  christos     ACPI_PLD_INFO           **ReturnBuffer))
    517   1.1.1.4  christos 
    518       1.1    jruoho 
    519       1.1    jruoho /*
    520   1.1.1.4  christos  * ACPI table load/unload interfaces
    521       1.1    jruoho  */
    522   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    523   1.1.1.5  christos ACPI_STATUS
    524   1.1.1.5  christos AcpiInstallTable (
    525   1.1.1.5  christos     ACPI_PHYSICAL_ADDRESS   Address,
    526   1.1.1.5  christos     BOOLEAN                 Physical))
    527   1.1.1.5  christos 
    528   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    529   1.1.1.4  christos ACPI_STATUS
    530   1.1.1.4  christos AcpiLoadTable (
    531   1.1.1.5  christos     ACPI_TABLE_HEADER       *Table))
    532   1.1.1.4  christos 
    533   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    534   1.1.1.4  christos ACPI_STATUS
    535   1.1.1.4  christos AcpiUnloadParentTable (
    536   1.1.1.5  christos     ACPI_HANDLE             Object))
    537   1.1.1.4  christos 
    538   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    539   1.1.1.4  christos ACPI_STATUS
    540   1.1.1.4  christos AcpiLoadTables (
    541   1.1.1.5  christos     void))
    542       1.1    jruoho 
    543       1.1    jruoho 
    544       1.1    jruoho /*
    545       1.1    jruoho  * ACPI table manipulation interfaces
    546       1.1    jruoho  */
    547   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    548       1.1    jruoho ACPI_STATUS
    549       1.1    jruoho AcpiReallocateRootTable (
    550   1.1.1.5  christos     void))
    551       1.1    jruoho 
    552   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    553       1.1    jruoho ACPI_STATUS
    554       1.1    jruoho AcpiFindRootPointer (
    555   1.1.1.6  christos     ACPI_PHYSICAL_ADDRESS   *RsdpAddress))
    556       1.1    jruoho 
    557   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    558       1.1    jruoho ACPI_STATUS
    559       1.1    jruoho AcpiGetTableHeader (
    560       1.1    jruoho     ACPI_STRING             Signature,
    561       1.1    jruoho     UINT32                  Instance,
    562   1.1.1.5  christos     ACPI_TABLE_HEADER       *OutTableHeader))
    563       1.1    jruoho 
    564   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    565       1.1    jruoho ACPI_STATUS
    566       1.1    jruoho AcpiGetTable (
    567       1.1    jruoho     ACPI_STRING             Signature,
    568       1.1    jruoho     UINT32                  Instance,
    569   1.1.1.5  christos     ACPI_TABLE_HEADER       **OutTable))
    570       1.1    jruoho 
    571   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    572       1.1    jruoho ACPI_STATUS
    573       1.1    jruoho AcpiGetTableByIndex (
    574       1.1    jruoho     UINT32                  TableIndex,
    575   1.1.1.5  christos     ACPI_TABLE_HEADER       **OutTable))
    576       1.1    jruoho 
    577   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    578       1.1    jruoho ACPI_STATUS
    579       1.1    jruoho AcpiInstallTableHandler (
    580       1.1    jruoho     ACPI_TABLE_HANDLER      Handler,
    581   1.1.1.5  christos     void                    *Context))
    582       1.1    jruoho 
    583   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    584       1.1    jruoho ACPI_STATUS
    585       1.1    jruoho AcpiRemoveTableHandler (
    586   1.1.1.5  christos     ACPI_TABLE_HANDLER      Handler))
    587       1.1    jruoho 
    588       1.1    jruoho 
    589       1.1    jruoho /*
    590       1.1    jruoho  * Namespace and name interfaces
    591       1.1    jruoho  */
    592   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    593       1.1    jruoho ACPI_STATUS
    594       1.1    jruoho AcpiWalkNamespace (
    595       1.1    jruoho     ACPI_OBJECT_TYPE        Type,
    596       1.1    jruoho     ACPI_HANDLE             StartObject,
    597       1.1    jruoho     UINT32                  MaxDepth,
    598   1.1.1.4  christos     ACPI_WALK_CALLBACK      DescendingCallback,
    599   1.1.1.4  christos     ACPI_WALK_CALLBACK      AscendingCallback,
    600       1.1    jruoho     void                    *Context,
    601   1.1.1.5  christos     void                    **ReturnValue))
    602       1.1    jruoho 
    603   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    604       1.1    jruoho ACPI_STATUS
    605       1.1    jruoho AcpiGetDevices (
    606       1.1    jruoho     char                    *HID,
    607       1.1    jruoho     ACPI_WALK_CALLBACK      UserFunction,
    608       1.1    jruoho     void                    *Context,
    609   1.1.1.5  christos     void                    **ReturnValue))
    610       1.1    jruoho 
    611   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    612       1.1    jruoho ACPI_STATUS
    613       1.1    jruoho AcpiGetName (
    614       1.1    jruoho     ACPI_HANDLE             Object,
    615       1.1    jruoho     UINT32                  NameType,
    616   1.1.1.5  christos     ACPI_BUFFER             *RetPathPtr))
    617       1.1    jruoho 
    618   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    619       1.1    jruoho ACPI_STATUS
    620       1.1    jruoho AcpiGetHandle (
    621       1.1    jruoho     ACPI_HANDLE             Parent,
    622       1.1    jruoho     ACPI_STRING             Pathname,
    623   1.1.1.5  christos     ACPI_HANDLE             *RetHandle))
    624       1.1    jruoho 
    625   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    626       1.1    jruoho ACPI_STATUS
    627       1.1    jruoho AcpiAttachData (
    628       1.1    jruoho     ACPI_HANDLE             Object,
    629       1.1    jruoho     ACPI_OBJECT_HANDLER     Handler,
    630   1.1.1.5  christos     void                    *Data))
    631       1.1    jruoho 
    632   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    633       1.1    jruoho ACPI_STATUS
    634       1.1    jruoho AcpiDetachData (
    635       1.1    jruoho     ACPI_HANDLE             Object,
    636   1.1.1.5  christos     ACPI_OBJECT_HANDLER     Handler))
    637       1.1    jruoho 
    638   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    639       1.1    jruoho ACPI_STATUS
    640       1.1    jruoho AcpiGetData (
    641       1.1    jruoho     ACPI_HANDLE             Object,
    642       1.1    jruoho     ACPI_OBJECT_HANDLER     Handler,
    643   1.1.1.5  christos     void                    **Data))
    644       1.1    jruoho 
    645   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    646       1.1    jruoho ACPI_STATUS
    647       1.1    jruoho AcpiDebugTrace (
    648   1.1.1.7  christos     const char              *Name,
    649       1.1    jruoho     UINT32                  DebugLevel,
    650       1.1    jruoho     UINT32                  DebugLayer,
    651   1.1.1.5  christos     UINT32                  Flags))
    652       1.1    jruoho 
    653       1.1    jruoho 
    654       1.1    jruoho /*
    655       1.1    jruoho  * Object manipulation and enumeration
    656       1.1    jruoho  */
    657   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    658       1.1    jruoho ACPI_STATUS
    659       1.1    jruoho AcpiEvaluateObject (
    660       1.1    jruoho     ACPI_HANDLE             Object,
    661       1.1    jruoho     ACPI_STRING             Pathname,
    662       1.1    jruoho     ACPI_OBJECT_LIST        *ParameterObjects,
    663   1.1.1.5  christos     ACPI_BUFFER             *ReturnObjectBuffer))
    664       1.1    jruoho 
    665   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    666       1.1    jruoho ACPI_STATUS
    667       1.1    jruoho AcpiEvaluateObjectTyped (
    668       1.1    jruoho     ACPI_HANDLE             Object,
    669       1.1    jruoho     ACPI_STRING             Pathname,
    670       1.1    jruoho     ACPI_OBJECT_LIST        *ExternalParams,
    671       1.1    jruoho     ACPI_BUFFER             *ReturnBuffer,
    672   1.1.1.5  christos     ACPI_OBJECT_TYPE        ReturnType))
    673       1.1    jruoho 
    674   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    675       1.1    jruoho ACPI_STATUS
    676       1.1    jruoho AcpiGetObjectInfo (
    677       1.1    jruoho     ACPI_HANDLE             Object,
    678   1.1.1.5  christos     ACPI_DEVICE_INFO        **ReturnBuffer))
    679       1.1    jruoho 
    680   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    681       1.1    jruoho ACPI_STATUS
    682       1.1    jruoho AcpiInstallMethod (
    683   1.1.1.5  christos     UINT8                   *Buffer))
    684       1.1    jruoho 
    685   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    686       1.1    jruoho ACPI_STATUS
    687       1.1    jruoho AcpiGetNextObject (
    688       1.1    jruoho     ACPI_OBJECT_TYPE        Type,
    689       1.1    jruoho     ACPI_HANDLE             Parent,
    690       1.1    jruoho     ACPI_HANDLE             Child,
    691   1.1.1.5  christos     ACPI_HANDLE             *OutHandle))
    692       1.1    jruoho 
    693   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    694       1.1    jruoho ACPI_STATUS
    695       1.1    jruoho AcpiGetType (
    696       1.1    jruoho     ACPI_HANDLE             Object,
    697   1.1.1.5  christos     ACPI_OBJECT_TYPE        *OutType))
    698       1.1    jruoho 
    699   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    700       1.1    jruoho ACPI_STATUS
    701       1.1    jruoho AcpiGetParent (
    702       1.1    jruoho     ACPI_HANDLE             Object,
    703   1.1.1.5  christos     ACPI_HANDLE             *OutHandle))
    704       1.1    jruoho 
    705       1.1    jruoho 
    706       1.1    jruoho /*
    707       1.1    jruoho  * Handler interfaces
    708       1.1    jruoho  */
    709   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    710       1.1    jruoho ACPI_STATUS
    711       1.1    jruoho AcpiInstallInitializationHandler (
    712       1.1    jruoho     ACPI_INIT_HANDLER       Handler,
    713   1.1.1.5  christos     UINT32                  Function))
    714       1.1    jruoho 
    715   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    716   1.1.1.4  christos ACPI_STATUS
    717   1.1.1.4  christos AcpiInstallSciHandler (
    718   1.1.1.4  christos     ACPI_SCI_HANDLER        Address,
    719   1.1.1.4  christos     void                    *Context))
    720   1.1.1.4  christos 
    721   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    722   1.1.1.4  christos ACPI_STATUS
    723   1.1.1.4  christos AcpiRemoveSciHandler (
    724   1.1.1.4  christos     ACPI_SCI_HANDLER        Address))
    725   1.1.1.4  christos 
    726   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    727       1.1    jruoho ACPI_STATUS
    728   1.1.1.2    jruoho AcpiInstallGlobalEventHandler (
    729   1.1.1.2    jruoho     ACPI_GBL_EVENT_HANDLER  Handler,
    730   1.1.1.4  christos     void                    *Context))
    731   1.1.1.2    jruoho 
    732   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    733   1.1.1.2    jruoho ACPI_STATUS
    734       1.1    jruoho AcpiInstallFixedEventHandler (
    735       1.1    jruoho     UINT32                  AcpiEvent,
    736       1.1    jruoho     ACPI_EVENT_HANDLER      Handler,
    737   1.1.1.4  christos     void                    *Context))
    738       1.1    jruoho 
    739   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    740       1.1    jruoho ACPI_STATUS
    741       1.1    jruoho AcpiRemoveFixedEventHandler (
    742       1.1    jruoho     UINT32                  AcpiEvent,
    743   1.1.1.4  christos     ACPI_EVENT_HANDLER      Handler))
    744       1.1    jruoho 
    745   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    746       1.1    jruoho ACPI_STATUS
    747   1.1.1.2    jruoho AcpiInstallGpeHandler (
    748   1.1.1.2    jruoho     ACPI_HANDLE             GpeDevice,
    749   1.1.1.2    jruoho     UINT32                  GpeNumber,
    750   1.1.1.2    jruoho     UINT32                  Type,
    751   1.1.1.2    jruoho     ACPI_GPE_HANDLER        Address,
    752   1.1.1.4  christos     void                    *Context))
    753   1.1.1.2    jruoho 
    754   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    755   1.1.1.2    jruoho ACPI_STATUS
    756   1.1.1.6  christos AcpiInstallGpeRawHandler (
    757   1.1.1.6  christos     ACPI_HANDLE             GpeDevice,
    758   1.1.1.6  christos     UINT32                  GpeNumber,
    759   1.1.1.6  christos     UINT32                  Type,
    760   1.1.1.6  christos     ACPI_GPE_HANDLER        Address,
    761   1.1.1.6  christos     void                    *Context))
    762   1.1.1.6  christos 
    763   1.1.1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    764   1.1.1.6  christos ACPI_STATUS
    765   1.1.1.2    jruoho AcpiRemoveGpeHandler (
    766   1.1.1.2    jruoho     ACPI_HANDLE             GpeDevice,
    767   1.1.1.2    jruoho     UINT32                  GpeNumber,
    768   1.1.1.4  christos     ACPI_GPE_HANDLER        Address))
    769   1.1.1.2    jruoho 
    770   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    771   1.1.1.2    jruoho ACPI_STATUS
    772       1.1    jruoho AcpiInstallNotifyHandler (
    773       1.1    jruoho     ACPI_HANDLE             Device,
    774       1.1    jruoho     UINT32                  HandlerType,
    775       1.1    jruoho     ACPI_NOTIFY_HANDLER     Handler,
    776   1.1.1.5  christos     void                    *Context))
    777       1.1    jruoho 
    778   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    779       1.1    jruoho ACPI_STATUS
    780       1.1    jruoho AcpiRemoveNotifyHandler (
    781       1.1    jruoho     ACPI_HANDLE             Device,
    782       1.1    jruoho     UINT32                  HandlerType,
    783   1.1.1.5  christos     ACPI_NOTIFY_HANDLER     Handler))
    784       1.1    jruoho 
    785   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    786       1.1    jruoho ACPI_STATUS
    787       1.1    jruoho AcpiInstallAddressSpaceHandler (
    788       1.1    jruoho     ACPI_HANDLE             Device,
    789       1.1    jruoho     ACPI_ADR_SPACE_TYPE     SpaceId,
    790       1.1    jruoho     ACPI_ADR_SPACE_HANDLER  Handler,
    791       1.1    jruoho     ACPI_ADR_SPACE_SETUP    Setup,
    792   1.1.1.5  christos     void                    *Context))
    793       1.1    jruoho 
    794   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    795       1.1    jruoho ACPI_STATUS
    796       1.1    jruoho AcpiRemoveAddressSpaceHandler (
    797       1.1    jruoho     ACPI_HANDLE             Device,
    798       1.1    jruoho     ACPI_ADR_SPACE_TYPE     SpaceId,
    799   1.1.1.5  christos     ACPI_ADR_SPACE_HANDLER  Handler))
    800       1.1    jruoho 
    801   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    802       1.1    jruoho ACPI_STATUS
    803       1.1    jruoho AcpiInstallExceptionHandler (
    804   1.1.1.5  christos     ACPI_EXCEPTION_HANDLER  Handler))
    805       1.1    jruoho 
    806   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    807   1.1.1.2    jruoho ACPI_STATUS
    808   1.1.1.2    jruoho AcpiInstallInterfaceHandler (
    809   1.1.1.5  christos     ACPI_INTERFACE_HANDLER  Handler))
    810   1.1.1.2    jruoho 
    811       1.1    jruoho 
    812       1.1    jruoho /*
    813   1.1.1.2    jruoho  * Global Lock interfaces
    814       1.1    jruoho  */
    815   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    816       1.1    jruoho ACPI_STATUS
    817       1.1    jruoho AcpiAcquireGlobalLock (
    818       1.1    jruoho     UINT16                  Timeout,
    819   1.1.1.4  christos     UINT32                  *Handle))
    820       1.1    jruoho 
    821   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    822       1.1    jruoho ACPI_STATUS
    823       1.1    jruoho AcpiReleaseGlobalLock (
    824   1.1.1.4  christos     UINT32                  Handle))
    825   1.1.1.4  christos 
    826   1.1.1.4  christos 
    827   1.1.1.4  christos /*
    828   1.1.1.4  christos  * Interfaces to AML mutex objects
    829   1.1.1.4  christos  */
    830   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    831   1.1.1.4  christos ACPI_STATUS
    832   1.1.1.4  christos AcpiAcquireMutex (
    833   1.1.1.4  christos     ACPI_HANDLE             Handle,
    834   1.1.1.4  christos     ACPI_STRING             Pathname,
    835   1.1.1.5  christos     UINT16                  Timeout))
    836   1.1.1.4  christos 
    837   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    838   1.1.1.4  christos ACPI_STATUS
    839   1.1.1.4  christos AcpiReleaseMutex (
    840   1.1.1.4  christos     ACPI_HANDLE             Handle,
    841   1.1.1.5  christos     ACPI_STRING             Pathname))
    842       1.1    jruoho 
    843   1.1.1.2    jruoho 
    844   1.1.1.2    jruoho /*
    845   1.1.1.2    jruoho  * Fixed Event interfaces
    846   1.1.1.2    jruoho  */
    847   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    848       1.1    jruoho ACPI_STATUS
    849       1.1    jruoho AcpiEnableEvent (
    850       1.1    jruoho     UINT32                  Event,
    851   1.1.1.4  christos     UINT32                  Flags))
    852       1.1    jruoho 
    853   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    854       1.1    jruoho ACPI_STATUS
    855       1.1    jruoho AcpiDisableEvent (
    856       1.1    jruoho     UINT32                  Event,
    857   1.1.1.4  christos     UINT32                  Flags))
    858       1.1    jruoho 
    859   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    860       1.1    jruoho ACPI_STATUS
    861       1.1    jruoho AcpiClearEvent (
    862   1.1.1.4  christos     UINT32                  Event))
    863       1.1    jruoho 
    864   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    865       1.1    jruoho ACPI_STATUS
    866       1.1    jruoho AcpiGetEventStatus (
    867       1.1    jruoho     UINT32                  Event,
    868   1.1.1.4  christos     ACPI_EVENT_STATUS       *EventStatus))
    869       1.1    jruoho 
    870       1.1    jruoho 
    871       1.1    jruoho /*
    872   1.1.1.2    jruoho  * General Purpose Event (GPE) Interfaces
    873       1.1    jruoho  */
    874   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    875       1.1    jruoho ACPI_STATUS
    876   1.1.1.2    jruoho AcpiUpdateAllGpes (
    877   1.1.1.4  christos     void))
    878       1.1    jruoho 
    879   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    880       1.1    jruoho ACPI_STATUS
    881       1.1    jruoho AcpiEnableGpe (
    882       1.1    jruoho     ACPI_HANDLE             GpeDevice,
    883   1.1.1.4  christos     UINT32                  GpeNumber))
    884       1.1    jruoho 
    885   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    886       1.1    jruoho ACPI_STATUS
    887       1.1    jruoho AcpiDisableGpe (
    888       1.1    jruoho     ACPI_HANDLE             GpeDevice,
    889   1.1.1.4  christos     UINT32                  GpeNumber))
    890       1.1    jruoho 
    891   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    892       1.1    jruoho ACPI_STATUS
    893       1.1    jruoho AcpiClearGpe (
    894       1.1    jruoho     ACPI_HANDLE             GpeDevice,
    895   1.1.1.4  christos     UINT32                  GpeNumber))
    896       1.1    jruoho 
    897   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    898       1.1    jruoho ACPI_STATUS
    899   1.1.1.2    jruoho AcpiSetGpe (
    900   1.1.1.2    jruoho     ACPI_HANDLE             GpeDevice,
    901   1.1.1.2    jruoho     UINT32                  GpeNumber,
    902   1.1.1.4  christos     UINT8                   Action))
    903   1.1.1.2    jruoho 
    904   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    905   1.1.1.2    jruoho ACPI_STATUS
    906   1.1.1.2    jruoho AcpiFinishGpe (
    907   1.1.1.2    jruoho     ACPI_HANDLE             GpeDevice,
    908   1.1.1.4  christos     UINT32                  GpeNumber))
    909   1.1.1.2    jruoho 
    910   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    911   1.1.1.2    jruoho ACPI_STATUS
    912   1.1.1.5  christos AcpiMarkGpeForWake (
    913   1.1.1.5  christos     ACPI_HANDLE             GpeDevice,
    914   1.1.1.5  christos     UINT32                  GpeNumber))
    915   1.1.1.5  christos 
    916   1.1.1.5  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    917   1.1.1.5  christos ACPI_STATUS
    918   1.1.1.2    jruoho AcpiSetupGpeForWake (
    919   1.1.1.2    jruoho     ACPI_HANDLE             ParentDevice,
    920   1.1.1.2    jruoho     ACPI_HANDLE             GpeDevice,
    921   1.1.1.4  christos     UINT32                  GpeNumber))
    922   1.1.1.2    jruoho 
    923   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    924   1.1.1.2    jruoho ACPI_STATUS
    925   1.1.1.2    jruoho AcpiSetGpeWakeMask (
    926   1.1.1.2    jruoho     ACPI_HANDLE             GpeDevice,
    927   1.1.1.2    jruoho     UINT32                  GpeNumber,
    928   1.1.1.4  christos     UINT8                   Action))
    929   1.1.1.2    jruoho 
    930   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    931   1.1.1.2    jruoho ACPI_STATUS
    932       1.1    jruoho AcpiGetGpeStatus (
    933       1.1    jruoho     ACPI_HANDLE             GpeDevice,
    934       1.1    jruoho     UINT32                  GpeNumber,
    935   1.1.1.4  christos     ACPI_EVENT_STATUS       *EventStatus))
    936       1.1    jruoho 
    937   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    938       1.1    jruoho ACPI_STATUS
    939       1.1    jruoho AcpiDisableAllGpes (
    940   1.1.1.4  christos     void))
    941       1.1    jruoho 
    942   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    943       1.1    jruoho ACPI_STATUS
    944       1.1    jruoho AcpiEnableAllRuntimeGpes (
    945   1.1.1.4  christos     void))
    946       1.1    jruoho 
    947   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    948       1.1    jruoho ACPI_STATUS
    949   1.1.1.6  christos AcpiEnableAllWakeupGpes (
    950   1.1.1.6  christos     void))
    951   1.1.1.6  christos 
    952   1.1.1.6  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    953   1.1.1.6  christos ACPI_STATUS
    954       1.1    jruoho AcpiGetGpeDevice (
    955       1.1    jruoho     UINT32                  GpeIndex,
    956   1.1.1.4  christos     ACPI_HANDLE             *GpeDevice))
    957       1.1    jruoho 
    958   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    959       1.1    jruoho ACPI_STATUS
    960       1.1    jruoho AcpiInstallGpeBlock (
    961       1.1    jruoho     ACPI_HANDLE             GpeDevice,
    962       1.1    jruoho     ACPI_GENERIC_ADDRESS    *GpeBlockAddress,
    963       1.1    jruoho     UINT32                  RegisterCount,
    964   1.1.1.4  christos     UINT32                  InterruptNumber))
    965       1.1    jruoho 
    966   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
    967       1.1    jruoho ACPI_STATUS
    968       1.1    jruoho AcpiRemoveGpeBlock (
    969   1.1.1.4  christos     ACPI_HANDLE             GpeDevice))
    970       1.1    jruoho 
    971       1.1    jruoho 
    972       1.1    jruoho /*
    973       1.1    jruoho  * Resource interfaces
    974       1.1    jruoho  */
    975       1.1    jruoho typedef
    976       1.1    jruoho ACPI_STATUS (*ACPI_WALK_RESOURCE_CALLBACK) (
    977       1.1    jruoho     ACPI_RESOURCE           *Resource,
    978       1.1    jruoho     void                    *Context);
    979       1.1    jruoho 
    980   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    981       1.1    jruoho ACPI_STATUS
    982       1.1    jruoho AcpiGetVendorResource (
    983       1.1    jruoho     ACPI_HANDLE             Device,
    984       1.1    jruoho     char                    *Name,
    985       1.1    jruoho     ACPI_VENDOR_UUID        *Uuid,
    986   1.1.1.5  christos     ACPI_BUFFER             *RetBuffer))
    987       1.1    jruoho 
    988   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    989       1.1    jruoho ACPI_STATUS
    990       1.1    jruoho AcpiGetCurrentResources (
    991       1.1    jruoho     ACPI_HANDLE             Device,
    992   1.1.1.5  christos     ACPI_BUFFER             *RetBuffer))
    993       1.1    jruoho 
    994   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
    995       1.1    jruoho ACPI_STATUS
    996       1.1    jruoho AcpiGetPossibleResources (
    997       1.1    jruoho     ACPI_HANDLE             Device,
    998   1.1.1.5  christos     ACPI_BUFFER             *RetBuffer))
    999       1.1    jruoho 
   1000   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
   1001       1.1    jruoho ACPI_STATUS
   1002   1.1.1.4  christos AcpiGetEventResources (
   1003   1.1.1.4  christos     ACPI_HANDLE             DeviceHandle,
   1004   1.1.1.5  christos     ACPI_BUFFER             *RetBuffer))
   1005   1.1.1.4  christos 
   1006   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
   1007   1.1.1.4  christos ACPI_STATUS
   1008   1.1.1.4  christos AcpiWalkResourceBuffer (
   1009   1.1.1.4  christos     ACPI_BUFFER                 *Buffer,
   1010   1.1.1.4  christos     ACPI_WALK_RESOURCE_CALLBACK UserFunction,
   1011   1.1.1.5  christos     void                        *Context))
   1012   1.1.1.4  christos 
   1013   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
   1014   1.1.1.4  christos ACPI_STATUS
   1015       1.1    jruoho AcpiWalkResources (
   1016       1.1    jruoho     ACPI_HANDLE                 Device,
   1017       1.1    jruoho     char                        *Name,
   1018       1.1    jruoho     ACPI_WALK_RESOURCE_CALLBACK UserFunction,
   1019   1.1.1.5  christos     void                        *Context))
   1020       1.1    jruoho 
   1021   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
   1022       1.1    jruoho ACPI_STATUS
   1023       1.1    jruoho AcpiSetCurrentResources (
   1024       1.1    jruoho     ACPI_HANDLE             Device,
   1025   1.1.1.5  christos     ACPI_BUFFER             *InBuffer))
   1026       1.1    jruoho 
   1027   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
   1028       1.1    jruoho ACPI_STATUS
   1029       1.1    jruoho AcpiGetIrqRoutingTable (
   1030       1.1    jruoho     ACPI_HANDLE             Device,
   1031   1.1.1.5  christos     ACPI_BUFFER             *RetBuffer))
   1032       1.1    jruoho 
   1033   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
   1034       1.1    jruoho ACPI_STATUS
   1035       1.1    jruoho AcpiResourceToAddress64 (
   1036       1.1    jruoho     ACPI_RESOURCE           *Resource,
   1037   1.1.1.5  christos     ACPI_RESOURCE_ADDRESS64 *Out))
   1038       1.1    jruoho 
   1039   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
   1040   1.1.1.4  christos ACPI_STATUS
   1041   1.1.1.4  christos AcpiBufferToResource (
   1042   1.1.1.4  christos     UINT8                   *AmlBuffer,
   1043   1.1.1.4  christos     UINT16                  AmlBufferLength,
   1044   1.1.1.5  christos     ACPI_RESOURCE           **ResourcePtr))
   1045   1.1.1.4  christos 
   1046       1.1    jruoho 
   1047       1.1    jruoho /*
   1048       1.1    jruoho  * Hardware (ACPI device) interfaces
   1049       1.1    jruoho  */
   1050   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
   1051       1.1    jruoho ACPI_STATUS
   1052       1.1    jruoho AcpiReset (
   1053   1.1.1.5  christos     void))
   1054       1.1    jruoho 
   1055   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
   1056       1.1    jruoho ACPI_STATUS
   1057       1.1    jruoho AcpiRead (
   1058       1.1    jruoho     UINT64                  *Value,
   1059   1.1.1.5  christos     ACPI_GENERIC_ADDRESS    *Reg))
   1060       1.1    jruoho 
   1061   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
   1062       1.1    jruoho ACPI_STATUS
   1063       1.1    jruoho AcpiWrite (
   1064       1.1    jruoho     UINT64                  Value,
   1065   1.1.1.5  christos     ACPI_GENERIC_ADDRESS    *Reg))
   1066       1.1    jruoho 
   1067   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1068       1.1    jruoho ACPI_STATUS
   1069       1.1    jruoho AcpiReadBitRegister (
   1070       1.1    jruoho     UINT32                  RegisterId,
   1071   1.1.1.4  christos     UINT32                  *ReturnValue))
   1072       1.1    jruoho 
   1073   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1074       1.1    jruoho ACPI_STATUS
   1075       1.1    jruoho AcpiWriteBitRegister (
   1076       1.1    jruoho     UINT32                  RegisterId,
   1077   1.1.1.4  christos     UINT32                  Value))
   1078       1.1    jruoho 
   1079   1.1.1.4  christos 
   1080   1.1.1.4  christos /*
   1081   1.1.1.4  christos  * Sleep/Wake interfaces
   1082   1.1.1.4  christos  */
   1083   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
   1084       1.1    jruoho ACPI_STATUS
   1085       1.1    jruoho AcpiGetSleepTypeData (
   1086       1.1    jruoho     UINT8                   SleepState,
   1087       1.1    jruoho     UINT8                   *Slp_TypA,
   1088   1.1.1.5  christos     UINT8                   *Slp_TypB))
   1089       1.1    jruoho 
   1090   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
   1091       1.1    jruoho ACPI_STATUS
   1092       1.1    jruoho AcpiEnterSleepStatePrep (
   1093   1.1.1.5  christos     UINT8                   SleepState))
   1094       1.1    jruoho 
   1095   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
   1096       1.1    jruoho ACPI_STATUS
   1097       1.1    jruoho AcpiEnterSleepState (
   1098   1.1.1.5  christos     UINT8                   SleepState))
   1099       1.1    jruoho 
   1100   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1101       1.1    jruoho ACPI_STATUS
   1102       1.1    jruoho AcpiEnterSleepStateS4bios (
   1103   1.1.1.4  christos     void))
   1104   1.1.1.4  christos 
   1105   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
   1106   1.1.1.4  christos ACPI_STATUS
   1107   1.1.1.4  christos AcpiLeaveSleepStatePrep (
   1108   1.1.1.5  christos     UINT8                   SleepState))
   1109       1.1    jruoho 
   1110   1.1.1.5  christos ACPI_EXTERNAL_RETURN_STATUS (
   1111       1.1    jruoho ACPI_STATUS
   1112       1.1    jruoho AcpiLeaveSleepState (
   1113   1.1.1.5  christos     UINT8                   SleepState))
   1114   1.1.1.4  christos 
   1115   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1116       1.1    jruoho ACPI_STATUS
   1117       1.1    jruoho AcpiSetFirmwareWakingVector (
   1118   1.1.1.7  christos     ACPI_PHYSICAL_ADDRESS   PhysicalAddress,
   1119   1.1.1.7  christos     ACPI_PHYSICAL_ADDRESS   PhysicalAddress64))
   1120       1.1    jruoho 
   1121       1.1    jruoho 
   1122       1.1    jruoho /*
   1123   1.1.1.4  christos  * ACPI Timer interfaces
   1124   1.1.1.4  christos  */
   1125   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1126   1.1.1.4  christos ACPI_STATUS
   1127   1.1.1.4  christos AcpiGetTimerResolution (
   1128   1.1.1.4  christos     UINT32                  *Resolution))
   1129   1.1.1.4  christos 
   1130   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1131   1.1.1.4  christos ACPI_STATUS
   1132   1.1.1.4  christos AcpiGetTimer (
   1133   1.1.1.4  christos     UINT32                  *Ticks))
   1134   1.1.1.4  christos 
   1135   1.1.1.4  christos ACPI_HW_DEPENDENT_RETURN_STATUS (
   1136   1.1.1.4  christos ACPI_STATUS
   1137   1.1.1.4  christos AcpiGetTimerDuration (
   1138   1.1.1.4  christos     UINT32                  StartTicks,
   1139   1.1.1.4  christos     UINT32                  EndTicks,
   1140   1.1.1.4  christos     UINT32                  *TimeElapsed))
   1141   1.1.1.4  christos 
   1142   1.1.1.4  christos 
   1143   1.1.1.4  christos /*
   1144       1.1    jruoho  * Error/Warning output
   1145       1.1    jruoho  */
   1146   1.1.1.5  christos ACPI_MSG_DEPENDENT_RETURN_VOID (
   1147   1.1.1.4  christos ACPI_PRINTF_LIKE(3)
   1148       1.1    jruoho void ACPI_INTERNAL_VAR_XFACE
   1149       1.1    jruoho AcpiError (
   1150       1.1    jruoho     const char              *ModuleName,
   1151       1.1    jruoho     UINT32                  LineNumber,
   1152       1.1    jruoho     const char              *Format,
   1153   1.1.1.5  christos     ...))
   1154       1.1    jruoho 
   1155   1.1.1.5  christos ACPI_MSG_DEPENDENT_RETURN_VOID (
   1156   1.1.1.4  christos ACPI_PRINTF_LIKE(4)
   1157       1.1    jruoho void  ACPI_INTERNAL_VAR_XFACE
   1158       1.1    jruoho AcpiException (
   1159       1.1    jruoho     const char              *ModuleName,
   1160       1.1    jruoho     UINT32                  LineNumber,
   1161       1.1    jruoho     ACPI_STATUS             Status,
   1162       1.1    jruoho     const char              *Format,
   1163   1.1.1.5  christos     ...))
   1164       1.1    jruoho 
   1165   1.1.1.5  christos ACPI_MSG_DEPENDENT_RETURN_VOID (
   1166   1.1.1.4  christos ACPI_PRINTF_LIKE(3)
   1167       1.1    jruoho void ACPI_INTERNAL_VAR_XFACE
   1168       1.1    jruoho AcpiWarning (
   1169       1.1    jruoho     const char              *ModuleName,
   1170       1.1    jruoho     UINT32                  LineNumber,
   1171       1.1    jruoho     const char              *Format,
   1172   1.1.1.5  christos     ...))
   1173       1.1    jruoho 
   1174   1.1.1.5  christos ACPI_MSG_DEPENDENT_RETURN_VOID (
   1175   1.1.1.9  christos ACPI_PRINTF_LIKE(1)
   1176       1.1    jruoho void ACPI_INTERNAL_VAR_XFACE
   1177       1.1    jruoho AcpiInfo (
   1178       1.1    jruoho     const char              *Format,
   1179   1.1.1.5  christos     ...))
   1180   1.1.1.4  christos 
   1181   1.1.1.5  christos ACPI_MSG_DEPENDENT_RETURN_VOID (
   1182   1.1.1.4  christos ACPI_PRINTF_LIKE(3)
   1183   1.1.1.4  christos void ACPI_INTERNAL_VAR_XFACE
   1184   1.1.1.4  christos AcpiBiosError (
   1185   1.1.1.4  christos     const char              *ModuleName,
   1186   1.1.1.4  christos     UINT32                  LineNumber,
   1187   1.1.1.4  christos     const char              *Format,
   1188   1.1.1.5  christos     ...))
   1189   1.1.1.4  christos 
   1190   1.1.1.5  christos ACPI_MSG_DEPENDENT_RETURN_VOID (
   1191   1.1.1.4  christos ACPI_PRINTF_LIKE(3)
   1192   1.1.1.4  christos void ACPI_INTERNAL_VAR_XFACE
   1193   1.1.1.4  christos AcpiBiosWarning (
   1194   1.1.1.4  christos     const char              *ModuleName,
   1195   1.1.1.4  christos     UINT32                  LineNumber,
   1196   1.1.1.4  christos     const char              *Format,
   1197   1.1.1.5  christos     ...))
   1198       1.1    jruoho 
   1199       1.1    jruoho 
   1200       1.1    jruoho /*
   1201       1.1    jruoho  * Debug output
   1202       1.1    jruoho  */
   1203   1.1.1.5  christos ACPI_DBG_DEPENDENT_RETURN_VOID (
   1204   1.1.1.4  christos ACPI_PRINTF_LIKE(6)
   1205       1.1    jruoho void ACPI_INTERNAL_VAR_XFACE
   1206       1.1    jruoho AcpiDebugPrint (
   1207       1.1    jruoho     UINT32                  RequestedDebugLevel,
   1208       1.1    jruoho     UINT32                  LineNumber,
   1209       1.1    jruoho     const char              *FunctionName,
   1210       1.1    jruoho     const char              *ModuleName,
   1211       1.1    jruoho     UINT32                  ComponentId,
   1212       1.1    jruoho     const char              *Format,
   1213   1.1.1.5  christos     ...))
   1214       1.1    jruoho 
   1215   1.1.1.5  christos ACPI_DBG_DEPENDENT_RETURN_VOID (
   1216   1.1.1.4  christos ACPI_PRINTF_LIKE(6)
   1217       1.1    jruoho void ACPI_INTERNAL_VAR_XFACE
   1218       1.1    jruoho AcpiDebugPrintRaw (
   1219       1.1    jruoho     UINT32                  RequestedDebugLevel,
   1220       1.1    jruoho     UINT32                  LineNumber,
   1221       1.1    jruoho     const char              *FunctionName,
   1222       1.1    jruoho     const char              *ModuleName,
   1223       1.1    jruoho     UINT32                  ComponentId,
   1224       1.1    jruoho     const char              *Format,
   1225   1.1.1.5  christos     ...))
   1226   1.1.1.5  christos 
   1227   1.1.1.7  christos ACPI_DBG_DEPENDENT_RETURN_VOID (
   1228   1.1.1.7  christos void
   1229   1.1.1.7  christos AcpiTracePoint (
   1230   1.1.1.7  christos     ACPI_TRACE_EVENT_TYPE   Type,
   1231   1.1.1.7  christos     BOOLEAN                 Begin,
   1232   1.1.1.7  christos     UINT8                   *Aml,
   1233   1.1.1.7  christos     char                    *Pathname))
   1234   1.1.1.7  christos 
   1235   1.1.1.5  christos ACPI_APP_DEPENDENT_RETURN_VOID (
   1236   1.1.1.5  christos ACPI_PRINTF_LIKE(1)
   1237   1.1.1.5  christos void ACPI_INTERNAL_VAR_XFACE
   1238   1.1.1.5  christos AcpiLogError (
   1239   1.1.1.5  christos     const char              *Format,
   1240   1.1.1.5  christos     ...))
   1241       1.1    jruoho 
   1242   1.1.1.8  christos ACPI_STATUS
   1243   1.1.1.8  christos AcpiInitializeDebugger (
   1244   1.1.1.8  christos     void);
   1245   1.1.1.8  christos 
   1246   1.1.1.8  christos void
   1247   1.1.1.8  christos AcpiTerminateDebugger (
   1248   1.1.1.8  christos     void);
   1249   1.1.1.8  christos 
   1250   1.1.1.8  christos void
   1251   1.1.1.8  christos AcpiSetDebuggerThreadId (
   1252   1.1.1.8  christos     ACPI_THREAD_ID          ThreadId);
   1253   1.1.1.8  christos 
   1254       1.1    jruoho #endif /* __ACXFACE_H__ */
   1255