From 2c9713e21c9ab93e7af45a4b9e76c1f378aab024 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Wed, 24 May 2017 21:36:53 +0530 Subject: gpu: nvgpu: add nvhost abstraction files Add new abstraction file common/linux/nvhost.c for all nvhost APIs and operations and export them from header This file will be compiled only if config CONFIG_TEGRA_GK20A_NVHOST is set Define struct nvgpu_nvhost_dev in a separate private header nvhost_priv.h Jira NVGPU-29 Change-Id: I17e1f7836d4854feadff0c339bc093e78ba7f3eb Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/1489725 Reviewed-by: svccoveritychecker GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani --- drivers/gpu/nvgpu/gk20a/gk20a.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a') diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 60494050..8691c73d 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h @@ -32,6 +32,7 @@ struct dbg_profiler_object_data; struct ecc_gk20a; struct gk20a_debug_output; struct nvgpu_clk_pll_debug_data; +struct nvgpu_nvhost_dev; #include #include @@ -981,6 +982,7 @@ struct nvgpu_bios { struct gk20a { struct device *dev; struct platform_device *host1x_dev; + struct nvgpu_nvhost_dev *nvhost_dev; /* * Used by . Do not access directly! -- cgit v1.2.2