diff options
author | David Woodhouse <dwmw@amazon.co.uk> | 2017-04-12 15:25:58 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-04-20 16:47:47 +0300 |
commit | f66e225828c1b046c7db1db65b0dd2d135f6a2da (patch) | |
tree | 69056a22a4d9afcacdc99779741f65f78f0d6cc0 /arch/arm/kernel/bios32.c | |
parent | dca40b186b757c7f9a05f870f69e0dfaeca59d7b (diff) | |
download | linux-f66e225828c1b046c7db1db65b0dd2d135f6a2da.tar.xz |
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 'arch/arm/kernel/bios32.c')
-rw-r--r-- | arch/arm/kernel/bios32.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/kernel/bios32.c b/arch/arm/kernel/bios32.c index 2f0e07735d1d..a4fc3f46eeae 100644 --- a/arch/arm/kernel/bios32.c +++ b/arch/arm/kernel/bios32.c @@ -597,7 +597,8 @@ resource_size_t pcibios_align_resource(void *data, const struct resource *res, return start; } -int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, +int pci_mmap_page_range(struct pci_dev *dev, int bar, + struct vm_area_struct *vma, enum pci_mmap_state mmap_state, int write_combine) { if (mmap_state == pci_mmap_io) |