diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-03-23 17:19:01 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-04 13:24:49 -0400 |
commit | 06fe28567d45c8fb1c2a04f0f007fa5d750b849d (patch) | |
tree | 8da57e0a1ce577536e50a9e69ccc63641e3996db /drivers/gpu/nvgpu/common/linux/ioctl_tsg.h | |
parent | a07e10f494c158ae31d6187e9be3db409528a507 (diff) |
gpu: nvgpu: Move TSG IOCTL code to Linux module
Move TSG IOCTL specific code to Linux module. This clears most
Linux dependencies from tsg_gk20a.c.
Move also remaining file_operations declarations from channel_gk20a.h
to ioctl_channel.h.
JIRA NVGPU-32
Change-Id: Idcc2a525ebe12b30db46c3893a2735509c41ff39
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1330805
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_tsg.h')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_tsg.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.h b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.h new file mode 100644 index 00000000..64d7a3da --- /dev/null +++ b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* | ||
2 | * Copyright (c) 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 | #ifndef NVGPU_IOCTL_TSG_H | ||
14 | #define NVGPU_IOCTL_TSG_H | ||
15 | |||
16 | struct inode; | ||
17 | struct file; | ||
18 | struct gk20a; | ||
19 | |||
20 | int nvgpu_ioctl_tsg_dev_release(struct inode *inode, struct file *filp); | ||
21 | int nvgpu_ioctl_tsg_dev_open(struct inode *inode, struct file *filp); | ||
22 | int nvgpu_ioctl_tsg_open(struct gk20a *g, struct file *filp); | ||
23 | long nvgpu_ioctl_tsg_dev_ioctl(struct file *filp, | ||
24 | unsigned int cmd, unsigned long arg); | ||
25 | |||
26 | #endif | ||