0001
0002
0003 #ifndef _LINUX_RPMSG_QCOM_GLINK_H
0004 #define _LINUX_RPMSG_QCOM_GLINK_H
0005
0006 #include <linux/device.h>
0007
0008 struct qcom_glink;
0009
0010 #if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK)
0011 void qcom_glink_ssr_notify(const char *ssr_name);
0012 #else
0013 static inline void qcom_glink_ssr_notify(const char *ssr_name) {}
0014 #endif
0015
0016 #if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK_SMEM)
0017
0018 struct qcom_glink *qcom_glink_smem_register(struct device *parent,
0019 struct device_node *node);
0020 void qcom_glink_smem_unregister(struct qcom_glink *glink);
0021
0022 #else
0023
0024 static inline struct qcom_glink *
0025 qcom_glink_smem_register(struct device *parent,
0026 struct device_node *node)
0027 {
0028 return NULL;
0029 }
0030
0031 static inline void qcom_glink_smem_unregister(struct qcom_glink *glink) {}
0032 #endif
0033
0034 #endif