xref: /linux/include/xen/interface/io/protocols.h (revision 03ab8e6297acd1bc0eedaa050e2a1635c576fd11)
1*9e2b3e83SJuergen Gross /* SPDX-License-Identifier: MIT */
23e334239SMarkus Armbruster #ifndef __XEN_PROTOCOLS_H__
33e334239SMarkus Armbruster #define __XEN_PROTOCOLS_H__
43e334239SMarkus Armbruster 
53e334239SMarkus Armbruster #define XEN_IO_PROTO_ABI_X86_32     "x86_32-abi"
63e334239SMarkus Armbruster #define XEN_IO_PROTO_ABI_X86_64     "x86_64-abi"
73e334239SMarkus Armbruster #define XEN_IO_PROTO_ABI_POWERPC64  "powerpc64-abi"
8e79affc3SStefano Stabellini #define XEN_IO_PROTO_ABI_ARM        "arm-abi"
93e334239SMarkus Armbruster 
103e334239SMarkus Armbruster #if defined(__i386__)
113e334239SMarkus Armbruster # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_32
123e334239SMarkus Armbruster #elif defined(__x86_64__)
133e334239SMarkus Armbruster # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_64
143e334239SMarkus Armbruster #elif defined(__powerpc64__)
153e334239SMarkus Armbruster # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_POWERPC64
16ea9c3652SStefano Stabellini #elif defined(__arm__) || defined(__aarch64__)
17e79affc3SStefano Stabellini # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_ARM
183e334239SMarkus Armbruster #else
193e334239SMarkus Armbruster # error arch fixup needed here
203e334239SMarkus Armbruster #endif
213e334239SMarkus Armbruster 
223e334239SMarkus Armbruster #endif
23