summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/nvhost_priv.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2017-05-24 12:06:53 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-08 09:37:15 -0400
commit2c9713e21c9ab93e7af45a4b9e76c1f378aab024 (patch)
tree198568ee0c55471db27b369819c1e8c906c2a6be /drivers/gpu/nvgpu/common/linux/nvhost_priv.h
parent942029a433390f3385ed9d6fc35476bbf9eafd98 (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/common/linux/nvhost_priv.h')
-rw-r--r--drivers/gpu/nvgpu/common/linux/nvhost_priv.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/nvhost_priv.h b/drivers/gpu/nvgpu/common/linux/nvhost_priv.h
new file mode 100644
index 00000000..c03390a7
--- /dev/null
+++ b/drivers/gpu/nvgpu/common/linux/nvhost_priv.h
@@ -0,0 +1,24 @@
1/*
2 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#ifndef __NVGPU_NVHOST_PRIV_H__
18#define __NVGPU_NVHOST_PRIV_H__
19
20struct nvgpu_nvhost_dev {
21 struct platform_device *host1x_pdev;
22};
23
24#endif /* __NVGPU_NVHOST_PRIV_H__ */