From 660c9a95104b37c947e0c2f6aeda4c92698b40f4 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Thu, 23 Mar 2017 12:49:58 -0700 Subject: gpu: nvgpu: Move ctrl IOCTL creation to Linux module Move all code related to ctrl devnode to under Linux module. JIRA NVGPU-16 Change-Id: I834b46ec4172076d7bde459168f1e6bc8c5d6c0c Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1330802 Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/common/linux/ioctl_ctrl.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 drivers/gpu/nvgpu/common/linux/ioctl_ctrl.h (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.h') diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.h b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.h new file mode 100644 index 00000000..8b4a5e59 --- /dev/null +++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +#ifndef __NVGPU_IOCTL_CTRL_H__ +#define __NVGPU_IOCTL_CTRL_H__ + +int gk20a_ctrl_dev_open(struct inode *inode, struct file *filp); +int gk20a_ctrl_dev_release(struct inode *inode, struct file *filp); +long gk20a_ctrl_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); + +#endif -- cgit v1.2.2