diff options
Diffstat (limited to 'include/linux/rpmsg_omx.h')
-rw-r--r-- | include/linux/rpmsg_omx.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/linux/rpmsg_omx.h b/include/linux/rpmsg_omx.h index 15503d5ee07d..3d5e42aca77f 100644 --- a/include/linux/rpmsg_omx.h +++ b/include/linux/rpmsg_omx.h @@ -35,13 +35,27 @@ #include <linux/ioctl.h> +/** + * struct omx_pvr_data - metadata passed to/from userspace for a pvr register + * @fd: a file descriptor representing a pvr handle + * @num_handles: field filled by driver. userspace uses this to determine + * number of handles associated with fd + * @handles: opaque pointers pointing to buffers + */ +struct omx_pvr_data { + int fd; + unsigned int num_handles; + void *handles[2]; +}; + #define OMX_IOC_MAGIC 'X' #define OMX_IOCCONNECT _IOW(OMX_IOC_MAGIC, 1, char *) #define OMX_IOCIONREGISTER _IOWR(OMX_IOC_MAGIC, 2, struct ion_fd_data) #define OMX_IOCIONUNREGISTER _IOWR(OMX_IOC_MAGIC, 3, struct ion_fd_data) +#define OMX_IOCPVRREGISTER _IOWR(OMX_IOC_MAGIC, 4, struct omx_pvr_data) -#define OMX_IOC_MAXNR (3) +#define OMX_IOC_MAXNR (4) #ifdef __KERNEL__ |