diff options
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 | ||