From 04479abd45eb240702ad41e490510eb38cd4c854 Mon Sep 17 00:00:00 2001 From: Damian Halas Date: Fri, 2 Feb 2018 14:25:05 -0800 Subject: [PATCH] t19x: cvnas: expose cvsram base and size to kernel Add nvcvnas_get_cvsram_base and nvcvnas_get_cvsram_size, Use them in pva_queue.c and nvhost_buffer.c instead of hardcoded values. JIRA EVLR-2273 Change-Id: I3fbec50a2c57220034b25b3a91569ba4aec319f6 Signed-off-by: Damian Halas Reviewed-on: https://git-master.nvidia.com/r/1651414 Reviewed-by: Puneet Saxena Reviewed-by: Mikko Perttunen Reviewed-by: Nirav Patel --- include/linux/cvnas.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/linux/cvnas.h diff --git a/include/linux/cvnas.h b/include/linux/cvnas.h new file mode 100644 index 00000000..a769106b --- /dev/null +++ b/include/linux/cvnas.h @@ -0,0 +1,28 @@ +/* + * include/linux/cvnas.h + * + * Tegra cvnas driver + * + * Copyright (c) 2018, 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. + * + */ + +#ifndef __LINUX_CVNAS_H +#define __LINUX_CVNAS_H + +int nvcvnas_busy(void); +int nvcvnas_idle(void); +phys_addr_t nvcvnas_get_cvsram_base(void); +size_t nvcvnas_get_cvsram_size(void); + +#endif