diff options
Diffstat (limited to 'arch/sh/include/asm/fixmap.h')
-rw-r--r-- | arch/sh/include/asm/fixmap.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/sh/include/asm/fixmap.h b/arch/sh/include/asm/fixmap.h index 5ac1e40a511c..38a1de866873 100644 --- a/arch/sh/include/asm/fixmap.h +++ b/arch/sh/include/asm/fixmap.h | |||
@@ -60,11 +60,20 @@ enum fixed_addresses { | |||
60 | FIX_KMAP_BEGIN, /* reserved pte's for temporary kernel mappings */ | 60 | FIX_KMAP_BEGIN, /* reserved pte's for temporary kernel mappings */ |
61 | FIX_KMAP_END = FIX_KMAP_BEGIN+(KM_TYPE_NR*NR_CPUS)-1, | 61 | FIX_KMAP_END = FIX_KMAP_BEGIN+(KM_TYPE_NR*NR_CPUS)-1, |
62 | #endif | 62 | #endif |
63 | /* | ||
64 | * FIX_IOREMAP entries are useful for mapping physical address | ||
65 | * space before ioremap() is useable, e.g. really early in boot | ||
66 | * before kmalloc() is working. | ||
67 | */ | ||
68 | #define FIX_N_IOREMAPS 32 | ||
69 | FIX_IOREMAP_BEGIN, | ||
70 | FIX_IOREMAP_END = FIX_IOREMAP_BEGIN + FIX_N_IOREMAPS, | ||
63 | __end_of_fixed_addresses | 71 | __end_of_fixed_addresses |
64 | }; | 72 | }; |
65 | 73 | ||
66 | extern void __set_fixmap(enum fixed_addresses idx, | 74 | extern void __set_fixmap(enum fixed_addresses idx, |
67 | unsigned long phys, pgprot_t flags); | 75 | unsigned long phys, pgprot_t flags); |
76 | extern void __clear_fixmap(enum fixed_addresses idx, pgprot_t flags); | ||
68 | 77 | ||
69 | #define set_fixmap(idx, phys) \ | 78 | #define set_fixmap(idx, phys) \ |
70 | __set_fixmap(idx, phys, PAGE_KERNEL) | 79 | __set_fixmap(idx, phys, PAGE_KERNEL) |