
24 Oct
2018
24 Oct
'18
7:31 p.m.
This adds a transport driver that implements UCLASS_VIRTIO for virtio over pci, which is commonly used on x86.
It only supports the legacy interface of the pci transport, which is the default device that QEMU emulates.
Signed-off-by: Bin Meng bmeng.cn@gmail.com Reviewed-by: Simon Glass sjg@chromium.org ---
Changes in v3: None Changes in v2: None
drivers/virtio/Kconfig | 8 + drivers/virtio/Makefile | 1 + drivers/virtio/virtio_pci.c | 421 ++++++++++++++++++++++++++++++++++++++++++++ drivers/virtio/virtio_pci.h | 173 ++++++++++++++++++ 4 files changed, 603 insertions(+) create mode 100644 drivers/virtio/virtio_pci.c create mode 100644 drivers/virtio/virtio_pci.h
Applied to u-boot-dm/next, thanks!