1
2
3
4
5
6 #ifndef _ASM_RISCV_FIXMAP_H
7 #define _ASM_RISCV_FIXMAP_H
8
9 #include <linux/kernel.h>
10 #include <linux/sizes.h>
11 #include <asm/page.h>
12 #include <asm/pgtable.h>
13
14
15
16
17
18
19
20
21
22 enum fixed_addresses {
23 FIX_HOLE,
24 #define FIX_FDT_SIZE SZ_1M
25 FIX_FDT_END,
26 FIX_FDT = FIX_FDT_END + FIX_FDT_SIZE / PAGE_SIZE - 1,
27 FIX_PTE,
28 FIX_PMD,
29 FIX_EARLYCON_MEM_BASE,
30 __end_of_fixed_addresses
31 };
32
33 #define FIXMAP_PAGE_IO PAGE_KERNEL
34
35 #define __early_set_fixmap __set_fixmap
36
37 #define __late_set_fixmap __set_fixmap
38 #define __late_clear_fixmap(idx) __set_fixmap((idx), 0, FIXMAP_PAGE_CLEAR)
39
40 extern void __set_fixmap(enum fixed_addresses idx,
41 phys_addr_t phys, pgprot_t prot);
42
43 #include <asm-generic/fixmap.h>
44
45 #endif