diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mips/mach-generic/spaces.h | 18 | ||||
-rw-r--r-- | include/asm-mips/mach-ip22/spaces.h | 33 | ||||
-rw-r--r-- | include/asm-mips/mach-ip27/spaces.h | 9 | ||||
-rw-r--r-- | include/asm-mips/mach-ip32/spaces.h | 36 |
4 files changed, 23 insertions, 73 deletions
diff --git a/include/asm-mips/mach-generic/spaces.h b/include/asm-mips/mach-generic/spaces.h index 0ae9997bc9a8..9a3c521047b8 100644 --- a/include/asm-mips/mach-generic/spaces.h +++ b/include/asm-mips/mach-generic/spaces.h | |||
@@ -16,13 +16,18 @@ | |||
16 | #define CAC_BASE 0x80000000 | 16 | #define CAC_BASE 0x80000000 |
17 | #define IO_BASE 0xa0000000 | 17 | #define IO_BASE 0xa0000000 |
18 | #define UNCAC_BASE 0xa0000000 | 18 | #define UNCAC_BASE 0xa0000000 |
19 | |||
20 | #ifndef MAP_BASE | ||
19 | #define MAP_BASE 0xc0000000 | 21 | #define MAP_BASE 0xc0000000 |
22 | #endif | ||
20 | 23 | ||
21 | /* | 24 | /* |
22 | * This handles the memory map. | 25 | * This handles the memory map. |
23 | * We handle pages at KSEG0 for kernels with 32 bit address space. | 26 | * We handle pages at KSEG0 for kernels with 32 bit address space. |
24 | */ | 27 | */ |
28 | #ifndef PAGE_OFFSET | ||
25 | #define PAGE_OFFSET 0x80000000UL | 29 | #define PAGE_OFFSET 0x80000000UL |
30 | #endif | ||
26 | 31 | ||
27 | /* | 32 | /* |
28 | * Memory above this physical address will be considered highmem. | 33 | * Memory above this physical address will be considered highmem. |
@@ -38,11 +43,13 @@ | |||
38 | /* | 43 | /* |
39 | * This handles the memory map. | 44 | * This handles the memory map. |
40 | */ | 45 | */ |
46 | #ifndef PAGE_OFFSET | ||
41 | #ifdef CONFIG_DMA_NONCOHERENT | 47 | #ifdef CONFIG_DMA_NONCOHERENT |
42 | #define PAGE_OFFSET 0x9800000000000000UL | 48 | #define PAGE_OFFSET 0x9800000000000000UL |
43 | #else | 49 | #else |
44 | #define PAGE_OFFSET 0xa800000000000000UL | 50 | #define PAGE_OFFSET 0xa800000000000000UL |
45 | #endif | 51 | #endif |
52 | #endif | ||
46 | 53 | ||
47 | /* | 54 | /* |
48 | * Memory above this physical address will be considered highmem. | 55 | * Memory above this physical address will be considered highmem. |
@@ -53,14 +60,25 @@ | |||
53 | #define HIGHMEM_START (1UL << 59UL) | 60 | #define HIGHMEM_START (1UL << 59UL) |
54 | #endif | 61 | #endif |
55 | 62 | ||
63 | #ifndef CAC_BASE | ||
56 | #ifdef CONFIG_DMA_NONCOHERENT | 64 | #ifdef CONFIG_DMA_NONCOHERENT |
57 | #define CAC_BASE 0x9800000000000000UL | 65 | #define CAC_BASE 0x9800000000000000UL |
58 | #else | 66 | #else |
59 | #define CAC_BASE 0xa800000000000000UL | 67 | #define CAC_BASE 0xa800000000000000UL |
60 | #endif | 68 | #endif |
69 | #endif | ||
70 | |||
71 | #ifndef IO_BASE | ||
61 | #define IO_BASE 0x9000000000000000UL | 72 | #define IO_BASE 0x9000000000000000UL |
73 | #endif | ||
74 | |||
75 | #ifndef UNCAC_BASE | ||
62 | #define UNCAC_BASE 0x9000000000000000UL | 76 | #define UNCAC_BASE 0x9000000000000000UL |
77 | #endif | ||
78 | |||
79 | #ifndef MAP_BASE | ||
63 | #define MAP_BASE 0xc000000000000000UL | 80 | #define MAP_BASE 0xc000000000000000UL |
81 | #endif | ||
64 | 82 | ||
65 | #define TO_PHYS(x) ( ((x) & TO_PHYS_MASK)) | 83 | #define TO_PHYS(x) ( ((x) & TO_PHYS_MASK)) |
66 | #define TO_CAC(x) (CAC_BASE | ((x) & TO_PHYS_MASK)) | 84 | #define TO_CAC(x) (CAC_BASE | ((x) & TO_PHYS_MASK)) |
diff --git a/include/asm-mips/mach-ip22/spaces.h b/include/asm-mips/mach-ip22/spaces.h index ab20c026fd19..7f9fa6f66059 100644 --- a/include/asm-mips/mach-ip22/spaces.h +++ b/include/asm-mips/mach-ip22/spaces.h | |||
@@ -11,44 +11,17 @@ | |||
11 | #define _ASM_MACH_IP22_SPACES_H | 11 | #define _ASM_MACH_IP22_SPACES_H |
12 | 12 | ||
13 | 13 | ||
14 | #ifdef CONFIG_32BIT | ||
15 | |||
16 | #define CAC_BASE 0x80000000 | ||
17 | #define IO_BASE 0xa0000000 | ||
18 | #define UNCAC_BASE 0xa0000000 | ||
19 | #define MAP_BASE 0xc0000000 | ||
20 | |||
21 | /* | ||
22 | * This handles the memory map. | ||
23 | * We handle pages at KSEG0 for kernels with 32 bit address space. | ||
24 | */ | ||
25 | #define PAGE_OFFSET 0x80000000UL | ||
26 | |||
27 | /* | ||
28 | * Memory above this physical address will be considered highmem. | ||
29 | */ | ||
30 | #ifndef HIGHMEM_START | ||
31 | #define HIGHMEM_START 0x20000000UL | ||
32 | #endif | ||
33 | |||
34 | #endif /* CONFIG_32BIT */ | ||
35 | |||
36 | #ifdef CONFIG_64BIT | 14 | #ifdef CONFIG_64BIT |
37 | #define PAGE_OFFSET 0xffffffff80000000UL | ||
38 | 15 | ||
39 | #ifndef HIGHMEM_START | 16 | #define PAGE_OFFSET 0xffffffff80000000UL |
40 | #define HIGHMEM_START (1UL << 59UL) | ||
41 | #endif | ||
42 | 17 | ||
43 | #define CAC_BASE 0xffffffff80000000 | 18 | #define CAC_BASE 0xffffffff80000000 |
44 | #define IO_BASE 0xffffffffa0000000 | 19 | #define IO_BASE 0xffffffffa0000000 |
45 | #define UNCAC_BASE 0xffffffffa0000000 | 20 | #define UNCAC_BASE 0xffffffffa0000000 |
46 | #define MAP_BASE 0xc000000000000000 | 21 | #define MAP_BASE 0xc000000000000000 |
47 | 22 | ||
48 | #define TO_PHYS(x) ( ((x) & TO_PHYS_MASK)) | ||
49 | #define TO_CAC(x) (CAC_BASE | ((x) & TO_PHYS_MASK)) | ||
50 | #define TO_UNCAC(x) (UNCAC_BASE | ((x) & TO_PHYS_MASK)) | ||
51 | |||
52 | #endif /* CONFIG_64BIT */ | 23 | #endif /* CONFIG_64BIT */ |
53 | 24 | ||
25 | #include <asm/mach-generic/spaces.h> | ||
26 | |||
54 | #endif /* __ASM_MACH_IP22_SPACES_H */ | 27 | #endif /* __ASM_MACH_IP22_SPACES_H */ |
diff --git a/include/asm-mips/mach-ip27/spaces.h b/include/asm-mips/mach-ip27/spaces.h index 45e61785ef42..b18802a0b17e 100644 --- a/include/asm-mips/mach-ip27/spaces.h +++ b/include/asm-mips/mach-ip27/spaces.h | |||
@@ -14,22 +14,17 @@ | |||
14 | * IP27 uses the R10000's uncached attribute feature. Attribute 3 selects | 14 | * IP27 uses the R10000's uncached attribute feature. Attribute 3 selects |
15 | * uncached memory addressing. | 15 | * uncached memory addressing. |
16 | */ | 16 | */ |
17 | #define CAC_BASE 0xa800000000000000 | ||
18 | 17 | ||
19 | #define HSPEC_BASE 0x9000000000000000 | 18 | #define HSPEC_BASE 0x9000000000000000 |
20 | #define IO_BASE 0x9200000000000000 | 19 | #define IO_BASE 0x9200000000000000 |
21 | #define MSPEC_BASE 0x9400000000000000 | 20 | #define MSPEC_BASE 0x9400000000000000 |
22 | #define UNCAC_BASE 0x9600000000000000 | 21 | #define UNCAC_BASE 0x9600000000000000 |
23 | #define MAP_BASE 0xc000000000000000 | ||
24 | 22 | ||
25 | #define TO_PHYS(x) ( ((x) & TO_PHYS_MASK)) | ||
26 | #define TO_CAC(x) (CAC_BASE | ((x) & TO_PHYS_MASK)) | ||
27 | #define TO_UNCAC(x) (UNCAC_BASE | ((x) & TO_PHYS_MASK)) | ||
28 | #define TO_MSPEC(x) (MSPEC_BASE | ((x) & TO_PHYS_MASK)) | 23 | #define TO_MSPEC(x) (MSPEC_BASE | ((x) & TO_PHYS_MASK)) |
29 | #define TO_HSPEC(x) (HSPEC_BASE | ((x) & TO_PHYS_MASK)) | 24 | #define TO_HSPEC(x) (HSPEC_BASE | ((x) & TO_PHYS_MASK)) |
30 | 25 | ||
31 | #define PAGE_OFFSET CAC_BASE | ||
32 | |||
33 | #define HIGHMEM_START (~0UL) | 26 | #define HIGHMEM_START (~0UL) |
34 | 27 | ||
28 | #include <asm/mach-generic/spaces.h> | ||
29 | |||
35 | #endif /* _ASM_MACH_IP27_SPACES_H */ | 30 | #endif /* _ASM_MACH_IP27_SPACES_H */ |
diff --git a/include/asm-mips/mach-ip32/spaces.h b/include/asm-mips/mach-ip32/spaces.h deleted file mode 100644 index 44abe5c02389..000000000000 --- a/include/asm-mips/mach-ip32/spaces.h +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
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, 05 Ralf Baechle (ralf@linux-mips.org) | ||
7 | * Copyright (C) 2000, 2002 Maciej W. Rozycki | ||
8 | * Copyright (C) 1990, 1999, 2000 Silicon Graphics, Inc. | ||
9 | */ | ||
10 | #ifndef _ASM_MACH_IP32_SPACES_H | ||
11 | #define _ASM_MACH_IP32_SPACES_H | ||
12 | |||
13 | /* | ||
14 | * Memory above this physical address will be considered highmem. | ||
15 | * Fixme: 59 bits is a fictive number and makes assumptions about processors | ||
16 | * in the distant future. Nobody will care for a few years :-) | ||
17 | */ | ||
18 | #ifndef HIGHMEM_START | ||
19 | #define HIGHMEM_START (1UL << 59UL) | ||
20 | #endif | ||
21 | |||
22 | #define CAC_BASE 0x9800000000000000UL | ||
23 | #define IO_BASE 0x9000000000000000UL | ||
24 | #define UNCAC_BASE 0x9000000000000000UL | ||
25 | #define MAP_BASE 0xc000000000000000UL | ||
26 | |||
27 | #define TO_PHYS(x) ( ((x) & TO_PHYS_MASK)) | ||
28 | #define TO_CAC(x) (CAC_BASE | ((x) & TO_PHYS_MASK)) | ||
29 | #define TO_UNCAC(x) (UNCAC_BASE | ((x) & TO_PHYS_MASK)) | ||
30 | |||
31 | /* | ||
32 | * This handles the memory map. | ||
33 | */ | ||
34 | #define PAGE_OFFSET CAC_BASE | ||
35 | |||
36 | #endif /* __ASM_MACH_IP32_SPACES_H */ | ||