summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/gr_ctx_gv11b.h
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-07-26 13:45:38 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-27 19:34:44 -0400
commitafa29933e45b2c3054db67065a0a68606bbc1f52 (patch)
treef3f4d122365ecc82ce6abb98b7ce59c6a92e3b90 /drivers/gpu/nvgpu/gv11b/gr_ctx_gv11b.h
parent3c556c5e9573ffa69bfe64ed1401ed4a9141acb3 (diff)
gpu: nvgpu: gv11b: Reorg gr_ctx HAL initialization
Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the gr_ctx 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: Icc6b0f968f2e3209de190d445c878a4b20bfcf4a Signed-off-by: Sunny He <suhe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1527418 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/gr_ctx_gv11b.h')
-rw-r--r--drivers/gpu/nvgpu/gv11b/gr_ctx_gv11b.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_ctx_gv11b.h b/drivers/gpu/nvgpu/gv11b/gr_ctx_gv11b.h
index 0a046eb4..8feb15fd 100644
--- a/drivers/gpu/nvgpu/gv11b/gr_ctx_gv11b.h
+++ b/drivers/gpu/nvgpu/gv11b/gr_ctx_gv11b.h
@@ -25,6 +25,7 @@
25 * Define netlist for silicon only 25 * Define netlist for silicon only
26 * #define GV11B_NETLIST_IMAGE_FW_NAME GK20A_NETLIST_IMAGE_A 26 * #define GV11B_NETLIST_IMAGE_FW_NAME GK20A_NETLIST_IMAGE_A
27*/ 27*/
28void gv11b_init_gr_ctx(struct gpu_ops *gops); 28int gr_gv11b_get_netlist_name(struct gk20a *g, int index, char *name);
29bool gr_gv11b_is_firmware_defined(void);
29 30
30#endif /*__GR_CTX_GV11B_H__*/ 31#endif /*__GR_CTX_GV11B_H__*/