blob: 7d00973951c7750b2cdbaeb133c8887a58a5f0ff [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPIFSL_HYPERVISOR_H
20#define _UAPIFSL_HYPERVISOR_H
21#include <linux/types.h>
22struct fsl_hv_ioctl_restart {
Tao Baod7db5942015-01-28 10:07:51 -080023 __u32 ret;
24 __u32 partition;
Ben Cheng655a7c02013-10-16 16:09:24 -070025};
26struct fsl_hv_ioctl_status {
Tao Baod7db5942015-01-28 10:07:51 -080027 __u32 ret;
28 __u32 partition;
29 __u32 status;
Ben Cheng655a7c02013-10-16 16:09:24 -070030};
Ben Cheng655a7c02013-10-16 16:09:24 -070031struct fsl_hv_ioctl_start {
Tao Baod7db5942015-01-28 10:07:51 -080032 __u32 ret;
33 __u32 partition;
34 __u32 entry_point;
Tao Baod7db5942015-01-28 10:07:51 -080035 __u32 load;
Ben Cheng655a7c02013-10-16 16:09:24 -070036};
37struct fsl_hv_ioctl_stop {
Tao Baod7db5942015-01-28 10:07:51 -080038 __u32 ret;
Tao Baod7db5942015-01-28 10:07:51 -080039 __u32 partition;
Ben Cheng655a7c02013-10-16 16:09:24 -070040};
41struct fsl_hv_ioctl_memcpy {
Tao Baod7db5942015-01-28 10:07:51 -080042 __u32 ret;
Tao Baod7db5942015-01-28 10:07:51 -080043 __u32 source;
44 __u32 target;
45 __u32 reserved;
46 __u64 local_vaddr;
Tao Baod7db5942015-01-28 10:07:51 -080047 __u64 remote_paddr;
48 __u64 count;
Ben Cheng655a7c02013-10-16 16:09:24 -070049};
50struct fsl_hv_ioctl_doorbell {
Tao Baod7db5942015-01-28 10:07:51 -080051 __u32 ret;
52 __u32 doorbell;
Ben Cheng655a7c02013-10-16 16:09:24 -070053};
54struct fsl_hv_ioctl_prop {
Tao Baod7db5942015-01-28 10:07:51 -080055 __u32 ret;
56 __u32 handle;
57 __u64 path;
58 __u64 propname;
Tao Baod7db5942015-01-28 10:07:51 -080059 __u64 propval;
60 __u32 proplen;
61 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -070062};
Ben Cheng655a7c02013-10-16 16:09:24 -070063#define FSL_HV_IOCTL_TYPE 0xAF
Tao Baod7db5942015-01-28 10:07:51 -080064#define FSL_HV_IOCTL_PARTITION_RESTART _IOWR(FSL_HV_IOCTL_TYPE, 1, struct fsl_hv_ioctl_restart)
65#define FSL_HV_IOCTL_PARTITION_GET_STATUS _IOWR(FSL_HV_IOCTL_TYPE, 2, struct fsl_hv_ioctl_status)
66#define FSL_HV_IOCTL_PARTITION_START _IOWR(FSL_HV_IOCTL_TYPE, 3, struct fsl_hv_ioctl_start)
Tao Baod7db5942015-01-28 10:07:51 -080067#define FSL_HV_IOCTL_PARTITION_STOP _IOWR(FSL_HV_IOCTL_TYPE, 4, struct fsl_hv_ioctl_stop)
68#define FSL_HV_IOCTL_MEMCPY _IOWR(FSL_HV_IOCTL_TYPE, 5, struct fsl_hv_ioctl_memcpy)
69#define FSL_HV_IOCTL_DOORBELL _IOWR(FSL_HV_IOCTL_TYPE, 6, struct fsl_hv_ioctl_doorbell)
70#define FSL_HV_IOCTL_GETPROP _IOWR(FSL_HV_IOCTL_TYPE, 7, struct fsl_hv_ioctl_prop)
Tao Baod7db5942015-01-28 10:07:51 -080071#define FSL_HV_IOCTL_SETPROP _IOWR(FSL_HV_IOCTL_TYPE, 8, struct fsl_hv_ioctl_prop)
Ben Cheng655a7c02013-10-16 16:09:24 -070072#endif