PCI: Add pci_mmap_resource_range() and use it for ARM64
authorDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 12 Apr 2017 12:25:59 +0000 (13:25 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 20 Apr 2017 13:47:47 +0000 (08:47 -0500)
commitf719582435afe9c7985206e42d804ea6aa315d33
tree0f0ea2ee1adc77e1e81c1410e5569e5d6136ffb6
parentf66e225828c1b046c7db1db65b0dd2d135f6a2da
PCI: Add pci_mmap_resource_range() and use it for ARM64

Starting to leave behind the legacy of the pci_mmap_page_range() interface
which takes "user-visible" BAR addresses.  This takes just the resource and
offset.

For now, both APIs coexist and depending on the platform, one is
implemented as a wrapper around the other.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Documentation/filesystems/sysfs-pci.txt
arch/arm64/include/asm/pci.h
drivers/pci/Makefile
drivers/pci/mmap.c [new file with mode: 0644]
drivers/pci/pci-sysfs.c
drivers/pci/pci.h
include/linux/pci.h