mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 14:40:53 +07:00
8fc947230f
The edge registration functions is to be used from a remoteproc driver to register and unregister an edge as the remote processor comes and goes. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
34 lines
659 B
C
34 lines
659 B
C
|
|
#ifndef _LINUX_RPMSG_QCOM_SMD_H
|
|
#define _LINUX_RPMSG_QCOM_SMD_H
|
|
|
|
#include <linux/device.h>
|
|
|
|
struct qcom_smd_edge;
|
|
|
|
#if IS_ENABLED(CONFIG_RPMSG_QCOM_SMD) || IS_ENABLED(CONFIG_QCOM_SMD)
|
|
|
|
struct qcom_smd_edge *qcom_smd_register_edge(struct device *parent,
|
|
struct device_node *node);
|
|
int qcom_smd_unregister_edge(struct qcom_smd_edge *edge);
|
|
|
|
#else
|
|
|
|
static inline struct qcom_smd_edge *
|
|
qcom_smd_register_edge(struct device *parent,
|
|
struct device_node *node)
|
|
{
|
|
return ERR_PTR(-ENXIO);
|
|
}
|
|
|
|
static inline int qcom_smd_unregister_edge(struct qcom_smd_edge *edge)
|
|
{
|
|
/* This shouldn't be possible */
|
|
WARN_ON(1);
|
|
return -ENXIO;
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|