1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 2 3 #ifndef _LINUX_RPMSG_QCOM_GLINK_H 3 #ifndef _LINUX_RPMSG_QCOM_GLINK_H 4 #define _LINUX_RPMSG_QCOM_GLINK_H 4 #define _LINUX_RPMSG_QCOM_GLINK_H 5 5 6 #include <linux/device.h> 6 #include <linux/device.h> 7 7 8 struct qcom_glink_smem; 8 struct qcom_glink_smem; 9 9 10 #if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK) 10 #if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK) 11 void qcom_glink_ssr_notify(const char *ssr_nam 11 void qcom_glink_ssr_notify(const char *ssr_name); 12 #else 12 #else 13 static inline void qcom_glink_ssr_notify(const 13 static inline void qcom_glink_ssr_notify(const char *ssr_name) {} 14 #endif 14 #endif 15 15 16 #if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK_SMEM) 16 #if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK_SMEM) 17 17 18 struct qcom_glink_smem *qcom_glink_smem_regist 18 struct qcom_glink_smem *qcom_glink_smem_register(struct device *parent, 19 19 struct device_node *node); 20 void qcom_glink_smem_unregister(struct qcom_gl 20 void qcom_glink_smem_unregister(struct qcom_glink_smem *glink); 21 21 22 #else 22 #else 23 23 24 static inline struct qcom_glink_smem * 24 static inline struct qcom_glink_smem * 25 qcom_glink_smem_register(struct device *parent 25 qcom_glink_smem_register(struct device *parent, 26 struct device_node *n 26 struct device_node *node) 27 { 27 { 28 return NULL; 28 return NULL; 29 } 29 } 30 30 31 static inline void qcom_glink_smem_unregister( 31 static inline void qcom_glink_smem_unregister(struct qcom_glink_smem *glink) {} 32 #endif 32 #endif 33 33 34 #endif 34 #endif 35 35
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.