aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/kernel/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/parisc/kernel/pci.c')
-rw-r--r--arch/parisc/kernel/pci.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/parisc/kernel/pci.c b/arch/parisc/kernel/pci.c
index 0903c6abd7a4..13ee3569959a 100644
--- a/arch/parisc/kernel/pci.c
+++ b/arch/parisc/kernel/pci.c
@@ -227,34 +227,6 @@ resource_size_t pcibios_align_resource(void *data, const struct resource *res,
227 return start; 227 return start;
228} 228}
229 229
230
231int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
232 enum pci_mmap_state mmap_state, int write_combine)
233{
234 unsigned long prot;
235
236 /*
237 * I/O space can be accessed via normal processor loads and stores on
238 * this platform but for now we elect not to do this and portable
239 * drivers should not do this anyway.
240 */
241 if (mmap_state == pci_mmap_io)
242 return -EINVAL;
243
244 if (write_combine)
245 return -EINVAL;
246
247 /*
248 * Ignore write-combine; for now only return uncached mappings.
249 */
250 prot = pgprot_val(vma->vm_page_prot);
251 prot |= _PAGE_NO_CACHE;
252 vma->vm_page_prot = __pgprot(prot);
253
254 return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff,
255 vma->vm_end - vma->vm_start, vma->vm_page_prot);
256}
257
258/* 230/*
259 * A driver is enabling the device. We make sure that all the appropriate 231 * A driver is enabling the device. We make sure that all the appropriate
260 * bits are set to allow the device to operate as the driver is expecting. 232 * bits are set to allow the device to operate as the driver is expecting.