diff options
author | Sunny He <suhe@nvidia.com> | 2017-07-31 17:43:11 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-11 17:16:46 -0400 |
commit | 63b74d4b768e0c96367d4983fdd8f1db1d317d01 (patch) | |
tree | 3966af83cf9abdf687667afe120cc6648a9ed360 /drivers/gpu/nvgpu/gp10b/fb_gp10b.h | |
parent | 83e49b39181a86d32f6350c65659b5892f8f7670 (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: Ib746798b849810401c12abf5e9cce42d827c6fb1
Signed-off-by: Sunny He <suhe@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1533350
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@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.h | 10 |
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 |
18 | struct gpu_ops; | 18 | struct gk20a; |
19 | |||
20 | noinline_for_stack void gp10b_init_uncompressed_kind_map(void); | ||
21 | void gp10b_init_kind_attr(void); | ||
22 | unsigned int gp10b_fb_compression_page_size(struct gk20a *g); | ||
23 | unsigned int gp10b_fb_compressible_page_size(struct gk20a *g); | ||
19 | 24 | ||
20 | void gp10b_init_fb(struct gpu_ops *gops); | ||
21 | #endif | 25 | #endif |