summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
index 75c801c6..37808928 100644
--- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
@@ -23,6 +23,7 @@
23 23
24#include "channel_gk20a.h" 24#include "channel_gk20a.h"
25#include "tsg_gk20a.h" 25#include "tsg_gk20a.h"
26#include "debug_gk20a.h"
26 27
27#define MAX_RUNLIST_BUFFERS 2 28#define MAX_RUNLIST_BUFFERS 2
28 29
@@ -202,6 +203,12 @@ static inline const char *gk20a_fifo_interleave_level_name(u32 interleave_level)
202 } 203 }
203} 204}
204 205
206struct ch_state {
207 int pid;
208 int refs;
209 u32 inst_block[0];
210};
211
205int gk20a_init_fifo_support(struct gk20a *g); 212int gk20a_init_fifo_support(struct gk20a *g);
206 213
207int gk20a_init_fifo_setup_hw(struct gk20a *g); 214int gk20a_init_fifo_setup_hw(struct gk20a *g);
@@ -313,4 +320,15 @@ void gk20a_fifo_profile_release(struct gk20a *g,
313 struct fifo_profile_gk20a *profile); 320 struct fifo_profile_gk20a *profile);
314#endif 321#endif
315 322
323void gk20a_dump_channel_status_ramfc(struct gk20a *g,
324 struct gk20a_debug_output *o,
325 u32 hw_chid,
326 struct ch_state *ch_state);
327void gk20a_dump_pbdma_status(struct gk20a *g,
328 struct gk20a_debug_output *o);
329void gk20a_dump_eng_status(struct gk20a *g,
330 struct gk20a_debug_output *o);
331const char *gk20a_decode_ccsr_chan_status(u32 index);
332const char *gk20a_decode_pbdma_chan_eng_ctx_status(u32 index);
333
316#endif /*__GR_GK20A_H__*/ 334#endif /*__GR_GK20A_H__*/