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:
Bowen Wang
2024-07-22 22:41:09 +08:00
committed by GUIDINGLI
parent 6003369ceb
commit 4ded8df3d5
12 changed files with 272 additions and 0 deletions
+9
View File
@@ -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)