summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/ltc_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/ltc_gm20b.c38
1 files changed, 20 insertions, 18 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
index a089b59c..2a888e88 100644
--- a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
@@ -388,24 +388,26 @@ static int gm20b_determine_L2_size_bytes(struct gk20a *g)
388 return cache_size; 388 return cache_size;
389} 389}
390 390
391void gm20b_init_ltc(struct gpu_ops *gops) 391static struct gpu_ltc_ops gm20b_ltc_ops = {
392{ 392 .determine_L2_size_bytes = gm20b_determine_L2_size_bytes,
393 /* Gk20a reused ops. */ 393 .set_max_ways_evict_last = gk20a_ltc_set_max_ways_evict_last,
394 gops->ltc.determine_L2_size_bytes = gm20b_determine_L2_size_bytes; 394 .set_zbc_color_entry = gk20a_ltc_set_zbc_color_entry,
395 gops->ltc.set_max_ways_evict_last = gk20a_ltc_set_max_ways_evict_last; 395 .set_zbc_depth_entry = gk20a_ltc_set_zbc_depth_entry,
396 gops->ltc.set_zbc_color_entry = gk20a_ltc_set_zbc_color_entry; 396 .init_cbc = gk20a_ltc_init_cbc,
397 gops->ltc.set_zbc_depth_entry = gk20a_ltc_set_zbc_depth_entry;
398 gops->ltc.init_cbc = gk20a_ltc_init_cbc;
399
400 /* GM20b specific ops. */
401 gops->ltc.init_fs_state = gm20b_ltc_init_fs_state;
402 gops->ltc.init_comptags = gm20b_ltc_init_comptags;
403 gops->ltc.cbc_ctrl = gm20b_ltc_cbc_ctrl;
404 gops->ltc.elpg_flush = gm20b_ltc_g_elpg_flush_locked;
405 gops->ltc.isr = gm20b_ltc_isr;
406 gops->ltc.cbc_fix_config = gm20b_ltc_cbc_fix_config;
407 gops->ltc.flush = gm20b_flush_ltc;
408#ifdef CONFIG_DEBUG_FS 397#ifdef CONFIG_DEBUG_FS
409 gops->ltc.sync_debugfs = gk20a_ltc_sync_debugfs; 398 .sync_debugfs = gk20a_ltc_sync_debugfs,
410#endif 399#endif
400 /* GM20b specific ops. */
401 .init_fs_state = gm20b_ltc_init_fs_state,
402 .init_comptags = gm20b_ltc_init_comptags,
403 .cbc_ctrl = gm20b_ltc_cbc_ctrl,
404 .elpg_flush = gm20b_ltc_g_elpg_flush_locked,
405 .isr = gm20b_ltc_isr,
406 .cbc_fix_config = gm20b_ltc_cbc_fix_config,
407 .flush = gm20b_flush_ltc
408};
409
410void gm20b_init_ltc(struct gpu_ops *gops)
411{
412 gops->ltc = &gm20b_ltc_ops;
411} 413}