From fd1ad24e14216e421c0814ad9aa76da1a70f8d24 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Fri, 12 May 2017 12:35:40 +0530 Subject: [PATCH] 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 Reviewed-on: http://git-master/r/1480588 Reviewed-by: Arto Merilainen GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu Tested-by: Seshendra Gadagottu Reviewed-by: Terje Bergstrom --- include/linux/nvhost_t194.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 include/linux/nvhost_t194.h diff --git a/include/linux/nvhost_t194.h b/include/linux/nvhost_t194.h new file mode 100644 index 00000000..f7b7dbde --- /dev/null +++ b/include/linux/nvhost_t194.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017, NVIDIA Corporation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef __LINUX_NVHOST_T194_H__ +#define __LINUX_NVHOST_T194_H__ + +int nvhost_syncpt_unit_interface_get_aperture( + struct platform_device *host_pdev, + phys_addr_t *base, + size_t *size); + +u32 nvhost_syncpt_unit_interface_get_byte_offset(u32 syncpt_id); + +#endif /* __LINUX_NVHOST_T194_H__ */