]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio: Add platform bus driver for memory mapped virtio device
authorPawel Moll <pawel.moll@arm.com>
Mon, 24 Oct 2011 13:07:03 +0000 (14:07 +0100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 1 Nov 2011 00:15:28 +0000 (11:15 +1100)
commit6279af17d31d62ffa09a567aacdd23363e96f00c
treedb134c7c32cdef90f7cf66b666e04c05b4ad8b9c
parent20a5558666ad9d8bf4310872fdb4313856d63fc7
virtio: Add platform bus driver for memory mapped virtio device

This patch, based on virtio PCI driver, adds support for memory
mapped (platform) virtio device. This should allow environments
like qemu to use virtio-based block & network devices even on
platforms without PCI support.

One can define and register a platform device which resources
will describe memory mapped control registers and "mailbox"
interrupt. Such device can be also instantiated using the Device
Tree node with compatible property equal "virtio,mmio".

Cc: Anthony Liguori <aliguori@us.ibm.com>
Cc: Michael S.Tsirkin <mst@redhat.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Documentation/devicetree/bindings/virtio/mmio.txt [new file with mode: 0644]
drivers/virtio/Kconfig
drivers/virtio/Makefile
drivers/virtio/virtio_mmio.c [new file with mode: 0644]
include/linux/virtio_mmio.h [new file with mode: 0644]