summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/nvhost_events.h34
1 files changed, 28 insertions, 6 deletions
diff --git a/include/uapi/linux/nvhost_events.h b/include/uapi/linux/nvhost_events.h
index 1935f6edd..4655537f1 100644
--- a/include/uapi/linux/nvhost_events.h
+++ b/include/uapi/linux/nvhost_events.h
@@ -25,8 +25,26 @@ enum {
25 25
26#define NVHOST_EVENT_PROVIDER_NAME "nvhost" 26#define NVHOST_EVENT_PROVIDER_NAME "nvhost"
27 27
28/* Marks that the task is submitted to hardware */
29struct nvhost_task_submit {
30 /* Engine class ID */
31 u32 class_id;
32
33 /* Syncpoint ID */
34 u32 syncpt_id;
35
36 /* Threshold for task completion */
37 u32 syncpt_thresh;
38
39 /* PID */
40 u32 pid;
41
42 /* TID */
43 u32 tid;
44} __packed;
45
28/* Marks that the task is moving to execution */ 46/* Marks that the task is moving to execution */
29struct nvhost_task_start { 47struct nvhost_task_begin {
30 /* Engine class ID */ 48 /* Engine class ID */
31 u32 class_id; 49 u32 class_id;
32 50
@@ -50,18 +68,22 @@ struct nvhost_task_end {
50} __packed; 68} __packed;
51 69
52enum { 70enum {
53 /* struct nvhost_task_start */ 71 /* struct nvhost_task_submit */
54 NVHOST_TASK_START = 0, 72 NVHOST_TASK_SUBMIT = 0,
73
74 /* struct nvhost_task_begin */
75 NVHOST_TASK_BEGIN = 1,
55 76
56 /* struct nvhost_task_end */ 77 /* struct nvhost_task_end */
57 NVHOST_TASK_END = 1, 78 NVHOST_TASK_END = 2,
58 79
59 NVHOST_NUM_EVENT_TYPES = 2 80 NVHOST_NUM_EVENT_TYPES = 3
60}; 81};
61 82
62union nvhost_event_union { 83union nvhost_event_union {
63 struct nvhost_task_start task_start; 84 struct nvhost_task_begin task_begin;
64 struct nvhost_task_end task_end; 85 struct nvhost_task_end task_end;
86 struct nvhost_task_submit task_submit;
65}; 87};
66 88
67enum { 89enum {