summaryrefslogtreecommitdiffstats
path: root/include/linux/rpmsg
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2016-10-19 19:40:03 -0700
committerBjorn Andersson <bjorn.andersson@linaro.org>2016-11-14 21:52:14 -0800
commit8fc947230fbc5da1d6d198c758b894f847bf2a28 (patch)
tree142843e9c695004c8abdf306dd082bfb1dae9e8c /include/linux/rpmsg
parent7bdc9650f03604b06ba7434fab694e8ae8ca782d (diff)
downloadblackbird-obmc-linux-8fc947230fbc5da1d6d198c758b894f847bf2a28.tar.gz
blackbird-obmc-linux-8fc947230fbc5da1d6d198c758b894f847bf2a28.zip
rpmsg: smd: Expose edge registration functions
The edge registration functions is to be used from a remoteproc driver to register and unregister an edge as the remote processor comes and goes. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'include/linux/rpmsg')
-rw-r--r--include/linux/rpmsg/qcom_smd.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/rpmsg/qcom_smd.h b/include/linux/rpmsg/qcom_smd.h
new file mode 100644
index 000000000000..e674b2e3074b
--- /dev/null
+++ b/include/linux/rpmsg/qcom_smd.h
@@ -0,0 +1,33 @@
+
+#ifndef _LINUX_RPMSG_QCOM_SMD_H
+#define _LINUX_RPMSG_QCOM_SMD_H
+
+#include <linux/device.h>
+
+struct qcom_smd_edge;
+
+#if IS_ENABLED(CONFIG_RPMSG_QCOM_SMD) || IS_ENABLED(CONFIG_QCOM_SMD)
+
+struct qcom_smd_edge *qcom_smd_register_edge(struct device *parent,
+ struct device_node *node);
+int qcom_smd_unregister_edge(struct qcom_smd_edge *edge);
+
+#else
+
+static inline struct qcom_smd_edge *
+qcom_smd_register_edge(struct device *parent,
+ struct device_node *node)
+{
+ return ERR_PTR(-ENXIO);
+}
+
+static inline int qcom_smd_unregister_edge(struct qcom_smd_edge *edge)
+{
+ /* This shouldn't be possible */
+ WARN_ON(1);
+ return -ENXIO;
+}
+
+#endif
+
+#endif
OpenPOWER on IntegriCloud