diff options
Diffstat (limited to 'include/asm-mips/pgtable.h')
-rw-r--r-- | include/asm-mips/pgtable.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h index dbe13da0bdad..cbd1672c94cb 100644 --- a/include/asm-mips/pgtable.h +++ b/include/asm-mips/pgtable.h | |||
@@ -358,16 +358,6 @@ static inline void update_mmu_cache(struct vm_area_struct *vma, | |||
358 | extern phys_t fixup_bigphys_addr(phys_t phys_addr, phys_t size); | 358 | extern phys_t fixup_bigphys_addr(phys_t phys_addr, phys_t size); |
359 | extern int remap_pfn_range(struct vm_area_struct *vma, unsigned long from, unsigned long pfn, unsigned long size, pgprot_t prot); | 359 | extern int remap_pfn_range(struct vm_area_struct *vma, unsigned long from, unsigned long pfn, unsigned long size, pgprot_t prot); |
360 | 360 | ||
361 | static inline int io_remap_page_range(struct vm_area_struct *vma, | ||
362 | unsigned long vaddr, | ||
363 | unsigned long paddr, | ||
364 | unsigned long size, | ||
365 | pgprot_t prot) | ||
366 | { | ||
367 | phys_t phys_addr_high = fixup_bigphys_addr(paddr, size); | ||
368 | return remap_pfn_range(vma, vaddr, phys_addr_high >> PAGE_SHIFT, size, prot); | ||
369 | } | ||
370 | |||
371 | static inline int io_remap_pfn_range(struct vm_area_struct *vma, | 361 | static inline int io_remap_pfn_range(struct vm_area_struct *vma, |
372 | unsigned long vaddr, | 362 | unsigned long vaddr, |
373 | unsigned long pfn, | 363 | unsigned long pfn, |
@@ -378,8 +368,6 @@ static inline int io_remap_pfn_range(struct vm_area_struct *vma, | |||
378 | return remap_pfn_range(vma, vaddr, pfn, size, prot); | 368 | return remap_pfn_range(vma, vaddr, pfn, size, prot); |
379 | } | 369 | } |
380 | #else | 370 | #else |
381 | #define io_remap_page_range(vma, vaddr, paddr, size, prot) \ | ||
382 | remap_pfn_range(vma, vaddr, (paddr) >> PAGE_SHIFT, size, prot) | ||
383 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ | 371 | #define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ |
384 | remap_pfn_range(vma, vaddr, pfn, size, prot) | 372 | remap_pfn_range(vma, vaddr, pfn, size, prot) |
385 | #endif | 373 | #endif |