summaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw@amazon.co.uk>2017-04-12 08:25:58 -0400
committerBjorn Helgaas <bhelgaas@google.com>2017-04-20 09:47:47 -0400
commitf66e225828c1b046c7db1db65b0dd2d135f6a2da (patch)
tree69056a22a4d9afcacdc99779741f65f78f0d6cc0 /include/linux/pci.h
parentdca40b186b757c7f9a05f870f69e0dfaeca59d7b (diff)
PCI: Add BAR index argument to pci_mmap_page_range()
In all cases we know which BAR it is. Passing it in means that arch code (or generic code; watch this space) won't have to go looking for it again. 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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 590cfcf6acf5..7173a677d6dd 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1630,7 +1630,8 @@ static inline int pci_get_new_domain_nr(void) { return -ENOSYS; }
1630 * Architectures provide this function if they set HAVE_PCI_MMAP, and 1630 * Architectures provide this function if they set HAVE_PCI_MMAP, and
1631 * it accepts the 'write_combine' argument when arch_can_pci_mmap_wc() 1631 * it accepts the 'write_combine' argument when arch_can_pci_mmap_wc()
1632 * evaluates to nonzero. */ 1632 * evaluates to nonzero. */
1633int pci_mmap_page_range(struct pci_dev *pdev, struct vm_area_struct *vma, 1633int pci_mmap_page_range(struct pci_dev *pdev, int bar,
1634 struct vm_area_struct *vma,
1634 enum pci_mmap_state mmap_state, int write_combine); 1635 enum pci_mmap_state mmap_state, int write_combine);
1635 1636
1636#ifndef arch_can_pci_mmap_wc 1637#ifndef arch_can_pci_mmap_wc