Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / xen / include / xen3-public / version.h
blob555010b1a8867f6a77fb720ca29e0bcf9d734d15
1 /* $NetBSD: version.h,v 1.3.28.1 2007/10/03 19:26:09 garbled Exp $ */
2 /******************************************************************************
3 * version.h
4 *
5 * Xen version, type, and compile information.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to
9 * deal in the Software without restriction, including without limitation the
10 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
11 * sell copies of the Software, and to permit persons to whom the Software is
12 * furnished to do so, subject to the following conditions:
14 * The above copyright notice and this permission notice shall be included in
15 * all copies or substantial portions of the Software.
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 * DEALINGS IN THE SOFTWARE.
25 * Copyright (c) 2005, Nguyen Anh Quynh <aquynh@gmail.com>
26 * Copyright (c) 2005, Keir Fraser <keir@xensource.com>
29 #ifndef __XEN_PUBLIC_VERSION_H__
30 #define __XEN_PUBLIC_VERSION_H__
32 /* NB. All ops return zero on success, except XENVER_{version,pagesize} */
34 /* arg == NULL; returns major:minor (16:16). */
35 #define XENVER_version 0
37 /* arg == xen_extraversion_t. */
38 #define XENVER_extraversion 1
39 typedef char xen_extraversion_t[16];
40 #define XEN_EXTRAVERSION_LEN (sizeof(xen_extraversion_t))
42 /* arg == xen_compile_info_t. */
43 #define XENVER_compile_info 2
44 struct xen_compile_info {
45 char compiler[64];
46 char compile_by[16];
47 char compile_domain[32];
48 char compile_date[32];
50 typedef struct xen_compile_info xen_compile_info_t;
52 #define XENVER_capabilities 3
53 typedef char xen_capabilities_info_t[1024];
54 #define XEN_CAPABILITIES_INFO_LEN (sizeof(xen_capabilities_info_t))
56 #define XENVER_changeset 4
57 typedef char xen_changeset_info_t[64];
58 #define XEN_CHANGESET_INFO_LEN (sizeof(xen_changeset_info_t))
60 #define XENVER_platform_parameters 5
61 struct xen_platform_parameters {
62 unsigned long virt_start;
64 typedef struct xen_platform_parameters xen_platform_parameters_t;
66 #define XENVER_get_features 6
67 struct xen_feature_info {
68 unsigned int submap_idx; /* IN: which 32-bit submap to return */
69 uint32_t submap; /* OUT: 32-bit submap */
71 typedef struct xen_feature_info xen_feature_info_t;
73 /* Declares the features reported by XENVER_get_features. */
74 #include "features.h"
76 /* arg == NULL; returns host memory page size. */
77 #define XENVER_pagesize 7
79 /* arg == xen_domain_handle_t. */
80 #define XENVER_guest_handle 8
82 #endif /* __XEN_PUBLIC_VERSION_H__ */
85 * Local variables:
86 * mode: C
87 * c-set-style: "BSD"
88 * c-basic-offset: 4
89 * tab-width: 4
90 * indent-tabs-mode: nil
91 * End: