From f0593bb43f3379baffd7bb77b89c9af18842ceef Mon Sep 17 00:00:00 2001 From: Sunny He Date: Wed, 26 Jul 2017 17:37:46 -0700 Subject: gpu: nvgpu: Reorg pramin HAL initialization Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the pramin 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: I0c0aecfb8f5ea436ef353b874f5e36ff24ebd130 Signed-off-by: Sunny He Reviewed-on: https://git-master.nvidia.com/r/1527421 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/pramin_gk20a.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/pramin_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/pramin_gk20a.h b/drivers/gpu/nvgpu/gk20a/pramin_gk20a.h index 93d1cc75..1a1ac871 100644 --- a/drivers/gpu/nvgpu/gk20a/pramin_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/pramin_gk20a.h @@ -17,8 +17,12 @@ #ifndef __PRAMIN_GK20A_H__ #define __PRAMIN_GK20A_H__ -struct gpu_ops; - -void gk20a_init_pramin_ops(struct gpu_ops *ops); +struct gk20a; +struct nvgpu_mem; +struct page_alloc_chunk; +u32 gk20a_pramin_enter(struct gk20a *g, struct nvgpu_mem *mem, + struct page_alloc_chunk *chunk, u32 w); +void gk20a_pramin_exit(struct gk20a *g, struct nvgpu_mem *mem, + struct page_alloc_chunk *chunk); #endif -- cgit v1.2.2