0001
0002
0003 #ifndef __ASM_CSKY_FIXMAP_H
0004 #define __ASM_CSKY_FIXMAP_H
0005
0006 #include <asm/page.h>
0007 #include <asm/memory.h>
0008 #ifdef CONFIG_HIGHMEM
0009 #include <linux/threads.h>
0010 #include <asm/kmap_size.h>
0011 #endif
0012
0013 enum fixed_addresses {
0014 #ifdef CONFIG_HAVE_TCM
0015 FIX_TCM = TCM_NR_PAGES,
0016 #endif
0017 #ifdef CONFIG_HIGHMEM
0018 FIX_KMAP_BEGIN,
0019 FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * NR_CPUS) - 1,
0020 #endif
0021 __end_of_fixed_addresses
0022 };
0023
0024 #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
0025 #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
0026
0027 #include <asm-generic/fixmap.h>
0028
0029 extern void fixrange_init(unsigned long start, unsigned long end,
0030 pgd_t *pgd_base);
0031 extern void __init fixaddr_init(void);
0032
0033 #endif