aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/ipl.c
diff options
context:
space:
mode:
authorMichael Holzheu <holzheu@de.ibm.com>2007-02-21 04:55:21 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-02-21 04:55:21 -0500
commit46b05d2617c8efd8ec6b19acd2c95541a0118c13 (patch)
tree518998d59432b6387de28021780a84c42f1c116b /arch/s390/kernel/ipl.c
parent72960a02c270950253126ee8b339afd400f55273 (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.c24
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
97enum diag308_subcode {
98 DIAG308_IPL = 3,
99 DIAG308_DUMP = 4,
100 DIAG308_SET = 5,
101 DIAG308_STORE = 6,
102};
103
104enum diag308_ipl_type {
105 DIAG308_IPL_TYPE_FCP = 0,
106 DIAG308_IPL_TYPE_CCW = 2,
107};
108
109enum diag308_opt {
110 DIAG308_IPL_OPT_IPL = 0x10,
111 DIAG308_IPL_OPT_DUMP = 0x20,
112};
113
114enum diag308_rc {
115 DIAG308_RC_OK = 1,
116};
117
118static int diag308_set_works = 0; 98static int diag308_set_works = 0;
119 99
120static int reipl_capabilities = IPL_TYPE_UNKNOWN; 100static int reipl_capabilities = IPL_TYPE_UNKNOWN;
@@ -134,7 +114,7 @@ static struct ipl_parameter_block *dump_block_ccw;
134 114
135static enum shutdown_action on_panic_action = SHUTDOWN_STOP; 115static enum shutdown_action on_panic_action = SHUTDOWN_STOP;
136 116
137static int diag308(unsigned long subcode, void *addr) 117int 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;