summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/ltc_gm20b.h
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-06-22 19:43:51 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-27 13:44:11 -0400
commit0dc80244eea4c7e504976d8028a3ddb72ba60b0e (patch)
tree99e87c3d5cab98a4593a7bb0fe2737d72ccfb805 /drivers/gpu/nvgpu/gm20b/ltc_gm20b.h
parent773df3f5e9fdda028ade319990d1b672ce68592f (diff)
gpu: nvgpu: Reorganize ltc HAL initialization
Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the ltc sub-module of the gpu_ops struct. Perform HAL function assignments in hal_gxxxx.c through the population of a chip-specific copy of gpu_ops. Jira NVGPU-74 Change-Id: I1110e301e57b502cf7f97e6739424cb33cc52a69 Signed-off-by: Sunny He <suhe@nvidia.com> Reviewed-on: https://git-master/r/1507564 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/ltc_gm20b.h')
-rw-r--r--drivers/gpu/nvgpu/gm20b/ltc_gm20b.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.h b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.h
index 4fe83250..b5661d4e 100644
--- a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.h
+++ b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.h
@@ -17,6 +17,8 @@
17#define _NVHOST_GM20B_LTC 17#define _NVHOST_GM20B_LTC
18struct gpu_ops; 18struct gpu_ops;
19 19
20int gm20b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr);
21int gm20b_determine_L2_size_bytes(struct gk20a *g);
20void gm20b_ltc_set_zbc_color_entry(struct gk20a *g, 22void gm20b_ltc_set_zbc_color_entry(struct gk20a *g,
21 struct zbc_entry *color_val, 23 struct zbc_entry *color_val,
22 u32 index); 24 u32 index);
@@ -24,8 +26,9 @@ void gm20b_ltc_set_zbc_depth_entry(struct gk20a *g,
24 struct zbc_entry *depth_val, 26 struct zbc_entry *depth_val,
25 u32 index); 27 u32 index);
26void gm20b_ltc_init_cbc(struct gk20a *g, struct gr_gk20a *gr); 28void gm20b_ltc_init_cbc(struct gk20a *g, struct gr_gk20a *gr);
27 29#ifdef CONFIG_DEBUG_FS
28void gm20b_init_ltc(struct gpu_ops *gops); 30void gm20b_ltc_sync_debugfs(struct gk20a *g);
31#endif
29void gm20b_ltc_init_fs_state(struct gk20a *g); 32void gm20b_ltc_init_fs_state(struct gk20a *g);
30int gm20b_ltc_cbc_ctrl(struct gk20a *g, enum gk20a_cbc_op op, 33int gm20b_ltc_cbc_ctrl(struct gk20a *g, enum gk20a_cbc_op op,
31 u32 min, u32 max); 34 u32 min, u32 max);