Skip to content

Commit cea7318

Browse files
committed
drivers: virtio: add VirtIO MMIO transport driver
Add virtio-mmio driver Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
1 parent e47b41c commit cea7318

File tree

3 files changed

+431
-0
lines changed

3 files changed

+431
-0
lines changed

drivers/virtio/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ zephyr_library()
55

66
zephyr_library_sources_ifdef(CONFIG_VIRTIO virtqueue.c)
77
zephyr_library_sources_ifdef(CONFIG_VIRTIO_PCI virtio_pci.c)
8+
zephyr_library_sources_ifdef(CONFIG_VIRTIO_MMIO virtio_mmio.c)

drivers/virtio/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ config VIRTIO_PCI
1515
help
1616
Enable options for VIRTIO over PCI
1717

18+
config VIRTIO_MMIO
19+
bool "support for VIRTIO over MMIO"
20+
default y
21+
depends on DT_HAS_VIRTIO_MMIO_ENABLED
22+
help
23+
Enable options for VIRTIO over MMIO
24+
1825
endif # VIRTIO
1926

2027
module = VIRTIO

0 commit comments

Comments
 (0)