summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/cde_gp10b.h
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-06-30 13:31:31 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-07-07 13:35:24 -0400
commit858a204362a385f076b057b6196fd89f7edb839b (patch)
treeb0f8dc16d297b406e398f02d2ae4b8077cf65fe0 /drivers/gpu/nvgpu/gp10b/cde_gp10b.h
parent997ea5cef3dcd55b2281a7a8dcf452b743bc01f3 (diff)
gpu: nvgpu: Reorg cde HAL initialization
Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the cde 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: I9343ce4985eb941a2610f5f11e8f01269ab68481 Signed-off-by: Sunny He <suhe@nvidia.com> Reviewed-on: https://git-master/r/1511673 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/cde_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/gp10b/cde_gp10b.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/cde_gp10b.h b/drivers/gpu/nvgpu/gp10b/cde_gp10b.h
index 52f785f1..3ee6027c 100644
--- a/drivers/gpu/nvgpu/gp10b/cde_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/cde_gp10b.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * GP10B CDE 2 * GP10B CDE
3 * 3 *
4 * Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -16,8 +16,17 @@
16#ifndef _NVHOST_GP10B_CDE 16#ifndef _NVHOST_GP10B_CDE
17#define _NVHOST_GP10B_CDE 17#define _NVHOST_GP10B_CDE
18 18
19struct gpu_ops; 19struct gk20a;
20struct sg_table;
20 21
21void gp10b_init_cde_ops(struct gpu_ops *gops); 22void gp10b_cde_get_program_numbers(struct gk20a *g,
23 u32 block_height_log2,
24 int *hprog_out, int *vprog_out);
25bool gp10b_need_scatter_buffer(struct gk20a *g);
26int gp10b_populate_scatter_buffer(struct gk20a *g,
27 struct sg_table *sgt,
28 size_t surface_size,
29 void *scatter_buffer_ptr,
30 size_t scatter_buffer_size);
22 31
23#endif 32#endif