1 #ifndef _ASM_POWERPC_BOOK3S_PGTABLE_H
2 #define _ASM_POWERPC_BOOK3S_PGTABLE_H
3 
4 #ifdef CONFIG_PPC64
5 #include <asm/book3s/64/pgtable.h>
6 #else
7 #include <asm/book3s/32/pgtable.h>
8 #endif
9 
10 #define FIRST_USER_ADDRESS	0UL
11 #ifndef __ASSEMBLY__
12 /* Insert a PTE, top-level function is out of line. It uses an inline
13  * low level function in the respective pgtable-* files
14  */
15 extern void set_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep,
16 		       pte_t pte);
17 
18 
19 #define __HAVE_ARCH_PTEP_SET_ACCESS_FLAGS
20 extern int ptep_set_access_flags(struct vm_area_struct *vma, unsigned long address,
21 				 pte_t *ptep, pte_t entry, int dirty);
22 
23 struct file;
24 extern pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
25 				     unsigned long size, pgprot_t vma_prot);
26 #define __HAVE_PHYS_MEM_ACCESS_PROT
27 
28 #endif /* __ASSEMBLY__ */
29 #endif
30