/* * This file is auto-generated. Modifications will be lost. * * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ * for more information. */ #ifndef _BIGO_H_ #define _BIGO_H_ #include #include struct bigo_ioc_regs { __u64 regs; __u32 regs_size; }; struct bigo_ioc_mapping { int fd; __u32 iova; __u32 offset; __u32 size; __u32 skip_cmo; }; struct bigo_ioc_frmsize { __u32 height; __u32 width; }; struct bigo_ioc_misc { __u32 cmd; __u32 ret; __u32 data0; __u32 data1; __u32 data2; __u32 data3; }; struct bigo_cache_info { __u32 size; __u32 pid; }; struct bigo_buf_sync { int fd; __u32 offset; __u32 size; __u64 flags; }; #define BIGO_IOC_MAGIC 'B' #define _BIGO_IO(nr) _IO(BIGO_IOC_MAGIC, nr) #define _BIGO_IOR(nr,size) _IOR(BIGO_IOC_MAGIC, nr, size) #define _BIGO_IOW(nr,size) _IOW(BIGO_IOC_MAGIC, nr, size) #define _BIGO_IOWR(nr,size) _IOWR(BIGO_IOC_MAGIC, nr, size) enum bigo_cmd_id { BIGO_CMD_PROCESS, BIGO_CMD_ABORT, BIGO_CMD_MAP, BIGO_CMD_UNMAP, BIGO_CMD_CONFIG_FRMRATE, BIGO_CMD_CONFIG_FRMSIZE, BIGO_CMD_GET_CACHE_INFO, BIGO_CMD_CONFIG_SECURE, BIGO_CMD_CONFIG_PRIORITY, BIGO_CMD_DMA_SYNC, BIGO_CMD_MISC, BIGO_CMD_MAXNR, }; #define BIGO_IOCX_PROCESS _BIGO_IOWR(BIGO_CMD_PROCESS, struct bigo_ioc_regs) #define BIGO_IOCX_MAP _BIGO_IOWR(BIGO_CMD_MAP, struct bigo_ioc_mapping) #define BIGO_IOCX_UNMAP _BIGO_IOW(BIGO_CMD_UNMAP, struct bigo_ioc_mapping) #define BIGO_IOCX_CONFIG_FRMRATE _BIGO_IOW(BIGO_CMD_CONFIG_FRMRATE, __u32) #define BIGO_IOCX_CONFIG_FRMSIZE _BIGO_IOW(BIGO_CMD_CONFIG_FRMSIZE, struct bigo_ioc_frmsize) #define BIGO_IOCX_GET_CACHE_INFO _BIGO_IOR(BIGO_CMD_GET_CACHE_INFO, struct bigo_cache_info) #define BIGO_IOCX_ABORT _BIGO_IO(BIGO_CMD_ABORT) #define BIGO_IOCX_CONFIG_SECURE _BIGO_IOW(BIGO_CMD_CONFIG_SECURE, __u32) #define BIGO_IOCX_CONFIG_PRIORITY _BIGO_IOW(BIGO_CMD_CONFIG_PRIORITY, __s32) #define BIGO_IOCX_DMA_SYNC _BIGO_IOW(BIGO_CMD_DMA_SYNC, struct bigo_buf_sync) #define BIGO_IOCX_MISC _BIGO_IOW(BIGO_CMD_MISC, struct bigo_ioc_misc) #endif