xref: /openbmc/linux/include/linux/rpmsg/qcom_glink.h (revision 55fd7e02)
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;
9 
10 #if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK_SMEM)
11 
12 struct qcom_glink *qcom_glink_smem_register(struct device *parent,
13 					    struct device_node *node);
14 void qcom_glink_smem_unregister(struct qcom_glink *glink);
15 void qcom_glink_ssr_notify(const char *ssr_name);
16 
17 #else
18 
19 static inline struct qcom_glink *
20 qcom_glink_smem_register(struct device *parent,
21 			 struct device_node *node)
22 {
23 	return NULL;
24 }
25 
26 static inline void qcom_glink_smem_unregister(struct qcom_glink *glink) {}
27 static inline void qcom_glink_ssr_notify(const char *ssr_name) {}
28 #endif
29 
30 #endif
31