summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2017-05-12 03:05:40 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-12 19:09:11 -0400
commit45e5983944477dbb47e6a7cbf8f0a56833cf33bc (patch)
tree335561aa996dea00d3a92938f9fc851327ca3d8e /include/linux
parent99c664cd3c9bcc46b17b77235ef284fb5f0ed8c9 (diff)
video: tegra: host: move exported APIs to public header
Exported APIs like below are defined in private header file nvhost_syncpt_unit_interface.h nvhost_syncpt_unit_interface_get_aperture() nvhost_syncpt_unit_interface_get_byte_offset() This causes linking problems if these functions are needed by some other driver outside nvhost Hence move these exported APIs into a new public header in include/linux/nvhost_t194.h Change-Id: Ib70177da71c2cc6aee1c6da2668b0a92ea01ccf7 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1480588 Reviewed-by: Arto Merilainen <amerilainen@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nvhost_t194.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/nvhost_t194.h b/include/linux/nvhost_t194.h
new file mode 100644
index 000000000..f7b7dbdeb
--- /dev/null
+++ b/include/linux/nvhost_t194.h
@@ -0,0 +1,29 @@
1/*
2 * Copyright (c) 2017, NVIDIA Corporation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */
18
19#ifndef __LINUX_NVHOST_T194_H__
20#define __LINUX_NVHOST_T194_H__
21
22int nvhost_syncpt_unit_interface_get_aperture(
23 struct platform_device *host_pdev,
24 phys_addr_t *base,
25 size_t *size);
26
27u32 nvhost_syncpt_unit_interface_get_byte_offset(u32 syncpt_id);
28
29#endif /* __LINUX_NVHOST_T194_H__ */