summaryrefslogtreecommitdiffstats
path: root/arch/s390/include
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2013-05-29 11:52:21 +0930
committerRusty Russell <rusty@rustcorp.com.au>2015-01-21 16:28:49 +1030
commit8cfc99b58366ea9f391fe0da7d16940ca6a1d9c0 (patch)
tree8e9941de0e82da7d4f49856c6134d50173a05bab /arch/s390/include
parenteb29d8d2aad70636ea23810b4868693673d630d5 (diff)
downloadblackbird-op-linux-8cfc99b58366ea9f391fe0da7d16940ca6a1d9c0.tar.gz
blackbird-op-linux-8cfc99b58366ea9f391fe0da7d16940ca6a1d9c0.zip
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>
Diffstat (limited to 'arch/s390/include')
-rw-r--r--arch/s390/include/asm/pci_io.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/include/asm/pci_io.h b/arch/s390/include/asm/pci_io.h
index f664e96f48c7..1a9a98de5bde 100644
--- a/arch/s390/include/asm/pci_io.h
+++ b/arch/s390/include/asm/pci_io.h
@@ -16,6 +16,7 @@
struct zpci_iomap_entry {
u32 fh;
u8 bar;
+ u16 count;
};
extern struct zpci_iomap_entry *zpci_iomap_start;
OpenPOWER on IntegriCloud