diff options
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/nvhost_nvdla_ioctl.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/uapi/linux/nvhost_nvdla_ioctl.h b/include/uapi/linux/nvhost_nvdla_ioctl.h index 447be9cc0..8ef536de5 100644 --- a/include/uapi/linux/nvhost_nvdla_ioctl.h +++ b/include/uapi/linux/nvhost_nvdla_ioctl.h | |||
| @@ -29,6 +29,17 @@ | |||
| 29 | #endif | 29 | #endif |
| 30 | 30 | ||
| 31 | /** | 31 | /** |
| 32 | * Limits exposed to userspace | ||
| 33 | */ | ||
| 34 | #define MAX_NVDLA_PREFENCES_PER_TASK 32 | ||
| 35 | #define MAX_NVDLA_POSTFENCES_PER_TASK 32 | ||
| 36 | #define MAX_NVDLA_EMU_PREFENCES_PER_TASK 16 | ||
| 37 | #define MAX_NVDLA_EMU_POSTFENCES_PER_TASK 16 | ||
| 38 | #define MAX_NVDLA_IN_STATUS_PER_TASK MAX_NVDLA_PREFENCES_PER_TASK | ||
| 39 | #define MAX_NVDLA_OUT_STATUS_PER_TASK MAX_NVDLA_POSTFENCES_PER_TASK | ||
| 40 | #define MAX_NVDLA_OUT_TIMESTAMPS_PER_TASK 32 | ||
| 41 | |||
| 42 | /** | ||
| 32 | * struct nvdla_queue_stat_args strcture | 43 | * struct nvdla_queue_stat_args strcture |
| 33 | * | 44 | * |
| 34 | * @status queue status flags | 45 | * @status queue status flags |
| @@ -94,7 +105,7 @@ struct nvdla_pin_unpin_args { | |||
| 94 | struct nvdla_submit_args { | 105 | struct nvdla_submit_args { |
| 95 | __u64 tasks; | 106 | __u64 tasks; |
| 96 | __u16 num_tasks; | 107 | __u16 num_tasks; |
| 97 | #define MAX_TASKS_PER_SUBMIT 16 | 108 | #define MAX_NVDLA_TASKS_PER_SUBMIT 16 |
| 98 | #define NVDLA_SUBMIT_FLAGS_ATOMIC (1 << 0) | 109 | #define NVDLA_SUBMIT_FLAGS_ATOMIC (1 << 0) |
| 99 | #define NVDLA_SUBMIT_FLAGS_BYPASS_EXEC (1 << 1) | 110 | #define NVDLA_SUBMIT_FLAGS_BYPASS_EXEC (1 << 1) |
| 100 | __u16 flags; | 111 | __u16 flags; |
