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_CACHE_MASK (PMB_C | PMB_WT | PMB_UB)
29 #define PMB_V 0x00000100
31 #define PMB_NO_ENTRY (-1)
34 #include <linux/errno.h>
35 #include <linux/threads.h>
37 /* Default "unsigned long" context */
38 typedef unsigned long mm_context_id_t
[NR_CPUS
];
45 unsigned long end_brk
;
47 #ifdef CONFIG_BINFMT_ELF_FDPIC
48 unsigned long exec_fdpic_loadmap
;
49 unsigned long interp_fdpic_loadmap
;
61 * 0 .. NR_PMB_ENTRIES for specific entry selection, or
62 * PMB_NO_ENTRY to search for a free one
66 struct pmb_entry
*next
;
67 /* Adjacent entry link for contiguous multi-entry mappings */
68 struct pmb_entry
*link
;
72 /* arch/sh/mm/pmb.c */
73 long pmb_remap(unsigned long virt
, unsigned long phys
,
74 unsigned long size
, unsigned long flags
);
75 void pmb_unmap(unsigned long addr
);
77 bool __in_29bit_mode(void);
79 static inline long pmb_remap(unsigned long virt
, unsigned long phys
,
80 unsigned long size
, unsigned long flags
)
85 static inline void pmb_unmap(unsigned long addr
)
89 static inline int pmb_init(void)
95 #define __in_29bit_mode() (1)
97 #define __in_29bit_mode() (0)
100 #endif /* CONFIG_PMB */
101 #endif /* __ASSEMBLY__ */