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
14 #define PMB_ENTRY_MAX 16
15 #define PMB_E_MASK 0x0000000f
18 #define PMB_PFN_MASK 0xff000000
20 #define PMB_SZ_16M 0x00000000
21 #define PMB_SZ_64M 0x00000010
22 #define PMB_SZ_128M 0x00000080
23 #define PMB_SZ_512M 0x00000090
24 #define PMB_SZ_MASK PMB_SZ_512M
25 #define PMB_C 0x00000008
26 #define PMB_WT 0x00000001
27 #define PMB_UB 0x00000200
28 #define PMB_V 0x00000100
30 #define PMB_NO_ENTRY (-1)
34 /* Default "unsigned long" context */
35 typedef unsigned long mm_context_id_t[NR_CPUS];
42 unsigned long end_brk;
44 #ifdef CONFIG_BINFMT_ELF_FDPIC
45 unsigned long exec_fdpic_loadmap;
46 unsigned long interp_fdpic_loadmap;
58 * 0 .. NR_PMB_ENTRIES for specific entry selection, or
59 * PMB_NO_ENTRY to search for a free one
63 struct pmb_entry *next;
64 /* Adjacent entry link for contiguous multi-entry mappings */
65 struct pmb_entry *link;
68 /* arch/sh/mm/pmb.c */
69 long pmb_remap(unsigned long virt, unsigned long phys,
70 unsigned long size, unsigned long flags);
71 void pmb_unmap(unsigned long addr);
73 #endif /* __ASSEMBLY__ */