diff options
author | Sunny He <suhe@nvidia.com> | 2017-06-27 18:09:58 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-27 19:34:37 -0400 |
commit | 3c556c5e9573ffa69bfe64ed1401ed4a9141acb3 (patch) | |
tree | 27db3b86e0b4b46f1343ac88f01f164ab3599461 /drivers/gpu/nvgpu/gv11b/ce_gv11b.h | |
parent | 2b98e1308d49b9c941d8fa6fc87f67108d6d9370 (diff) |
gpu: nvgpu: gv11b: Reorg ce2 HAL initialization
Reorganize HAL initialization to remove inheritance and construct
the gpu_ops struct at compile time. This patch only covers the ce2
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: Ia2d715a471d7e23420691a461e9442780176ea13
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1509633
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/ce_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/ce_gv11b.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/ce_gv11b.h b/drivers/gpu/nvgpu/gv11b/ce_gv11b.h index 23053199..ce60ad3e 100644 --- a/drivers/gpu/nvgpu/gv11b/ce_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/ce_gv11b.h | |||
@@ -19,10 +19,11 @@ | |||
19 | #ifndef __CE_GV11B_H__ | 19 | #ifndef __CE_GV11B_H__ |
20 | #define __CE_GV11B_H__ | 20 | #define __CE_GV11B_H__ |
21 | 21 | ||
22 | struct gpu_ops; | 22 | struct gk20a; |
23 | 23 | ||
24 | void gv11b_init_ce(struct gpu_ops *gops); | ||
25 | void gv11b_ce_mthd_buffer_fault_in_bar2_fault(struct gk20a *g); | 24 | void gv11b_ce_mthd_buffer_fault_in_bar2_fault(struct gk20a *g); |
26 | u32 gv11b_ce_get_num_lce(struct gk20a *g); | 25 | u32 gv11b_ce_get_num_lce(struct gk20a *g); |
26 | u32 gv11b_ce_get_num_pce(struct gk20a *g); | ||
27 | void gv11b_ce_isr(struct gk20a *g, u32 inst_id, u32 pri_base); | ||
27 | 28 | ||
28 | #endif /*__CE2_GV11B_H__*/ | 29 | #endif /*__CE2_GV11B_H__*/ |