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)
commit8cfc99b58366ea9f391fe0da7d16940ca6a1d9c0
tree8e9941de0e82da7d4f49856c6134d50173a05bab
parenteb29d8d2aad70636ea23810b4868693673d630d5
s390: add pci_iomap_range

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>
arch/s390/include/asm/pci_io.h
arch/s390/pci/pci.c