Colin Cross | 07a5832 | 2022-02-08 19:45:27 -0800 | [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 | #define FASTRPC_IOCTL_MMAP _IOWR('R', 6, struct fastrpc_req_mmap) |
| 28 | #define FASTRPC_IOCTL_MUNMAP _IOWR('R', 7, struct fastrpc_req_munmap) |
| 29 | #define FASTRPC_IOCTL_INIT_ATTACH_SNS _IO('R', 8) |
| 30 | struct fastrpc_invoke_args { |
| 31 | __u64 ptr; |
| 32 | __u64 length; |
| 33 | __s32 fd; |
| 34 | __u32 reserved; |
| 35 | }; |
| 36 | struct fastrpc_invoke { |
| 37 | __u32 handle; |
| 38 | __u32 sc; |
| 39 | __u64 args; |
| 40 | }; |
| 41 | struct fastrpc_init_create { |
| 42 | __u32 filelen; |
| 43 | __s32 filefd; |
| 44 | __u32 attrs; |
| 45 | __u32 siglen; |
| 46 | __u64 file; |
| 47 | }; |
| 48 | struct fastrpc_alloc_dma_buf { |
| 49 | __s32 fd; |
| 50 | __u32 flags; |
| 51 | __u64 size; |
| 52 | }; |
| 53 | struct fastrpc_req_mmap { |
| 54 | __s32 fd; |
| 55 | __u32 flags; |
| 56 | __u64 vaddrin; |
| 57 | __u64 size; |
| 58 | __u64 vaddrout; |
| 59 | }; |
| 60 | struct fastrpc_req_munmap { |
| 61 | __u64 vaddrout; |
| 62 | __u64 size; |
| 63 | }; |
| 64 | #endif |