diff options
Diffstat (limited to 'arch/mips/pci/pci.c')
-rw-r--r-- | arch/mips/pci/pci.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c index f6325fa657fb..bd67ac74fe2d 100644 --- a/arch/mips/pci/pci.c +++ b/arch/mips/pci/pci.c | |||
@@ -57,27 +57,3 @@ void pci_resource_to_user(const struct pci_dev *dev, int bar, | |||
57 | *start = fixup_bigphys_addr(rsrc->start, size); | 57 | *start = fixup_bigphys_addr(rsrc->start, size); |
58 | *end = rsrc->start + size; | 58 | *end = rsrc->start + size; |
59 | } | 59 | } |
60 | |||
61 | int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, | ||
62 | enum pci_mmap_state mmap_state, int write_combine) | ||
63 | { | ||
64 | unsigned long prot; | ||
65 | |||
66 | /* | ||
67 | * I/O space can be accessed via normal processor loads and stores on | ||
68 | * this platform but for now we elect not to do this and portable | ||
69 | * drivers should not do this anyway. | ||
70 | */ | ||
71 | if (mmap_state == pci_mmap_io) | ||
72 | return -EINVAL; | ||
73 | |||
74 | /* | ||
75 | * Ignore write-combine; for now only return uncached mappings. | ||
76 | */ | ||
77 | prot = pgprot_val(vma->vm_page_prot); | ||
78 | prot = (prot & ~_CACHE_MASK) | _CACHE_UNCACHED; | ||
79 | vma->vm_page_prot = __pgprot(prot); | ||
80 | |||
81 | return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, | ||
82 | vma->vm_end - vma->vm_start, vma->vm_page_prot); | ||
83 | } | ||