@@ -162,9 +162,6 @@ struct virtio_rpmsg_channel {
*/
#define RPMSG_RESERVED_ADDRESSES (1024)
-/* Address 53 is reserved for advertising remote services */
-#define RPMSG_NS_ADDR (53)
-
static void virtio_rpmsg_destroy_ept(struct rpmsg_endpoint *ept);
static int virtio_rpmsg_send(struct rpmsg_endpoint *ept, void *data, int len);
static int virtio_rpmsg_sendto(struct rpmsg_endpoint *ept, void *data, int len,
@@ -20,6 +20,15 @@
#define RPMSG_ADDR_ANY 0xFFFFFFFF
+/**
+ * enum rpmsg_ns_flags - List of reserved RPMsg addresses
+ *
+ * @RPMSG_NS_ADDR: remote services advertising for dynamic allocation
+ */
+enum rpmsg_reserved_addr {
+ RPMSG_NS_ADDR = 53,
+};
+
struct rpmsg_device;
struct rpmsg_endpoint;
struct rpmsg_device_ops;
The address 53 is reserved for the dynamic RPMsg device management on name service announcement. Define this address in a reserved enum list. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com> --- drivers/rpmsg/virtio_rpmsg_bus.c | 3 --- include/linux/rpmsg.h | 9 +++++++++ 2 files changed, 9 insertions(+), 3 deletions(-)