]>
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 | |
6f21d772 | 6 | * SPDX-License-Identifier: MIT\r |
6b621f95 AP |
7 | *\r |
8 | * Copyright (c) 2006, Christian Limpach\r | |
9 | */\r | |
10 | \r | |
11 | #ifndef __XEN_PUBLIC_XEN_COMPAT_H__\r | |
12 | #define __XEN_PUBLIC_XEN_COMPAT_H__\r | |
13 | \r | |
14 | #define __XEN_LATEST_INTERFACE_VERSION__ 0x00040400\r | |
15 | \r | |
16 | #if defined(__XEN__) || defined(__XEN_TOOLS__)\r | |
17 | /* Xen is built with matching headers and implements the latest interface. */\r | |
18 | #define __XEN_INTERFACE_VERSION__ __XEN_LATEST_INTERFACE_VERSION__\r | |
19 | #elif !defined(__XEN_INTERFACE_VERSION__)\r | |
20 | /* Guests which do not specify a version get the legacy interface. */\r | |
21 | #define __XEN_INTERFACE_VERSION__ 0x00000000\r | |
22 | #endif\r | |
23 | \r | |
24 | #if __XEN_INTERFACE_VERSION__ > __XEN_LATEST_INTERFACE_VERSION__\r | |
25 | #error "These header files do not support the requested interface version."\r | |
26 | #endif\r | |
27 | \r | |
28 | #endif /* __XEN_PUBLIC_XEN_COMPAT_H__ */\r |