ASoC: wm8997: Add inputs for noise and mic mixers
[deliverable/linux.git] / arch / mips / include / asm / mach-generic / spaces.h
1 /*
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
4 * for more details.
5 *
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.
9 */
10 #ifndef _ASM_MACH_GENERIC_SPACES_H
11 #define _ASM_MACH_GENERIC_SPACES_H
12
13 #include <linux/const.h>
14
15 /*
16 * This gives the physical RAM offset.
17 */
18 #ifndef PHYS_OFFSET
19 #define PHYS_OFFSET _AC(0, UL)
20 #endif
21
22 #ifdef CONFIG_32BIT
23 #ifdef CONFIG_KVM_GUEST
24 #define CAC_BASE _AC(0x40000000, UL)
25 #else
26 #define CAC_BASE _AC(0x80000000, UL)
27 #endif
28 #define IO_BASE _AC(0xa0000000, UL)
29 #define UNCAC_BASE _AC(0xa0000000, UL)
30
31 #ifndef MAP_BASE
32 #ifdef CONFIG_KVM_GUEST
33 #define MAP_BASE _AC(0x60000000, UL)
34 #else
35 #define MAP_BASE _AC(0xc0000000, UL)
36 #endif
37 #endif
38
39 /*
40 * Memory above this physical address will be considered highmem.
41 */
42 #ifndef HIGHMEM_START
43 #define HIGHMEM_START _AC(0x20000000, UL)
44 #endif
45
46 #endif /* CONFIG_32BIT */
47
48 #ifdef CONFIG_64BIT
49
50 #ifndef CAC_BASE
51 #ifdef CONFIG_DMA_NONCOHERENT
52 #define CAC_BASE _AC(0x9800000000000000, UL)
53 #else
54 #define CAC_BASE _AC(0xa800000000000000, UL)
55 #endif
56 #endif
57
58 #ifndef IO_BASE
59 #define IO_BASE _AC(0x9000000000000000, UL)
60 #endif
61
62 #ifndef UNCAC_BASE
63 #define UNCAC_BASE _AC(0x9000000000000000, UL)
64 #endif
65
66 #ifndef MAP_BASE
67 #define MAP_BASE _AC(0xc000000000000000, UL)
68 #endif
69
70 /*
71 * Memory above this physical address will be considered highmem.
72 * Fixme: 59 bits is a fictive number and makes assumptions about processors
73 * in the distant future. Nobody will care for a few years :-)
74 */
75 #ifndef HIGHMEM_START
76 #define HIGHMEM_START (_AC(1, UL) << _AC(59, UL))
77 #endif
78
79 #define TO_PHYS(x) ( ((x) & TO_PHYS_MASK))
80 #define TO_CAC(x) (CAC_BASE | ((x) & TO_PHYS_MASK))
81 #define TO_UNCAC(x) (UNCAC_BASE | ((x) & TO_PHYS_MASK))
82
83 #endif /* CONFIG_64BIT */
84
85 /*
86 * This handles the memory map.
87 */
88 #ifndef PAGE_OFFSET
89 #define PAGE_OFFSET (CAC_BASE + PHYS_OFFSET)
90 #endif
91
92 #ifndef FIXADDR_TOP
93 #define FIXADDR_TOP ((unsigned long)(long)(int)0xfffe0000)
94 #endif
95
96 #endif /* __ASM_MACH_GENERIC_SPACES_H */
This page took 0.035887 seconds and 5 git commands to generate.