diff options
author | Sunny He <suhe@nvidia.com> | 2017-07-28 21:37:49 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-02 17:43:28 -0400 |
commit | f87007829f176baa5d3e784c71f3bceb082a29eb (patch) | |
tree | f26f38e371bea4eff8abcf7a47b7bd0abd9d8a44 /drivers/gpu/nvgpu/gv11b/regops_gv11b.h | |
parent | ea381959d973f013a2a2b2ae6fe694f1f569683c (diff) |
gpu: nvgpu: gv11b: Reorg regops HAL initialization
Reorganize HAL initialization to remove inheritance and construct
the gpu_ops struct at compile time. This patch only covers the
regops 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: Ibf9f64ca445691e252b72c2b8fc59edb84e226ce
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1530136
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Tested-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/regops_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/regops_gv11b.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/regops_gv11b.h b/drivers/gpu/nvgpu/gv11b/regops_gv11b.h index b7250818..dada9a7e 100644 --- a/drivers/gpu/nvgpu/gv11b/regops_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/regops_gv11b.h | |||
@@ -19,6 +19,18 @@ | |||
19 | #ifndef __REGOPS_GV11B_H_ | 19 | #ifndef __REGOPS_GV11B_H_ |
20 | #define __REGOPS_GV11B_H_ | 20 | #define __REGOPS_GV11B_H_ |
21 | 21 | ||
22 | void gv11b_init_regops(struct gpu_ops *gops); | 22 | const struct regop_offset_range *gv11b_get_global_whitelist_ranges(void); |
23 | int gv11b_get_global_whitelist_ranges_count(void); | ||
24 | const struct regop_offset_range *gv11b_get_context_whitelist_ranges(void); | ||
25 | int gv11b_get_context_whitelist_ranges_count(void); | ||
26 | const u32 *gv11b_get_runcontrol_whitelist(void); | ||
27 | int gv11b_get_runcontrol_whitelist_count(void); | ||
28 | const struct regop_offset_range *gv11b_get_runcontrol_whitelist_ranges(void); | ||
29 | int gv11b_get_runcontrol_whitelist_ranges_count(void); | ||
30 | const u32 *gv11b_get_qctl_whitelist(void); | ||
31 | int gv11b_get_qctl_whitelist_count(void); | ||
32 | const struct regop_offset_range *gv11b_get_qctl_whitelist_ranges(void); | ||
33 | int gv11b_get_qctl_whitelist_ranges_count(void); | ||
34 | int gv11b_apply_smpc_war(struct dbg_session_gk20a *dbg_s); | ||
23 | 35 | ||
24 | #endif /* __REGOPS_GV11B_H_ */ | 36 | #endif /* __REGOPS_GV11B_H_ */ |