diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/tsg_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h index 5e2b9b82..08fe0365 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | |||
@@ -87,5 +87,24 @@ u32 gk20a_tsg_get_timeslice(struct tsg_gk20a *tsg); | |||
87 | int gk20a_tsg_set_priority(struct gk20a *g, struct tsg_gk20a *tsg, | 87 | int gk20a_tsg_set_priority(struct gk20a *g, struct tsg_gk20a *tsg, |
88 | u32 priority); | 88 | u32 priority); |
89 | 89 | ||
90 | struct gk20a_event_id_data { | ||
91 | struct gk20a *g; | ||
92 | |||
93 | int id; /* ch or tsg */ | ||
94 | u32 event_id; | ||
95 | |||
96 | bool event_posted; | ||
97 | |||
98 | struct nvgpu_cond event_id_wq; | ||
99 | struct nvgpu_mutex lock; | ||
100 | struct nvgpu_list_node event_id_node; | ||
101 | }; | ||
102 | |||
103 | static inline struct gk20a_event_id_data * | ||
104 | gk20a_event_id_data_from_event_id_node(struct nvgpu_list_node *node) | ||
105 | { | ||
106 | return (struct gk20a_event_id_data *) | ||
107 | ((uintptr_t)node - offsetof(struct gk20a_event_id_data, event_id_node)); | ||
108 | }; | ||
90 | 109 | ||
91 | #endif /* __TSG_GK20A_H_ */ | 110 | #endif /* __TSG_GK20A_H_ */ |