1263320Sdim/****************************************************************************** 2263320Sdim * protocols.h 3263320Sdim * 4263320Sdim * Permission is hereby granted, free of charge, to any person obtaining a copy 5263320Sdim * of this software and associated documentation files (the "Software"), to 6263320Sdim * deal in the Software without restriction, including without limitation the 7269012Semaste * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 8263320Sdim * sell copies of the Software, and to permit persons to whom the Software is 9263320Sdim * furnished to do so, subject to the following conditions: 10263320Sdim * 11263320Sdim * The above copyright notice and this permission notice shall be included in 12263320Sdim * all copies or substantial portions of the Software. 13263320Sdim * 14263320Sdim * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15263320Sdim * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16263320Sdim * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17263320Sdim * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18263320Sdim * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 19263320Sdim * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20263320Sdim * DEALINGS IN THE SOFTWARE. 21263320Sdim */ 22263320Sdim 23263320Sdim#ifndef __XEN_PROTOCOLS_H__ 24263320Sdim#define __XEN_PROTOCOLS_H__ 25263320Sdim 26263320Sdim#define XEN_IO_PROTO_ABI_X86_32 "x86_32-abi" 27263320Sdim#define XEN_IO_PROTO_ABI_X86_64 "x86_64-abi" 28263320Sdim#define XEN_IO_PROTO_ABI_IA64 "ia64-abi" 29263320Sdim#define XEN_IO_PROTO_ABI_ARM "arm-abi" 30263320Sdim 31263320Sdim#if defined(__i386__) 32263320Sdim# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_32 33263320Sdim#elif defined(__x86_64__) 34263320Sdim# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_64 35263320Sdim#elif defined(__ia64__) 36263320Sdim# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_IA64 37263320Sdim#elif defined(__arm__) 38263320Sdim# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_ARM 39263320Sdim#else 40263320Sdim# error arch fixup needed here 41263320Sdim#endif 42263320Sdim 43263320Sdim#endif 44263320Sdim