2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 1994 - 1999, 2000, 03, 04 Ralf Baechle
7 * Copyright (C) 2000, 2002 Maciej W. Rozycki
8 * Copyright (C) 1990, 1999, 2000 Silicon Graphics, Inc.
10 #ifndef _ASM_MACH_GENERIC_SPACES_H
11 #define _ASM_MACH_GENERIC_SPACES_H
13 #include <linux/const.h>
17 #define CAC_BASE _AC(0x80000000, UL)
18 #define IO_BASE _AC(0xa0000000, UL)
19 #define UNCAC_BASE _AC(0xa0000000, UL)
22 #define MAP_BASE _AC(0xc0000000, UL)
26 * Memory above this physical address will be considered highmem.
29 #define HIGHMEM_START _AC(0x20000000, UL)
32 #endif /* CONFIG_32BIT */
37 #ifdef CONFIG_DMA_NONCOHERENT
38 #define CAC_BASE _AC(0x9800000000000000, UL)
40 #define CAC_BASE _AC(0xa800000000000000, UL)
45 #define IO_BASE _AC(0x9000000000000000, UL)
49 #define UNCAC_BASE _AC(0x9000000000000000, UL)
53 #define MAP_BASE _AC(0xc000000000000000, UL)
57 * Memory above this physical address will be considered highmem.
58 * Fixme: 59 bits is a fictive number and makes assumptions about processors
59 * in the distant future. Nobody will care for a few years :-)
62 #define HIGHMEM_START (_AC(1, UL) << _AC(59, UL))
65 #define TO_PHYS(x) ( ((x) & TO_PHYS_MASK))
66 #define TO_CAC(x) (CAC_BASE | ((x) & TO_PHYS_MASK))
67 #define TO_UNCAC(x) (UNCAC_BASE | ((x) & TO_PHYS_MASK))
69 #endif /* CONFIG_64BIT */
72 * This handles the memory map.
75 #define PAGE_OFFSET (CAC_BASE + PHYS_OFFSET)
78 #endif /* __ASM_MACH_GENERIC_SPACES_H */