xref: /openbmc/linux/include/linux/rpmsg/qcom_glink.h (revision a72594ca)
1 #ifndef _LINUX_RPMSG_QCOM_GLINK_H
2 #define _LINUX_RPMSG_QCOM_GLINK_H
3 
4 #include <linux/device.h>
5 
6 struct qcom_glink;
7 
8 #if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK_SMEM)
9 
10 struct qcom_glink *qcom_glink_smem_register(struct device *parent,
11 					    struct device_node *node);
12 void qcom_glink_smem_unregister(struct qcom_glink *glink);
13 
14 #else
15 
16 static inline struct qcom_glink *
17 qcom_glink_smem_register(struct device *parent,
18 			 struct device_node *node)
19 {
20 	return NULL;
21 }
22 
23 static inline void qcom_glink_smem_unregister(struct qcom_glink *glink) {}
24 
25 #endif
26 
27 #endif
28