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/kernel/ipl.c | |
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/kernel/ipl.c')
-rw-r--r-- | arch/s390/kernel/ipl.c | 24 |
1 files changed, 2 insertions, 22 deletions
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; |