51#ifndef DEBUGGER_THREADING
52#define DEBUGGER_THREADING DEBUGGER_SINGLE_THREADED
60#define ACPI_USE_STANDARD_HEADERS
61#define ACPI_USE_SYSTEM_CLIBRARY
62#define ACPI_USE_NATIVE_DIVIDE
63#define ACPI_USE_NATIVE_MATH64
68#if defined(__x86_64__)
69#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7))
75#define ACPI_EFI_API __cdecl
77#define ACPI_EFI_API __attribute__((ms_abi))
84#if defined(__ia64__) || defined(__x86_64__)
86#define ACPI_MACHINE_WIDTH 64
88#if defined(__x86_64__)
93#define USE_EFI_FUNCTION_WRAPPER
97#pragma warning ( disable : 4731 )
103#define UINTN uint64_t
107#define ACPI_EFI_ERR(a) (0x8000000000000000 | a)
111#define ACPI_MACHINE_WIDTH 32
114#define UINTN uint32_t
118#define ACPI_EFI_ERR(a) (0x80000000 | a)
122#define CHAR16 uint16_t
124#ifdef USE_EFI_FUNCTION_WRAPPER
125#define __VA_NARG__(...) \
126 __VA_NARG_(_0, ## __VA_ARGS__, __RSEQ_N())
127#define __VA_NARG_(...) \
128 __VA_ARG_N(__VA_ARGS__)
130 _0,_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,N,...) N
132 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0
134#define __VA_ARG_NSUFFIX__(prefix,...) \
135 __VA_ARG_NSUFFIX_N(prefix, __VA_NARG__(__VA_ARGS__))
136#define __VA_ARG_NSUFFIX_N(prefix,nargs) \
137 __VA_ARG_NSUFFIX_N_(prefix, nargs)
138#define __VA_ARG_NSUFFIX_N_(prefix,nargs) \
167#define _cast64_efi_call0(f) \
169#define _cast64_efi_call1(f,a1) \
170 efi_call1(f, (UINT64)(a1))
171#define _cast64_efi_call2(f,a1,a2) \
172 efi_call2(f, (UINT64)(a1), (UINT64)(a2))
173#define _cast64_efi_call3(f,a1,a2,a3) \
174 efi_call3(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3))
175#define _cast64_efi_call4(f,a1,a2,a3,a4) \
176 efi_call4(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3), (UINT64)(a4))
177#define _cast64_efi_call5(f,a1,a2,a3,a4,a5) \
178 efi_call5(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3), (UINT64)(a4), \
180#define _cast64_efi_call6(f,a1,a2,a3,a4,a5,a6) \
181 efi_call6(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3), (UINT64)(a4), \
182 (UINT64)(a5), (UINT64)(a6))
183#define _cast64_efi_call7(f,a1,a2,a3,a4,a5,a6,a7) \
184 efi_call7(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3), (UINT64)(a4), \
185 (UINT64)(a5), (UINT64)(a6), (UINT64)(a7))
186#define _cast64_efi_call8(f,a1,a2,a3,a4,a5,a6,a7,a8) \
187 efi_call8(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3), (UINT64)(a4), \
188 (UINT64)(a5), (UINT64)(a6), (UINT64)(a7), (UINT64)(a8))
189#define _cast64_efi_call9(f,a1,a2,a3,a4,a5,a6,a7,a8,a9) \
190 efi_call9(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3), (UINT64)(a4), \
191 (UINT64)(a5), (UINT64)(a6), (UINT64)(a7), (UINT64)(a8), \
193#define _cast64_efi_call10(f,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10) \
194 efi_call10(f, (UINT64)(a1), (UINT64)(a2), (UINT64)(a3), (UINT64)(a4), \
195 (UINT64)(a5), (UINT64)(a6), (UINT64)(a7), (UINT64)(a8), \
196 (UINT64)(a9), (UINT64)(a10))
200#define uefi_call_wrapper(func,va_num,...) \
201 __VA_ARG_NSUFFIX__(_cast64_efi_call, __VA_ARGS__) (func , ##__VA_ARGS__)
205#define uefi_call_wrapper(func, va_num, ...) func(__VA_ARGS__)
215#define COMPILER_DEPENDENT_INT64 __int64
216#define COMPILER_DEPENDENT_UINT64 unsigned __int64
226#define ACPI_SYSTEM_XFACE
227#define ACPI_EXTERNAL_XFACE
228#define ACPI_INTERNAL_XFACE
229#define ACPI_INTERNAL_VAR_XFACE
233#pragma warning(disable:4142)
240#if defined(_GNU_EFI) || defined(_EDK2_EFI)
245#ifndef ACPI_DIV_64_BY_32
246#define ACPI_DIV_64_BY_32(n_hi, n_lo, d32, q32, r32) \
248 UINT64 __n = ((UINT64) n_hi) << 32 | (n_lo); \
249 (q32) = (UINT32) DivU64x32 ((__n), (d32), &(r32)); \
253#ifndef ACPI_MUL_64_BY_32
254#define ACPI_MUL_64_BY_32(n_hi, n_lo, m32, p32, c32) \
256 UINT64 __n = ((UINT64) n_hi) << 32 | (n_lo); \
257 UINT64 __p = MultU64x32 (__n, (m32)); \
258 (p32) = (UINT32) __p; \
259 (c32) = (UINT32) (__p >> 32); \
263#ifndef ACPI_SHIFT_LEFT_64_by_32
264#define ACPI_SHIFT_LEFT_64_BY_32(n_hi, n_lo, s32) \
266 UINT64 __n = ((UINT64) n_hi) << 32 | (n_lo); \
267 UINT64 __r = LShiftU64 (__n, (s32)); \
268 (n_lo) = (UINT32) __r; \
269 (n_hi) = (UINT32) (__r >> 32); \
273#ifndef ACPI_SHIFT_RIGHT_64_BY_32
274#define ACPI_SHIFT_RIGHT_64_BY_32(n_hi, n_lo, s32) \
276 UINT64 __n = ((UINT64) n_hi) << 32 | (n_lo); \
277 UINT64 __r = RShiftU64 (__n, (s32)); \
278 (n_lo) = (UINT32) __r; \
279 (n_hi) = (UINT32) (__r >> 32); \
283#ifndef ACPI_SHIFT_RIGHT_64
284#define ACPI_SHIFT_RIGHT_64(n_hi, n_lo) \
287 (n_lo) |= (((n_hi) & 1) << 31); \
308#define FILE ACPI_EFI_FILE
unsigned long long UINT64
struct _ACPI_EFI_RUNTIME_SERVICES * RT
struct _ACPI_EFI_BOOT_SERVICES * BS
struct _ACPI_EFI_SYSTEM_TABLE * ST
GLuint GLuint GLuint GLuint arg1
GLuint GLuint GLuint GLuint GLuint GLuint GLuint GLuint GLuint GLuint arg3
GLuint GLuint GLuint GLuint GLuint GLuint GLuint arg2