Make sure the correct physical address size is used on 32bit platforms. (NicJA)
[AROS.git] / arch / all-pc / acpica / include / acpica.h
blob9cb36d52565a71fa93e4d4f148d0dd78fb102218
1 /*
2 * Copyright (C) 2012-2018, The AROS Development Team
3 * All right reserved.
4 * Author: Jason S. McMullan <jason.mcmullan@gmail.com>
6 * Licensed under the AROS PUBLIC LICENSE (APL) Version 1.1
7 */
9 #ifndef LIBRARIES_ACPICA_H
10 #define LIBRARIES_ACPICA_H
12 #include <proto/exec.h>
14 #if (__WORDSIZE==64)
15 # define ACPI_MACHINE_WIDTH 64
16 #else
17 # define ACPI_MACHINE_WIDTH 32
18 # define ACPI_32BIT_PHYSICAL_ADDRESS
19 #endif
21 #define COMPILER_DEPENDENT_INT64 QUAD
22 #define COMPILER_DEPENDENT_UINT64 UQUAD
25 * Calling conventions:
27 * ACPI_SYSTEM_XFACE - Interfaces to host OS (handlers, threads)
28 * ACPI_EXTERNAL_XFACE - External ACPI interfaces
29 * ACPI_INTERNAL_XFACE - Internal ACPI interfaces
30 * ACPI_INTERNAL_VAR_XFACE - Internal variable-parameter list interfaces
32 #define ACPI_SYSTEM_XFACE
33 #define ACPI_EXTERNAL_XFACE
34 #define ACPI_INTERNAL_XFACE
35 #define ACPI_INTERNAL_VAR_XFACE
37 #ifndef __ACAROS_H__
38 #define ACPI_EXTERNAL_RETURN_STATUS(Prototype)
39 #define ACPI_EXTERNAL_RETURN_OK(Prototype)
40 #define ACPI_EXTERNAL_RETURN_VOID(Prototype)
41 #define ACPI_EXTERNAL_RETURN_UINT32(Prototype)
42 #define ACPI_EXTERNAL_RETURN_PTR(Prototype)
44 #define ACPI_INLINE __inline__
45 #define ACPI_PRINTF_LIKE(c) __attribute__ ((__format__ (__printf__, c, c+1)))
47 #include <acpica/actypes.h>
48 #include <acpica/actbl.h>
49 #include <acpica/acbuffer.h>
50 #include <acpica/acrestyp.h>
51 #include <acpica/acpixf.h>
52 #include <acpica/acexcep.h>
53 #include <acpica/aclocal.h>
54 #endif
56 #endif /* LIBRARIES_ACPICA_H */