summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/mc_gv11b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/mc_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/mc_gv11b.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/mc_gv11b.c b/drivers/gpu/nvgpu/gv11b/mc_gv11b.c
index cc29f74a..81e6381f 100644
--- a/drivers/gpu/nvgpu/gv11b/mc_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/mc_gv11b.c
@@ -24,7 +24,7 @@
24 24
25#include <nvgpu/hw/gv11b/hw_mc_gv11b.h> 25#include <nvgpu/hw/gv11b/hw_mc_gv11b.h>
26 26
27static void mc_gv11b_intr_enable(struct gk20a *g) 27void mc_gv11b_intr_enable(struct gk20a *g)
28{ 28{
29 u32 eng_intr_mask = gk20a_fifo_engine_interrupt_mask(g); 29 u32 eng_intr_mask = gk20a_fifo_engine_interrupt_mask(g);
30 30
@@ -57,14 +57,7 @@ static void mc_gv11b_intr_enable(struct gk20a *g)
57 57
58} 58}
59 59
60static bool gv11b_mc_is_intr_hub_pending(struct gk20a *g, u32 mc_intr_0) 60bool gv11b_mc_is_intr_hub_pending(struct gk20a *g, u32 mc_intr_0)
61{ 61{
62 return ((mc_intr_0 & mc_intr_hub_pending_f()) ? true : false); 62 return ((mc_intr_0 & mc_intr_hub_pending_f()) ? true : false);
63} 63}
64
65void gv11b_init_mc(struct gpu_ops *gops)
66{
67 gp10b_init_mc(gops);
68 gops->mc.intr_enable = mc_gv11b_intr_enable;
69 gops->mc.is_intr_hub_pending = gv11b_mc_is_intr_hub_pending;
70}