mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
a07e10f494
commit
06fe28567d
@@ -23,10 +23,10 @@
|
||||
#include "gk20a/gk20a.h"
|
||||
#include "gk20a/dbg_gpu_gk20a.h"
|
||||
#include "gk20a/ctxsw_trace_gk20a.h"
|
||||
#include "gk20a/tsg_gk20a.h"
|
||||
#include "ioctl_channel.h"
|
||||
#include "ioctl_ctrl.h"
|
||||
#include "ioctl_as.h"
|
||||
#include "ioctl_tsg.h"
|
||||
|
||||
#define GK20A_NUM_CDEVS 7
|
||||
|
||||
@@ -89,12 +89,12 @@ static const struct file_operations gk20a_prof_ops = {
|
||||
|
||||
static const struct file_operations gk20a_tsg_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.release = gk20a_tsg_dev_release,
|
||||
.open = gk20a_tsg_dev_open,
|
||||
.release = nvgpu_ioctl_tsg_dev_release,
|
||||
.open = nvgpu_ioctl_tsg_dev_open,
|
||||
#ifdef CONFIG_COMPAT
|
||||
.compat_ioctl = gk20a_tsg_dev_ioctl,
|
||||
.compat_ioctl = nvgpu_ioctl_tsg_dev_ioctl,
|
||||
#endif
|
||||
.unlocked_ioctl = gk20a_tsg_dev_ioctl,
|
||||
.unlocked_ioctl = nvgpu_ioctl_tsg_dev_ioctl,
|
||||
};
|
||||
|
||||
static const struct file_operations gk20a_ctxsw_ops = {
|
||||
|
||||
Reference in New Issue
Block a user