diff options
author | Sunny He <suhe@nvidia.com> | 2017-07-31 17:40:46 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-14 18:55:19 -0400 |
commit | 4bb0896912440d126ae47da350b448f37dabc63d (patch) | |
tree | 517e88d61e849a75755d0e5c0de675a5f432f852 /drivers/gpu/nvgpu/gv11b/fb_gv11b.h | |
parent | de232ceb4b3bfa88650d1eed764357ba4a598076 (diff) |
gpu: nvgpu: Reorg fb HAL initialization
Reorganize HAL initialization to remove inheritance and construct
the gpu_ops struct at compile time. This patch only covers the
fb 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: I3fdbf6059ef664caf8d33797a8a5f3f8eb6485bf
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1537748
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/fb_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/fb_gv11b.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fb_gv11b.h b/drivers/gpu/nvgpu/gv11b/fb_gv11b.h index 39cdfb77..3e2dd828 100644 --- a/drivers/gpu/nvgpu/gv11b/fb_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/fb_gv11b.h | |||
@@ -42,9 +42,13 @@ | |||
42 | #define FAULT_TYPE_OTHER_AND_NONREPLAY 0 | 42 | #define FAULT_TYPE_OTHER_AND_NONREPLAY 0 |
43 | #define FAULT_TYPE_REPLAY 1 | 43 | #define FAULT_TYPE_REPLAY 1 |
44 | 44 | ||
45 | struct gpu_ops; | 45 | struct gk20a; |
46 | |||
47 | void gv11b_fb_init_fs_state(struct gk20a *g); | ||
48 | void gv11b_fb_init_cbc(struct gk20a *g, struct gr_gk20a *gr); | ||
49 | void gv11b_fb_reset(struct gk20a *g); | ||
50 | void gv11b_fb_hub_isr(struct gk20a *g); | ||
46 | 51 | ||
47 | void gv11b_init_fb(struct gpu_ops *gops); | ||
48 | u32 gv11b_fb_is_fault_buf_enabled(struct gk20a *g, | 52 | u32 gv11b_fb_is_fault_buf_enabled(struct gk20a *g, |
49 | unsigned int index); | 53 | unsigned int index); |
50 | void gv11b_fb_fault_buf_set_state_hw(struct gk20a *g, | 54 | void gv11b_fb_fault_buf_set_state_hw(struct gk20a *g, |
@@ -56,4 +60,7 @@ void gv11b_fb_disable_hub_intr(struct gk20a *g, | |||
56 | unsigned int index, unsigned int intr_type); | 60 | unsigned int index, unsigned int intr_type); |
57 | void gv11b_fb_fault_buf_configure_hw(struct gk20a *g, unsigned int index); | 61 | void gv11b_fb_fault_buf_configure_hw(struct gk20a *g, unsigned int index); |
58 | bool gv11b_fb_mmu_fault_pending(struct gk20a *g); | 62 | bool gv11b_fb_mmu_fault_pending(struct gk20a *g); |
63 | |||
64 | noinline_for_stack void gv11b_init_uncompressed_kind_map(void); | ||
65 | void gv11b_init_kind_attr(void); | ||
59 | #endif | 66 | #endif |