fixmap.h (8dd06ef34b6e2f41b29fbf5fc1663780f2524285) | fixmap.h (5af627a043e39d3226eecd75753dcd2c920c16ec) |
---|---|
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#include <asm/memory.h> 9#ifdef CONFIG_HIGHMEM 10#include <linux/threads.h> | 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#include <asm/memory.h> 9#ifdef CONFIG_HIGHMEM 10#include <linux/threads.h> |
11#include <asm/kmap_types.h> | 11#include <asm/kmap_size.h> |
12#endif 13 14enum fixed_addresses { 15#ifdef CONFIG_HAVE_TCM 16 FIX_TCM = TCM_NR_PAGES, 17#endif 18#ifdef CONFIG_HIGHMEM 19 FIX_KMAP_BEGIN, | 12#endif 13 14enum fixed_addresses { 15#ifdef CONFIG_HAVE_TCM 16 FIX_TCM = TCM_NR_PAGES, 17#endif 18#ifdef CONFIG_HIGHMEM 19 FIX_KMAP_BEGIN, |
20 FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * NR_CPUS) - 1, | 20 FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * NR_CPUS) - 1, |
21#endif 22 __end_of_fixed_addresses 23}; 24 25#define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT) 26#define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE) 27 28#include <asm-generic/fixmap.h> 29 30extern void fixrange_init(unsigned long start, unsigned long end, 31 pgd_t *pgd_base); 32extern void __init fixaddr_init(void); 33 34#endif /* __ASM_CSKY_FIXMAP_H */ | 21#endif 22 __end_of_fixed_addresses 23}; 24 25#define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT) 26#define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE) 27 28#include <asm-generic/fixmap.h> 29 30extern void fixrange_init(unsigned long start, unsigned long end, 31 pgd_t *pgd_base); 32extern void __init fixaddr_init(void); 33 34#endif /* __ASM_CSKY_FIXMAP_H */ |