Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 #ifndef __XEN_PROTOCOLS_H__
0003 #define __XEN_PROTOCOLS_H__
0004 
0005 #define XEN_IO_PROTO_ABI_X86_32     "x86_32-abi"
0006 #define XEN_IO_PROTO_ABI_X86_64     "x86_64-abi"
0007 #define XEN_IO_PROTO_ABI_POWERPC64  "powerpc64-abi"
0008 #define XEN_IO_PROTO_ABI_ARM        "arm-abi"
0009 
0010 #if defined(__i386__)
0011 # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_32
0012 #elif defined(__x86_64__)
0013 # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_64
0014 #elif defined(__powerpc64__)
0015 # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_POWERPC64
0016 #elif defined(__arm__) || defined(__aarch64__)
0017 # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_ARM
0018 #else
0019 # error arch fixup needed here
0020 #endif
0021 
0022 #endif