vitrio-pci.c: add virtio-pci transport support for Nuttx

1. only support pci modern device;
2. need the pci controller support MSI/MSI-X;
It has been verified based on virtio-rng and virtio-net.

Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
This commit is contained in:
wangyongrong
2024-03-25 11:11:33 +08:00
committed by Xiang Xiao
parent fab9369093
commit 877e462990
6 changed files with 1155 additions and 0 deletions
+4
View File
@@ -22,6 +22,10 @@ config DRIVERS_VIRTIO_MMIO_QUEUE_LEN
If this value equals to 0, use the max queue length get from
mmio register.
config DRIVERS_VIRTIO_PCI
bool "Virtio PCI Device Support"
default n
config DRIVERS_VIRTIO_BLK
bool "Virtio block support"
depends on !DISABLE_MOUNTPOINT