From 3446d89539253f88353672792c0e198b6220487e Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 15 Oct 2014 10:27:52 +0300 Subject: gpu: nvgpu: Add ioctl to create new TSG Add ioctl to nvhost-ctrl to create a new TSG. Bug 200042993 Change-Id: Icdd0edb1d9e374740ace6da9eb3a10c57c62617a Signed-off-by: Terje Bergstrom --- include/uapi/linux/nvgpu.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index c9e50b36..c393ab0c 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h @@ -181,6 +181,11 @@ struct nvgpu_alloc_as_args { __u64 reserved; /* must be zero */ }; +struct nvgpu_gpu_open_tsg_args { + __u32 tsg_fd; /* out, tsg fd */ + __u32 reserved; /* must be zero */ +}; + #define NVGPU_GPU_IOCTL_ZCULL_GET_CTX_SIZE \ _IOR(NVGPU_GPU_IOCTL_MAGIC, 1, struct nvgpu_gpu_zcull_get_ctx_size_args) #define NVGPU_GPU_IOCTL_ZCULL_GET_INFO \ @@ -197,9 +202,11 @@ struct nvgpu_alloc_as_args { _IOWR(NVGPU_GPU_IOCTL_MAGIC, 7, struct nvgpu_gpu_mark_compressible_write_args) #define NVGPU_GPU_IOCTL_ALLOC_AS \ _IOWR(NVGPU_GPU_IOCTL_MAGIC, 8, struct nvgpu_alloc_as_args) +#define NVGPU_GPU_IOCTL_OPEN_TSG \ + _IOWR(NVGPU_GPU_IOCTL_MAGIC, 9, struct nvgpu_gpu_open_tsg_args) #define NVGPU_GPU_IOCTL_LAST \ - _IOC_NR(NVGPU_GPU_IOCTL_ALLOC_AS) + _IOC_NR(NVGPU_GPU_IOCTL_OPEN_TSG) #define NVGPU_GPU_IOCTL_MAX_ARG_SIZE \ sizeof(struct nvgpu_gpu_prepare_compressible_read_args) -- cgit v1.2.2