tegra: hwpm: Linux: Setup trigger IOCTL Infra

Add IOCTL infra for Cross trigger programming in HWPM Driver.
Cross Triggering involves the access to secure register, which
cannot be issued by user space application. Hence, implement
cross trigger functionality in HWPM kernel driver.

Bug 4571175

Signed-off-by: vasukis <vasukis@nvidia.com>
Change-Id: Ia46227c4678d3ee282ebae8c58e116feaf4e59cb
Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3147289
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
vasukis
2024-05-29 16:33:38 +00:00
committed by mobile promotions
parent f672287ded
commit 425b5f92ae
7 changed files with 75 additions and 0 deletions

View File

@@ -20,10 +20,13 @@
struct tegra_soc_hwpm;
struct tegra_soc_hwpm_exec_reg_ops;
struct tegra_soc_hwpm_exec_credit_program;
struct tegra_soc_hwpm_setup_trigger;
int tegra_hwpm_exec_regops(struct tegra_soc_hwpm *hwpm,
struct tegra_soc_hwpm_exec_reg_ops *exec_reg_ops);
int tegra_hwpm_credit_program(struct tegra_soc_hwpm *hwpm,
struct tegra_soc_hwpm_exec_credit_program *credit_prog);
int tegra_hwpm_setup_trigger(struct tegra_soc_hwpm *hwpm,
struct tegra_soc_hwpm_setup_trigger *setup_trigger);
#endif /* TEGRA_HWPM_OS_LINUX_REGOPS_UTILS_H */