summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_tsg.c2
-rw-r--r--drivers/gpu/nvgpu/gk20a/tsg_gk20a.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c
index ce7fa6af..f4972f11 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_tsg.c
@@ -31,7 +31,7 @@
31#include "ioctl_channel.h" 31#include "ioctl_channel.h"
32#include "os_linux.h" 32#include "os_linux.h"
33#ifdef CONFIG_TEGRA_19x_GPU 33#ifdef CONFIG_TEGRA_19x_GPU
34#include "tsg_t19x.h" 34#include "common/linux/ioctl_tsg_t19x.h"
35#endif 35#endif
36 36
37struct tsg_private { 37struct tsg_private {
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h
index 51bc1086..5e2b9b82 100644
--- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h
@@ -26,6 +26,9 @@
26#include <nvgpu/kref.h> 26#include <nvgpu/kref.h>
27#include <nvgpu/rwsem.h> 27#include <nvgpu/rwsem.h>
28 28
29#ifdef CONFIG_TEGRA_19x_GPU
30#include "tsg_t19x.h"
31#endif
29#define NVGPU_INVALID_TSG_ID (-1) 32#define NVGPU_INVALID_TSG_ID (-1)
30 33
31struct channel_gk20a; 34struct channel_gk20a;
@@ -65,6 +68,9 @@ struct tsg_gk20a {
65 u32 runlist_id; 68 u32 runlist_id;
66 pid_t tgid; 69 pid_t tgid;
67 struct nvgpu_mem *eng_method_buffers; 70 struct nvgpu_mem *eng_method_buffers;
71#ifdef CONFIG_TEGRA_19x_GPU
72 struct tsg_t19x t19x;
73#endif
68}; 74};
69 75
70int gk20a_enable_tsg(struct tsg_gk20a *tsg); 76int gk20a_enable_tsg(struct tsg_gk20a *tsg);