summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/bus_gk20a.h
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-07-05 22:05:06 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-24 02:35:04 -0400
commit907fcae63816b68e43e07e3d7abaad87954b8326 (patch)
tree9be974cddd1c23d17488c23377d9a36ccf69499a /drivers/gpu/nvgpu/gk20a/bus_gk20a.h
parentd717c69d2b1992688589ae389380fedf0b06c720 (diff)
gpu: nvgpu: Reorg bus HAL initialization
Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the bus 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: If03303c34d91480d41fc29e66069efd43e970d75 Signed-off-by: Sunny He <suhe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1514660 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/bus_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/bus_gk20a.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/bus_gk20a.h b/drivers/gpu/nvgpu/gk20a/bus_gk20a.h
index 344350b4..045063d7 100644
--- a/drivers/gpu/nvgpu/gk20a/bus_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/bus_gk20a.h
@@ -20,11 +20,11 @@
20 20
21struct gk20a; 21struct gk20a;
22struct gpu_ops; 22struct gpu_ops;
23 23struct nvgpu_mem;
24void gk20a_init_bus(struct gpu_ops *gops);
25 24
26void gk20a_bus_isr(struct gk20a *g); 25void gk20a_bus_isr(struct gk20a *g);
27int gk20a_read_ptimer(struct gk20a *g, u64 *value); 26int gk20a_read_ptimer(struct gk20a *g, u64 *value);
28void gk20a_bus_init_hw(struct gk20a *g); 27void gk20a_bus_init_hw(struct gk20a *g);
28int gk20a_bus_bar1_bind(struct gk20a *g, struct nvgpu_mem *bar1_inst);
29 29
30#endif /* GK20A_H */ 30#endif /* GK20A_H */