/*1* fixmap.h: compile-time virtual memory allocation2*3* This file is subject to the terms and conditions of the GNU General Public4* License. See the file "COPYING" in the main directory of this archive5* for more details.6*7* Copyright (C) 1998 Ingo Molnar8*9* Support of BIGMEM added by Gerhard Wichert, Siemens AG, July 199910*/1112#ifndef _ASM_FIXMAP_H13#define _ASM_FIXMAP_H1415#ifdef CONFIG_HIGHMEM16#include <linux/threads.h>17#include <linux/pgtable.h>18#include <asm/kmap_size.h>1920/* The map slots for temporary mappings via kmap_atomic/local(). */21enum fixed_addresses {22FIX_KMAP_BEGIN,23FIX_KMAP_END = FIX_KMAP_BEGIN +24(KM_MAX_IDX * NR_CPUS * DCACHE_N_COLORS) - 1,25__end_of_fixed_addresses26};2728#define FIXADDR_END (XCHAL_KSEG_CACHED_VADDR - PAGE_SIZE)29#define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)30/* Enforce that FIXADDR_START is PMD aligned to handle cache aliasing */31#define FIXADDR_START ((FIXADDR_END - FIXADDR_SIZE) & PMD_MASK)32#define FIXADDR_TOP (FIXADDR_START + FIXADDR_SIZE - PAGE_SIZE)3334#include <asm-generic/fixmap.h>3536#endif /* CONFIG_HIGHMEM */37#endif383940