diff options
Diffstat (limited to 'include/asm-s390/setup.h')
-rw-r--r-- | include/asm-s390/setup.h | 66 |
1 files changed, 45 insertions, 21 deletions
diff --git a/include/asm-s390/setup.h b/include/asm-s390/setup.h index 19e31979309a..f1959732b6fd 100644 --- a/include/asm-s390/setup.h +++ b/include/asm-s390/setup.h | |||
@@ -14,8 +14,6 @@ | |||
14 | 14 | ||
15 | #define PARMAREA 0x10400 | 15 | #define PARMAREA 0x10400 |
16 | #define COMMAND_LINE_SIZE 896 | 16 | #define COMMAND_LINE_SIZE 896 |
17 | #define RAMDISK_ORIGIN 0x800000 | ||
18 | #define RAMDISK_SIZE 0x800000 | ||
19 | #define MEMORY_CHUNKS 16 /* max 0x7fff */ | 17 | #define MEMORY_CHUNKS 16 /* max 0x7fff */ |
20 | #define IPL_PARMBLOCK_ORIGIN 0x2000 | 18 | #define IPL_PARMBLOCK_ORIGIN 0x2000 |
21 | 19 | ||
@@ -46,10 +44,12 @@ extern unsigned long machine_flags; | |||
46 | #define MACHINE_HAS_IEEE (machine_flags & 2) | 44 | #define MACHINE_HAS_IEEE (machine_flags & 2) |
47 | #define MACHINE_HAS_CSP (machine_flags & 8) | 45 | #define MACHINE_HAS_CSP (machine_flags & 8) |
48 | #define MACHINE_HAS_DIAG44 (1) | 46 | #define MACHINE_HAS_DIAG44 (1) |
47 | #define MACHINE_HAS_MVCOS (0) | ||
49 | #else /* __s390x__ */ | 48 | #else /* __s390x__ */ |
50 | #define MACHINE_HAS_IEEE (1) | 49 | #define MACHINE_HAS_IEEE (1) |
51 | #define MACHINE_HAS_CSP (1) | 50 | #define MACHINE_HAS_CSP (1) |
52 | #define MACHINE_HAS_DIAG44 (machine_flags & 32) | 51 | #define MACHINE_HAS_DIAG44 (machine_flags & 32) |
52 | #define MACHINE_HAS_MVCOS (machine_flags & 512) | ||
53 | #endif /* __s390x__ */ | 53 | #endif /* __s390x__ */ |
54 | 54 | ||
55 | 55 | ||
@@ -70,52 +70,76 @@ extern unsigned int console_irq; | |||
70 | #define SET_CONSOLE_3215 do { console_mode = 2; } while (0) | 70 | #define SET_CONSOLE_3215 do { console_mode = 2; } while (0) |
71 | #define SET_CONSOLE_3270 do { console_mode = 3; } while (0) | 71 | #define SET_CONSOLE_3270 do { console_mode = 3; } while (0) |
72 | 72 | ||
73 | struct ipl_list_header { | 73 | |
74 | u32 length; | 74 | struct ipl_list_hdr { |
75 | u8 reserved[3]; | 75 | u32 len; |
76 | u8 reserved1[3]; | ||
76 | u8 version; | 77 | u8 version; |
78 | u32 blk0_len; | ||
79 | u8 pbt; | ||
80 | u8 flags; | ||
81 | u16 reserved2; | ||
77 | } __attribute__((packed)); | 82 | } __attribute__((packed)); |
78 | 83 | ||
79 | struct ipl_block_fcp { | 84 | struct ipl_block_fcp { |
80 | u32 length; | 85 | u8 reserved1[313-1]; |
81 | u8 pbt; | 86 | u8 opt; |
82 | u8 reserved1[322-1]; | 87 | u8 reserved2[3]; |
88 | u16 reserved3; | ||
83 | u16 devno; | 89 | u16 devno; |
84 | u8 reserved2[4]; | 90 | u8 reserved4[4]; |
85 | u64 wwpn; | 91 | u64 wwpn; |
86 | u64 lun; | 92 | u64 lun; |
87 | u32 bootprog; | 93 | u32 bootprog; |
88 | u8 reserved3[12]; | 94 | u8 reserved5[12]; |
89 | u64 br_lba; | 95 | u64 br_lba; |
90 | u32 scp_data_len; | 96 | u32 scp_data_len; |
91 | u8 reserved4[260]; | 97 | u8 reserved6[260]; |
92 | u8 scp_data[]; | 98 | u8 scp_data[]; |
93 | } __attribute__((packed)); | 99 | } __attribute__((packed)); |
94 | 100 | ||
101 | struct ipl_block_ccw { | ||
102 | u8 load_param[8]; | ||
103 | u8 reserved1[84]; | ||
104 | u8 reserved2[2]; | ||
105 | u16 devno; | ||
106 | u8 vm_flags; | ||
107 | u8 reserved3[3]; | ||
108 | u32 vm_parm_len; | ||
109 | } __attribute__((packed)); | ||
110 | |||
95 | struct ipl_parameter_block { | 111 | struct ipl_parameter_block { |
112 | struct ipl_list_hdr hdr; | ||
96 | union { | 113 | union { |
97 | u32 length; | 114 | struct ipl_block_fcp fcp; |
98 | struct ipl_list_header header; | 115 | struct ipl_block_ccw ccw; |
99 | } hdr; | 116 | } ipl_info; |
100 | struct ipl_block_fcp fcp; | ||
101 | } __attribute__((packed)); | 117 | } __attribute__((packed)); |
102 | 118 | ||
103 | #define IPL_MAX_SUPPORTED_VERSION (0) | 119 | #define IPL_PARM_BLK_FCP_LEN (sizeof(struct ipl_list_hdr) + \ |
120 | sizeof(struct ipl_block_fcp)) | ||
104 | 121 | ||
105 | #define IPL_TYPE_FCP (0) | 122 | #define IPL_PARM_BLK_CCW_LEN (sizeof(struct ipl_list_hdr) + \ |
123 | sizeof(struct ipl_block_ccw)) | ||
124 | |||
125 | #define IPL_MAX_SUPPORTED_VERSION (0) | ||
106 | 126 | ||
107 | /* | 127 | /* |
108 | * IPL validity flags and parameters as detected in head.S | 128 | * IPL validity flags and parameters as detected in head.S |
109 | */ | 129 | */ |
110 | extern u32 ipl_parameter_flags; | 130 | extern u32 ipl_flags; |
111 | extern u16 ipl_devno; | 131 | extern u16 ipl_devno; |
112 | 132 | ||
113 | #define IPL_DEVNO_VALID (ipl_parameter_flags & 1) | 133 | void do_reipl(void); |
114 | #define IPL_PARMBLOCK_VALID (ipl_parameter_flags & 2) | 134 | |
135 | enum { | ||
136 | IPL_DEVNO_VALID = 1, | ||
137 | IPL_PARMBLOCK_VALID = 2, | ||
138 | }; | ||
115 | 139 | ||
116 | #define IPL_PARMBLOCK_START ((struct ipl_parameter_block *) \ | 140 | #define IPL_PARMBLOCK_START ((struct ipl_parameter_block *) \ |
117 | IPL_PARMBLOCK_ORIGIN) | 141 | IPL_PARMBLOCK_ORIGIN) |
118 | #define IPL_PARMBLOCK_SIZE (IPL_PARMBLOCK_START->hdr.length) | 142 | #define IPL_PARMBLOCK_SIZE (IPL_PARMBLOCK_START->hdr.len) |
119 | 143 | ||
120 | #else /* __ASSEMBLY__ */ | 144 | #else /* __ASSEMBLY__ */ |
121 | 145 | ||