diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2017-04-12 13:26:08 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-04-20 08:47:47 -0500 |
commit | 2bea36fd1af440e1853e431459a0bf929266cd52 (patch) | |
tree | 00c651b65d825c50f397cefb8aab7922b727d8f9 /include/linux/pci.h | |
parent | 5c2d5ce2ab4bd716b2125f15b2e0879143ac0563 (diff) | |
download | op-kernel-dev-2bea36fd1af440e1853e431459a0bf929266cd52.zip op-kernel-dev-2bea36fd1af440e1853e431459a0bf929266cd52.tar.gz |
PCI: Add I/O BAR support to generic pci_mmap_resource_range()
This will need to call into an arch-provided pci_iobar_pfn() function.
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 98a72ab..9f30244 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1648,8 +1648,12 @@ int pci_mmap_page_range(struct pci_dev *pdev, int bar, #ifndef arch_can_pci_mmap_wc #define arch_can_pci_mmap_wc() 0 #endif + #ifndef arch_can_pci_mmap_io #define arch_can_pci_mmap_io() 0 +#define pci_iobar_pfn(pdev, bar, vma) (-EINVAL) +#else +int pci_iobar_pfn(struct pci_dev *pdev, int bar, struct vm_area_struct *vma); #endif #ifndef pci_root_bus_fwnode |