aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include
diff options
context:
space:
mode:
authorMatt Fleming <matt@console-pimps.org>2009-10-06 17:22:28 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-10-10 08:51:37 -0400
commit8386aebb9e15a94137693ea4f4df84207f71cc75 (patch)
treed290d8455eac2085f79d5c03b5b5e1f6ba222be5 /arch/sh/include
parentb336f124b1cca55c28b2c5df0e02aa5ace5be7d4 (diff)
sh: Make most PMB functions static
There's no need to export the internal PMB functions for allocating, freeing and modifying PMB entries, etc. This way we can restrict the interface for PMB. Also remove the static from pmb_init() so that we have more freedom in setting up the initial PMB entries and turning on MMU 32bit mode. Signed-off-by: Matt Fleming <matt@console-pimps.org> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include')
-rw-r--r--arch/sh/include/asm/mmu.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/sh/include/asm/mmu.h b/arch/sh/include/asm/mmu.h
index 5025e12b7864..9c84b4546c8d 100644
--- a/arch/sh/include/asm/mmu.h
+++ b/arch/sh/include/asm/mmu.h
@@ -64,16 +64,10 @@ struct pmb_entry {
64}; 64};
65 65
66/* arch/sh/mm/pmb.c */ 66/* arch/sh/mm/pmb.c */
67int __set_pmb_entry(unsigned long vpn, unsigned long ppn,
68 unsigned long flags, int *entry);
69int set_pmb_entry(struct pmb_entry *pmbe);
70void clear_pmb_entry(struct pmb_entry *pmbe);
71struct pmb_entry *pmb_alloc(unsigned long vpn, unsigned long ppn,
72 unsigned long flags);
73void pmb_free(struct pmb_entry *pmbe);
74long pmb_remap(unsigned long virt, unsigned long phys, 67long pmb_remap(unsigned long virt, unsigned long phys,
75 unsigned long size, unsigned long flags); 68 unsigned long size, unsigned long flags);
76void pmb_unmap(unsigned long addr); 69void pmb_unmap(unsigned long addr);
70int pmb_init(void);
77#endif /* __ASSEMBLY__ */ 71#endif /* __ASSEMBLY__ */
78 72
79#endif /* __MMU_H */ 73#endif /* __MMU_H */