mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
ab9fdd41d9
The Glink SMEM driver allocates a struct device and hangs two devres-allocated pipe objects thereon. To facilitate the move of interrupt and mailbox handling to the driver, introduce a wrapper object capturing the device, glink reference and remote processor id. The type of the remoteproc reference is updated, as these are specifically targeting the SMEM implementation. Signed-off-by: Bjorn Andersson <quic_bjorande@quicinc.com> Reviewed-by: Chris Lew <quic_clew@quicinc.com> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230213155215.1237059-3-quic_bjorande@quicinc.com
35 lines
786 B
C
35 lines
786 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _LINUX_RPMSG_QCOM_GLINK_H
|
|
#define _LINUX_RPMSG_QCOM_GLINK_H
|
|
|
|
#include <linux/device.h>
|
|
|
|
struct qcom_glink_smem;
|
|
|
|
#if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK)
|
|
void qcom_glink_ssr_notify(const char *ssr_name);
|
|
#else
|
|
static inline void qcom_glink_ssr_notify(const char *ssr_name) {}
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK_SMEM)
|
|
|
|
struct qcom_glink_smem *qcom_glink_smem_register(struct device *parent,
|
|
struct device_node *node);
|
|
void qcom_glink_smem_unregister(struct qcom_glink_smem *glink);
|
|
|
|
#else
|
|
|
|
static inline struct qcom_glink_smem *
|
|
qcom_glink_smem_register(struct device *parent,
|
|
struct device_node *node)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline void qcom_glink_smem_unregister(struct qcom_glink_smem *glink) {}
|
|
#endif
|
|
|
|
#endif
|