^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /******************************************************************************
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * Name: acpixf.h - External interfaces to the ACPI subsystem
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * Copyright (C) 2000 - 2020, Intel Corp.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) *****************************************************************************/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef __ACXFACE_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define __ACXFACE_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) /* Current ACPICA subsystem version in YYYYMMDD format */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define ACPI_CA_VERSION 0x20200925
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #include <acpi/acconfig.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #include <acpi/actypes.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #include <acpi/actbl.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #include <acpi/acbuffer.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) /*****************************************************************************
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) * Macros used for ACPICA globals and configuration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) ****************************************************************************/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) * Ensure that global variables are defined and initialized only once.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) * The use of these macros allows for a single list of globals (here)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) * in order to simplify maintenance of the code.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #ifdef DEFINE_ACPI_GLOBALS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #define ACPI_GLOBAL(type,name) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) extern type name; \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) type name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #define ACPI_INIT_GLOBAL(type,name,value) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) type name=value
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #ifndef ACPI_GLOBAL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #define ACPI_GLOBAL(type,name) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) extern type name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #ifndef ACPI_INIT_GLOBAL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) #define ACPI_INIT_GLOBAL(type,name,value) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) extern type name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) * These macros configure the various ACPICA interfaces. They are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) * useful for generating stub inline functions for features that are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) * configured out of the current kernel or ACPICA application.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #ifndef ACPI_EXTERNAL_RETURN_STATUS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) #define ACPI_EXTERNAL_RETURN_STATUS(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) prototype;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) #ifndef ACPI_EXTERNAL_RETURN_OK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) #define ACPI_EXTERNAL_RETURN_OK(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) prototype;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) #ifndef ACPI_EXTERNAL_RETURN_VOID
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) #define ACPI_EXTERNAL_RETURN_VOID(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) prototype;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) #ifndef ACPI_EXTERNAL_RETURN_UINT32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) #define ACPI_EXTERNAL_RETURN_UINT32(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) prototype;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) #ifndef ACPI_EXTERNAL_RETURN_PTR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) #define ACPI_EXTERNAL_RETURN_PTR(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) prototype;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) /*****************************************************************************
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) * Public globals and runtime configuration options
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) ****************************************************************************/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) * Enable "slack mode" of the AML interpreter? Default is FALSE, and the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) * interpreter strictly follows the ACPI specification. Setting to TRUE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) * allows the interpreter to ignore certain errors and/or bad AML constructs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) * Currently, these features are enabled by this flag:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) * 1) Allow "implicit return" of last value in a control method
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) * 2) Allow access beyond the end of an operation region
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) * 3) Allow access to uninitialized locals/args (auto-init to integer 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) * 4) Allow ANY object type to be a source operand for the Store() operator
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) * 5) Allow unresolved references (invalid target name) in package objects
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) * 6) Enable warning messages for behavior that is not ACPI spec compliant
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) ACPI_INIT_GLOBAL(u8, acpi_gbl_enable_interpreter_slack, FALSE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) * Automatically serialize all methods that create named objects? Default
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) * is TRUE, meaning that all non_serialized methods are scanned once at
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) * table load time to determine those that create named objects. Methods
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) * that create named objects are marked Serialized in order to prevent
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) * possible run-time problems if they are entered by more than one thread.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) ACPI_INIT_GLOBAL(u8, acpi_gbl_auto_serialize_methods, TRUE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) * Create the predefined _OSI method in the namespace? Default is TRUE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) * because ACPICA is fully compatible with other ACPI implementations.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) * Changing this will revert ACPICA (and machine ASL) to pre-OSI behavior.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) ACPI_INIT_GLOBAL(u8, acpi_gbl_create_osi_method, TRUE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) * Optionally use default values for the ACPI register widths. Set this to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) * TRUE to use the defaults, if an FADT contains incorrect widths/lengths.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) ACPI_INIT_GLOBAL(u8, acpi_gbl_use_default_register_widths, TRUE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) * Whether or not to validate (map) an entire table to verify
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) * checksum/duplication in early stage before install. Set this to TRUE to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) * allow early table validation before install it to the table manager.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) * Note that enabling this option causes errors to happen in some OSPMs
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) * during early initialization stages. Default behavior is to allow such
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) * validation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) ACPI_INIT_GLOBAL(u8, acpi_gbl_enable_table_validation, TRUE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) * Optionally enable output from the AML Debug Object.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) ACPI_INIT_GLOBAL(u8, acpi_gbl_enable_aml_debug_object, FALSE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) * Optionally copy the entire DSDT to local memory (instead of simply
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) * mapping it.) There are some BIOSs that corrupt or replace the original
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) * DSDT, creating the need for this option. Default is FALSE, do not copy
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) * the DSDT.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) ACPI_INIT_GLOBAL(u8, acpi_gbl_copy_dsdt_locally, FALSE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) * Optionally ignore an XSDT if present and use the RSDT instead.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) * Although the ACPI specification requires that an XSDT be used instead
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) * of the RSDT, the XSDT has been found to be corrupt or ill-formed on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) * some machines. Default behavior is to use the XSDT if present.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) ACPI_INIT_GLOBAL(u8, acpi_gbl_do_not_use_xsdt, FALSE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) * Optionally use 32-bit FADT addresses if and when there is a conflict
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) * (address mismatch) between the 32-bit and 64-bit versions of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) * address. Although ACPICA adheres to the ACPI specification which
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) * requires the use of the corresponding 64-bit address if it is non-zero,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) * some machines have been found to have a corrupted non-zero 64-bit
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) * address. Default is FALSE, do not favor the 32-bit addresses.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) ACPI_INIT_GLOBAL(u8, acpi_gbl_use32_bit_fadt_addresses, FALSE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) * Optionally use 32-bit FACS table addresses.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) * It is reported that some platforms fail to resume from system suspending
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172) * if 64-bit FACS table address is selected:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) * https://bugzilla.kernel.org/show_bug.cgi?id=74021
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) * Default is TRUE, favor the 32-bit addresses.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) ACPI_INIT_GLOBAL(u8, acpi_gbl_use32_bit_facs_addresses, TRUE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) * Optionally truncate I/O addresses to 16 bits. Provides compatibility
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) * with other ACPI implementations. NOTE: During ACPICA initialization,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) * this value is set to TRUE if any Windows OSI strings have been
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) * requested by the BIOS.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) ACPI_INIT_GLOBAL(u8, acpi_gbl_truncate_io_addresses, FALSE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) * Disable runtime checking and repair of values returned by control methods.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) * Use only if the repair is causing a problem on a particular machine.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) ACPI_INIT_GLOBAL(u8, acpi_gbl_disable_auto_repair, FALSE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) * Optionally do not install any SSDTs from the RSDT/XSDT during initialization.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) * This can be useful for debugging ACPI problems on some machines.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) ACPI_INIT_GLOBAL(u8, acpi_gbl_disable_ssdt_table_install, FALSE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) * Optionally enable runtime namespace override.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) ACPI_INIT_GLOBAL(u8, acpi_gbl_runtime_namespace_override, TRUE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) * We keep track of the latest version of Windows that has been requested by
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) * the BIOS. ACPI 5.0.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) ACPI_INIT_GLOBAL(u8, acpi_gbl_osi_data, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) * ACPI 5.0 introduces the concept of a "reduced hardware platform", meaning
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) * that the ACPI hardware is no longer required. A flag in the FADT indicates
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) * a reduced HW machine, and that flag is duplicated here for convenience.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) ACPI_INIT_GLOBAL(u8, acpi_gbl_reduced_hardware, FALSE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) * Maximum timeout for While() loop iterations before forced method abort.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) * This mechanism is intended to prevent infinite loops during interpreter
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) * execution within a host kernel.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221) ACPI_INIT_GLOBAL(u32, acpi_gbl_max_loop_iterations, ACPI_MAX_LOOP_TIMEOUT);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224) * Optionally ignore AE_NOT_FOUND errors from named reference package elements
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) * during DSDT/SSDT table loading. This reduces error "noise" in platforms
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) * whose firmware is carrying around a bunch of unused package objects that
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) * refer to non-existent named objects. However, If the AML actually tries to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) * use such a package, the unresolved element(s) will be replaced with NULL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229) * elements.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) ACPI_INIT_GLOBAL(u8, acpi_gbl_ignore_package_resolution_errors, FALSE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234) * This mechanism is used to trace a specified AML method. The method is
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) * traced each time it is executed.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) ACPI_INIT_GLOBAL(u32, acpi_gbl_trace_flags, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) ACPI_INIT_GLOBAL(const char *, acpi_gbl_trace_method_name, NULL);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) ACPI_INIT_GLOBAL(u32, acpi_gbl_trace_dbg_level, ACPI_TRACE_LEVEL_DEFAULT);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240) ACPI_INIT_GLOBAL(u32, acpi_gbl_trace_dbg_layer, ACPI_TRACE_LAYER_DEFAULT);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243) * Runtime configuration of debug output control masks. We want the debug
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) * switches statically initialized so they are already set when the debugger
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) * is entered.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) ACPI_INIT_GLOBAL(u32, acpi_dbg_level, ACPI_DEBUG_DEFAULT);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) ACPI_INIT_GLOBAL(u32, acpi_dbg_layer, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250) /* Optionally enable timer output with Debug Object output */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252) ACPI_INIT_GLOBAL(u8, acpi_gbl_display_debug_timer, FALSE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255) * Debugger command handshake globals. Host OSes need to access these
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256) * variables to implement their own command handshake mechanism.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 257) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 258) #ifdef ACPI_DEBUGGER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 259) ACPI_INIT_GLOBAL(u8, acpi_gbl_method_executing, FALSE);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 260) ACPI_GLOBAL(char, acpi_gbl_db_line_buf[ACPI_DB_LINE_BUFFER_SIZE]);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 261) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 262)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 263) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 264) * Other miscellaneous globals
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 265) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 266) ACPI_GLOBAL(struct acpi_table_fadt, acpi_gbl_FADT);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 267) ACPI_GLOBAL(u32, acpi_current_gpe_count);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 268) ACPI_GLOBAL(u8, acpi_gbl_system_awake_and_running);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 269)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 270) /*****************************************************************************
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 271) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 272) * ACPICA public interface configuration.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 273) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 274) * Interfaces that are configured out of the ACPICA build are replaced
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 275) * by inlined stubs by default.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 276) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 277) ****************************************************************************/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 278)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 279) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 280) * Hardware-reduced prototypes (default: Not hardware reduced).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 281) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 282) * All ACPICA hardware-related interfaces that use these macros will be
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 283) * configured out of the ACPICA build if the ACPI_REDUCED_HARDWARE flag
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 284) * is set to TRUE.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 285) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 286) * Note: This static build option for reduced hardware is intended to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 287) * reduce ACPICA code size if desired or necessary. However, even if this
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 288) * option is not specified, the runtime behavior of ACPICA is dependent
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 289) * on the actual FADT reduced hardware flag (HW_REDUCED_ACPI). If set,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 290) * the flag will enable similar behavior -- ACPICA will not attempt
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 291) * to access any ACPI-relate hardware (SCI, GPEs, Fixed Events, etc.)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 292) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 293) #if (!ACPI_REDUCED_HARDWARE)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 294) #define ACPI_HW_DEPENDENT_RETURN_STATUS(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 295) ACPI_EXTERNAL_RETURN_STATUS(prototype)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 296)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 297) #define ACPI_HW_DEPENDENT_RETURN_OK(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 298) ACPI_EXTERNAL_RETURN_OK(prototype)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 299)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 300) #define ACPI_HW_DEPENDENT_RETURN_UINT32(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 301) ACPI_EXTERNAL_RETURN_UINT32(prototype)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 302)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 303) #define ACPI_HW_DEPENDENT_RETURN_VOID(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 304) ACPI_EXTERNAL_RETURN_VOID(prototype)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 305)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 306) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 307) #define ACPI_HW_DEPENDENT_RETURN_STATUS(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 308) static ACPI_INLINE prototype {return(AE_NOT_CONFIGURED);}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 309)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 310) #define ACPI_HW_DEPENDENT_RETURN_OK(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 311) static ACPI_INLINE prototype {return(AE_OK);}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 312)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 313) #define ACPI_HW_DEPENDENT_RETURN_UINT32(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 314) static ACPI_INLINE prototype {return(0);}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 315)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 316) #define ACPI_HW_DEPENDENT_RETURN_VOID(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 317) static ACPI_INLINE prototype {return;}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 318)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 319) #endif /* !ACPI_REDUCED_HARDWARE */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 320)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 321) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 322) * Error message prototypes (default: error messages enabled).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 323) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 324) * All interfaces related to error and warning messages
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 325) * will be configured out of the ACPICA build if the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 326) * ACPI_NO_ERROR_MESSAGE flag is defined.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 327) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 328) #ifndef ACPI_NO_ERROR_MESSAGES
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 329) #define ACPI_MSG_DEPENDENT_RETURN_VOID(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 330) prototype;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 331)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 332) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 333) #define ACPI_MSG_DEPENDENT_RETURN_VOID(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 334) static ACPI_INLINE prototype {return;}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 335)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 336) #endif /* ACPI_NO_ERROR_MESSAGES */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 337)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 338) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 339) * Debugging output prototypes (default: no debug output).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 340) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 341) * All interfaces related to debug output messages
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 342) * will be configured out of the ACPICA build unless the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 343) * ACPI_DEBUG_OUTPUT flag is defined.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 344) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 345) #ifdef ACPI_DEBUG_OUTPUT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 346) #define ACPI_DBG_DEPENDENT_RETURN_VOID(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 347) prototype;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 348)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 349) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 350) #define ACPI_DBG_DEPENDENT_RETURN_VOID(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 351) static ACPI_INLINE prototype {return;}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 352)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 353) #endif /* ACPI_DEBUG_OUTPUT */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 354)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 355) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 356) * Application prototypes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 357) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 358) * All interfaces used by application will be configured
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 359) * out of the ACPICA build unless the ACPI_APPLICATION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 360) * flag is defined.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 361) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 362) #ifdef ACPI_APPLICATION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 363) #define ACPI_APP_DEPENDENT_RETURN_VOID(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 364) prototype;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 365)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 366) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 367) #define ACPI_APP_DEPENDENT_RETURN_VOID(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 368) static ACPI_INLINE prototype {return;}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 369)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 370) #endif /* ACPI_APPLICATION */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 371)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 372) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 373) * Debugger prototypes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 374) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 375) * All interfaces used by debugger will be configured
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 376) * out of the ACPICA build unless the ACPI_DEBUGGER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 377) * flag is defined.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 378) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 379) #ifdef ACPI_DEBUGGER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 380) #define ACPI_DBR_DEPENDENT_RETURN_OK(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 381) ACPI_EXTERNAL_RETURN_OK(prototype)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 382)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 383) #define ACPI_DBR_DEPENDENT_RETURN_VOID(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 384) ACPI_EXTERNAL_RETURN_VOID(prototype)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 385)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 386) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 387) #define ACPI_DBR_DEPENDENT_RETURN_OK(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 388) static ACPI_INLINE prototype {return(AE_OK);}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 389)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 390) #define ACPI_DBR_DEPENDENT_RETURN_VOID(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 391) static ACPI_INLINE prototype {return;}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 392)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 393) #endif /* ACPI_DEBUGGER */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 394)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 395) /*****************************************************************************
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 396) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 397) * ACPICA public interface prototypes
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 398) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 399) ****************************************************************************/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 400)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 401) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 402) * Initialization
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 403) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 404) ACPI_EXTERNAL_RETURN_STATUS(acpi_status ACPI_INIT_FUNCTION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 405) acpi_initialize_tables(struct acpi_table_desc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 406) *initial_storage,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 407) u32 initial_table_count,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 408) u8 allow_resize))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 409) ACPI_EXTERNAL_RETURN_STATUS(acpi_status ACPI_INIT_FUNCTION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 410) acpi_initialize_subsystem(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 411) ACPI_EXTERNAL_RETURN_STATUS(acpi_status ACPI_INIT_FUNCTION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 412) acpi_enable_subsystem(u32 flags))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 413) ACPI_EXTERNAL_RETURN_STATUS(acpi_status ACPI_INIT_FUNCTION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 414) acpi_initialize_objects(u32 flags))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 415) ACPI_EXTERNAL_RETURN_STATUS(acpi_status ACPI_INIT_FUNCTION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 416) acpi_terminate(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 417)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 418) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 419) * Miscellaneous global interfaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 420) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 421) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 422) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_disable(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 423) ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_subsystem_status(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 424)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 425) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 426) acpi_get_system_info(struct acpi_buffer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 427) *ret_buffer))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 428) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 429) acpi_get_statistics(struct acpi_statistics *stats))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 430) ACPI_EXTERNAL_RETURN_PTR(const char
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 431) *acpi_format_exception(acpi_status exception))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 432) ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_purge_cached_objects(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 433)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 434) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 435) acpi_install_interface(acpi_string interface_name))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 436)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 437) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 438) acpi_remove_interface(acpi_string interface_name))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 439) ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_update_interfaces(u8 action))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 440)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 441) ACPI_EXTERNAL_RETURN_UINT32(u32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 442) acpi_check_address_range(acpi_adr_space_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 443) space_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 444) acpi_physical_address
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 445) address, acpi_size length,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 446) u8 warn))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 447) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 448) acpi_decode_pld_buffer(u8 *in_buffer,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 449) acpi_size length,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 450) struct acpi_pld_info
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 451) **return_buffer))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 452)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 453) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 454) * ACPI table load/unload interfaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 455) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 456) ACPI_EXTERNAL_RETURN_STATUS(acpi_status ACPI_INIT_FUNCTION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 457) acpi_install_table(acpi_physical_address address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 458) u8 physical))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 459)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 460) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 461) acpi_load_table(struct acpi_table_header *table,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 462) u32 *table_idx))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 463)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 464) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 465) acpi_unload_table(u32 table_index))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 466)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 467) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 468) acpi_unload_parent_table(acpi_handle object))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 469)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 470) ACPI_EXTERNAL_RETURN_STATUS(acpi_status ACPI_INIT_FUNCTION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 471) acpi_load_tables(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 472)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 473) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 474) * ACPI table manipulation interfaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 475) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 476) ACPI_EXTERNAL_RETURN_STATUS(acpi_status ACPI_INIT_FUNCTION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 477) acpi_reallocate_root_table(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 478)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 479) ACPI_EXTERNAL_RETURN_STATUS(acpi_status ACPI_INIT_FUNCTION
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 480) acpi_find_root_pointer(acpi_physical_address
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 481) *rsdp_address))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 482) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 483) acpi_get_table_header(acpi_string signature,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 484) u32 instance,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 485) struct acpi_table_header
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 486) *out_table_header))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 487) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 488) acpi_get_table(acpi_string signature, u32 instance,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 489) struct acpi_table_header
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 490) **out_table))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 491) ACPI_EXTERNAL_RETURN_VOID(void acpi_put_table(struct acpi_table_header *table))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 492)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 493) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 494) acpi_get_table_by_index(u32 table_index,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 495) struct acpi_table_header
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 496) **out_table))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 497) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 498) acpi_install_table_handler(acpi_table_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 499) handler, void *context))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 500) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 501) acpi_remove_table_handler(acpi_table_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 502) handler))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 503)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 504) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 505) * Namespace and name interfaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 506) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 507) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 508) acpi_walk_namespace(acpi_object_type type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 509) acpi_handle start_object,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 510) u32 max_depth,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 511) acpi_walk_callback
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 512) descending_callback,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 513) acpi_walk_callback
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 514) ascending_callback,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 515) void *context,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 516) void **return_value))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 517) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 518) acpi_get_devices(const char *HID,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 519) acpi_walk_callback user_function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 520) void *context,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 521) void **return_value))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 522) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 523) acpi_get_name(acpi_handle object, u32 name_type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 524) struct acpi_buffer *ret_path_ptr))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 525) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 526) acpi_get_handle(acpi_handle parent,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 527) acpi_string pathname,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 528) acpi_handle *ret_handle))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 529) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 530) acpi_attach_data(acpi_handle object,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 531) acpi_object_handler handler,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 532) void *data))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 533) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 534) acpi_detach_data(acpi_handle object,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 535) acpi_object_handler handler))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 536) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 537) acpi_get_data(acpi_handle object,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 538) acpi_object_handler handler,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 539) void **data))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 540) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 541) acpi_debug_trace(const char *name, u32 debug_level,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 542) u32 debug_layer, u32 flags))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 543)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 544) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 545) * Object manipulation and enumeration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 546) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 547) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 548) acpi_evaluate_object(acpi_handle object,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 549) acpi_string pathname,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 550) struct acpi_object_list
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 551) *parameter_objects,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 552) struct acpi_buffer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 553) *return_object_buffer))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 554) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 555) acpi_evaluate_object_typed(acpi_handle object,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 556) acpi_string pathname,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 557) struct acpi_object_list
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 558) *external_params,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 559) struct acpi_buffer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 560) *return_buffer,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 561) acpi_object_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 562) return_type))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 563) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 564) acpi_get_object_info(acpi_handle object,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 565) struct acpi_device_info
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 566) **return_buffer))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 567) ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_install_method(u8 *buffer))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 568)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 569) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 570) acpi_get_next_object(acpi_object_type type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 571) acpi_handle parent,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 572) acpi_handle child,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 573) acpi_handle *out_handle))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 574)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 575) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 576) acpi_get_type(acpi_handle object,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 577) acpi_object_type *out_type))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 578)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 579) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 580) acpi_get_parent(acpi_handle object,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 581) acpi_handle *out_handle))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 582)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 583) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 584) * Handler interfaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 585) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 586) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 587) acpi_install_initialization_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 588) (acpi_init_handler handler, u32 function))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 589) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 590) acpi_install_sci_handler(acpi_sci_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 591) address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 592) void *context))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 593) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 594) acpi_remove_sci_handler(acpi_sci_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 595) address))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 596) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 597) acpi_install_global_event_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 598) (acpi_gbl_event_handler handler,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 599) void *context))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 600) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 601) acpi_install_fixed_event_handler(u32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 602) acpi_event,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 603) acpi_event_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 604) handler,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 605) void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 606) *context))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 607) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 608) acpi_remove_fixed_event_handler(u32 acpi_event,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 609) acpi_event_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 610) handler))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 611) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 612) acpi_install_gpe_handler(acpi_handle
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 613) gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 614) u32 gpe_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 615) u32 type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 616) acpi_gpe_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 617) address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 618) void *context))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 619) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 620) acpi_install_gpe_raw_handler(acpi_handle
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 621) gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 622) u32 gpe_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 623) u32 type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 624) acpi_gpe_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 625) address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 626) void *context))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 627) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 628) acpi_remove_gpe_handler(acpi_handle gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 629) u32 gpe_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 630) acpi_gpe_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 631) address))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 632) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 633) acpi_install_notify_handler(acpi_handle device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 634) u32 handler_type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 635) acpi_notify_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 636) handler,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 637) void *context))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 638) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 639) acpi_remove_notify_handler(acpi_handle device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 640) u32 handler_type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 641) acpi_notify_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 642) handler))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 643) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 644) acpi_install_address_space_handler(acpi_handle
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 645) device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 646) acpi_adr_space_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 647) space_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 648) acpi_adr_space_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 649) handler,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 650) acpi_adr_space_setup
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 651) setup,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 652) void *context))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 653) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 654) acpi_remove_address_space_handler(acpi_handle
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 655) device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 656) acpi_adr_space_type
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 657) space_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 658) acpi_adr_space_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 659) handler))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 660) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 661) acpi_install_exception_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 662) (acpi_exception_handler handler))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 663) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 664) acpi_install_interface_handler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 665) (acpi_interface_handler handler))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 666)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 667) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 668) * Global Lock interfaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 669) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 670) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 671) acpi_acquire_global_lock(u16 timeout,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 672) u32 *handle))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 673)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 674) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 675) acpi_release_global_lock(u32 handle))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 676)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 677) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 678) * Interfaces to AML mutex objects
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 679) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 680) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 681) acpi_acquire_mutex(acpi_handle handle,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 682) acpi_string pathname,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 683) u16 timeout))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 684)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 685) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 686) acpi_release_mutex(acpi_handle handle,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 687) acpi_string pathname))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 688)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 689) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 690) * Fixed Event interfaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 691) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 692) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 693) acpi_enable_event(u32 event, u32 flags))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 694)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 695) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 696) acpi_disable_event(u32 event, u32 flags))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 697) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_clear_event(u32 event))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 698)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 699) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 700) acpi_get_event_status(u32 event,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 701) acpi_event_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 702) *event_status))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 703)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 704) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 705) * General Purpose Event (GPE) Interfaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 706) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 707) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_update_all_gpes(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 708)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 709) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 710) acpi_enable_gpe(acpi_handle gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 711) u32 gpe_number))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 712)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 713) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 714) acpi_disable_gpe(acpi_handle gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 715) u32 gpe_number))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 716)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 717) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 718) acpi_clear_gpe(acpi_handle gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 719) u32 gpe_number))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 720)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 721) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 722) acpi_set_gpe(acpi_handle gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 723) u32 gpe_number, u8 action))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 724)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 725) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 726) acpi_finish_gpe(acpi_handle gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 727) u32 gpe_number))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 728)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 729) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 730) acpi_mask_gpe(acpi_handle gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 731) u32 gpe_number, u8 is_masked))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 732)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 733) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 734) acpi_mark_gpe_for_wake(acpi_handle gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 735) u32 gpe_number))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 736)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 737) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 738) acpi_setup_gpe_for_wake(acpi_handle
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 739) parent_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 740) acpi_handle gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 741) u32 gpe_number))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 742) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 743) acpi_set_gpe_wake_mask(acpi_handle gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 744) u32 gpe_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 745) u8 action))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 746) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 747) acpi_get_gpe_status(acpi_handle gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 748) u32 gpe_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 749) acpi_event_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 750) *event_status))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 751) ACPI_HW_DEPENDENT_RETURN_UINT32(u32 acpi_dispatch_gpe(acpi_handle gpe_device, u32 gpe_number))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 752) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_disable_all_gpes(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 753) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable_all_runtime_gpes(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 754) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enable_all_wakeup_gpes(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 755) ACPI_HW_DEPENDENT_RETURN_UINT32(u32 acpi_any_gpe_status_set(u32 gpe_skip_number))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 756) ACPI_HW_DEPENDENT_RETURN_UINT32(u32 acpi_any_fixed_event_status_set(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 757)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 758) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 759) acpi_get_gpe_device(u32 gpe_index,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 760) acpi_handle *gpe_device))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 761)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 762) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 763) acpi_install_gpe_block(acpi_handle gpe_device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 764) struct
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 765) acpi_generic_address
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 766) *gpe_block_address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 767) u32 register_count,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 768) u32 interrupt_number))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 769) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 770) acpi_remove_gpe_block(acpi_handle gpe_device))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 771)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 772) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 773) * Resource interfaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 774) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 775) typedef
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 776) acpi_status (*acpi_walk_resource_callback) (struct acpi_resource * resource,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 777) void *context);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 778)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 779) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 780) acpi_get_vendor_resource(acpi_handle device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 781) char *name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 782) struct acpi_vendor_uuid
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 783) *uuid,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 784) struct acpi_buffer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 785) *ret_buffer))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 786) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 787) acpi_get_current_resources(acpi_handle device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 788) struct acpi_buffer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 789) *ret_buffer))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 790) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 791) acpi_get_possible_resources(acpi_handle device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 792) struct acpi_buffer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 793) *ret_buffer))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 794) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 795) acpi_get_event_resources(acpi_handle device_handle,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 796) struct acpi_buffer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 797) *ret_buffer))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 798) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 799) acpi_walk_resource_buffer(struct acpi_buffer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 800) *buffer,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 801) acpi_walk_resource_callback
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 802) user_function,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 803) void *context))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 804) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 805) acpi_walk_resources(acpi_handle device, char *name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 806) acpi_walk_resource_callback
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 807) user_function, void *context))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 808) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 809) acpi_set_current_resources(acpi_handle device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 810) struct acpi_buffer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 811) *in_buffer))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 812) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 813) acpi_get_irq_routing_table(acpi_handle device,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 814) struct acpi_buffer
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 815) *ret_buffer))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 816) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 817) acpi_resource_to_address64(struct acpi_resource
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 818) *resource,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 819) struct
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 820) acpi_resource_address64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 821) *out))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 822) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 823) acpi_buffer_to_resource(u8 *aml_buffer,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 824) u16 aml_buffer_length,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 825) struct acpi_resource
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 826) **resource_ptr))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 827)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 828) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 829) * Hardware (ACPI device) interfaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 830) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 831) ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_reset(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 832)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 833) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 834) acpi_read(u64 *value,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 835) struct acpi_generic_address *reg))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 836)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 837) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 838) acpi_write(u64 value,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 839) struct acpi_generic_address *reg))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 840)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 841) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 842) acpi_read_bit_register(u32 register_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 843) u32 *return_value))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 844)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 845) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 846) acpi_write_bit_register(u32 register_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 847) u32 value))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 848)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 849) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 850) * Sleep/Wake interfaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 851) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 852) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 853) acpi_get_sleep_type_data(u8 sleep_state,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 854) u8 *slp_typ_a,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 855) u8 *slp_typ_b))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 856)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 857) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 858) acpi_enter_sleep_state_prep(u8 sleep_state))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 859) ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_enter_sleep_state(u8 sleep_state))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 860)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 861) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_enter_sleep_state_s4bios(void))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 862)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 863) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 864) acpi_leave_sleep_state_prep(u8 sleep_state))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 865) ACPI_EXTERNAL_RETURN_STATUS(acpi_status acpi_leave_sleep_state(u8 sleep_state))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 866)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 867) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 868) acpi_set_firmware_waking_vector
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 869) (acpi_physical_address physical_address,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 870) acpi_physical_address physical_address64))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 871) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 872) * ACPI Timer interfaces
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 873) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 874) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 875) acpi_get_timer_resolution(u32 *resolution))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 876) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_get_timer(u32 *ticks))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 877)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 878) ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 879) acpi_get_timer_duration(u32 start_ticks,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 880) u32 end_ticks,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 881) u32 *time_elapsed))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 882)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 883) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 884) * Error/Warning output
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 885) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 886) ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 887) void ACPI_INTERNAL_VAR_XFACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 888) acpi_error(const char *module_name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 889) u32 line_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 890) const char *format, ...))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 891) ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 892) void ACPI_INTERNAL_VAR_XFACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 893) acpi_exception(const char *module_name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 894) u32 line_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 895) acpi_status status,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 896) const char *format, ...))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 897) ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 898) void ACPI_INTERNAL_VAR_XFACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 899) acpi_warning(const char *module_name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 900) u32 line_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 901) const char *format, ...))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 902) ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 903) void ACPI_INTERNAL_VAR_XFACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 904) acpi_info(const char *format, ...))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 905) ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 906) void ACPI_INTERNAL_VAR_XFACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 907) acpi_bios_error(const char *module_name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 908) u32 line_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 909) const char *format, ...))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 910) ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 911) void ACPI_INTERNAL_VAR_XFACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 912) acpi_bios_exception(const char *module_name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 913) u32 line_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 914) acpi_status status,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 915) const char *format, ...))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 916) ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 917) void ACPI_INTERNAL_VAR_XFACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 918) acpi_bios_warning(const char *module_name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 919) u32 line_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 920) const char *format, ...))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 921)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 922) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 923) * Debug output
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 924) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 925) ACPI_DBG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 926) void ACPI_INTERNAL_VAR_XFACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 927) acpi_debug_print(u32 requested_debug_level,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 928) u32 line_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 929) const char *function_name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 930) const char *module_name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 931) u32 component_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 932) const char *format, ...))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 933) ACPI_DBG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 934) void ACPI_INTERNAL_VAR_XFACE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 935) acpi_debug_print_raw(u32 requested_debug_level,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 936) u32 line_number,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 937) const char *function_name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 938) const char *module_name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 939) u32 component_id,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 940) const char *format, ...))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 941)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 942) ACPI_DBG_DEPENDENT_RETURN_VOID(void
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 943) acpi_trace_point(acpi_trace_event_type type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 944) u8 begin,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 945) u8 *aml, char *pathname))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 946)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 947) acpi_status acpi_initialize_debugger(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 948)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 949) void acpi_terminate_debugger(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 950)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 951) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 952) * Divergences
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 953) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 954) ACPI_EXTERNAL_RETURN_STATUS(acpi_status
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 955) acpi_get_data_full(acpi_handle object,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 956) acpi_object_handler handler,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 957) void **data,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 958) void (*callback)(void *)))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 959)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 960) void acpi_run_debugger(char *batch_buffer);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 961)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 962) void acpi_set_debugger_thread_id(acpi_thread_id thread_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 963)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 964) #endif /* __ACXFACE_H__ */