]>
Commit | Line | Data |
---|---|---|
6b621f95 AP |
1 | /******************************************************************************\r |
2 | * xen-compat.h\r | |
3 | * \r | |
4 | * Guest OS interface to Xen. Compatibility layer.\r | |
5 | * \r | |
6 | * Permission is hereby granted, free of charge, to any person obtaining a copy\r | |
7 | * of this software and associated documentation files (the "Software"), to\r | |
8 | * deal in the Software without restriction, including without limitation the\r | |
9 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\r | |
10 | * sell copies of the Software, and to permit persons to whom the Software is\r | |
11 | * furnished to do so, subject to the following conditions:\r | |
12 | *\r | |
13 | * The above copyright notice and this permission notice shall be included in\r | |
14 | * all copies or substantial portions of the Software.\r | |
15 | *\r | |
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r | |
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r | |
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r | |
19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r | |
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\r | |
21 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\r | |
22 | * DEALINGS IN THE SOFTWARE.\r | |
23 | *\r | |
24 | * Copyright (c) 2006, Christian Limpach\r | |
25 | */\r | |
26 | \r | |
27 | #ifndef __XEN_PUBLIC_XEN_COMPAT_H__\r | |
28 | #define __XEN_PUBLIC_XEN_COMPAT_H__\r | |
29 | \r | |
30 | #define __XEN_LATEST_INTERFACE_VERSION__ 0x00040400\r | |
31 | \r | |
32 | #if defined(__XEN__) || defined(__XEN_TOOLS__)\r | |
33 | /* Xen is built with matching headers and implements the latest interface. */\r | |
34 | #define __XEN_INTERFACE_VERSION__ __XEN_LATEST_INTERFACE_VERSION__\r | |
35 | #elif !defined(__XEN_INTERFACE_VERSION__)\r | |
36 | /* Guests which do not specify a version get the legacy interface. */\r | |
37 | #define __XEN_INTERFACE_VERSION__ 0x00000000\r | |
38 | #endif\r | |
39 | \r | |
40 | #if __XEN_INTERFACE_VERSION__ > __XEN_LATEST_INTERFACE_VERSION__\r | |
41 | #error "These header files do not support the requested interface version."\r | |
42 | #endif\r | |
43 | \r | |
44 | #endif /* __XEN_PUBLIC_XEN_COMPAT_H__ */\r |