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/gm20b/fb_gm20b.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/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 |