]>
Commit | Line | Data |
---|---|---|
6b621f95 AP |
1 | /******************************************************************************\r |
2 | * xen-compat.h\r | |
4040754d | 3 | *\r |
6b621f95 | 4 | * Guest OS interface to Xen. Compatibility layer.\r |
4040754d | 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 | |
ac0a286f | 14 | #define __XEN_LATEST_INTERFACE_VERSION__ 0x00040400\r |
6b621f95 | 15 | \r |
ac0a286f | 16 | #if defined (__XEN__) || defined (__XEN_TOOLS__)\r |
6b621f95 | 17 | /* Xen is built with matching headers and implements the latest interface. */\r |
ac0a286f MK |
18 | #define __XEN_INTERFACE_VERSION__ __XEN_LATEST_INTERFACE_VERSION__\r |
19 | #elif !defined (__XEN_INTERFACE_VERSION__)\r | |
6b621f95 | 20 | /* Guests which do not specify a version get the legacy interface. */\r |
ac0a286f | 21 | #define __XEN_INTERFACE_VERSION__ 0x00000000\r |
6b621f95 AP |
22 | #endif\r |
23 | \r | |
24 | #if __XEN_INTERFACE_VERSION__ > __XEN_LATEST_INTERFACE_VERSION__\r | |
ac0a286f | 25 | #error "These header files do not support the requested interface version."\r |
6b621f95 AP |
26 | #endif\r |
27 | \r | |
28 | #endif /* __XEN_PUBLIC_XEN_COMPAT_H__ */\r |