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 RPMSG_OMX_H 20 #define RPMSG_OMX_H 21 #include <linux/ioctl.h> 22 23 /** 24 * struct omx_pvr_data - metadata passed to/from userspace for a pvr register 25 * @fd: a file descriptor representing a pvr handle 26 * @num_handles: field filled by driver. userspace uses this to determine 27 * number of handles associated with fd 28 * @handles: opaque pointers pointing to buffers 29 */ 30 struct omx_pvr_data { 31 int fd; 32 unsigned int num_handles; 33 void *handles[2]; 34 }; 35 36 #define OMX_IOC_MAGIC 'X' 37 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 38 #define OMX_IOCCONNECT _IOW(OMX_IOC_MAGIC, 1, char *) 39 #define OMX_IOCIONREGISTER _IOWR(OMX_IOC_MAGIC, 2, struct ion_fd_data) 40 #define OMX_IOCIONUNREGISTER _IOWR(OMX_IOC_MAGIC, 3, struct ion_fd_data) 41 #define OMX_IOCPVRREGISTER _IOWR(OMX_IOC_MAGIC, 4, struct omx_pvr_data) 42 43 #define OMX_IOC_MAXNR (4) 44 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 45 struct omx_conn_req { 46 char name[48]; 47 } __packed; 48 struct omx_packet { 49 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 50 uint16_t desc; 51 uint16_t msg_id; 52 uint32_t flags; 53 uint32_t fxn_idx; 54 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 55 int32_t result; 56 uint32_t data_size; 57 uint32_t data[0]; 58 }; 59 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 60 #endif 61