s390: add pci_iomap_range
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 29 May 2013 02:22:21 +0000 (11:52 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 21 Jan 2015 05:58:49 +0000 (16:28 +1030)
Virtio drivers should map the part of the range they need, not
necessarily all of it.
To this end, support mapping ranges within BAR on s390.
Since multiple ranges can now be mapped within a BAR, we keep track of
the number of mappings created, and only clear out the mapping for a BAR
when this number reaches 0.

Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org
Tested-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>

No differences found