diff options
author | Dean Nelson <dcn@sgi.com> | 2008-04-22 15:46:56 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-04-22 18:08:17 -0400 |
commit | 45d9ca492e4bd1522d1b5bd125c2908f1cee3d4a (patch) | |
tree | dfbe831a5f71159855c3a252856664411ca53f8a | |
parent | 9010eff0eadfe4eb60c3f0c71573f0fc505c31e3 (diff) |
[IA64] move XP and XPC to drivers/misc/sgi-xp
Move XPC and XPNET from arch/ia64/sn/kernel to drivers/misc/sgi-xp.
Signed-off-by: Dean Nelson <dcn@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
-rw-r--r-- | arch/ia64/Kconfig | 11 | ||||
-rw-r--r-- | arch/ia64/sn/kernel/Makefile | 7 | ||||
-rw-r--r-- | drivers/misc/Kconfig | 12 | ||||
-rw-r--r-- | drivers/misc/Makefile | 1 | ||||
-rw-r--r-- | drivers/misc/sgi-xp/Makefile | 11 | ||||
-rw-r--r-- | drivers/misc/sgi-xp/xp.h (renamed from include/asm-ia64/sn/xp.h) | 8 | ||||
-rw-r--r-- | drivers/misc/sgi-xp/xp_main.c (renamed from arch/ia64/sn/kernel/xp_main.c) | 4 | ||||
-rw-r--r-- | drivers/misc/sgi-xp/xp_nofault.S (renamed from arch/ia64/sn/kernel/xp_nofault.S) | 2 | ||||
-rw-r--r-- | drivers/misc/sgi-xp/xpc.h (renamed from include/asm-ia64/sn/xpc.h) | 10 | ||||
-rw-r--r-- | drivers/misc/sgi-xp/xpc_channel.c (renamed from arch/ia64/sn/kernel/xpc_channel.c) | 4 | ||||
-rw-r--r-- | drivers/misc/sgi-xp/xpc_main.c (renamed from arch/ia64/sn/kernel/xpc_main.c) | 4 | ||||
-rw-r--r-- | drivers/misc/sgi-xp/xpc_partition.c (renamed from arch/ia64/sn/kernel/xpc_partition.c) | 4 | ||||
-rw-r--r-- | drivers/misc/sgi-xp/xpnet.c (renamed from arch/ia64/sn/kernel/xpnet.c) | 4 |
13 files changed, 45 insertions, 37 deletions
diff --git a/arch/ia64/Kconfig b/arch/ia64/Kconfig index ed21737a00c5..cd13e138bd03 100644 --- a/arch/ia64/Kconfig +++ b/arch/ia64/Kconfig | |||
@@ -266,17 +266,6 @@ config IOSAPIC | |||
266 | depends on !IA64_HP_SIM | 266 | depends on !IA64_HP_SIM |
267 | default y | 267 | default y |
268 | 268 | ||
269 | config IA64_SGI_SN_XP | ||
270 | tristate "Support communication between SGI SSIs" | ||
271 | depends on IA64_GENERIC || IA64_SGI_SN2 | ||
272 | select IA64_UNCACHED_ALLOCATOR | ||
273 | help | ||
274 | An SGI machine can be divided into multiple Single System | ||
275 | Images which act independently of each other and have | ||
276 | hardware based memory protection from the others. Enabling | ||
277 | this feature will allow for direct communication between SSIs | ||
278 | based on a network adapter and DMA messaging. | ||
279 | |||
280 | config FORCE_MAX_ZONEORDER | 269 | config FORCE_MAX_ZONEORDER |
281 | int "MAX_ORDER (11 - 17)" if !HUGETLB_PAGE | 270 | int "MAX_ORDER (11 - 17)" if !HUGETLB_PAGE |
282 | range 11 17 if !HUGETLB_PAGE | 271 | range 11 17 if !HUGETLB_PAGE |
diff --git a/arch/ia64/sn/kernel/Makefile b/arch/ia64/sn/kernel/Makefile index 688a3c27e0f6..0591038735af 100644 --- a/arch/ia64/sn/kernel/Makefile +++ b/arch/ia64/sn/kernel/Makefile | |||
@@ -4,7 +4,7 @@ | |||
4 | # License. See the file "COPYING" in the main directory of this archive | 4 | # License. See the file "COPYING" in the main directory of this archive |
5 | # for more details. | 5 | # for more details. |
6 | # | 6 | # |
7 | # Copyright (C) 1999,2001-2006 Silicon Graphics, Inc. All Rights Reserved. | 7 | # Copyright (C) 1999,2001-2006,2008 Silicon Graphics, Inc. All Rights Reserved. |
8 | # | 8 | # |
9 | 9 | ||
10 | EXTRA_CFLAGS += -Iarch/ia64/sn/include | 10 | EXTRA_CFLAGS += -Iarch/ia64/sn/include |
@@ -15,9 +15,4 @@ obj-y += setup.o bte.o bte_error.o irq.o mca.o idle.o \ | |||
15 | sn2/ | 15 | sn2/ |
16 | obj-$(CONFIG_IA64_GENERIC) += machvec.o | 16 | obj-$(CONFIG_IA64_GENERIC) += machvec.o |
17 | obj-$(CONFIG_SGI_TIOCX) += tiocx.o | 17 | obj-$(CONFIG_SGI_TIOCX) += tiocx.o |
18 | obj-$(CONFIG_IA64_SGI_SN_XP) += xp.o | ||
19 | xp-y := xp_main.o xp_nofault.o | ||
20 | obj-$(CONFIG_IA64_SGI_SN_XP) += xpc.o | ||
21 | xpc-y := xpc_main.o xpc_channel.o xpc_partition.o | ||
22 | obj-$(CONFIG_IA64_SGI_SN_XP) += xpnet.o | ||
23 | obj-$(CONFIG_PCI_MSI) += msi_sn.o | 18 | obj-$(CONFIG_PCI_MSI) += msi_sn.o |
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index bb94ce78a6d0..297a48f85446 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig | |||
@@ -360,4 +360,16 @@ config ENCLOSURE_SERVICES | |||
360 | driver (SCSI/ATA) which supports enclosures | 360 | driver (SCSI/ATA) which supports enclosures |
361 | or a SCSI enclosure device (SES) to use these services. | 361 | or a SCSI enclosure device (SES) to use these services. |
362 | 362 | ||
363 | config SGI_XP | ||
364 | tristate "Support communication between SGI SSIs" | ||
365 | depends on IA64_GENERIC || IA64_SGI_SN2 | ||
366 | select IA64_UNCACHED_ALLOCATOR if IA64_GENERIC || IA64_SGI_SN2 | ||
367 | select GENERIC_ALLOCATOR if IA64_GENERIC || IA64_SGI_SN2 | ||
368 | ---help--- | ||
369 | An SGI machine can be divided into multiple Single System | ||
370 | Images which act independently of each other and have | ||
371 | hardware based memory protection from the others. Enabling | ||
372 | this feature will allow for direct communication between SSIs | ||
373 | based on a network adapter and DMA messaging. | ||
374 | |||
363 | endif # MISC_DEVICES | 375 | endif # MISC_DEVICES |
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index 4581b2533111..5914da434854 100644 --- a/drivers/misc/Makefile +++ b/drivers/misc/Makefile | |||
@@ -24,3 +24,4 @@ obj-$(CONFIG_EEPROM_93CX6) += eeprom_93cx6.o | |||
24 | obj-$(CONFIG_INTEL_MENLOW) += intel_menlow.o | 24 | obj-$(CONFIG_INTEL_MENLOW) += intel_menlow.o |
25 | obj-$(CONFIG_ENCLOSURE_SERVICES) += enclosure.o | 25 | obj-$(CONFIG_ENCLOSURE_SERVICES) += enclosure.o |
26 | obj-$(CONFIG_KGDB_TESTS) += kgdbts.o | 26 | obj-$(CONFIG_KGDB_TESTS) += kgdbts.o |
27 | obj-$(CONFIG_SGI_XP) += sgi-xp/ | ||
diff --git a/drivers/misc/sgi-xp/Makefile b/drivers/misc/sgi-xp/Makefile new file mode 100644 index 000000000000..b6e40a7958ce --- /dev/null +++ b/drivers/misc/sgi-xp/Makefile | |||
@@ -0,0 +1,11 @@ | |||
1 | # | ||
2 | # Makefile for SGI's XP devices. | ||
3 | # | ||
4 | |||
5 | obj-$(CONFIG_SGI_XP) += xp.o | ||
6 | xp-y := xp_main.o xp_nofault.o | ||
7 | |||
8 | obj-$(CONFIG_SGI_XP) += xpc.o | ||
9 | xpc-y := xpc_main.o xpc_channel.o xpc_partition.o | ||
10 | |||
11 | obj-$(CONFIG_SGI_XP) += xpnet.o | ||
diff --git a/include/asm-ia64/sn/xp.h b/drivers/misc/sgi-xp/xp.h index f7711b308e48..fb65981754c3 100644 --- a/include/asm-ia64/sn/xp.h +++ b/drivers/misc/sgi-xp/xp.h | |||
@@ -3,7 +3,7 @@ | |||
3 | * License. See the file "COPYING" in the main directory of this archive | 3 | * License. See the file "COPYING" in the main directory of this archive |
4 | * for more details. | 4 | * for more details. |
5 | * | 5 | * |
6 | * Copyright (C) 2004-2005 Silicon Graphics, Inc. All rights reserved. | 6 | * Copyright (C) 2004-2008 Silicon Graphics, Inc. All rights reserved. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | 9 | ||
@@ -12,8 +12,8 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | 14 | ||
15 | #ifndef _ASM_IA64_SN_XP_H | 15 | #ifndef _DRIVERS_MISC_SGIXP_XP_H |
16 | #define _ASM_IA64_SN_XP_H | 16 | #define _DRIVERS_MISC_SGIXP_XP_H |
17 | 17 | ||
18 | 18 | ||
19 | #include <linux/cache.h> | 19 | #include <linux/cache.h> |
@@ -481,5 +481,5 @@ extern int xp_nofault_PIOR(void *); | |||
481 | extern int xp_error_PIOR(void); | 481 | extern int xp_error_PIOR(void); |
482 | 482 | ||
483 | 483 | ||
484 | #endif /* _ASM_IA64_SN_XP_H */ | 484 | #endif /* _DRIVERS_MISC_SGIXP_XP_H */ |
485 | 485 | ||
diff --git a/arch/ia64/sn/kernel/xp_main.c b/drivers/misc/sgi-xp/xp_main.c index b7ea46645e12..5f9f9c2e9298 100644 --- a/arch/ia64/sn/kernel/xp_main.c +++ b/drivers/misc/sgi-xp/xp_main.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * License. See the file "COPYING" in the main directory of this archive | 3 | * License. See the file "COPYING" in the main directory of this archive |
4 | * for more details. | 4 | * for more details. |
5 | * | 5 | * |
6 | * Copyright (c) 2004-2005 Silicon Graphics, Inc. All Rights Reserved. | 6 | * Copyright (c) 2004-2008 Silicon Graphics, Inc. All Rights Reserved. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | 9 | ||
@@ -22,7 +22,7 @@ | |||
22 | #include <linux/mutex.h> | 22 | #include <linux/mutex.h> |
23 | #include <asm/sn/intr.h> | 23 | #include <asm/sn/intr.h> |
24 | #include <asm/sn/sn_sal.h> | 24 | #include <asm/sn/sn_sal.h> |
25 | #include <asm/sn/xp.h> | 25 | #include "xp.h" |
26 | 26 | ||
27 | 27 | ||
28 | /* | 28 | /* |
diff --git a/arch/ia64/sn/kernel/xp_nofault.S b/drivers/misc/sgi-xp/xp_nofault.S index 98e7c7dbfdd8..c13a709c4db5 100644 --- a/arch/ia64/sn/kernel/xp_nofault.S +++ b/drivers/misc/sgi-xp/xp_nofault.S | |||
@@ -3,7 +3,7 @@ | |||
3 | * License. See the file "COPYING" in the main directory of this archive | 3 | * License. See the file "COPYING" in the main directory of this archive |
4 | * for more details. | 4 | * for more details. |
5 | * | 5 | * |
6 | * Copyright (c) 2004-2007 Silicon Graphics, Inc. All Rights Reserved. | 6 | * Copyright (c) 2004-2008 Silicon Graphics, Inc. All Rights Reserved. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | 9 | ||
diff --git a/include/asm-ia64/sn/xpc.h b/drivers/misc/sgi-xp/xpc.h index 3c0900ab8003..14e70ee53ebe 100644 --- a/include/asm-ia64/sn/xpc.h +++ b/drivers/misc/sgi-xp/xpc.h | |||
@@ -3,7 +3,7 @@ | |||
3 | * License. See the file "COPYING" in the main directory of this archive | 3 | * License. See the file "COPYING" in the main directory of this archive |
4 | * for more details. | 4 | * for more details. |
5 | * | 5 | * |
6 | * Copyright (c) 2004-2007 Silicon Graphics, Inc. All Rights Reserved. | 6 | * Copyright (c) 2004-2008 Silicon Graphics, Inc. All Rights Reserved. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | 9 | ||
@@ -11,8 +11,8 @@ | |||
11 | * Cross Partition Communication (XPC) structures and macros. | 11 | * Cross Partition Communication (XPC) structures and macros. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | #ifndef _ASM_IA64_SN_XPC_H | 14 | #ifndef _DRIVERS_MISC_SGIXP_XPC_H |
15 | #define _ASM_IA64_SN_XPC_H | 15 | #define _DRIVERS_MISC_SGIXP_XPC_H |
16 | 16 | ||
17 | 17 | ||
18 | #include <linux/interrupt.h> | 18 | #include <linux/interrupt.h> |
@@ -27,7 +27,7 @@ | |||
27 | #include <asm/sn/addrs.h> | 27 | #include <asm/sn/addrs.h> |
28 | #include <asm/sn/mspec.h> | 28 | #include <asm/sn/mspec.h> |
29 | #include <asm/sn/shub_mmr.h> | 29 | #include <asm/sn/shub_mmr.h> |
30 | #include <asm/sn/xp.h> | 30 | #include "xp.h" |
31 | 31 | ||
32 | 32 | ||
33 | /* | 33 | /* |
@@ -1263,5 +1263,5 @@ xpc_check_for_channel_activity(struct xpc_partition *part) | |||
1263 | } | 1263 | } |
1264 | 1264 | ||
1265 | 1265 | ||
1266 | #endif /* _ASM_IA64_SN_XPC_H */ | 1266 | #endif /* _DRIVERS_MISC_SGIXP_XPC_H */ |
1267 | 1267 | ||
diff --git a/arch/ia64/sn/kernel/xpc_channel.c b/drivers/misc/sgi-xp/xpc_channel.c index 44ccc0d789c9..d7a215eeaaf6 100644 --- a/arch/ia64/sn/kernel/xpc_channel.c +++ b/drivers/misc/sgi-xp/xpc_channel.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * License. See the file "COPYING" in the main directory of this archive | 3 | * License. See the file "COPYING" in the main directory of this archive |
4 | * for more details. | 4 | * for more details. |
5 | * | 5 | * |
6 | * Copyright (c) 2004-2006 Silicon Graphics, Inc. All Rights Reserved. | 6 | * Copyright (c) 2004-2008 Silicon Graphics, Inc. All Rights Reserved. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | 9 | ||
@@ -25,7 +25,7 @@ | |||
25 | #include <linux/completion.h> | 25 | #include <linux/completion.h> |
26 | #include <asm/sn/bte.h> | 26 | #include <asm/sn/bte.h> |
27 | #include <asm/sn/sn_sal.h> | 27 | #include <asm/sn/sn_sal.h> |
28 | #include <asm/sn/xpc.h> | 28 | #include "xpc.h" |
29 | 29 | ||
30 | 30 | ||
31 | /* | 31 | /* |
diff --git a/arch/ia64/sn/kernel/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c index 9e0b164da9c2..bdb2cf1fcbcc 100644 --- a/arch/ia64/sn/kernel/xpc_main.c +++ b/drivers/misc/sgi-xp/xpc_main.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * License. See the file "COPYING" in the main directory of this archive | 3 | * License. See the file "COPYING" in the main directory of this archive |
4 | * for more details. | 4 | * for more details. |
5 | * | 5 | * |
6 | * Copyright (c) 2004-2007 Silicon Graphics, Inc. All Rights Reserved. | 6 | * Copyright (c) 2004-2008 Silicon Graphics, Inc. All Rights Reserved. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | 9 | ||
@@ -59,7 +59,7 @@ | |||
59 | #include <asm/sn/intr.h> | 59 | #include <asm/sn/intr.h> |
60 | #include <asm/sn/sn_sal.h> | 60 | #include <asm/sn/sn_sal.h> |
61 | #include <asm/uaccess.h> | 61 | #include <asm/uaccess.h> |
62 | #include <asm/sn/xpc.h> | 62 | #include "xpc.h" |
63 | 63 | ||
64 | 64 | ||
65 | /* define two XPC debug device structures to be used with dev_dbg() et al */ | 65 | /* define two XPC debug device structures to be used with dev_dbg() et al */ |
diff --git a/arch/ia64/sn/kernel/xpc_partition.c b/drivers/misc/sgi-xp/xpc_partition.c index 9e97c2684832..7412dc7351cd 100644 --- a/arch/ia64/sn/kernel/xpc_partition.c +++ b/drivers/misc/sgi-xp/xpc_partition.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * License. See the file "COPYING" in the main directory of this archive | 3 | * License. See the file "COPYING" in the main directory of this archive |
4 | * for more details. | 4 | * for more details. |
5 | * | 5 | * |
6 | * Copyright (c) 2004-2006 Silicon Graphics, Inc. All Rights Reserved. | 6 | * Copyright (c) 2004-2008 Silicon Graphics, Inc. All Rights Reserved. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | 9 | ||
@@ -28,7 +28,7 @@ | |||
28 | #include <asm/sn/sn_sal.h> | 28 | #include <asm/sn/sn_sal.h> |
29 | #include <asm/sn/nodepda.h> | 29 | #include <asm/sn/nodepda.h> |
30 | #include <asm/sn/addrs.h> | 30 | #include <asm/sn/addrs.h> |
31 | #include <asm/sn/xpc.h> | 31 | #include "xpc.h" |
32 | 32 | ||
33 | 33 | ||
34 | /* XPC is exiting flag */ | 34 | /* XPC is exiting flag */ |
diff --git a/arch/ia64/sn/kernel/xpnet.c b/drivers/misc/sgi-xp/xpnet.c index a5df672d8392..38552f37e53d 100644 --- a/arch/ia64/sn/kernel/xpnet.c +++ b/drivers/misc/sgi-xp/xpnet.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * License. See the file "COPYING" in the main directory of this archive | 3 | * License. See the file "COPYING" in the main directory of this archive |
4 | * for more details. | 4 | * for more details. |
5 | * | 5 | * |
6 | * Copyright (C) 1999,2001-2005 Silicon Graphics, Inc. All rights reserved. | 6 | * Copyright (C) 1999-2008 Silicon Graphics, Inc. All rights reserved. |
7 | */ | 7 | */ |
8 | 8 | ||
9 | 9 | ||
@@ -38,7 +38,7 @@ | |||
38 | #include <asm/sn/sn_sal.h> | 38 | #include <asm/sn/sn_sal.h> |
39 | #include <asm/types.h> | 39 | #include <asm/types.h> |
40 | #include <asm/atomic.h> | 40 | #include <asm/atomic.h> |
41 | #include <asm/sn/xp.h> | 41 | #include "xp.h" |
42 | 42 | ||
43 | 43 | ||
44 | /* | 44 | /* |