From e6eb4b59f6e8753c64133a4b86c6278ceef98e93 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Wed, 11 Jun 2014 16:45:54 +0530 Subject: gpu: nvgpu: add kernel APIs for TSG support Add support to create/destroy TSGs using node "/dev/nvhost-tsg-gpu" Provide below IOCTLs to bind/unbind channels to/from TSGs : NVGPU_TSG_IOCTL_BIND_CHANNEL NVGPU_TSG_IOCTL_UNBIND_CHANNEL Bug 1470692 Change-Id: Iaf9f16a522379eb943906624548f8d28fc6d4486 Signed-off-by: Terje Bergstrom Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/416610 --- drivers/gpu/nvgpu/gk20a/gk20a.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 9769ac99..60b9b80e 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -40,6 +40,7 @@ struct acr_gm20b; #include "as_gk20a.h" #include "clk_gk20a.h" #include "fifo_gk20a.h" +#include "tsg_gk20a.h" #include "gr_gk20a.h" #include "sim_gk20a.h" #include "pmu_gk20a.h" @@ -308,6 +309,11 @@ struct gk20a { struct device *node; } prof; + struct { + struct cdev cdev; + struct device *node; + } tsg; + struct mutex client_lock; int client_refcount; /* open channels and ctrl nodes */ -- cgit v1.2.2