xref: /linux/include/linux/rpmsg/qcom_glink.h (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef _LINUX_RPMSG_QCOM_GLINK_H
4 #define _LINUX_RPMSG_QCOM_GLINK_H
5 
6 #include <linux/device.h>
7 
8 struct qcom_glink_smem;
9 
10 #if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK)
11 void qcom_glink_ssr_notify(const char *ssr_name);
12 #else
qcom_glink_ssr_notify(const char * ssr_name)13 static inline void qcom_glink_ssr_notify(const char *ssr_name) {}
14 #endif
15 
16 #if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK_SMEM)
17 
18 struct qcom_glink_smem *qcom_glink_smem_register(struct device *parent,
19 						 struct device_node *node);
20 void qcom_glink_smem_unregister(struct qcom_glink_smem *glink);
21 
22 #else
23 
24 static inline struct qcom_glink_smem *
qcom_glink_smem_register(struct device * parent,struct device_node * node)25 qcom_glink_smem_register(struct device *parent,
26 			 struct device_node *node)
27 {
28 	return NULL;
29 }
30 
qcom_glink_smem_unregister(struct qcom_glink_smem * glink)31 static inline void qcom_glink_smem_unregister(struct qcom_glink_smem *glink) {}
32 #endif
33 
34 #endif
35