]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: Add a new uclass driver for VirtIO transport devices
authorBin Meng <bmeng.cn@gmail.com>
Mon, 15 Oct 2018 09:21:00 +0000 (02:21 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 14 Nov 2018 17:16:27 +0000 (09:16 -0800)
commit8fb49b4c7a820461db7c11dce767f36fd6395cac
tree3289c27071a293689680da11b1d9614531d7cce9
parentb1893a9e0def4052e56513bfcee0a0eb95841f7f
dm: Add a new uclass driver for VirtIO transport devices

This adds a new virtio uclass driver for “virtio” [1] family of
devices that are are found in virtual environments like QEMU,
yet by design they look like physical devices to the guest.

The uclass driver provides child_pre_probe() and child_post_probe()
methods to do some common operations for virtio device drivers like
device and driver supported feature negotiation, etc.

[1] http://docs.oasis-open.org/virtio/virtio/v1.0/virtio-v1.0.pdf

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/Kconfig
drivers/Makefile
drivers/virtio/Kconfig [new file with mode: 0644]
drivers/virtio/Makefile [new file with mode: 0644]
drivers/virtio/virtio-uclass.c [new file with mode: 0644]
include/dm/uclass-id.h
include/virtio.h [new file with mode: 0644]
include/virtio_types.h [new file with mode: 0644]