summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/nvhost.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/nvhost.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/nvhost.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/nvhost.c b/drivers/gpu/nvgpu/common/linux/nvhost.c
index 511cffc4..e0f83612 100644
--- a/drivers/gpu/nvgpu/common/linux/nvhost.c
+++ b/drivers/gpu/nvgpu/common/linux/nvhost.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 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, 5 * under the terms and conditions of the GNU General Public License,
@@ -15,6 +15,7 @@
15 */ 15 */
16 16
17#include <linux/nvhost.h> 17#include <linux/nvhost.h>
18#include <linux/nvhost_t194.h>
18#include <linux/nvhost_ioctl.h> 19#include <linux/nvhost_ioctl.h>
19#include <linux/of_platform.h> 20#include <linux/of_platform.h>
20 21
@@ -210,3 +211,18 @@ struct sync_fence *nvgpu_nvhost_sync_create_fence(
210 return nvhost_sync_create_fence(nvhost_dev->host1x_pdev, &pt, 1, name); 211 return nvhost_sync_create_fence(nvhost_dev->host1x_pdev, &pt, 1, name);
211} 212}
212#endif /* CONFIG_SYNC */ 213#endif /* CONFIG_SYNC */
214
215#ifdef CONFIG_TEGRA_T19X_GRHOST
216int nvgpu_nvhost_syncpt_unit_interface_get_aperture(
217 struct nvgpu_nvhost_dev *nvhost_dev,
218 u64 *base, size_t *size)
219{
220 return nvhost_syncpt_unit_interface_get_aperture(
221 nvhost_dev->host1x_pdev, (phys_addr_t *)base, size);
222}
223
224u32 nvgpu_nvhost_syncpt_unit_interface_get_byte_offset(u32 syncpt_id)
225{
226 return nvhost_syncpt_unit_interface_get_byte_offset(syncpt_id);
227}
228#endif