mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 04:05:21 +07:00
93bc3feee8
In all but the very special case of a system with _only_ glink_rpm, GLINK is dependent on glink_ssr, so move it to rpmsg and combine it with qcom_glink_native in the new qcom_glink kernel module. Acked-by: Chris Lew <clew@codeaurora.org> Acked-by: Rishabh Bhatnagar <rishabhb@codeaurora.org> Link: https://lore.kernel.org/r/20200423003736.2027371-4-bjorn.andersson@linaro.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
31 lines
709 B
C
31 lines
709 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;
|
|
|
|
#if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK_SMEM)
|
|
|
|
struct qcom_glink *qcom_glink_smem_register(struct device *parent,
|
|
struct device_node *node);
|
|
void qcom_glink_smem_unregister(struct qcom_glink *glink);
|
|
void qcom_glink_ssr_notify(const char *ssr_name);
|
|
|
|
#else
|
|
|
|
static inline struct qcom_glink *
|
|
qcom_glink_smem_register(struct device *parent,
|
|
struct device_node *node)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline void qcom_glink_smem_unregister(struct qcom_glink *glink) {}
|
|
static inline void qcom_glink_ssr_notify(const char *ssr_name) {}
|
|
#endif
|
|
|
|
#endif
|