mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-24 10:13:00 +03:00
Move chip specific code to chip specific folder. This will allow multiple chip support in the future. Create new specific functions - Initialize hwpm structures - Reserve and release PMA and RTR apertures - Zero, update and check allowlists - Set and get fake registers for MC aperture on simulation - perfmon dt aperture enums Jira THWPM-41 Change-Id: Ib80f324283c8d29b5c6f7bb6345a6df2410954e6 Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2620234 Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
42 lines
1.3 KiB
C
42 lines
1.3 KiB
C
/*
|
|
* Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope 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, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* tegra-soc-hwpm.h:
|
|
* This is the header for the Tegra SOC HWPM driver.
|
|
*/
|
|
|
|
#ifndef TEGRA_SOC_HWPM_H
|
|
#define TEGRA_SOC_HWPM_H
|
|
|
|
//
|
|
//
|
|
// #include <linux/scatterlist.h>
|
|
//
|
|
|
|
// #include "tegra-soc-hwpm-log.h"
|
|
//
|
|
|
|
struct tegra_soc_hwpm;
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
void tegra_soc_hwpm_debugfs_init(struct tegra_soc_hwpm *hwpm);
|
|
void tegra_soc_hwpm_debugfs_deinit(struct tegra_soc_hwpm *hwpm);
|
|
#else
|
|
static inline void tegra_soc_hwpm_debugfs_init(struct tegra_soc_hwpm *hwpm) {}
|
|
static inline void tegra_soc_hwpm_debugfs_deinit(struct tegra_soc_hwpm *hwpm) {}
|
|
#endif /* CONFIG_DEBUG_FS */
|
|
|
|
#endif /* TEGRA_SOC_HWPM_H */
|