diff options
Diffstat (limited to 'arch/mips/loongson/loongson-3/smp.h')
-rw-r--r-- | arch/mips/loongson/loongson-3/smp.h | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/arch/mips/loongson/loongson-3/smp.h b/arch/mips/loongson/loongson-3/smp.h index 3453e8c4f2f0..d98ff654b7d7 100644 --- a/arch/mips/loongson/loongson-3/smp.h +++ b/arch/mips/loongson/loongson-3/smp.h | |||
@@ -1,29 +1,30 @@ | |||
1 | #ifndef __LOONGSON_SMP_H_ | 1 | #ifndef __LOONGSON_SMP_H_ |
2 | #define __LOONGSON_SMP_H_ | 2 | #define __LOONGSON_SMP_H_ |
3 | 3 | ||
4 | /* for Loongson-3A smp support */ | 4 | /* for Loongson-3 smp support */ |
5 | extern unsigned long long smp_group[4]; | ||
5 | 6 | ||
6 | /* 4 groups(nodes) in maximum in numa case */ | 7 | /* 4 groups(nodes) in maximum in numa case */ |
7 | #define SMP_CORE_GROUP0_BASE 0x900000003ff01000 | 8 | #define SMP_CORE_GROUP0_BASE (smp_group[0]) |
8 | #define SMP_CORE_GROUP1_BASE 0x900010003ff01000 | 9 | #define SMP_CORE_GROUP1_BASE (smp_group[1]) |
9 | #define SMP_CORE_GROUP2_BASE 0x900020003ff01000 | 10 | #define SMP_CORE_GROUP2_BASE (smp_group[2]) |
10 | #define SMP_CORE_GROUP3_BASE 0x900030003ff01000 | 11 | #define SMP_CORE_GROUP3_BASE (smp_group[3]) |
11 | 12 | ||
12 | /* 4 cores in each group(node) */ | 13 | /* 4 cores in each group(node) */ |
13 | #define SMP_CORE0_OFFSET 0x000 | 14 | #define SMP_CORE0_OFFSET 0x000 |
14 | #define SMP_CORE1_OFFSET 0x100 | 15 | #define SMP_CORE1_OFFSET 0x100 |
15 | #define SMP_CORE2_OFFSET 0x200 | 16 | #define SMP_CORE2_OFFSET 0x200 |
16 | #define SMP_CORE3_OFFSET 0x300 | 17 | #define SMP_CORE3_OFFSET 0x300 |
17 | 18 | ||
18 | /* ipi registers offsets */ | 19 | /* ipi registers offsets */ |
19 | #define STATUS0 0x00 | 20 | #define STATUS0 0x00 |
20 | #define EN0 0x04 | 21 | #define EN0 0x04 |
21 | #define SET0 0x08 | 22 | #define SET0 0x08 |
22 | #define CLEAR0 0x0c | 23 | #define CLEAR0 0x0c |
23 | #define STATUS1 0x10 | 24 | #define STATUS1 0x10 |
24 | #define MASK1 0x14 | 25 | #define MASK1 0x14 |
25 | #define SET1 0x18 | 26 | #define SET1 0x18 |
26 | #define CLEAR1 0x1c | 27 | #define CLEAR1 0x1c |
27 | #define BUF 0x20 | 28 | #define BUF 0x20 |
28 | 29 | ||
29 | #endif | 30 | #endif |