blob: f7c3a0905de4fe94d7dfe655a80830db943ad1fb [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_FIXMAP_H
3#define _ASM_FIXMAP_H
4
5/*
6 * This file defines the locations of the fixed mappings on parisc.
7 *
8 * All of the values in this file are machine virtual addresses.
9 *
10 * All of the values in this file must be <4GB (because of assembly
11 * loading restrictions). If you place this region anywhere above
12 * __PAGE_OFFSET, you must adjust the memory map accordingly */
13
14/* The alias region is used in kernel space to do copy/clear to or
15 * from areas congruently mapped with user space. It is 8MB large
16 * and must be 16MB aligned */
17#define TMPALIAS_MAP_START ((__PAGE_OFFSET) - 16*1024*1024)
18/* This is the kernel area for all maps (vmalloc, dma etc.) most
19 * usually, it extends up to TMPALIAS_MAP_START. Virtual addresses
20 * 0..GATEWAY_PAGE_SIZE are reserved for the gateway page */
21#define KERNEL_MAP_START (GATEWAY_PAGE_SIZE)
22#define KERNEL_MAP_END (TMPALIAS_MAP_START)
23
24#ifndef __ASSEMBLY__
25extern void *parisc_vmalloc_start;
26#define PCXL_DMA_MAP_SIZE (8*1024*1024)
27#define VMALLOC_START ((unsigned long)parisc_vmalloc_start)
28#define VMALLOC_END (KERNEL_MAP_END)
29#endif /*__ASSEMBLY__*/
30
31#endif /*_ASM_FIXMAP_H*/