2 * Copyright (C) 2012, The AROS Development Team
4 * Author: Jason S. McMullan <jason.mcmullan@gmail.com>
6 * Licensed under the AROS PUBLIC LICENSE (APL) Version 1.1
9 #ifndef LIBRARIES_ACPICA_H
10 #define LIBRARIES_ACPICA_H
12 #include <proto/exec.h>
14 #if defined(__x86_64__)
15 #define ACPI_MACHINE_WIDTH 64
16 #elif defined(__i386__)
17 #define ACPI_MACHINE_WIDTH 32
19 #error Unsupported hardware architecture!
22 #define COMPILER_DEPENDENT_INT64 QUAD
23 #define COMPILER_DEPENDENT_UINT64 UQUAD
26 * Calling conventions:
28 * ACPI_SYSTEM_XFACE - Interfaces to host OS (handlers, threads)
29 * ACPI_EXTERNAL_XFACE - External ACPI interfaces
30 * ACPI_INTERNAL_XFACE - Internal ACPI interfaces
31 * ACPI_INTERNAL_VAR_XFACE - Internal variable-parameter list interfaces
33 #define ACPI_SYSTEM_XFACE
34 #define ACPI_EXTERNAL_XFACE
35 #define ACPI_INTERNAL_XFACE
36 #define ACPI_INTERNAL_VAR_XFACE
38 #define ACPI_ALLOCATE(size) AllocVec(size, MEMF_PUBLIC)
39 #define ACPI_ALLOCATE_ZEROED(size) AllocVec(size, MEMF_PUBLIC | MEMF_CLEAR)
40 #define ACPI_FREE(ptr) FreeVec(ptr)
42 #include <acpica/actypes.h>
43 #include <acpica/actbl.h>
44 #include <acpica/acbuffer.h>
45 #include <acpica/acrestyp.h>
46 #include <acpica/acpixf.h>
47 #include <acpica/acexcep.h>
49 #endif /* LIBRARIES_ACPICA_H */