summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/pramin_gk20a.h
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-07-26 20:37:46 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-27 19:34:45 -0400
commitf0593bb43f3379baffd7bb77b89c9af18842ceef (patch)
tree9d41059c5b1b68a1d12705ae78421ee375dd7cd3 /drivers/gpu/nvgpu/gk20a/pramin_gk20a.h
parent9d37d8b78c2dac7fa480493d1ab67b95290b87f1 (diff)
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 <suhe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1527421 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/pramin_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/pramin_gk20a.h10
1 files changed, 7 insertions, 3 deletions
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 @@
17#ifndef __PRAMIN_GK20A_H__ 17#ifndef __PRAMIN_GK20A_H__
18#define __PRAMIN_GK20A_H__ 18#define __PRAMIN_GK20A_H__
19 19
20struct gpu_ops; 20struct gk20a;
21 21struct nvgpu_mem;
22void gk20a_init_pramin_ops(struct gpu_ops *ops); 22struct page_alloc_chunk;
23 23
24u32 gk20a_pramin_enter(struct gk20a *g, struct nvgpu_mem *mem,
25 struct page_alloc_chunk *chunk, u32 w);
26void gk20a_pramin_exit(struct gk20a *g, struct nvgpu_mem *mem,
27 struct page_alloc_chunk *chunk);
24#endif 28#endif