#include <stdint.h>
#include <openamp/rpmsg.h>
Go to the source code of this file.
|
struct rpmsg_ns_msg - dynamic name service announcement message
@addr: address of remote service that is published @flags: indicates whether service is created or destroyed
This message is sent across to publish a new service, or announce about its removal. When we receive these messages, an appropriate rpmsg channel (i.e device) is created/destroyed. In turn, the ->probe() or ->remove() handler of the appropriate rpmsg driver will be invoked (if/as-soon-as one is registered).
|
| METAL_PACKED_BEGIN struct rpmsg_hdr | METAL_PACKED_END |
| |
| int | rpmsg_send_ns_message (struct rpmsg_endpoint *ept, unsigned long flags) |
| |
| struct rpmsg_endpoint * | rpmsg_get_endpoint (struct rpmsg_device *rvdev, const char *name, uint32_t addr, uint32_t dest_addr) |
| |
| void | rpmsg_register_endpoint (struct rpmsg_device *rdev, struct rpmsg_endpoint *ept, const char *name, uint32_t src, uint32_t dest, rpmsg_ept_cb cb, rpmsg_ns_unbind_cb ns_unbind_cb) |
| |
| static struct rpmsg_endpoint * | rpmsg_get_ept_from_addr (struct rpmsg_device *rdev, uint32_t addr) |
| |
◆ RPMSG_ASSERT
| #define RPMSG_ASSERT |
( |
|
_exp, |
|
|
|
_msg |
|
) |
| metal_assert(_exp) |
◆ RPMSG_BUF_HELD
| #define RPMSG_BUF_HELD (1U << 31) /* Flag to suggest to hold the buffer */ |
◆ RPMSG_LOCATE_DATA
| #define RPMSG_LOCATE_DATA |
( |
|
p | ) |
((unsigned char *)(p) + sizeof(struct rpmsg_hdr)) |
◆ RPMSG_LOCATE_HDR
| #define RPMSG_LOCATE_HDR |
( |
|
p | ) |
((struct rpmsg_hdr *)((unsigned char *)(p) - sizeof(struct rpmsg_hdr))) |
◆ rpmsg_ns_flags
enum rpmsg_ns_flags - dynamic name service announcement flags
@RPMSG_NS_CREATE: a new remote service was just created @RPMSG_NS_DESTROY: a known remote service was just destroyed @RPMSG_NS_CREATE_WITH_ACK: a new remote service was just created waiting acknowledgment.
| Enumerator |
|---|
| RPMSG_NS_CREATE | |
| RPMSG_NS_DESTROY | |
◆ rpmsg_get_endpoint()
◆ rpmsg_get_ept_from_addr()
◆ rpmsg_register_endpoint()
◆ rpmsg_send_ns_message()
| int rpmsg_send_ns_message |
( |
struct rpmsg_endpoint * |
ept, |
|
|
unsigned long |
flags |
|
) |
| |
◆ METAL_PACKED_END