mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
virtio and vhost-rpmsg: add virtio and vhost rpmsg device support
virtio and vhost rpmsg device as standalone device registered to the virtio and vhost bus. virtio-rpmsg and vhost-rpmsg use the common virtio_rpmsg_common.c implementation in rpmsg dir. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include "virtio-net.h"
|
||||
#include "virtio-rng.h"
|
||||
#include "virtio-rpmb.h"
|
||||
#include "virtio-rpmsg.h"
|
||||
#include "virtio-serial.h"
|
||||
#include "virtio-snd.h"
|
||||
|
||||
@@ -129,6 +130,14 @@ void virtio_register_drivers(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DRIVERS_VIRTIO_RPMSG
|
||||
ret = virtio_register_rpmsg_driver();
|
||||
if (ret < 0)
|
||||
{
|
||||
vrterr("virtio_register_rpmsg_driver failed, ret=%d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DRIVERS_VIRTIO_SERIAL
|
||||
ret = virtio_register_serial_driver();
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user