diff options
Diffstat (limited to 'include/asm-sh/mmu.h')
-rw-r--r-- | include/asm-sh/mmu.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/asm-sh/mmu.h b/include/asm-sh/mmu.h index 91c884634276..ec09589fa6ca 100644 --- a/include/asm-sh/mmu.h +++ b/include/asm-sh/mmu.h | |||
@@ -50,6 +50,8 @@ typedef unsigned long mm_context_t; | |||
50 | 50 | ||
51 | #define PMB_NO_ENTRY (-1) | 51 | #define PMB_NO_ENTRY (-1) |
52 | 52 | ||
53 | struct pmb_entry; | ||
54 | |||
53 | struct pmb_entry { | 55 | struct pmb_entry { |
54 | unsigned long vpn; | 56 | unsigned long vpn; |
55 | unsigned long ppn; | 57 | unsigned long ppn; |
@@ -60,16 +62,23 @@ struct pmb_entry { | |||
60 | * PMB_NO_ENTRY to search for a free one | 62 | * PMB_NO_ENTRY to search for a free one |
61 | */ | 63 | */ |
62 | int entry; | 64 | int entry; |
65 | |||
66 | struct pmb_entry *next; | ||
67 | /* Adjacent entry link for contiguous multi-entry mappings */ | ||
68 | struct pmb_entry *link; | ||
63 | }; | 69 | }; |
64 | 70 | ||
65 | /* arch/sh/mm/pmb.c */ | 71 | /* arch/sh/mm/pmb.c */ |
66 | int __set_pmb_entry(unsigned long vpn, unsigned long ppn, | 72 | int __set_pmb_entry(unsigned long vpn, unsigned long ppn, |
67 | unsigned long flags, int *entry); | 73 | unsigned long flags, int *entry); |
68 | void set_pmb_entry(struct pmb_entry *pmbe); | 74 | int set_pmb_entry(struct pmb_entry *pmbe); |
69 | void clear_pmb_entry(struct pmb_entry *pmbe); | 75 | void clear_pmb_entry(struct pmb_entry *pmbe); |
70 | struct pmb_entry *pmb_alloc(unsigned long vpn, unsigned long ppn, | 76 | struct pmb_entry *pmb_alloc(unsigned long vpn, unsigned long ppn, |
71 | unsigned long flags); | 77 | unsigned long flags); |
72 | void pmb_free(struct pmb_entry *pmbe); | 78 | void pmb_free(struct pmb_entry *pmbe); |
79 | long pmb_remap(unsigned long virt, unsigned long phys, | ||
80 | unsigned long size, unsigned long flags); | ||
81 | void pmb_unmap(unsigned long addr); | ||
73 | 82 | ||
74 | #endif /* __MMU_H */ | 83 | #endif /* __MMU_H */ |
75 | 84 | ||