diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-23 15:49:58 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-02 11:28:22 -0400 |
commit | 660c9a95104b37c947e0c2f6aeda4c92698b40f4 (patch) | |
tree | e00489bfb3b4c586015a555e3517e6fa8fc6b3a6 /drivers/gpu/nvgpu/common/linux/ioctl_ctrl.h | |
parent | 9adc49f94bd9df94e7d77b08eb2b6e98d7eb5758 (diff) |
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 <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1330802
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_ctrl.h')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_ctrl.h | 23 |
1 files changed, 23 insertions, 0 deletions
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 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved. | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | ||
5 | * under the terms and conditions of the GNU General Public License, | ||
6 | * version 2, as published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
11 | * more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #ifndef __NVGPU_IOCTL_CTRL_H__ | ||
17 | #define __NVGPU_IOCTL_CTRL_H__ | ||
18 | |||
19 | int gk20a_ctrl_dev_open(struct inode *inode, struct file *filp); | ||
20 | int gk20a_ctrl_dev_release(struct inode *inode, struct file *filp); | ||
21 | long gk20a_ctrl_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); | ||
22 | |||
23 | #endif | ||