122851890Sopenharmony_ci/****************************************************************************
222851890Sopenharmony_ci ****************************************************************************
322851890Sopenharmony_ci ***
422851890Sopenharmony_ci ***   This header was automatically generated from a Linux kernel header
522851890Sopenharmony_ci ***   of the same name, to make information necessary for userspace to
622851890Sopenharmony_ci ***   call into the kernel available to libc.  It contains only constants,
722851890Sopenharmony_ci ***   structures, and macros generated from the original header, and thus,
822851890Sopenharmony_ci ***   contains no copyrightable information.
922851890Sopenharmony_ci ***
1022851890Sopenharmony_ci ***   To edit the content of this header, modify the corresponding
1122851890Sopenharmony_ci ***   source file (e.g. under external/kernel-headers/original/) then
1222851890Sopenharmony_ci ***   run bionic/libc/kernel/tools/update_all.py
1322851890Sopenharmony_ci ***
1422851890Sopenharmony_ci ***   Any manual change here will be lost the next time this script will
1522851890Sopenharmony_ci ***   be run. You've been warned!
1622851890Sopenharmony_ci ***
1722851890Sopenharmony_ci ****************************************************************************
1822851890Sopenharmony_ci ****************************************************************************/
1922851890Sopenharmony_ci#ifndef __QCOM_FASTRPC_H__
2022851890Sopenharmony_ci#define __QCOM_FASTRPC_H__
2122851890Sopenharmony_ci#include <linux/types.h>
2222851890Sopenharmony_ci#define FASTRPC_IOCTL_ALLOC_DMA_BUFF _IOWR('R', 1, struct fastrpc_alloc_dma_buf)
2322851890Sopenharmony_ci#define FASTRPC_IOCTL_FREE_DMA_BUFF _IOWR('R', 2, __u32)
2422851890Sopenharmony_ci#define FASTRPC_IOCTL_INVOKE _IOWR('R', 3, struct fastrpc_invoke)
2522851890Sopenharmony_ci#define FASTRPC_IOCTL_INIT_ATTACH _IO('R', 4)
2622851890Sopenharmony_ci#define FASTRPC_IOCTL_INIT_CREATE _IOWR('R', 5, struct fastrpc_init_create)
2722851890Sopenharmony_ci#define FASTRPC_IOCTL_MMAP _IOWR('R', 6, struct fastrpc_req_mmap)
2822851890Sopenharmony_ci#define FASTRPC_IOCTL_MUNMAP _IOWR('R', 7, struct fastrpc_req_munmap)
2922851890Sopenharmony_ci#define FASTRPC_IOCTL_INIT_ATTACH_SNS _IO('R', 8)
3022851890Sopenharmony_cistruct fastrpc_invoke_args {
3122851890Sopenharmony_ci  __u64 ptr;
3222851890Sopenharmony_ci  __u64 length;
3322851890Sopenharmony_ci  __s32 fd;
3422851890Sopenharmony_ci  __u32 reserved;
3522851890Sopenharmony_ci};
3622851890Sopenharmony_cistruct fastrpc_invoke {
3722851890Sopenharmony_ci  __u32 handle;
3822851890Sopenharmony_ci  __u32 sc;
3922851890Sopenharmony_ci  __u64 args;
4022851890Sopenharmony_ci};
4122851890Sopenharmony_cistruct fastrpc_init_create {
4222851890Sopenharmony_ci  __u32 filelen;
4322851890Sopenharmony_ci  __s32 filefd;
4422851890Sopenharmony_ci  __u32 attrs;
4522851890Sopenharmony_ci  __u32 siglen;
4622851890Sopenharmony_ci  __u64 file;
4722851890Sopenharmony_ci};
4822851890Sopenharmony_cistruct fastrpc_alloc_dma_buf {
4922851890Sopenharmony_ci  __s32 fd;
5022851890Sopenharmony_ci  __u32 flags;
5122851890Sopenharmony_ci  __u64 size;
5222851890Sopenharmony_ci};
5322851890Sopenharmony_cistruct fastrpc_req_mmap {
5422851890Sopenharmony_ci  __s32 fd;
5522851890Sopenharmony_ci  __u32 flags;
5622851890Sopenharmony_ci  __u64 vaddrin;
5722851890Sopenharmony_ci  __u64 size;
5822851890Sopenharmony_ci  __u64 vaddrout;
5922851890Sopenharmony_ci};
6022851890Sopenharmony_cistruct fastrpc_req_munmap {
6122851890Sopenharmony_ci  __u64 vaddrout;
6222851890Sopenharmony_ci  __u64 size;
6322851890Sopenharmony_ci};
6422851890Sopenharmony_ci#endif
65