From 63b74d4b768e0c96367d4983fdd8f1db1d317d01 Mon Sep 17 00:00:00 2001 From: Sunny He Date: Mon, 31 Jul 2017 14:43:11 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1533350 Reviewed-by: svccoveritychecker Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gm20b/fb_gm20b.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gm20b/fb_gm20b.h') 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 @@ /* * GM20B FB * - * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -17,7 +17,16 @@ #define _NVHOST_GM20B_FB struct gk20a; -void gm20b_init_fb(struct gpu_ops *gops); +void fb_gm20b_init_fs_state(struct gk20a *g); +void gm20b_fb_set_mmu_page_size(struct gk20a *g); +bool gm20b_fb_set_use_full_comp_tag_line(struct gk20a *g); +unsigned int gm20b_fb_compression_page_size(struct gk20a *g); +unsigned int gm20b_fb_compressible_page_size(struct gk20a *g); +void gm20b_fb_dump_vpr_wpr_info(struct gk20a *g); +int gm20b_fb_vpr_info_fetch(struct gk20a *g); +bool gm20b_fb_debug_mode_enabled(struct gk20a *g); +void gm20b_fb_set_debug_mode(struct gk20a *g, bool enable); + void gm20b_init_uncompressed_kind_map(void); void gm20b_init_kind_attr(void); #endif -- cgit v1.2.2