aboutsummaryrefslogtreecommitdiffstats
path: root/arch/csky/include/asm/fixmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/csky/include/asm/fixmap.h')
-rw-r--r--arch/csky/include/asm/fixmap.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/csky/include/asm/fixmap.h b/arch/csky/include/asm/fixmap.h
new file mode 100644
index 000000000000..380ff0a307df
--- /dev/null
+++ b/arch/csky/include/asm/fixmap.h
@@ -0,0 +1,27 @@
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
13enum 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 */