diff options
author | Sam Payne <spayne@nvidia.com> | 2014-10-31 17:27:33 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:56 -0400 |
commit | 8c6a9fd1151299697037d58f33cfa306d8ac5d87 (patch) | |
tree | 9bb909474f12565e7f61251b8b80f300030bde52 /drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | |
parent | 4f6dddcf78233b9939ee32c6f09519f27c3b8fb4 (diff) |
Revert "gpu: nvgpu: GR and LTC HAL to use const structs"
This reverts commit 41b82e97164138f45fbdaef6ab6939d82ca9419e.
Change-Id: Iabd01fcb124e0d22cd9be62151a6552cbb27fc94
Signed-off-by: Sam Payne <spayne@nvidia.com>
Reviewed-on: http://git-master/r/592221
Tested-by: Hoang Pham <hopham@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mitch Luban <mluban@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/ltc_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c index 2a888e88..a089b59c 100644 --- a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c | |||
@@ -388,26 +388,24 @@ static int gm20b_determine_L2_size_bytes(struct gk20a *g) | |||
388 | return cache_size; | 388 | return cache_size; |
389 | } | 389 | } |
390 | 390 | ||
391 | static struct gpu_ltc_ops gm20b_ltc_ops = { | ||
392 | .determine_L2_size_bytes = gm20b_determine_L2_size_bytes, | ||
393 | .set_max_ways_evict_last = gk20a_ltc_set_max_ways_evict_last, | ||
394 | .set_zbc_color_entry = gk20a_ltc_set_zbc_color_entry, | ||
395 | .set_zbc_depth_entry = gk20a_ltc_set_zbc_depth_entry, | ||
396 | .init_cbc = gk20a_ltc_init_cbc, | ||
397 | #ifdef CONFIG_DEBUG_FS | ||
398 | .sync_debugfs = gk20a_ltc_sync_debugfs, | ||
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 | |||
410 | void gm20b_init_ltc(struct gpu_ops *gops) | 391 | void gm20b_init_ltc(struct gpu_ops *gops) |
411 | { | 392 | { |
412 | gops->ltc = &gm20b_ltc_ops; | 393 | /* Gk20a reused ops. */ |
394 | gops->ltc.determine_L2_size_bytes = gm20b_determine_L2_size_bytes; | ||
395 | gops->ltc.set_max_ways_evict_last = gk20a_ltc_set_max_ways_evict_last; | ||
396 | gops->ltc.set_zbc_color_entry = gk20a_ltc_set_zbc_color_entry; | ||
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 | ||
409 | gops->ltc.sync_debugfs = gk20a_ltc_sync_debugfs; | ||
410 | #endif | ||
413 | } | 411 | } |