diff options
author | Sunny He <suhe@nvidia.com> | 2017-07-31 17:43:11 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-08-14 18:55:13 -0400 |
commit | ee60394abc9a52182892ab54554d3e9c841080bf (patch) | |
tree | 34b5255d40578252989ad40fddb30424c53fcfe9 /drivers/gpu/nvgpu/gm20b/fb_gm20b.h | |
parent | d5a5fb3563121a4904be9185914c563070ffd021 (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/gm20b/fb_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/fb_gm20b.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/fb_gm20b.h b/drivers/gpu/nvgpu/gm20b/fb_gm20b.h index 22b848d6..42e86407 100644 --- a/drivers/gpu/nvgpu/gm20b/fb_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/fb_gm20b.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GM20B FB | 2 | * GM20B 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, |
@@ -17,7 +17,16 @@ | |||
17 | #define _NVHOST_GM20B_FB | 17 | #define _NVHOST_GM20B_FB |
18 | struct gk20a; | 18 | struct gk20a; |
19 | 19 | ||
20 | void gm20b_init_fb(struct gpu_ops *gops); | 20 | void fb_gm20b_init_fs_state(struct gk20a *g); |
21 | void gm20b_fb_set_mmu_page_size(struct gk20a *g); | ||
22 | bool gm20b_fb_set_use_full_comp_tag_line(struct gk20a *g); | ||
23 | unsigned int gm20b_fb_compression_page_size(struct gk20a *g); | ||
24 | unsigned int gm20b_fb_compressible_page_size(struct gk20a *g); | ||
25 | void gm20b_fb_dump_vpr_wpr_info(struct gk20a *g); | ||
26 | int gm20b_fb_vpr_info_fetch(struct gk20a *g); | ||
27 | bool gm20b_fb_debug_mode_enabled(struct gk20a *g); | ||
28 | void gm20b_fb_set_debug_mode(struct gk20a *g, bool enable); | ||
29 | |||
21 | void gm20b_init_uncompressed_kind_map(void); | 30 | void gm20b_init_uncompressed_kind_map(void); |
22 | void gm20b_init_kind_attr(void); | 31 | void gm20b_init_kind_attr(void); |
23 | #endif | 32 | #endif |