diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2017-04-12 13:25:55 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-04-18 13:02:11 -0500 |
commit | 11df19546fe4a6135cdae62e96a1e25b3fabf6ea (patch) | |
tree | 12f07a5a618c1fd9dcdddc918b97a00a45192489 /include/linux/pci.h | |
parent | ae749c7ab475de2c9c427058db19921c91846e89 (diff) | |
download | linux-stable-11df19546fe4a6135cdae62e96a1e25b3fabf6ea.tar.gz linux-stable-11df19546fe4a6135cdae62e96a1e25b3fabf6ea.tar.bz2 linux-stable-11df19546fe4a6135cdae62e96a1e25b3fabf6ea.zip |
PCI: Move multiple declarations of pci_mmap_page_range() to <linux/pci.h>
We can declare it <linux/pci.h> even on platforms where it isn't going to
be defined. There's no need to have it littered through the various
<asm/pci.h> files.
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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index e614fb42d8bb..e7bb4b62cc97 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1626,6 +1626,13 @@ static inline int pci_get_new_domain_nr(void) { return -ENOSYS; } #include <asm/pci.h> +/* Map a range of PCI memory or I/O space for a device into user space. + * Architectures provide this function if they set HAVE_PCI_MMAP, and + * it accepts the 'write_combine' argument when arch_can_pci_mmap_wc() + * evaluates to nonzero. */ +int pci_mmap_page_range(struct pci_dev *pdev, struct vm_area_struct *vma, + enum pci_mmap_state mmap_state, int write_combine); + #ifndef arch_can_pci_mmap_wc #define arch_can_pci_mmap_wc() 0 #endif |