arm: fixmap: implement __set_fixmap()
[firefly-linux-kernel-4.4.55.git] / arch / arm / include / asm / fixmap.h
1 #ifndef _ASM_FIXMAP_H
2 #define _ASM_FIXMAP_H
3
4 #define FIXADDR_START           0xffc00000UL
5 #define FIXADDR_END             0xfff00000UL
6 #define FIXADDR_TOP             (FIXADDR_END - PAGE_SIZE)
7
8 #include <asm/kmap_types.h>
9
10 enum fixed_addresses {
11         FIX_KMAP_BEGIN,
12         FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * NR_CPUS) - 1,
13
14         __end_of_fixed_addresses
15 };
16
17 void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot);
18
19 #include <asm-generic/fixmap.h>
20
21 #endif