Files
linux-hwpm/drivers/tegra/hwpm/include/tegra_hwpm_aperture.h
Vedashree Vidwans a8fc1ef30a tegra: hwpm: follow up svcacv fix
This is a follow up to fix svcacv warning in 3186843 about missing spdx
identifier.

Bug 4707244

Change-Id: If004830eb12e19bbdd8c6ef84818aca36ee5ebd7
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3210319
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2024-09-12 08:53:11 -07:00

46 lines
1.9 KiB
C

/* SPDX-License-Identifier: MIT */
/*
* SPDX-FileCopyrightText: Copyright (c) 2022-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
#ifndef TEGRA_HWPM_APERTURE_H
#define TEGRA_HWPM_APERTURE_H
#ifdef __KERNEL__
#include <os/linux/aperture_utils.h>
#else
#include <os/qnx/aperture_utils.h>
#endif
#define tegra_hwpm_ffs(hwpm, number) \
tegra_hwpm_ffs_impl(hwpm, number)
#define tegra_hwpm_perfmon_reserve(hwpm, ip_inst, perfmon) \
tegra_hwpm_perfmon_reserve_impl(hwpm, ip_inst, perfmon)
#define tegra_hwpm_perfmux_reserve(hwpm, ip_inst, perfmux) \
tegra_hwpm_perfmux_reserve_impl(hwpm, ip_inst, perfmux)
#define tegra_hwpm_perfmon_release(hwpm, perfmon) \
tegra_hwpm_perfmon_release_impl(hwpm, perfmon)
#define tegra_hwpm_perfmux_release(hwpm, perfmux) \
tegra_hwpm_perfmux_release_impl(hwpm, perfmux)
#endif /* TEGRA_HWPM_APERTURE_H */