5 * Privileged Space Mapping Buffer (PMB) definitions
7 #define PMB_PASCR 0xff000070
8 #define PMB_IRMCR 0xff000078
10 #define PASCR_SE 0x80000000
12 #define PMB_ADDR 0xf6100000
13 #define PMB_DATA 0xf7100000
15 #define NR_PMB_ENTRIES 16
17 #define PMB_E_MASK 0x0000000f
20 #define PMB_PFN_MASK 0xff000000
22 #define PMB_SZ_16M 0x00000000
23 #define PMB_SZ_64M 0x00000010
24 #define PMB_SZ_128M 0x00000080
25 #define PMB_SZ_512M 0x00000090
26 #define PMB_SZ_MASK PMB_SZ_512M
27 #define PMB_C 0x00000008
28 #define PMB_WT 0x00000001
29 #define PMB_UB 0x00000200
30 #define PMB_CACHE_MASK (PMB_C | PMB_WT | PMB_UB)
31 #define PMB_V 0x00000100
33 #define PMB_NO_ENTRY (-1)
36 #include <linux/errno.h>
37 #include <linux/threads.h>
40 /* Default "unsigned long" context */
41 typedef unsigned long mm_context_id_t[NR_CPUS];
48 unsigned long end_brk;
50 #ifdef CONFIG_BINFMT_ELF_FDPIC
51 unsigned long exec_fdpic_loadmap;
52 unsigned long interp_fdpic_loadmap;
64 * 0 .. NR_PMB_ENTRIES for specific entry selection, or
65 * PMB_NO_ENTRY to search for a free one
69 struct pmb_entry *next;
70 /* Adjacent entry link for contiguous multi-entry mappings */
71 struct pmb_entry *link;
75 /* arch/sh/mm/pmb.c */
76 long pmb_remap(unsigned long virt, unsigned long phys,
77 unsigned long size, pgprot_t prot);
78 void pmb_unmap(unsigned long addr);
80 bool __in_29bit_mode(void);
82 static inline long pmb_remap(unsigned long virt, unsigned long phys,
83 unsigned long size, pgprot_t prot)
88 static inline void pmb_unmap(unsigned long addr)
92 static inline int pmb_init(void)
98 #define __in_29bit_mode() (1)
100 #define __in_29bit_mode() (0)
103 #endif /* CONFIG_PMB */
104 #endif /* __ASSEMBLY__ */