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 struct fastrpc_invoke_args {
30   __u64 ptr;
31   __u64 length;
32   __s32 fd;
33   __u32 reserved;
34 };
35 struct fastrpc_invoke {
36   __u32 handle;
37   __u32 sc;
38   __u64 args;
39 };
40 struct fastrpc_init_create {
41   __u32 filelen;
42   __s32 filefd;
43   __u32 attrs;
44   __u32 siglen;
45   __u64 file;
46 };
47 struct fastrpc_alloc_dma_buf {
48   __s32 fd;
49   __u32 flags;
50   __u64 size;
51 };
52 struct fastrpc_req_mmap {
53   __s32 fd;
54   __u32 flags;
55   __u64 vaddrin;
56   __u64 size;
57   __u64 vaddrout;
58 };
59 struct fastrpc_req_munmap {
60   __u64 vaddrout;
61   __u64 size;
62 };
63 #endif
64