4 * Copyright IBM Corp. 2007
7 #ifndef _ASM_S390_IPL_H
8 #define _ASM_S390_IPL_H
10 #include <asm/types.h>
12 #define IPL_PARMBLOCK_ORIGIN 0x2000
14 #define IPL_PARM_BLK_FCP_LEN (sizeof(struct ipl_list_hdr) + \
15 sizeof(struct ipl_block_fcp))
17 #define IPL_PARM_BLK0_FCP_LEN (sizeof(struct ipl_block_fcp) + 8)
19 #define IPL_PARM_BLK_CCW_LEN (sizeof(struct ipl_list_hdr) + \
20 sizeof(struct ipl_block_ccw))
22 #define IPL_PARM_BLK0_CCW_LEN (sizeof(struct ipl_block_ccw) + 8)
24 #define IPL_MAX_SUPPORTED_VERSION (0)
26 #define IPL_PARMBLOCK_START ((struct ipl_parameter_block *) \
28 #define IPL_PARMBLOCK_SIZE (IPL_PARMBLOCK_START->hdr.len)
38 } __attribute__((packed
));
40 struct ipl_block_fcp
{
55 } __attribute__((packed
));
57 struct ipl_block_ccw
{
66 } __attribute__((packed
));
68 struct ipl_parameter_block
{
69 struct ipl_list_hdr hdr
;
71 struct ipl_block_fcp fcp
;
72 struct ipl_block_ccw ccw
;
74 } __attribute__((packed
));
81 extern u32 dump_prefix_page
;
82 extern void do_reipl(void);
83 extern void ipl_save_parameters(void);
87 IPL_PARMBLOCK_VALID
= 2,
94 enum diag308_subcode
{
102 enum diag308_ipl_type
{
103 DIAG308_IPL_TYPE_FCP
= 0,
104 DIAG308_IPL_TYPE_CCW
= 2,
108 DIAG308_IPL_OPT_IPL
= 0x10,
109 DIAG308_IPL_OPT_DUMP
= 0x20,
116 extern int diag308(unsigned long subcode
, void *addr
);
118 #endif /* _ASM_S390_IPL_H */