2020-07-31 12:12:11

by Arnaud POULIQUEN

[permalink] [raw]
Subject: [PATCH 06/13] rpmsg: add RPMsg control info structure

Add new structure for RPMsg driver registration.
This structure will be used to link a service to its driver.

Signed-off-by: Arnaud Pouliquen <[email protected]>
---
include/linux/rpmsg.h | 13 +++++++++++++
1 file changed, 13 insertions(+)

diff --git a/include/linux/rpmsg.h b/include/linux/rpmsg.h
index 5496d27c6f8c..ef8d1b987d38 100644
--- a/include/linux/rpmsg.h
+++ b/include/linux/rpmsg.h
@@ -34,6 +34,19 @@ struct rpmsg_endpoint;
struct rpmsg_device_ops;
struct rpmsg_endpoint_ops;

+/**
+ * struct rpmsg_drv_ctrl_info - rpmsg ctrl structure
+ * @drv_name: name of the associated driver
+ * @service: the associated rpmsg service listed in @rpmsg_services
+ *
+ * This structure is used by rpmsg_ctl to link the endpoint creation to the
+ * service rpmsg driver.
+ */
+struct rpmsg_drv_ctrl_info {
+ const char *drv_name;
+ u32 service;
+};
+
/**
* struct rpmsg_channel_info - channel info representation
* @name: name of service
--
2.17.1