Linux Audio

Check our new training course

Loading...
v6.2
 1/* SPDX-License-Identifier: MIT */
 2/******************************************************************************
 3 * version.h
 4 *
 5 * Xen version, type, and compile information.
 6 *
 7 * Copyright (c) 2005, Nguyen Anh Quynh <aquynh@gmail.com>
 8 * Copyright (c) 2005, Keir Fraser <keir@xensource.com>
 9 */
10
11#ifndef __XEN_PUBLIC_VERSION_H__
12#define __XEN_PUBLIC_VERSION_H__
13
14/* NB. All ops return zero on success, except XENVER_version. */
15
16/* arg == NULL; returns major:minor (16:16). */
17#define XENVER_version      0
18
19/* arg == xen_extraversion_t. */
20#define XENVER_extraversion 1
21struct xen_extraversion {
22    char extraversion[16];
23};
24#define XEN_EXTRAVERSION_LEN (sizeof(struct xen_extraversion))
25
26/* arg == xen_compile_info_t. */
27#define XENVER_compile_info 2
28struct xen_compile_info {
29    char compiler[64];
30    char compile_by[16];
31    char compile_domain[32];
32    char compile_date[32];
33};
34
35#define XENVER_capabilities 3
36struct xen_capabilities_info {
37    char info[1024];
38};
39#define XEN_CAPABILITIES_INFO_LEN (sizeof(struct xen_capabilities_info))
40
41#define XENVER_changeset 4
42struct xen_changeset_info {
43    char info[64];
44};
45#define XEN_CHANGESET_INFO_LEN (sizeof(struct xen_changeset_info))
46
47#define XENVER_platform_parameters 5
48struct xen_platform_parameters {
49    xen_ulong_t virt_start;
50};
51
52#define XENVER_get_features 6
53struct xen_feature_info {
54    unsigned int submap_idx;    /* IN: which 32-bit submap to return */
55    uint32_t     submap;        /* OUT: 32-bit submap */
56};
57
58/* Declares the features reported by XENVER_get_features. */
59#include <xen/interface/features.h>
60
61/* arg == NULL; returns host memory page size. */
62#define XENVER_pagesize 7
63
64/* arg == xen_domain_handle_t. */
65#define XENVER_guest_handle 8
66
67#define XENVER_commandline 9
68struct xen_commandline {
69	char buf[1024];
70};
71
72/*
73 * Return value is the number of bytes written, or XEN_Exx on error.
74 * Calling with empty parameter returns the size of build_id.
75 */
76#define XENVER_build_id 10
77struct xen_build_id {
78	uint32_t	len; /* IN: size of buf[]. */
79	unsigned char	buf[];
80};
81
82#endif /* __XEN_PUBLIC_VERSION_H__ */
v3.5.6
 
 1/******************************************************************************
 2 * version.h
 3 *
 4 * Xen version, type, and compile information.
 5 *
 6 * Copyright (c) 2005, Nguyen Anh Quynh <aquynh@gmail.com>
 7 * Copyright (c) 2005, Keir Fraser <keir@xensource.com>
 8 */
 9
10#ifndef __XEN_PUBLIC_VERSION_H__
11#define __XEN_PUBLIC_VERSION_H__
12
13/* NB. All ops return zero on success, except XENVER_version. */
14
15/* arg == NULL; returns major:minor (16:16). */
16#define XENVER_version      0
17
18/* arg == xen_extraversion_t. */
19#define XENVER_extraversion 1
20struct xen_extraversion {
21    char extraversion[16];
22};
23#define XEN_EXTRAVERSION_LEN (sizeof(struct xen_extraversion))
24
25/* arg == xen_compile_info_t. */
26#define XENVER_compile_info 2
27struct xen_compile_info {
28    char compiler[64];
29    char compile_by[16];
30    char compile_domain[32];
31    char compile_date[32];
32};
33
34#define XENVER_capabilities 3
35struct xen_capabilities_info {
36    char info[1024];
37};
38#define XEN_CAPABILITIES_INFO_LEN (sizeof(struct xen_capabilities_info))
39
40#define XENVER_changeset 4
41struct xen_changeset_info {
42    char info[64];
43};
44#define XEN_CHANGESET_INFO_LEN (sizeof(struct xen_changeset_info))
45
46#define XENVER_platform_parameters 5
47struct xen_platform_parameters {
48    unsigned long virt_start;
49};
50
51#define XENVER_get_features 6
52struct xen_feature_info {
53    unsigned int submap_idx;    /* IN: which 32-bit submap to return */
54    uint32_t     submap;        /* OUT: 32-bit submap */
55};
56
57/* Declares the features reported by XENVER_get_features. */
58#include "features.h"
59
60/* arg == NULL; returns host memory page size. */
61#define XENVER_pagesize 7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
63#endif /* __XEN_PUBLIC_VERSION_H__ */