[U-Boot] [PATCH v3 27/31] virtio: pci: Support non-legacy PCI transport device
sjg at google.com
sjg at google.com
Wed Oct 24 17:31:38 UTC 2018
By default QEMU creates legacy PCI transport devices, but we can
ask QEMU to create non-legacy one if we pass additional device
property/value pairs in the command line:
-device virtio-blk-pci,disable-legacy=true,disable-modern=false
This adds a new driver driver to support non-legacy (modern) device
mode. Previous driver/file name is changed accordingly.
Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
Changes in v3: None
Changes in v2:
- fix compiler warnings in 64-bit build
- adjust virtio_pci_find_capability() to avoid walking through capability
list to find next one by ourselves
drivers/virtio/Makefile | 2 +-
.../virtio/{virtio_pci.c => virtio_pci_legacy.c} | 6 +-
drivers/virtio/virtio_pci_modern.c | 609 +++++++++++++++++++++
3 files changed, 613 insertions(+), 4 deletions(-)
rename drivers/virtio/{virtio_pci.c => virtio_pci_legacy.c} (98%)
create mode 100644 drivers/virtio/virtio_pci_modern.c
Applied to u-boot-dm/next, thanks!
More information about the U-Boot
mailing list