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));
77 * IPL validity flags and parameters as detected in head.S
82 extern u32 dump_prefix_page;
83 extern void do_reipl(void);
84 extern void ipl_save_parameters(void);
88 IPL_PARMBLOCK_VALID = 2,
95 enum diag308_subcode {
103 enum diag308_ipl_type {
104 DIAG308_IPL_TYPE_FCP = 0,
105 DIAG308_IPL_TYPE_CCW = 2,
109 DIAG308_IPL_OPT_IPL = 0x10,
110 DIAG308_IPL_OPT_DUMP = 0x20,
117 extern int diag308(unsigned long subcode, void *addr);
119 #endif /* _ASM_S390_IPL_H */