summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/fb_gp10b.h
diff options
context:
space:
mode:
authorSunny He <suhe@nvidia.com>2017-07-31 17:43:11 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-14 18:55:13 -0400
commitee60394abc9a52182892ab54554d3e9c841080bf (patch)
tree34b5255d40578252989ad40fddb30424c53fcfe9 /drivers/gpu/nvgpu/gp10b/fb_gp10b.h
parentd5a5fb3563121a4904be9185914c563070ffd021 (diff)
gpu: nvgpu: Reorg fb HAL initialization
Reorganize HAL initialization to remove inheritance and construct the gpu_ops struct at compile time. This patch only covers the fb 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: I593d00ffccc40a3721e792ef7ca259583852eb28 Signed-off-by: Sunny He <suhe@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1537746 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/fb_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/gp10b/fb_gp10b.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/fb_gp10b.h b/drivers/gpu/nvgpu/gp10b/fb_gp10b.h
index 76efd331..626cf54d 100644
--- a/drivers/gpu/nvgpu/gp10b/fb_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/fb_gp10b.h
@@ -1,7 +1,7 @@
1/* 1/*
2 * GP10B FB 2 * GP10B FB
3 * 3 *
4 * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-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,
@@ -15,7 +15,11 @@
15 15
16#ifndef _NVGPU_GP10B_FB 16#ifndef _NVGPU_GP10B_FB
17#define _NVGPU_GP10B_FB 17#define _NVGPU_GP10B_FB
18struct gpu_ops; 18struct gk20a;
19
20noinline_for_stack void gp10b_init_uncompressed_kind_map(void);
21void gp10b_init_kind_attr(void);
22unsigned int gp10b_fb_compression_page_size(struct gk20a *g);
23unsigned int gp10b_fb_compressible_page_size(struct gk20a *g);
19 24
20void gp10b_init_fb(struct gpu_ops *gops);
21#endif 25#endif