Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      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>
     22 struct fsl_hv_ioctl_restart {
     23   __u32 ret;
     24   __u32 partition;
     25 };
     26 struct fsl_hv_ioctl_status {
     27   __u32 ret;
     28   __u32 partition;
     29   __u32 status;
     30 };
     31 struct fsl_hv_ioctl_start {
     32   __u32 ret;
     33   __u32 partition;
     34   __u32 entry_point;
     35   __u32 load;
     36 };
     37 struct fsl_hv_ioctl_stop {
     38   __u32 ret;
     39   __u32 partition;
     40 };
     41 struct fsl_hv_ioctl_memcpy {
     42   __u32 ret;
     43   __u32 source;
     44   __u32 target;
     45   __u32 reserved;
     46   __u64 local_vaddr;
     47   __u64 remote_paddr;
     48   __u64 count;
     49 };
     50 struct fsl_hv_ioctl_doorbell {
     51   __u32 ret;
     52   __u32 doorbell;
     53 };
     54 struct fsl_hv_ioctl_prop {
     55   __u32 ret;
     56   __u32 handle;
     57   __u64 path;
     58   __u64 propname;
     59   __u64 propval;
     60   __u32 proplen;
     61   __u32 reserved;
     62 };
     63 #define FSL_HV_IOCTL_TYPE 0xAF
     64 #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)
     67 #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)
     71 #define FSL_HV_IOCTL_SETPROP _IOWR(FSL_HV_IOCTL_TYPE, 8, struct fsl_hv_ioctl_prop)
     72 #endif
     73