mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
By exporting cvnas_dev all the internal data of the driver is getting exposed to any driver that uses it. This could allow drivers to corrupt this driver data. Hence do not export cvnas_dev, use helper functions to get it's required member elements from nvmap. Bug 200722684 Bug 3528414 Change-Id: I17f6fa1e98c777a7ec9118dbc6f0c6359e949f22 Signed-off-by: Ketan Patil <ketanp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2704698 Reviewed-by: Puneet Saxena <puneets@nvidia.com> Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com>
35 lines
974 B
C
35 lines
974 B
C
/*
|
|
* include/linux/cvnas.h
|
|
*
|
|
* Tegra cvnas driver
|
|
*
|
|
* Copyright (c) 2018-2022, 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
|
|
|
|
#include <linux/types.h>
|
|
|
|
int nvcvnas_busy(void);
|
|
int nvcvnas_busy_no_rpm(void);
|
|
int nvcvnas_idle(void);
|
|
int nvcvnas_idle_no_rpm(void);
|
|
int is_nvcvnas_probed(void);
|
|
phys_addr_t nvcvnas_get_cvsram_base(void);
|
|
size_t nvcvnas_get_cvsram_size(void);
|
|
int is_nvcvnas_clk_enabled(void);
|
|
|
|
#endif
|