]> Pileus Git - ~andy/linux/blob - arch/sparc/include/asm/fixmap.h
sparc32: fixmap.h cleanup
[~andy/linux] / arch / sparc / include / asm / fixmap.h
1 /* Highmem related constants */
2
3 #ifndef _ASM_FIXMAP_H
4 #define _ASM_FIXMAP_H
5
6 #include <asm/kmap_types.h>
7
8 enum fixed_addresses {
9         FIX_HOLE,
10 #ifdef CONFIG_HIGHMEM
11         FIX_KMAP_BEGIN,
12         FIX_KMAP_END = (KM_TYPE_NR * NR_CPUS),
13 #endif
14         __end_of_fixed_addresses
15 };
16
17 /* Leave one empty page between IO pages at 0xfd000000 and
18  * the top of the fixmap.
19  */
20 #define FIXADDR_TOP     (0xfcfff000UL)
21 #define FIXADDR_SIZE    ((FIX_KMAP_END + 1) << PAGE_SHIFT)
22 #define FIXADDR_START   (FIXADDR_TOP - FIXADDR_SIZE)
23
24 #define __fix_to_virt(x)        (FIXADDR_TOP - ((x) << PAGE_SHIFT))
25
26 #endif