1
2 #ifndef _ASM_FIXMAP_H
3 #define _ASM_FIXMAP_H
4
5
6
7
8
9
10
11
12
13
14
15
16
17 #define TMPALIAS_MAP_START ((__PAGE_OFFSET) - 16*1024*1024)
18
19 #define FIXMAP_SIZE (FIX_BITMAP_COUNT << PAGE_SHIFT)
20 #define FIXMAP_START (TMPALIAS_MAP_START - FIXMAP_SIZE)
21
22
23
24 #define KERNEL_MAP_START (GATEWAY_PAGE_SIZE)
25 #define KERNEL_MAP_END (FIXMAP_START)
26
27 #ifndef __ASSEMBLY__
28
29
30 enum fixed_addresses {
31
32 FIX_TEXT_POKE0,
33 FIX_TEXT_KEXEC,
34 FIX_BITMAP_COUNT
35 };
36
37 extern void *parisc_vmalloc_start;
38 #define PCXL_DMA_MAP_SIZE (8*1024*1024)
39 #define VMALLOC_START ((unsigned long)parisc_vmalloc_start)
40 #define VMALLOC_END (KERNEL_MAP_END)
41
42 #define __fix_to_virt(_x) (FIXMAP_START + ((_x) << PAGE_SHIFT))
43
44 void set_fixmap(enum fixed_addresses idx, phys_addr_t phys);
45 void clear_fixmap(enum fixed_addresses idx);
46
47 #endif
48
49 #endif