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_BLK_CCW_LEN (sizeof(struct ipl_list_hdr) + \
18 sizeof(struct ipl_block_ccw))
20 #define IPL_MAX_SUPPORTED_VERSION (0)
22 #define IPL_PARMBLOCK_START ((struct ipl_parameter_block *) \
24 #define IPL_PARMBLOCK_SIZE (IPL_PARMBLOCK_START->hdr.len)
34 } __attribute__((packed
));
36 struct ipl_block_fcp
{
51 } __attribute__((packed
));
53 struct ipl_block_ccw
{
61 } __attribute__((packed
));
63 struct ipl_parameter_block
{
64 struct ipl_list_hdr hdr
;
66 struct ipl_block_fcp fcp
;
67 struct ipl_block_ccw ccw
;
69 } __attribute__((packed
));
72 * IPL validity flags and parameters as detected in head.S
77 extern u32 dump_prefix_page
;
78 extern void do_reipl(void);
79 extern void ipl_save_parameters(void);
83 IPL_PARMBLOCK_VALID
= 2,
90 enum diag308_subcode
{
98 enum diag308_ipl_type
{
99 DIAG308_IPL_TYPE_FCP
= 0,
100 DIAG308_IPL_TYPE_CCW
= 2,
104 DIAG308_IPL_OPT_IPL
= 0x10,
105 DIAG308_IPL_OPT_DUMP
= 0x20,
112 extern int diag308(unsigned long subcode
, void *addr
);
114 #endif /* _ASM_S390_IPL_H */