| Christopher Ferris | 24f97eb | 2019-05-20 12:58:13 -0700 | [diff] [blame] | 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 __QCOM_FASTRPC_H__ | 
|  | 20 | #define __QCOM_FASTRPC_H__ | 
|  | 21 | #include <linux/types.h> | 
|  | 22 | #define FASTRPC_IOCTL_ALLOC_DMA_BUFF _IOWR('R', 1, struct fastrpc_alloc_dma_buf) | 
|  | 23 | #define FASTRPC_IOCTL_FREE_DMA_BUFF _IOWR('R', 2, __u32) | 
|  | 24 | #define FASTRPC_IOCTL_INVOKE _IOWR('R', 3, struct fastrpc_invoke) | 
|  | 25 | #define FASTRPC_IOCTL_INIT_ATTACH _IO('R', 4) | 
|  | 26 | #define FASTRPC_IOCTL_INIT_CREATE _IOWR('R', 5, struct fastrpc_init_create) | 
|  | 27 | struct fastrpc_invoke_args { | 
|  | 28 | __u64 ptr; | 
|  | 29 | __u64 length; | 
|  | 30 | __s32 fd; | 
|  | 31 | __u32 reserved; | 
|  | 32 | }; | 
|  | 33 | struct fastrpc_invoke { | 
|  | 34 | __u32 handle; | 
|  | 35 | __u32 sc; | 
|  | 36 | __u64 args; | 
|  | 37 | }; | 
|  | 38 | struct fastrpc_init_create { | 
|  | 39 | __u32 filelen; | 
|  | 40 | __s32 filefd; | 
|  | 41 | __u32 attrs; | 
|  | 42 | __u32 siglen; | 
|  | 43 | __u64 file; | 
|  | 44 | }; | 
|  | 45 | struct fastrpc_alloc_dma_buf { | 
|  | 46 | __s32 fd; | 
|  | 47 | __u32 flags; | 
|  | 48 | __u64 size; | 
|  | 49 | }; | 
|  | 50 | #endif |