1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef __ASM_CSKY_FIXMAP_H
4 #define __ASM_CSKY_FIXMAP_H
7 #include <asm/memory.h>
9 #include <linux/threads.h>
10 #include <asm/kmap_size.h>
13 enum fixed_addresses
{
14 #ifdef CONFIG_HAVE_TCM
15 FIX_TCM
= TCM_NR_PAGES
,
19 FIX_KMAP_END
= FIX_KMAP_BEGIN
+ (KM_MAX_IDX
* NR_CPUS
) - 1,
21 __end_of_fixed_addresses
24 #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
25 #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
27 #include <asm-generic/fixmap.h>
29 extern void fixrange_init(unsigned long start
, unsigned long end
,
31 extern void __init
fixaddr_init(void);
33 #endif /* __ASM_CSKY_FIXMAP_H */