summaryrefslogtreecommitdiff
path: root/drivers/rpmsg/rpmsg_internal.h
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2016-09-02 01:28:04 +0300
committerBjorn Andersson <bjorn.andersson@linaro.org>2016-09-09 08:15:23 +0300
commit5e619b48677ca8c9fb907c58383859cea78705c9 (patch)
treef67ad937b0c8531b0e3cad8d28acb2229733db72 /drivers/rpmsg/rpmsg_internal.h
parent6eed598a049193917a2e15b163abb58c5c1ef466 (diff)
downloadlinux-5e619b48677ca8c9fb907c58383859cea78705c9.tar.xz
rpmsg: Split rpmsg core and virtio backend
Extract the generic rpmsg core functionality from the virtio rpmsg implementation, splitting the implementation in a rpmsg core and a virtio backend. Based on initial work by Sricharan R <sricharan@codeaurora.org> Cc: Sricharan R <sricharan@codeaurora.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/rpmsg/rpmsg_internal.h')
-rw-r--r--drivers/rpmsg/rpmsg_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/rpmsg/rpmsg_internal.h b/drivers/rpmsg/rpmsg_internal.h
index 205debf4ea65..8ac98fd0bf1d 100644
--- a/drivers/rpmsg/rpmsg_internal.h
+++ b/drivers/rpmsg/rpmsg_internal.h
@@ -25,6 +25,10 @@
#define to_rpmsg_device(d) container_of(d, struct rpmsg_device, dev)
#define to_rpmsg_driver(d) container_of(d, struct rpmsg_driver, drv)
+int rpmsg_register_device(struct rpmsg_device *rpdev);
+int rpmsg_unregister_device(struct device *parent,
+ struct rpmsg_channel_info *chinfo);
+
struct device *rpmsg_find_device(struct device *parent,
struct rpmsg_channel_info *chinfo);