![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 0003 #ifndef _LINUX_RPMSG_NS_H 0004 #define _LINUX_RPMSG_NS_H 0005 0006 #include <linux/mod_devicetable.h> 0007 #include <linux/rpmsg.h> 0008 #include <linux/rpmsg/byteorder.h> 0009 #include <linux/types.h> 0010 0011 /** 0012 * struct rpmsg_ns_msg - dynamic name service announcement message 0013 * @name: name of remote service that is published 0014 * @addr: address of remote service that is published 0015 * @flags: indicates whether service is created or destroyed 0016 * 0017 * This message is sent across to publish a new service, or announce 0018 * about its removal. When we receive these messages, an appropriate 0019 * rpmsg channel (i.e device) is created/destroyed. In turn, the ->probe() 0020 * or ->remove() handler of the appropriate rpmsg driver will be invoked 0021 * (if/as-soon-as one is registered). 0022 */ 0023 struct rpmsg_ns_msg { 0024 char name[RPMSG_NAME_SIZE]; 0025 __rpmsg32 addr; 0026 __rpmsg32 flags; 0027 } __packed; 0028 0029 /** 0030 * enum rpmsg_ns_flags - dynamic name service announcement flags 0031 * 0032 * @RPMSG_NS_CREATE: a new remote service was just created 0033 * @RPMSG_NS_DESTROY: a known remote service was just destroyed 0034 */ 0035 enum rpmsg_ns_flags { 0036 RPMSG_NS_CREATE = 0, 0037 RPMSG_NS_DESTROY = 1, 0038 }; 0039 0040 /* Address 53 is reserved for advertising remote services */ 0041 #define RPMSG_NS_ADDR (53) 0042 0043 int rpmsg_ns_register_device(struct rpmsg_device *rpdev); 0044 0045 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |