diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/cde_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/cde_gk20a.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.h b/drivers/gpu/nvgpu/gk20a/cde_gk20a.h index e4d4659d..4120dc94 100644 --- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.h | |||
@@ -242,19 +242,26 @@ struct gk20a_cde_ctx { | |||
242 | struct kobj_attribute attr; | 242 | struct kobj_attribute attr; |
243 | 243 | ||
244 | bool init_cmd_executed; | 244 | bool init_cmd_executed; |
245 | |||
246 | struct list_head list; | ||
247 | bool is_temporary; | ||
248 | bool in_use; | ||
249 | struct delayed_work ctx_deleter_work; | ||
245 | }; | 250 | }; |
246 | 251 | ||
247 | struct gk20a_cde_app { | 252 | struct gk20a_cde_app { |
248 | bool initialised; | 253 | bool initialised; |
249 | struct mutex mutex; | 254 | struct mutex mutex; |
250 | struct vm_gk20a *vm; | ||
251 | 255 | ||
252 | struct gk20a_cde_ctx cde_ctx[NUM_CDE_CONTEXTS]; | 256 | struct list_head cde_ctx_lru; |
257 | int lru_len; | ||
258 | int lru_max_len; | ||
259 | int lru_used; | ||
253 | 260 | ||
254 | u32 shader_parameter; | 261 | u32 shader_parameter; |
255 | }; | 262 | }; |
256 | 263 | ||
257 | int gk20a_cde_destroy(struct gk20a *g); | 264 | void gk20a_cde_destroy(struct gk20a *g); |
258 | int gk20a_init_cde_support(struct gk20a *g); | 265 | int gk20a_init_cde_support(struct gk20a *g); |
259 | int gk20a_cde_reload(struct gk20a *g); | 266 | int gk20a_cde_reload(struct gk20a *g); |
260 | int gk20a_cde_convert(struct gk20a *g, struct dma_buf *dst, | 267 | int gk20a_cde_convert(struct gk20a *g, struct dma_buf *dst, |