Lines Matching refs:rpmsg

2 Remote Processor Messaging (rpmsg) Framework
7 This document describes the rpmsg bus and how to write rpmsg drivers.
8 To learn how to add rpmsg support for new platforms, check out remoteproc.txt
41 When writing a driver that exposes rpmsg communication to userland, please
50 desired to limit userland to specific rpmsg channels (see definition below)
54 Every rpmsg device is a communication channel with a remote processor (thus
55 rpmsg devices are called channels). Channels are identified by a textual name
56 and have a local ("source") rpmsg address, and remote ("destination") rpmsg
60 a unique rpmsg local address (a 32-bit integer). This way when inbound messages
61 arrive, the rpmsg core dispatches them to the appropriate driver according
157 every rpmsg address in the system is bound to an rx callback (so when
158 inbound messages arrive, they are dispatched by the rpmsg bus using the
162 bind a callback, and possibly some private data too, to an rpmsg address
166 Simple rpmsg drivers need not call rpmsg_create_ept, because an endpoint
167 is already created for them when they are probed by the rpmsg bus
168 (using the rx callback they provide when they registered to the rpmsg bus).
171 endpoint, their rx callback is bound to their rpmsg address, and when
173 equals to the src address of their rpmsg channel), the driver's handler
177 additional rpmsg addresses, and bind them to different rx callbacks.
184 dynamically assign them an available rpmsg address (drivers should have
194 destroys an existing rpmsg endpoint. user should provide a pointer
195 to an rpmsg endpoint that was previously created with rpmsg_create_ept().
202 registers an rpmsg driver with the rpmsg bus. user should provide
213 unregisters an rpmsg driver from the rpmsg bus. user should provide
221 The following is a simple rpmsg driver, that sends an "hello!" message
231 #include <linux/rpmsg.h>
259 dev_info(&rpdev->dev, "rpmsg sample client driver is removed\n");
263 { .name = "rpmsg-client-sample" },
266 MODULE_DEVICE_TABLE(rpmsg, rpmsg_driver_sample_id_table);
280 in samples/rpmsg/.
282 Allocations of rpmsg channels
285 At this point we only support dynamic allocations of rpmsg channels.
291 When this feature is enabled, creation of rpmsg devices (i.e. channels)
293 remote rpmsg service by sending a name service message (which contains
294 the name and rpmsg addr of the remote service, see struct rpmsg_ns_msg).
296 This message is then handled by the rpmsg bus, which in turn dynamically
297 creates and registers an rpmsg channel (which represents the remote service).
298 If/when a relevant rpmsg driver is registered, it will be immediately probed
301 The plan is also to add static creation of rpmsg channels via the virtio