virtio: Add virtio over mmio transport driver
authorBin Meng <bmeng.cn@gmail.com>
Mon, 15 Oct 2018 09:21:02 +0000 (02:21 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:27 +0000 (09:16 -0800)
commitfdc4aca89ecb928d893c8bca4d0de08ebd07686a
tree3853eb8e49af4ca8f18eac28ff2a60bd01ec1fdd
parentc011641ec4fcb61d1335f61b413117c1b7d83e5e
virtio: Add virtio over mmio transport driver

VirtIO can use various different buses and virtio devices are
commonly implemented as PCI devices. But virtual environments
without PCI support (a common situation in embedded devices
models) might use simple memory mapped device (“virtio-mmio”)
instead of the PCI device.

This adds a transport driver that implements UCLASS_VIRTIO for
virtio over mmio.

Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/virtio/Kconfig
drivers/virtio/Makefile
drivers/virtio/virtio_mmio.c [new file with mode: 0644]
drivers/virtio/virtio_mmio.h [new file with mode: 0644]