summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/nvgpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux/nvgpu.h')
-rw-r--r--include/uapi/linux/nvgpu.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h
index 8b29a3ae..c34a7e83 100644
--- a/include/uapi/linux/nvgpu.h
+++ b/include/uapi/linux/nvgpu.h
@@ -970,11 +970,18 @@ struct nvgpu_gpu_set_event_filter_args {
970#define NVGPU_IOCTL_TSG_GET_TIMESLICE \ 970#define NVGPU_IOCTL_TSG_GET_TIMESLICE \
971 _IOR(NVGPU_TSG_IOCTL_MAGIC, 10, struct nvgpu_timeslice_args) 971 _IOR(NVGPU_TSG_IOCTL_MAGIC, 10, struct nvgpu_timeslice_args)
972 972
973
974#ifdef CONFIG_TEGRA_19x_GPU
975#define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \
976 NVGPU_TSG_IOCTL_MAX_ARG
977#define NVGPU_TSG_IOCTL_LAST \
978 _IOC_NR(NVGPU_TSG_IOCTL_MAX)
979#else
973#define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \ 980#define NVGPU_TSG_IOCTL_MAX_ARG_SIZE \
974 sizeof(struct nvgpu_event_id_ctrl_args) 981 sizeof(struct nvgpu_event_id_ctrl_args)
975#define NVGPU_TSG_IOCTL_LAST \ 982#define NVGPU_TSG_IOCTL_LAST \
976 _IOC_NR(NVGPU_IOCTL_TSG_GET_TIMESLICE) 983 _IOC_NR(NVGPU_IOCTL_TSG_GET_TIMESLICE)
977 984#endif
978 985
979/* 986/*
980 * /dev/nvhost-dbg-gpu device 987 * /dev/nvhost-dbg-gpu device