Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

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