mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
drivers: Add GTE support
The CL adds GTE driver support in OOT. The driver is copied from nvidia directory in dev-main with below changes. - Added removable module support This driver as module is needed as per the oot development requirement. Bug 3583612 Change-Id: I2772078fb96e1b172e45befe643b4c7c569866d9 Signed-off-by: Dipen Patel <dipenp@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2706260 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
c9217a1b82
commit
e7c8a70f65
@@ -1,10 +1,11 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* Copyright (c) 2020-2022, NVIDIA CORPORATION & AFFILIATES.All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0
|
||||
*/
|
||||
|
||||
#ifndef _LINUX_TEGRA_GTE_ENGINE_H
|
||||
#define _LINUX_TEGRA_GTE_ENGINE_H
|
||||
#ifndef _TEGRA_GTE_H
|
||||
#define _TEGRA_GTE_H
|
||||
|
||||
#include <linux/device.h>
|
||||
|
||||
@@ -21,7 +22,6 @@ struct tegra_gte_ev_detail {
|
||||
int dir; /* direction of the event */
|
||||
};
|
||||
|
||||
#ifdef CONFIG_TEGRA_HTS_GTE
|
||||
/*
|
||||
* GTE event registration function
|
||||
*
|
||||
@@ -74,23 +74,4 @@ int tegra_gte_unregister_event(struct tegra_gte_ev_desc *desc);
|
||||
int tegra_gte_retrieve_event(const struct tegra_gte_ev_desc *desc,
|
||||
struct tegra_gte_ev_detail *hts);
|
||||
|
||||
#else /* ! CONFIG_TEGRA_HTS_GTE */
|
||||
static inline struct tegra_gte_ev_desc *tegra_gte_register_event(
|
||||
struct device_node *np, u32 ev_id)
|
||||
{
|
||||
return ERR_PTR(-ENOSYS);
|
||||
}
|
||||
|
||||
static inline int tegra_gte_unregister_event(struct tegra_gte_ev_desc *desc)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
static inline int tegra_gte_retrieve_event(const struct tegra_gte_ev_desc *desc,
|
||||
struct tegra_gte_ev_detail *hts)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
#endif /* ! CONFIG_TEGRA_HTS_GTE */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user