]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/blob - drivers/video/tegra/nvmap/nvmap_ioctl.h
a0379b064c2f92a71a54fa6e29dddc22bc8ac54d
[sojka/nv-tegra/linux-3.10.git] / drivers / video / tegra / nvmap / nvmap_ioctl.h
1 /*
2  * drivers/video/tegra/nvmap/nvmap_ioctl.h
3  *
4  * ioctl declarations for nvmap
5  *
6  * Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved.
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
16  * more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with this program; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21  */
22
23 #ifndef __VIDEO_TEGRA_NVMAP_IOCTL_H
24 #define __VIDEO_TEGRA_NVMAP_IOCTL_H
25
26 #include <linux/nvmap.h>
27
28 int nvmap_ioctl_pinop(struct file *filp, bool is_pin, void __user *arg,
29         bool is32);
30
31 int nvmap_ioctl_get_param(struct file *filp, void __user *arg, bool is32);
32
33 int nvmap_ioctl_getid(struct file *filp, void __user *arg);
34
35 int nvmap_ioctl_getfd(struct file *filp, void __user *arg);
36
37 int nvmap_ioctl_alloc(struct file *filp, void __user *arg);
38
39 int nvmap_ioctl_alloc_kind(struct file *filp, void __user *arg);
40
41 int nvmap_ioctl_free(struct file *filp, unsigned long arg);
42
43 int nvmap_ioctl_create(struct file *filp, unsigned int cmd, void __user *arg);
44
45 int nvmap_map_into_caller_ptr(struct file *filp, void __user *arg, bool is32);
46
47 int nvmap_ioctl_cache_maint(struct file *filp, void __user *arg, bool is32);
48
49 int nvmap_ioctl_rw_handle(struct file *filp, int is_read, void __user *arg,
50         bool is32);
51
52 int nvmap_ioctl_cache_maint_list(struct file *filp, void __user *arg,
53         bool is_rsrv_op);
54
55 int nvmap_ioctl_share_dmabuf(struct file *filp, void __user *arg);
56
57 #endif  /*  __VIDEO_TEGRA_NVMAP_IOCTL_H */