diff options
author | Michael Holzheu <holzheu@de.ibm.com> | 2007-02-21 04:55:21 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2007-02-21 04:55:21 -0500 |
commit | 46b05d2617c8efd8ec6b19acd2c95541a0118c13 (patch) | |
tree | 518998d59432b6387de28021780a84c42f1c116b /arch/s390 | |
parent | 72960a02c270950253126ee8b339afd400f55273 (diff) |
[S390] New header file ipl.h
Setup.h has been misused for ipl related stuff in the past. We now move
everything, which has to do with ipl and reipl to a new header file named
"ipl.h".
Signed-off-by: Michael Holzheu <holzheu@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kernel/early.c | 1 | ||||
-rw-r--r-- | arch/s390/kernel/ipl.c | 24 | ||||
-rw-r--r-- | arch/s390/kernel/setup.c | 1 | ||||
-rw-r--r-- | arch/s390/kernel/smp.c | 1 |
4 files changed, 5 insertions, 22 deletions
diff --git a/arch/s390/kernel/early.c b/arch/s390/kernel/early.c index 011e8c7acc7e..5d02e48c72e0 100644 --- a/arch/s390/kernel/early.c +++ b/arch/s390/kernel/early.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/module.h> | 14 | #include <linux/module.h> |
15 | #include <linux/pfn.h> | 15 | #include <linux/pfn.h> |
16 | #include <linux/uaccess.h> | 16 | #include <linux/uaccess.h> |
17 | #include <asm/ipl.h> | ||
17 | #include <asm/lowcore.h> | 18 | #include <asm/lowcore.h> |
18 | #include <asm/processor.h> | 19 | #include <asm/processor.h> |
19 | #include <asm/sections.h> | 20 | #include <asm/sections.h> |
diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c index 052259530651..a2410423c226 100644 --- a/arch/s390/kernel/ipl.c +++ b/arch/s390/kernel/ipl.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/delay.h> | 14 | #include <linux/delay.h> |
15 | #include <linux/reboot.h> | 15 | #include <linux/reboot.h> |
16 | #include <linux/ctype.h> | 16 | #include <linux/ctype.h> |
17 | #include <asm/ipl.h> | ||
17 | #include <asm/smp.h> | 18 | #include <asm/smp.h> |
18 | #include <asm/setup.h> | 19 | #include <asm/setup.h> |
19 | #include <asm/cpcmd.h> | 20 | #include <asm/cpcmd.h> |
@@ -94,27 +95,6 @@ static char *shutdown_action_str(enum shutdown_action action) | |||
94 | } | 95 | } |
95 | } | 96 | } |
96 | 97 | ||
97 | enum diag308_subcode { | ||
98 | DIAG308_IPL = 3, | ||
99 | DIAG308_DUMP = 4, | ||
100 | DIAG308_SET = 5, | ||
101 | DIAG308_STORE = 6, | ||
102 | }; | ||
103 | |||
104 | enum diag308_ipl_type { | ||
105 | DIAG308_IPL_TYPE_FCP = 0, | ||
106 | DIAG308_IPL_TYPE_CCW = 2, | ||
107 | }; | ||
108 | |||
109 | enum diag308_opt { | ||
110 | DIAG308_IPL_OPT_IPL = 0x10, | ||
111 | DIAG308_IPL_OPT_DUMP = 0x20, | ||
112 | }; | ||
113 | |||
114 | enum diag308_rc { | ||
115 | DIAG308_RC_OK = 1, | ||
116 | }; | ||
117 | |||
118 | static int diag308_set_works = 0; | 98 | static int diag308_set_works = 0; |
119 | 99 | ||
120 | static int reipl_capabilities = IPL_TYPE_UNKNOWN; | 100 | static int reipl_capabilities = IPL_TYPE_UNKNOWN; |
@@ -134,7 +114,7 @@ static struct ipl_parameter_block *dump_block_ccw; | |||
134 | 114 | ||
135 | static enum shutdown_action on_panic_action = SHUTDOWN_STOP; | 115 | static enum shutdown_action on_panic_action = SHUTDOWN_STOP; |
136 | 116 | ||
137 | static int diag308(unsigned long subcode, void *addr) | 117 | int diag308(unsigned long subcode, void *addr) |
138 | { | 118 | { |
139 | register unsigned long _addr asm("0") = (unsigned long) addr; | 119 | register unsigned long _addr asm("0") = (unsigned long) addr; |
140 | register unsigned long _rc asm("1") = 0; | 120 | register unsigned long _rc asm("1") = 0; |
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 49567d8cd9a1..fced022dc58d 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c | |||
@@ -41,6 +41,7 @@ | |||
41 | #include <linux/ctype.h> | 41 | #include <linux/ctype.h> |
42 | #include <linux/reboot.h> | 42 | #include <linux/reboot.h> |
43 | 43 | ||
44 | #include <asm/ipl.h> | ||
44 | #include <asm/uaccess.h> | 45 | #include <asm/uaccess.h> |
45 | #include <asm/system.h> | 46 | #include <asm/system.h> |
46 | #include <asm/smp.h> | 47 | #include <asm/smp.h> |
diff --git a/arch/s390/kernel/smp.c b/arch/s390/kernel/smp.c index 432deb2d9795..ecaa432a99f8 100644 --- a/arch/s390/kernel/smp.c +++ b/arch/s390/kernel/smp.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <linux/interrupt.h> | 31 | #include <linux/interrupt.h> |
32 | #include <linux/cpu.h> | 32 | #include <linux/cpu.h> |
33 | #include <linux/timex.h> | 33 | #include <linux/timex.h> |
34 | #include <asm/ipl.h> | ||
34 | #include <asm/setup.h> | 35 | #include <asm/setup.h> |
35 | #include <asm/sigp.h> | 36 | #include <asm/sigp.h> |
36 | #include <asm/pgalloc.h> | 37 | #include <asm/pgalloc.h> |