diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-05-24 12:06:53 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-08 09:37:15 -0400 |
commit | 2c9713e21c9ab93e7af45a4b9e76c1f378aab024 (patch) | |
tree | 198568ee0c55471db27b369819c1e8c906c2a6be /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 942029a433390f3385ed9d6fc35476bbf9eafd98 (diff) |
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 <nvgpu/nvhost.h>
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 <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1489725
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; | |||
32 | struct ecc_gk20a; | 32 | struct ecc_gk20a; |
33 | struct gk20a_debug_output; | 33 | struct gk20a_debug_output; |
34 | struct nvgpu_clk_pll_debug_data; | 34 | struct nvgpu_clk_pll_debug_data; |
35 | struct nvgpu_nvhost_dev; | ||
35 | 36 | ||
36 | #include <linux/sched.h> | 37 | #include <linux/sched.h> |
37 | #include <nvgpu/lock.h> | 38 | #include <nvgpu/lock.h> |
@@ -981,6 +982,7 @@ struct nvgpu_bios { | |||
981 | struct gk20a { | 982 | struct gk20a { |
982 | struct device *dev; | 983 | struct device *dev; |
983 | struct platform_device *host1x_dev; | 984 | struct platform_device *host1x_dev; |
985 | struct nvgpu_nvhost_dev *nvhost_dev; | ||
984 | 986 | ||
985 | /* | 987 | /* |
986 | * Used by <nvgpu/enabled.h>. Do not access directly! | 988 | * Used by <nvgpu/enabled.h>. Do not access directly! |