win-pvdrivers

annotate common/include/public/xen-compat.h @ 62:edd4a2ad5b44

Removed old inf files
author James Harper <james.harper@bendigoit.com.au>
date Wed Dec 19 10:22:50 2007 +1100 (2007-12-19)
parents 5712dede5a1b
children
rev   line source
andy@12 1 /******************************************************************************
andy@12 2 * xen-compat.h
andy@12 3 *
andy@12 4 * Guest OS interface to Xen. Compatibility layer.
andy@12 5 *
andy@12 6 * Permission is hereby granted, free of charge, to any person obtaining a copy
andy@12 7 * of this software and associated documentation files (the "Software"), to
andy@12 8 * deal in the Software without restriction, including without limitation the
andy@12 9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
andy@12 10 * sell copies of the Software, and to permit persons to whom the Software is
andy@12 11 * furnished to do so, subject to the following conditions:
andy@12 12 *
andy@12 13 * The above copyright notice and this permission notice shall be included in
andy@12 14 * all copies or substantial portions of the Software.
andy@12 15 *
andy@12 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
andy@12 17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
andy@12 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
andy@12 19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
andy@12 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
andy@12 21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
andy@12 22 * DEALINGS IN THE SOFTWARE.
andy@12 23 *
andy@12 24 * Copyright (c) 2006, Christian Limpach
andy@12 25 */
andy@12 26
andy@12 27 #ifndef __XEN_PUBLIC_XEN_COMPAT_H__
andy@12 28 #define __XEN_PUBLIC_XEN_COMPAT_H__
andy@12 29
andy@12 30 #define __XEN_LATEST_INTERFACE_VERSION__ 0x00030205
andy@12 31
andy@12 32 #if defined(__XEN__) || defined(__XEN_TOOLS__)
andy@12 33 /* Xen is built with matching headers and implements the latest interface. */
andy@12 34 #define __XEN_INTERFACE_VERSION__ __XEN_LATEST_INTERFACE_VERSION__
andy@12 35 #elif !defined(__XEN_INTERFACE_VERSION__)
andy@12 36 /* Guests which do not specify a version get the legacy interface. */
andy@12 37 #define __XEN_INTERFACE_VERSION__ 0x00000000
andy@12 38 #endif
andy@12 39
andy@12 40 #if __XEN_INTERFACE_VERSION__ > __XEN_LATEST_INTERFACE_VERSION__
andy@12 41 #error "These header files do not support the requested interface version."
andy@12 42 #endif
andy@12 43
andy@12 44 /* Fields defined as a Xen guest handle since 0x00030205. */
andy@12 45 #if __XEN_INTERFACE_VERSION__ >= 0x00030205
andy@12 46 #define XEN_GUEST_HANDLE_00030205(type) XEN_GUEST_HANDLE(type)
andy@12 47 #else
andy@12 48 #define XEN_GUEST_HANDLE_00030205(type) type *
andy@12 49 #endif
andy@12 50
andy@12 51 #endif /* __XEN_PUBLIC_XEN_COMPAT_H__ */