174778Sbrian/******************************************************************************
226026Sbrian * protocols.h
374778Sbrian *
485964Sbrian * Permission is hereby granted, free of charge, to any person obtaining a copy
577701Sbrian * of this software and associated documentation files (the "Software"), to
677701Sbrian * deal in the Software without restriction, including without limitation the
777701Sbrian * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
877701Sbrian * sell copies of the Software, and to permit persons to whom the Software is
977701Sbrian * furnished to do so, subject to the following conditions:
1077701Sbrian *
1177701Sbrian * The above copyright notice and this permission notice shall be included in
1277701Sbrian * all copies or substantial portions of the Software.
1377701Sbrian *
1477701Sbrian * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1577701Sbrian * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1677701Sbrian * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1777701Sbrian * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1877701Sbrian * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1977701Sbrian * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2077701Sbrian * DEALINGS IN THE SOFTWARE.
2177701Sbrian */
2277701Sbrian
2377701Sbrian#ifndef __XEN_PROTOCOLS_H__
2477701Sbrian#define __XEN_PROTOCOLS_H__
2577701Sbrian
2677701Sbrian#define XEN_IO_PROTO_ABI_X86_32     "x86_32-abi"
2777701Sbrian#define XEN_IO_PROTO_ABI_X86_64     "x86_64-abi"
2877701Sbrian#define XEN_IO_PROTO_ABI_IA64       "ia64-abi"
2977701Sbrian#define XEN_IO_PROTO_ABI_POWERPC64  "powerpc64-abi"
3077701Sbrian
31162674Spiso#if defined(__i386__)
3274778Sbrian# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_32
3374778Sbrian#elif defined(__x86_64__)
3499207Sbrian# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_64
3574778Sbrian#elif defined(__ia64__)
3674778Sbrian# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_IA64
3774778Sbrian#elif defined(__powerpc64__)
3826026Sbrian# define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_POWERPC64
3926026Sbrian#else
4074778Sbrian# error arch fixup needed here
4126026Sbrian#endif
42162674Spiso
43162674Spiso#endif
44162674Spiso