mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
rtcpu: capture-ivc: Enable build for Linux 6.2
The driver of rtcpu/capture-ivc is modified to support
the new APIs of the IVC from core kernel using conftest.
Enable build of this driver.
Bug 4346767
Change-Id: I427bb8b7d5dad02e805d0707fb67e45772fead31
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3033024
(cherry picked from commit bf1cfb5fb4)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3053700
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Jonathan Hunter <jonathanh@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
2fc926c8fe
commit
e3f7ab90e1
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
* Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef INCLUDE_CAPTURE_IVC_H
|
||||
@@ -9,7 +9,6 @@
|
||||
#include <linux/types.h>
|
||||
#include <linux/version.h>
|
||||
|
||||
#if !defined(CONFIG_TEGRA_IVC_LEGACY_DISABLE)
|
||||
/**
|
||||
* @brief Submit the control message binary blob to capture-IVC driver,
|
||||
* which is to be transferred over control IVC channel to RTCPU.
|
||||
@@ -134,59 +133,4 @@ int tegra_capture_ivc_unregister_control_cb(
|
||||
*/
|
||||
int tegra_capture_ivc_unregister_capture_cb(
|
||||
uint32_t chan_id);
|
||||
#else
|
||||
typedef void (*tegra_capture_ivc_cb_func)(
|
||||
const void *resp_desc,
|
||||
const void *priv_context);
|
||||
|
||||
static inline int tegra_capture_ivc_control_submit(
|
||||
const void *control_desc,
|
||||
size_t len)
|
||||
{
|
||||
return -ENOTSUPP;
|
||||
};
|
||||
|
||||
static inline int tegra_capture_ivc_capture_submit(
|
||||
const void *capture_desc,
|
||||
size_t len)
|
||||
{
|
||||
return -ENOTSUPP;
|
||||
};
|
||||
|
||||
static inline int tegra_capture_ivc_register_control_cb(
|
||||
tegra_capture_ivc_cb_func control_resp_cb,
|
||||
uint32_t *trans_id,
|
||||
const void *priv_context)
|
||||
{
|
||||
return -ENOTSUPP;
|
||||
};
|
||||
|
||||
static inline int tegra_capture_ivc_notify_chan_id(
|
||||
uint32_t chan_id,
|
||||
uint32_t trans_id)
|
||||
{
|
||||
return -ENOTSUPP;
|
||||
};
|
||||
|
||||
static inline int tegra_capture_ivc_register_capture_cb(
|
||||
tegra_capture_ivc_cb_func capture_status_ind_cb,
|
||||
uint32_t chan_id,
|
||||
const void *priv_context)
|
||||
{
|
||||
return -ENOTSUPP;
|
||||
};
|
||||
|
||||
static inline int tegra_capture_ivc_unregister_control_cb(
|
||||
uint32_t id)
|
||||
{
|
||||
return -ENOTSUPP;
|
||||
};
|
||||
|
||||
static inline int tegra_capture_ivc_unregister_capture_cb(
|
||||
uint32_t chan_id)
|
||||
{
|
||||
return -ENOTSUPP;
|
||||
};
|
||||
#endif /* !defined(CONFIG_TEGRA_IVC_LEGACY_DISABLE) */
|
||||
|
||||
#endif /* INCLUDE_CAPTURE_IVC_H */
|
||||
|
||||
Reference in New Issue
Block a user