^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: aclinux.h - OS specific defines, etc. for Linux
^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 __ACLINUX_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define __ACLINUX_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #ifdef __KERNEL__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) /* ACPICA external files should not include ACPICA headers directly. */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #if !defined(BUILDING_ACPICA) && !defined(_LINUX_ACPI_H)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #error "Please don't include <acpi/acpi.h> directly, include <linux/acpi.h> instead."
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) /* Common (in-kernel/user-space) ACPICA configuration */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #define ACPI_USE_SYSTEM_CLIBRARY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #define ACPI_USE_DO_WHILE_0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #ifdef __KERNEL__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define ACPI_USE_SYSTEM_INTTYPES
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define ACPI_USE_GPE_POLLING
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) /* Kernel specific ACPICA configuration */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #ifdef CONFIG_PCI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #define ACPI_PCI_CONFIGURED
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #ifdef CONFIG_ACPI_REDUCED_HARDWARE_ONLY
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #define ACPI_REDUCED_HARDWARE 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #ifdef CONFIG_ACPI_DEBUGGER
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #define ACPI_DEBUGGER
^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) #ifdef CONFIG_ACPI_DEBUG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) #define ACPI_MUTEX_DEBUG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) #include <linux/string.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) #include <linux/kernel.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #include <linux/ctype.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) #include <linux/sched.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) #include <linux/atomic.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) #include <linux/math64.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) #include <linux/slab.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #include <linux/spinlock_types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) #ifdef EXPORT_ACPI_INTERFACES
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) #include <linux/export.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) #ifdef CONFIG_ACPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) #include <asm/acenv.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) #define ACPI_INIT_FUNCTION __init
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) /* Use a specific bugging default separate from ACPICA */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) #undef ACPI_DEBUG_DEFAULT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) #define ACPI_DEBUG_DEFAULT (ACPI_LV_INFO | ACPI_LV_REPAIR)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) #ifndef CONFIG_ACPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) /* External globals for __KERNEL__, stubs is needed */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) #define ACPI_GLOBAL(t,a)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) #define ACPI_INIT_GLOBAL(t,a,b)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) /* Generating stubs for configurable ACPICA macros */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) #define ACPI_NO_MEM_ALLOCATIONS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) /* Generating stubs for configurable ACPICA functions */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) #define ACPI_NO_ERROR_MESSAGES
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) #undef ACPI_DEBUG_OUTPUT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) /* External interface for __KERNEL__, stub is needed */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) #define ACPI_EXTERNAL_RETURN_STATUS(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) static ACPI_INLINE prototype {return(AE_NOT_CONFIGURED);}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) #define ACPI_EXTERNAL_RETURN_OK(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) static ACPI_INLINE prototype {return(AE_OK);}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) #define ACPI_EXTERNAL_RETURN_VOID(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) static ACPI_INLINE prototype {return;}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) #define ACPI_EXTERNAL_RETURN_UINT32(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) static ACPI_INLINE prototype {return(0);}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) #define ACPI_EXTERNAL_RETURN_PTR(prototype) \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) static ACPI_INLINE prototype {return(NULL);}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) #endif /* CONFIG_ACPI */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) /* Host-dependent types and defines for in-kernel ACPICA */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) #define ACPI_MACHINE_WIDTH BITS_PER_LONG
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) #define ACPI_USE_NATIVE_MATH64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) #define ACPI_EXPORT_SYMBOL(symbol) EXPORT_SYMBOL(symbol);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) #define strtoul simple_strtoul
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) #define acpi_cache_t struct kmem_cache
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) #define acpi_spinlock spinlock_t *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) #define acpi_raw_spinlock raw_spinlock_t *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) #define acpi_cpu_flags unsigned long
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) /* Use native linux version of acpi_os_allocate_zeroed */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) #define USE_NATIVE_ALLOCATE_ZEROED
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) /* Use logical addresses for accessing GPE registers in system memory */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) #define ACPI_GPE_USE_LOGICAL_ADDRESSES
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) * Overrides for in-kernel ACPICA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_initialize
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_terminate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_allocate
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_allocate_zeroed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_free
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_acquire_object
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_thread_id
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_create_lock
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_create_raw_lock
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_delete_raw_lock
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_acquire_raw_lock
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_release_raw_lock
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) * OSL interfaces used by debugger/disassembler
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_readable
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_writable
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_initialize_debugger
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_terminate_debugger
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) * OSL interfaces used by utilities
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_redirect_output
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_table_by_name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_table_by_index
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_table_by_address
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_open_directory
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_get_next_filename
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) #define ACPI_USE_ALTERNATE_PROTOTYPE_acpi_os_close_directory
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) #define ACPI_MSG_ERROR KERN_ERR "ACPI Error: "
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) #define ACPI_MSG_EXCEPTION KERN_ERR "ACPI Exception: "
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) #define ACPI_MSG_WARNING KERN_WARNING "ACPI Warning: "
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) #define ACPI_MSG_INFO KERN_INFO "ACPI: "
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) #define ACPI_MSG_BIOS_ERROR KERN_ERR "ACPI BIOS Error (bug): "
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) #define ACPI_MSG_BIOS_WARNING KERN_WARNING "ACPI BIOS Warning (bug): "
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) * Linux wants to use designated initializers for function pointer structs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171) #define ACPI_STRUCT_INIT(field, value) .field = value
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) #else /* !__KERNEL__ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) #define ACPI_USE_STANDARD_HEADERS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) #ifdef ACPI_USE_STANDARD_HEADERS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) #include <unistd.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) /* Define/disable kernel-specific declarators */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) #ifndef __init
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) #define __init
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) #ifndef __iomem
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) #define __iomem
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) /* Host-dependent types and defines for user-space ACPICA */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) #define ACPI_FLUSH_CPU_CACHE()
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) #define ACPI_CAST_PTHREAD_T(pthread) ((acpi_thread_id) (pthread))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) #if defined(__ia64__) || (defined(__x86_64__) && !defined(__ILP32__)) ||\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) defined(__aarch64__) || defined(__PPC64__) ||\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) defined(__s390x__) ||\
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) (defined(__riscv) && (defined(__LP64__) || defined(_LP64)))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) #define ACPI_MACHINE_WIDTH 64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) #define COMPILER_DEPENDENT_INT64 long
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) #define COMPILER_DEPENDENT_UINT64 unsigned long
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) #define ACPI_MACHINE_WIDTH 32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) #define COMPILER_DEPENDENT_INT64 long long
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) #define COMPILER_DEPENDENT_UINT64 unsigned long long
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) #define ACPI_USE_NATIVE_DIVIDE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) #define ACPI_USE_NATIVE_MATH64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) #ifndef __cdecl
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) #define __cdecl
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) #endif /* __KERNEL__ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) #endif /* __ACLINUX_H__ */