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