summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/ltc_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/ltc_gv11b.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c
index 38986382..b1d85c5a 100644
--- a/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/ltc_gv11b.c
@@ -14,7 +14,6 @@
14 */ 14 */
15 15
16#include "gk20a/gk20a.h" 16#include "gk20a/gk20a.h"
17
18#include "gp10b/ltc_gp10b.h" 17#include "gp10b/ltc_gp10b.h"
19 18
20#include "ltc_gv11b.h" 19#include "ltc_gv11b.h"
@@ -28,7 +27,7 @@
28/* 27/*
29 * Sets the ZBC stencil for the passed index. 28 * Sets the ZBC stencil for the passed index.
30 */ 29 */
31static void gv11b_ltc_set_zbc_stencil_entry(struct gk20a *g, 30void gv11b_ltc_set_zbc_stencil_entry(struct gk20a *g,
32 struct zbc_entry *stencil_val, 31 struct zbc_entry *stencil_val,
33 u32 index) 32 u32 index)
34{ 33{
@@ -43,7 +42,7 @@ static void gv11b_ltc_set_zbc_stencil_entry(struct gk20a *g,
43 gk20a_readl(g, ltc_ltcs_ltss_dstg_zbc_index_r()); 42 gk20a_readl(g, ltc_ltcs_ltss_dstg_zbc_index_r());
44} 43}
45 44
46static void gv11b_ltc_init_fs_state(struct gk20a *g) 45void gv11b_ltc_init_fs_state(struct gk20a *g)
47{ 46{
48 u32 ltc_intr; 47 u32 ltc_intr;
49 u32 reg; 48 u32 reg;
@@ -79,7 +78,7 @@ static void gv11b_ltc_init_fs_state(struct gk20a *g)
79 ltc_intr); 78 ltc_intr);
80} 79}
81 80
82static void gv11b_ltc_isr(struct gk20a *g) 81void gv11b_ltc_isr(struct gk20a *g)
83{ 82{
84 u32 mc_intr, ltc_intr3; 83 u32 mc_intr, ltc_intr3;
85 unsigned int ltc, slice; 84 unsigned int ltc, slice;
@@ -184,7 +183,7 @@ static void gv11b_ltc_isr(struct gk20a *g)
184 gp10b_ltc_isr(g); 183 gp10b_ltc_isr(g);
185} 184}
186 185
187static u32 gv11b_ltc_cbc_fix_config(struct gk20a *g, int base) 186u32 gv11b_ltc_cbc_fix_config(struct gk20a *g, int base)
188{ 187{
189 u32 val = gk20a_readl(g, ltc_ltcs_ltss_cbc_num_active_ltcs_r()); 188 u32 val = gk20a_readl(g, ltc_ltcs_ltss_cbc_num_active_ltcs_r());
190 189
@@ -195,14 +194,3 @@ static u32 gv11b_ltc_cbc_fix_config(struct gk20a *g, int base)
195 } 194 }
196 return base; 195 return base;
197} 196}
198
199
200void gv11b_init_ltc(struct gpu_ops *gops)
201{
202 gp10b_init_ltc(gops);
203 gops->ltc.set_zbc_s_entry = gv11b_ltc_set_zbc_stencil_entry;
204 gops->ltc.init_fs_state = gv11b_ltc_init_fs_state;
205 gops->ltc.cbc_fix_config = gv11b_ltc_cbc_fix_config;
206 gops->ltc.isr = gv11b_ltc_isr;
207 gops->ltc.init_cbc = NULL;
208}