pgtable.h (34adb28d500e644cc260da4ceb66ba6dc0beaf93) | pgtable.h (15d45cce3a0e0716fa49c768f887c6406dfb91f7) |
---|---|
1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 2003 Ralf Baechle 7 */ 8#ifndef _ASM_PGTABLE_H --- 414 unchanged lines hidden (view full) --- 423extern int remap_pfn_range(struct vm_area_struct *vma, unsigned long from, unsigned long pfn, unsigned long size, pgprot_t prot); 424 425static inline int io_remap_pfn_range(struct vm_area_struct *vma, 426 unsigned long vaddr, 427 unsigned long pfn, 428 unsigned long size, 429 pgprot_t prot) 430{ | 1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 2003 Ralf Baechle 7 */ 8#ifndef _ASM_PGTABLE_H --- 414 unchanged lines hidden (view full) --- 423extern int remap_pfn_range(struct vm_area_struct *vma, unsigned long from, unsigned long pfn, unsigned long size, pgprot_t prot); 424 425static inline int io_remap_pfn_range(struct vm_area_struct *vma, 426 unsigned long vaddr, 427 unsigned long pfn, 428 unsigned long size, 429 pgprot_t prot) 430{ |
431 phys_t phys_addr_high = fixup_bigphys_addr(pfn << PAGE_SHIFT, size); | 431 phys_addr_t phys_addr_high = fixup_bigphys_addr(pfn << PAGE_SHIFT, size); |
432 return remap_pfn_range(vma, vaddr, phys_addr_high >> PAGE_SHIFT, size, prot); 433} 434#define io_remap_pfn_range io_remap_pfn_range 435#endif 436 437#ifdef CONFIG_TRANSPARENT_HUGEPAGE 438 439extern int has_transparent_hugepage(void); --- 176 unchanged lines hidden --- | 432 return remap_pfn_range(vma, vaddr, phys_addr_high >> PAGE_SHIFT, size, prot); 433} 434#define io_remap_pfn_range io_remap_pfn_range 435#endif 436 437#ifdef CONFIG_TRANSPARENT_HUGEPAGE 438 439extern int has_transparent_hugepage(void); --- 176 unchanged lines hidden --- |