diff options
author | Sunny He <suhe@nvidia.com> | 2017-07-26 20:37:46 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-27 19:34:45 -0400 |
commit | f0593bb43f3379baffd7bb77b89c9af18842ceef (patch) | |
tree | 9d41059c5b1b68a1d12705ae78421ee375dd7cd3 /drivers/gpu/nvgpu/gk20a/pramin_gk20a.h | |
parent | 9d37d8b78c2dac7fa480493d1ab67b95290b87f1 (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.h | 10 |
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 | ||
20 | struct gpu_ops; | 20 | struct gk20a; |
21 | 21 | struct nvgpu_mem; | |
22 | void gk20a_init_pramin_ops(struct gpu_ops *ops); | 22 | struct page_alloc_chunk; |
23 | 23 | ||
24 | u32 gk20a_pramin_enter(struct gk20a *g, struct nvgpu_mem *mem, | ||
25 | struct page_alloc_chunk *chunk, u32 w); | ||
26 | void gk20a_pramin_exit(struct gk20a *g, struct nvgpu_mem *mem, | ||
27 | struct page_alloc_chunk *chunk); | ||
24 | #endif | 28 | #endif |