1 /******************************************************************************
4 * Xen version, type, and compile information.
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to
8 * deal in the Software without restriction, including without limitation the
9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 * sell copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22 * DEALINGS IN THE SOFTWARE.
24 * Copyright (c) 2005, Nguyen Anh Quynh <aquynh@gmail.com>
25 * Copyright (c) 2005, Keir Fraser <keir@xensource.com>
28 #ifndef __XEN_PUBLIC_VERSION_H__
29 #define __XEN_PUBLIC_VERSION_H__
35 /* NB. All ops return zero on success, except XENVER_{version,pagesize} */
37 /* arg == NULL; returns major:minor (16:16). */
38 #define XENVER_version 0
40 /* arg == xen_extraversion_t. */
41 #define XENVER_extraversion 1
42 typedef char xen_extraversion_t[16];
43 #define XEN_EXTRAVERSION_LEN (sizeof(xen_extraversion_t))
45 /* arg == xen_compile_info_t. */
46 #define XENVER_compile_info 2
47 struct xen_compile_info {
50 char compile_domain[32];
51 char compile_date[32];
53 typedef struct xen_compile_info xen_compile_info_t;
55 #define XENVER_capabilities 3
56 typedef char xen_capabilities_info_t[1024];
57 #define XEN_CAPABILITIES_INFO_LEN (sizeof(xen_capabilities_info_t))
59 #define XENVER_changeset 4
60 typedef char xen_changeset_info_t[64];
61 #define XEN_CHANGESET_INFO_LEN (sizeof(xen_changeset_info_t))
63 #define XENVER_platform_parameters 5
64 struct xen_platform_parameters {
65 xen_ulong_t virt_start;
67 typedef struct xen_platform_parameters xen_platform_parameters_t;
69 #define XENVER_get_features 6
70 struct xen_feature_info {
71 unsigned int submap_idx; /* IN: which 32-bit submap to return */
72 uint32_t submap; /* OUT: 32-bit submap */
74 typedef struct xen_feature_info xen_feature_info_t;
76 /* Declares the features reported by XENVER_get_features. */
79 /* arg == NULL; returns host memory page size. */
80 #define XENVER_pagesize 7
82 /* arg == xen_domain_handle_t. */
83 #define XENVER_guest_handle 8
85 #define XENVER_commandline 9
86 typedef char xen_commandline_t[1024];
88 #endif /* __XEN_PUBLIC_VERSION_H__ */
96 * indent-tabs-mode: nil