blob: a207fc77cf3fbc76dc94b21ab294830c1e454707 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef _UAPIFSL_HYPERVISOR_H
8#define _UAPIFSL_HYPERVISOR_H
9#include <linux/types.h>
10struct fsl_hv_ioctl_restart {
Tao Baod7db5942015-01-28 10:07:51 -080011 __u32 ret;
12 __u32 partition;
Ben Cheng655a7c02013-10-16 16:09:24 -070013};
14struct fsl_hv_ioctl_status {
Tao Baod7db5942015-01-28 10:07:51 -080015 __u32 ret;
16 __u32 partition;
17 __u32 status;
Ben Cheng655a7c02013-10-16 16:09:24 -070018};
Ben Cheng655a7c02013-10-16 16:09:24 -070019struct fsl_hv_ioctl_start {
Tao Baod7db5942015-01-28 10:07:51 -080020 __u32 ret;
21 __u32 partition;
22 __u32 entry_point;
Tao Baod7db5942015-01-28 10:07:51 -080023 __u32 load;
Ben Cheng655a7c02013-10-16 16:09:24 -070024};
25struct fsl_hv_ioctl_stop {
Tao Baod7db5942015-01-28 10:07:51 -080026 __u32 ret;
Tao Baod7db5942015-01-28 10:07:51 -080027 __u32 partition;
Ben Cheng655a7c02013-10-16 16:09:24 -070028};
29struct fsl_hv_ioctl_memcpy {
Tao Baod7db5942015-01-28 10:07:51 -080030 __u32 ret;
Tao Baod7db5942015-01-28 10:07:51 -080031 __u32 source;
32 __u32 target;
33 __u32 reserved;
34 __u64 local_vaddr;
Tao Baod7db5942015-01-28 10:07:51 -080035 __u64 remote_paddr;
36 __u64 count;
Ben Cheng655a7c02013-10-16 16:09:24 -070037};
38struct fsl_hv_ioctl_doorbell {
Tao Baod7db5942015-01-28 10:07:51 -080039 __u32 ret;
40 __u32 doorbell;
Ben Cheng655a7c02013-10-16 16:09:24 -070041};
42struct fsl_hv_ioctl_prop {
Tao Baod7db5942015-01-28 10:07:51 -080043 __u32 ret;
44 __u32 handle;
45 __u64 path;
46 __u64 propname;
Tao Baod7db5942015-01-28 10:07:51 -080047 __u64 propval;
48 __u32 proplen;
49 __u32 reserved;
Ben Cheng655a7c02013-10-16 16:09:24 -070050};
Ben Cheng655a7c02013-10-16 16:09:24 -070051#define FSL_HV_IOCTL_TYPE 0xAF
Tao Baod7db5942015-01-28 10:07:51 -080052#define FSL_HV_IOCTL_PARTITION_RESTART _IOWR(FSL_HV_IOCTL_TYPE, 1, struct fsl_hv_ioctl_restart)
53#define FSL_HV_IOCTL_PARTITION_GET_STATUS _IOWR(FSL_HV_IOCTL_TYPE, 2, struct fsl_hv_ioctl_status)
54#define FSL_HV_IOCTL_PARTITION_START _IOWR(FSL_HV_IOCTL_TYPE, 3, struct fsl_hv_ioctl_start)
Tao Baod7db5942015-01-28 10:07:51 -080055#define FSL_HV_IOCTL_PARTITION_STOP _IOWR(FSL_HV_IOCTL_TYPE, 4, struct fsl_hv_ioctl_stop)
56#define FSL_HV_IOCTL_MEMCPY _IOWR(FSL_HV_IOCTL_TYPE, 5, struct fsl_hv_ioctl_memcpy)
57#define FSL_HV_IOCTL_DOORBELL _IOWR(FSL_HV_IOCTL_TYPE, 6, struct fsl_hv_ioctl_doorbell)
58#define FSL_HV_IOCTL_GETPROP _IOWR(FSL_HV_IOCTL_TYPE, 7, struct fsl_hv_ioctl_prop)
Tao Baod7db5942015-01-28 10:07:51 -080059#define FSL_HV_IOCTL_SETPROP _IOWR(FSL_HV_IOCTL_TYPE, 8, struct fsl_hv_ioctl_prop)
Ben Cheng655a7c02013-10-16 16:09:24 -070060#endif