diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h index a9703385..06269fa5 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | |||
@@ -331,8 +331,8 @@ void gk20a_get_ch_runlist_entry(struct channel_gk20a *ch, u32 *runlist); | |||
331 | void gk20a_fifo_set_runlist_state(struct gk20a *g, u32 runlists_mask, | 331 | void gk20a_fifo_set_runlist_state(struct gk20a *g, u32 runlists_mask, |
332 | u32 runlist_state, int runlist_mutex_state); | 332 | u32 runlist_state, int runlist_mutex_state); |
333 | 333 | ||
334 | u32 gk20a_userd_gp_get(struct gk20a *g, struct channel_gk20a *c); | 334 | u32 gk20a_fifo_userd_gp_get(struct gk20a *g, struct channel_gk20a *c); |
335 | void gk20a_userd_gp_put(struct gk20a *g, struct channel_gk20a *c); | 335 | void gk20a_fifo_userd_gp_put(struct gk20a *g, struct channel_gk20a *c); |
336 | 336 | ||
337 | bool gk20a_is_fault_engine_subid_gpc(struct gk20a *g, u32 engine_subid); | 337 | bool gk20a_is_fault_engine_subid_gpc(struct gk20a *g, u32 engine_subid); |
338 | #ifdef CONFIG_DEBUG_FS | 338 | #ifdef CONFIG_DEBUG_FS |
@@ -351,8 +351,11 @@ void gk20a_dump_eng_status(struct gk20a *g, | |||
351 | struct gk20a_debug_output *o); | 351 | struct gk20a_debug_output *o); |
352 | const char *gk20a_decode_ccsr_chan_status(u32 index); | 352 | const char *gk20a_decode_ccsr_chan_status(u32 index); |
353 | const char *gk20a_decode_pbdma_chan_eng_ctx_status(u32 index); | 353 | const char *gk20a_decode_pbdma_chan_eng_ctx_status(u32 index); |
354 | void gk20a_fifo_enable_channel(struct channel_gk20a *ch); | ||
355 | void gk20a_fifo_disable_channel(struct channel_gk20a *ch); | ||
354 | 356 | ||
355 | struct channel_gk20a *gk20a_refch_from_inst_ptr(struct gk20a *g, u64 inst_ptr); | 357 | struct channel_gk20a *gk20a_refch_from_inst_ptr(struct gk20a *g, u64 inst_ptr); |
358 | void gk20a_fifo_channel_unbind(struct channel_gk20a *ch_gk20a); | ||
356 | 359 | ||
357 | u32 gk20a_fifo_intr_0_error_mask(struct gk20a *g); | 360 | u32 gk20a_fifo_intr_0_error_mask(struct gk20a *g); |
358 | 361 | ||
@@ -361,5 +364,16 @@ int gk20a_fifo_is_preempt_pending(struct gk20a *g, u32 id, unsigned int id_type, | |||
361 | int __locked_fifo_preempt(struct gk20a *g, u32 id, bool is_tsg); | 364 | int __locked_fifo_preempt(struct gk20a *g, u32 id, bool is_tsg); |
362 | void __locked_fifo_preempt_timeout_rc(struct gk20a *g, u32 id, | 365 | void __locked_fifo_preempt_timeout_rc(struct gk20a *g, u32 id, |
363 | unsigned int id_type); | 366 | unsigned int id_type); |
367 | int gk20a_fifo_setup_ramfc(struct channel_gk20a *c, | ||
368 | u64 gpfifo_base, u32 gpfifo_entries, | ||
369 | unsigned long timeout, u32 flags); | ||
370 | int gk20a_fifo_set_priority(struct channel_gk20a *ch, u32 priority); | ||
371 | int gk20a_fifo_set_timeslice(struct channel_gk20a *ch, unsigned int timeslice); | ||
372 | void gk20a_fifo_setup_ramfc_for_privileged_channel(struct channel_gk20a *c); | ||
373 | int gk20a_fifo_alloc_inst(struct gk20a *g, struct channel_gk20a *ch); | ||
374 | void gk20a_fifo_free_inst(struct gk20a *g, struct channel_gk20a *ch); | ||
375 | int gk20a_fifo_setup_userd(struct channel_gk20a *c); | ||
376 | u32 gk20a_fifo_pbdma_acquire_val(u64 timeout); | ||
377 | |||
364 | 378 | ||
365 | #endif /*__GR_GK20A_H__*/ | 379 | #endif /*__GR_GK20A_H__*/ |