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>
Showing
- Documentation/filesystems/sysfs-pci.txt 7 additions, 3 deletionsDocumentation/filesystems/sysfs-pci.txt
- arch/arm64/include/asm/pci.h 2 additions, 0 deletionsarch/arm64/include/asm/pci.h
- drivers/pci/Makefile 1 addition, 1 deletiondrivers/pci/Makefile
- drivers/pci/mmap.c 95 additions, 0 deletionsdrivers/pci/mmap.c
- drivers/pci/pci-sysfs.c 3 additions, 10 deletionsdrivers/pci/pci-sysfs.c
- drivers/pci/pci.h 2 additions, 2 deletionsdrivers/pci/pci.h
- include/linux/pci.h 15 additions, 4 deletionsinclude/linux/pci.h
Loading
Please register or sign in to comment