xref: /openbmc/linux/arch/csky/include/asm/fixmap.h (revision 704cfd7f)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
3 
4 #ifndef __ASM_CSKY_FIXMAP_H
5 #define __ASM_CSKY_FIXMAP_H
6 
7 #include <asm/page.h>
8 #ifdef CONFIG_HIGHMEM
9 #include <linux/threads.h>
10 #include <asm/kmap_types.h>
11 #endif
12 
13 enum fixed_addresses {
14 #ifdef CONFIG_HIGHMEM
15 	FIX_KMAP_BEGIN,
16 	FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * NR_CPUS) - 1,
17 #endif
18 	__end_of_fixed_addresses
19 };
20 
21 #define FIXADDR_TOP	0xffffc000
22 #define FIXADDR_SIZE	(__end_of_fixed_addresses << PAGE_SHIFT)
23 #define FIXADDR_START	(FIXADDR_TOP - FIXADDR_SIZE)
24 
25 #include <asm-generic/fixmap.h>
26 
27 #endif /* __ASM_CSKY_FIXMAP_H */
28