Files
linux-hwpm/drivers/tegra/hwpm/os/linux/timers.h
Vedashree Vidwans 7c1ae11f78 tegra: hwpm: move files to appropriate path
HWPM files are copied from the previous source in linux-nvidia repo
withgit history. Create folders and move files to obtain expected folder
structure.

Bug 3787076

Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
2022-10-05 16:05:20 -07:00

32 lines
1011 B
C

/*
* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. 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.
*/
#ifndef TEGRA_HWPM_OS_LINUX_TIMERS_H
#define TEGRA_HWPM_OS_LINUX_TIMERS_H
struct tegra_hwpm_timeout {
u32 max_attempts;
u32 attempted;
};
struct tegra_soc_hwpm;
int tegra_hwpm_timeout_init_impl(struct tegra_soc_hwpm *hwpm,
struct tegra_hwpm_timeout *timeout, u32 retries);
int tegra_hwpm_timeout_expired_impl(struct tegra_soc_hwpm *hwpm,
struct tegra_hwpm_timeout *timeout);
void tegra_hwpm_msleep_impl(unsigned int msecs);
#endif /* TEGRA_HWPM_OS_LINUX_TIMERS_H */