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/gp10b/fb_gp10b.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gp10b/fb_gp10b.h') 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 @@ /* * GP10B 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, @@ -15,7 +15,11 @@ #ifndef _NVGPU_GP10B_FB #define _NVGPU_GP10B_FB -struct gpu_ops; +struct gk20a; + +noinline_for_stack void gp10b_init_uncompressed_kind_map(void); +void gp10b_init_kind_attr(void); +unsigned int gp10b_fb_compression_page_size(struct gk20a *g); +unsigned int gp10b_fb_compressible_page_size(struct gk20a *g); -void gp10b_init_fb(struct gpu_ops *gops); #endif -- cgit v1.2.2