4 * Copyright IBM Corp. 2007
7 #ifndef _ASM_S390_IPL_H
8 #define _ASM_S390_IPL_H
10 #include <asm/types.h>
12 #include <asm/setup.h>
14 #define IPL_PARMBLOCK_ORIGIN 0x2000
16 #define IPL_PARM_BLK_FCP_LEN (sizeof(struct ipl_list_hdr) + \
17 sizeof(struct ipl_block_fcp))
19 #define IPL_PARM_BLK0_FCP_LEN (sizeof(struct ipl_block_fcp) + 8)
21 #define IPL_PARM_BLK_CCW_LEN (sizeof(struct ipl_list_hdr) + \
22 sizeof(struct ipl_block_ccw))
24 #define IPL_PARM_BLK0_CCW_LEN (sizeof(struct ipl_block_ccw) + 8)
26 #define IPL_MAX_SUPPORTED_VERSION (0)
28 #define IPL_PARMBLOCK_START ((struct ipl_parameter_block *) \
30 #define IPL_PARMBLOCK_SIZE (IPL_PARMBLOCK_START->hdr.len)
40 } __attribute__((packed
));
42 struct ipl_block_fcp
{
57 } __attribute__((packed
));
59 struct ipl_block_ccw
{
68 } __attribute__((packed
));
70 struct ipl_parameter_block
{
71 struct ipl_list_hdr hdr
;
73 struct ipl_block_fcp fcp
;
74 struct ipl_block_ccw ccw
;
76 } __attribute__((packed
));
82 extern u32 dump_prefix_page
;
83 extern unsigned int zfcpdump_prefix_array
[];
85 extern void do_reipl(void);
86 extern void ipl_save_parameters(void);
90 IPL_PARMBLOCK_VALID
= 2,
98 IPL_TYPE_FCP_DUMP
= 8,
107 struct ccw_dev_id dev_id
;
110 struct ccw_dev_id dev_id
;
115 char name
[NSS_NAME_SIZE
+ 1];
120 extern struct ipl_info ipl_info
;
121 extern void setup_ipl_info(void);
126 enum diag308_subcode
{
134 enum diag308_ipl_type
{
135 DIAG308_IPL_TYPE_FCP
= 0,
136 DIAG308_IPL_TYPE_CCW
= 2,
140 DIAG308_IPL_OPT_IPL
= 0x10,
141 DIAG308_IPL_OPT_DUMP
= 0x20,
148 extern int diag308(unsigned long subcode
, void *addr
);
150 #endif /* _ASM_S390_IPL_H */