xref: /freebsd/sys/contrib/xen/io/protocols.h (revision 3a9fd8242b35884921dfc4e886f284a75870a536)
1*3a9fd824SRoger Pau Monné /******************************************************************************
2*3a9fd824SRoger Pau Monné  * protocols.h
3*3a9fd824SRoger Pau Monné  *
4*3a9fd824SRoger Pau Monné  * Permission is hereby granted, free of charge, to any person obtaining a copy
5*3a9fd824SRoger Pau Monné  * of this software and associated documentation files (the "Software"), to
6*3a9fd824SRoger Pau Monné  * deal in the Software without restriction, including without limitation the
7*3a9fd824SRoger Pau Monné  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8*3a9fd824SRoger Pau Monné  * sell copies of the Software, and to permit persons to whom the Software is
9*3a9fd824SRoger Pau Monné  * furnished to do so, subject to the following conditions:
10*3a9fd824SRoger Pau Monné  *
11*3a9fd824SRoger Pau Monné  * The above copyright notice and this permission notice shall be included in
12*3a9fd824SRoger Pau Monné  * all copies or substantial portions of the Software.
13*3a9fd824SRoger Pau Monné  *
14*3a9fd824SRoger Pau Monné  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15*3a9fd824SRoger Pau Monné  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16*3a9fd824SRoger Pau Monné  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17*3a9fd824SRoger Pau Monné  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18*3a9fd824SRoger Pau Monné  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19*3a9fd824SRoger Pau Monné  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20*3a9fd824SRoger Pau Monné  * DEALINGS IN THE SOFTWARE.
21*3a9fd824SRoger Pau Monné  *
22*3a9fd824SRoger Pau Monné  * Copyright (c) 2008, Keir Fraser
23*3a9fd824SRoger Pau Monné  */
24*3a9fd824SRoger Pau Monné 
25*3a9fd824SRoger Pau Monné #ifndef __XEN_PROTOCOLS_H__
26*3a9fd824SRoger Pau Monné #define __XEN_PROTOCOLS_H__
27*3a9fd824SRoger Pau Monné 
28*3a9fd824SRoger Pau Monné #define XEN_IO_PROTO_ABI_X86_32     "x86_32-abi"
29*3a9fd824SRoger Pau Monné #define XEN_IO_PROTO_ABI_X86_64     "x86_64-abi"
30*3a9fd824SRoger Pau Monné #define XEN_IO_PROTO_ABI_ARM        "arm-abi"
31*3a9fd824SRoger Pau Monné 
32*3a9fd824SRoger Pau Monné #if defined(__i386__)
33*3a9fd824SRoger Pau Monné # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_32
34*3a9fd824SRoger Pau Monné #elif defined(__x86_64__)
35*3a9fd824SRoger Pau Monné # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_X86_64
36*3a9fd824SRoger Pau Monné #elif defined(__arm__) || defined(__aarch64__)
37*3a9fd824SRoger Pau Monné # define XEN_IO_PROTO_ABI_NATIVE XEN_IO_PROTO_ABI_ARM
38*3a9fd824SRoger Pau Monné #else
39*3a9fd824SRoger Pau Monné # error arch fixup needed here
40*3a9fd824SRoger Pau Monné #endif
41*3a9fd824SRoger Pau Monné 
42*3a9fd824SRoger Pau Monné #endif
43