2014-10-29 07:48:29 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* protocols.h
|
2019-09-19 14:05:00 +02:00
|
|
|
*
|
2019-04-10 13:55:19 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2014-10-29 07:48:29 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __XEN_PROTOCOLS_H__
|
|
|
|
#define __XEN_PROTOCOLS_H__
|
|
|
|
|
|
|
|
#define XEN_IO_PROTO_ABI_X86_32 "x86_32-abi"
|
|
|
|
#define XEN_IO_PROTO_ABI_X86_64 "x86_64-abi"
|
|
|
|
#define XEN_IO_PROTO_ABI_ARM "arm-abi"
|
|
|
|
|
2014-10-31 22:25:11 +01:00
|
|
|
#if defined(MDE_CPU_IA32)
|
2014-10-29 07:48:29 +01:00
|
|
|
# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_32
|
2014-10-31 22:25:11 +01:00
|
|
|
#elif defined(MDE_CPU_X64)
|
2014-10-29 07:48:29 +01:00
|
|
|
# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_64
|
|
|
|
#elif defined(__arm__) || defined(__aarch64__)
|
|
|
|
# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_ARM
|
|
|
|
#else
|
|
|
|
# error arch fixup needed here
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|