2 * drivers/video/tegra/nvmap/nvmap_ioctl.h
4 * ioctl declarations for nvmap
6 * Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved.
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.
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
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.
23 #ifndef __VIDEO_TEGRA_NVMAP_IOCTL_H
24 #define __VIDEO_TEGRA_NVMAP_IOCTL_H
26 #include <linux/nvmap.h>
28 int nvmap_ioctl_pinop(struct file *filp, bool is_pin, void __user *arg,
31 int nvmap_ioctl_get_param(struct file *filp, void __user *arg, bool is32);
33 int nvmap_ioctl_getid(struct file *filp, void __user *arg);
35 int nvmap_ioctl_getfd(struct file *filp, void __user *arg);
37 int nvmap_ioctl_alloc(struct file *filp, void __user *arg);
39 int nvmap_ioctl_alloc_kind(struct file *filp, void __user *arg);
41 int nvmap_ioctl_free(struct file *filp, unsigned long arg);
43 int nvmap_ioctl_create(struct file *filp, unsigned int cmd, void __user *arg);
45 int nvmap_map_into_caller_ptr(struct file *filp, void __user *arg, bool is32);
47 int nvmap_ioctl_cache_maint(struct file *filp, void __user *arg, bool is32);
49 int nvmap_ioctl_rw_handle(struct file *filp, int is_read, void __user *arg,
52 int nvmap_ioctl_cache_maint_list(struct file *filp, void __user *arg,
55 int nvmap_ioctl_share_dmabuf(struct file *filp, void __user *arg);
57 #endif /* __VIDEO_TEGRA_NVMAP_IOCTL_H */