Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
3e334239 MA |
2 | #ifndef __XEN_PROTOCOLS_H__ |
3 | #define __XEN_PROTOCOLS_H__ | |
4 | ||
5 | #define XEN_IO_PROTO_ABI_X86_32 "x86_32-abi" | |
6 | #define XEN_IO_PROTO_ABI_X86_64 "x86_64-abi" | |
3e334239 | 7 | #define XEN_IO_PROTO_ABI_POWERPC64 "powerpc64-abi" |
e79affc3 | 8 | #define XEN_IO_PROTO_ABI_ARM "arm-abi" |
3e334239 MA |
9 | |
10 | #if defined(__i386__) | |
11 | # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_32 | |
12 | #elif defined(__x86_64__) | |
13 | # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_64 | |
3e334239 MA |
14 | #elif defined(__powerpc64__) |
15 | # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_POWERPC64 | |
ea9c3652 | 16 | #elif defined(__arm__) || defined(__aarch64__) |
e79affc3 | 17 | # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_ARM |
3e334239 MA |
18 | #else |
19 | # error arch fixup needed here | |
20 | #endif | |
21 | ||
22 | #endif |