summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/pmu_gm20b.h
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-08-01 20:10:42 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-21 16:06:07 -0400
commit5f010177de985c901c33c914efe70a8498a5974f (patch)
tree1b1a2ac1ab71608a0754a7eb64222f5d198e793c /drivers/gpu/nvgpu/gm20b/pmu_gm20b.h
parentb50b379c192714d0d08c3f2d33e90c95cf795253 (diff)
gpu: nvgpu: Reorg pmu HAL initialization
Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the pmu 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: I8839ac99e87153637005e23b3013237f57275c54 Signed-off-by: Sunny He <suhe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1530982 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/pmu_gm20b.h')
-rw-r--r--drivers/gpu/nvgpu/gm20b/pmu_gm20b.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/pmu_gm20b.h b/drivers/gpu/nvgpu/gm20b/pmu_gm20b.h
index 424fab35..ed3a8700 100644
--- a/drivers/gpu/nvgpu/gm20b/pmu_gm20b.h
+++ b/drivers/gpu/nvgpu/gm20b/pmu_gm20b.h
@@ -18,7 +18,9 @@
18 18
19struct gk20a; 19struct gk20a;
20 20
21void gm20b_init_pmu_ops(struct gk20a *g); 21int gm20b_load_falcon_ucode(struct gk20a *g, u32 falconidmask);
22int gm20b_pmu_setup_elpg(struct gk20a *g);
23void pmu_dump_security_fuses_gm20b(struct gk20a *g);
22void gm20b_pmu_load_lsf(struct gk20a *g, u32 falcon_id, u32 flags); 24void gm20b_pmu_load_lsf(struct gk20a *g, u32 falcon_id, u32 flags);
23int gm20b_pmu_init_acr(struct gk20a *g); 25int gm20b_pmu_init_acr(struct gk20a *g);
24void gm20b_write_dmatrfbase(struct gk20a *g, u32 addr); 26void gm20b_write_dmatrfbase(struct gk20a *g, u32 addr);