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