diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2014-10-15 03:27:52 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:50 -0400 |
commit | 3446d89539253f88353672792c0e198b6220487e (patch) | |
tree | 73f558758e1d9bb0ce0e3b2e9b2a756f5c8414c4 /include/uapi | |
parent | 3f3844a11ccac7957fdb7139a1c9c2a767d315a5 (diff) |
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 <tbergstrom@nvidia.com>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 9 |
1 files changed, 8 insertions, 1 deletions
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 { | |||
181 | __u64 reserved; /* must be zero */ | 181 | __u64 reserved; /* must be zero */ |
182 | }; | 182 | }; |
183 | 183 | ||
184 | struct nvgpu_gpu_open_tsg_args { | ||
185 | __u32 tsg_fd; /* out, tsg fd */ | ||
186 | __u32 reserved; /* must be zero */ | ||
187 | }; | ||
188 | |||
184 | #define NVGPU_GPU_IOCTL_ZCULL_GET_CTX_SIZE \ | 189 | #define NVGPU_GPU_IOCTL_ZCULL_GET_CTX_SIZE \ |
185 | _IOR(NVGPU_GPU_IOCTL_MAGIC, 1, struct nvgpu_gpu_zcull_get_ctx_size_args) | 190 | _IOR(NVGPU_GPU_IOCTL_MAGIC, 1, struct nvgpu_gpu_zcull_get_ctx_size_args) |
186 | #define NVGPU_GPU_IOCTL_ZCULL_GET_INFO \ | 191 | #define NVGPU_GPU_IOCTL_ZCULL_GET_INFO \ |
@@ -197,9 +202,11 @@ struct nvgpu_alloc_as_args { | |||
197 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 7, struct nvgpu_gpu_mark_compressible_write_args) | 202 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 7, struct nvgpu_gpu_mark_compressible_write_args) |
198 | #define NVGPU_GPU_IOCTL_ALLOC_AS \ | 203 | #define NVGPU_GPU_IOCTL_ALLOC_AS \ |
199 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 8, struct nvgpu_alloc_as_args) | 204 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 8, struct nvgpu_alloc_as_args) |
205 | #define NVGPU_GPU_IOCTL_OPEN_TSG \ | ||
206 | _IOWR(NVGPU_GPU_IOCTL_MAGIC, 9, struct nvgpu_gpu_open_tsg_args) | ||
200 | 207 | ||
201 | #define NVGPU_GPU_IOCTL_LAST \ | 208 | #define NVGPU_GPU_IOCTL_LAST \ |
202 | _IOC_NR(NVGPU_GPU_IOCTL_ALLOC_AS) | 209 | _IOC_NR(NVGPU_GPU_IOCTL_OPEN_TSG) |
203 | #define NVGPU_GPU_IOCTL_MAX_ARG_SIZE \ | 210 | #define NVGPU_GPU_IOCTL_MAX_ARG_SIZE \ |
204 | sizeof(struct nvgpu_gpu_prepare_compressible_read_args) | 211 | sizeof(struct nvgpu_gpu_prepare_compressible_read_args) |
205 | 212 | ||