xref: /openbmc/linux/arch/s390/boot/boot.h (revision 834979c2)
18f75582aSVasily Gorbik /* SPDX-License-Identifier: GPL-2.0 */
28f75582aSVasily Gorbik #ifndef BOOT_BOOT_H
38f75582aSVasily Gorbik #define BOOT_BOOT_H
48f75582aSVasily Gorbik 
5256d78d0SAlexander Egorenkov #include <linux/types.h>
69a78c70aSVasily Gorbik 
7*834979c2SHeiko Carstens #define IPL_START	0x200
8*834979c2SHeiko Carstens 
9*834979c2SHeiko Carstens #ifndef __ASSEMBLY__
10*834979c2SHeiko Carstens 
118f75582aSVasily Gorbik void startup_kernel(void);
1273045a08SVasily Gorbik unsigned long detect_memory(void);
1373045a08SVasily Gorbik bool is_ipl_block_dump(void);
1449698745SVasily Gorbik void store_ipl_parmblock(void);
1549698745SVasily Gorbik void setup_boot_command_line(void);
16b5e80459SVasily Gorbik void parse_boot_command_line(void);
17868202ceSVasily Gorbik void verify_facilities(void);
186d85dac2SVasily Gorbik void print_missing_facilities(void);
19f1d3c532SAlexander Egorenkov void sclp_early_setup_buffer(void);
20724dc336SVasily Gorbik void print_pgm_check_info(void);
21b2d24b97SGerald Schaefer unsigned long get_random_base(unsigned long safe_addr);
229a78c70aSVasily Gorbik void __printf(1, 2) decompressor_printk(const char *fmt, ...);
23b2d24b97SGerald Schaefer 
247fadcc07SAlexander Egorenkov /* Symbols defined by linker scripts */
256abe2819SVasily Gorbik extern const char kernel_version[];
2673045a08SVasily Gorbik extern unsigned long memory_limit;
270c4f2623SVasily Gorbik extern unsigned long vmalloc_size;
2873045a08SVasily Gorbik extern int vmalloc_size_set;
2973045a08SVasily Gorbik extern int kaslr_enabled;
307fadcc07SAlexander Egorenkov extern char __boot_data_start[], __boot_data_end[];
317fadcc07SAlexander Egorenkov extern char __boot_data_preserved_start[], __boot_data_preserved_end[];
327fadcc07SAlexander Egorenkov extern char _decompressor_syms_start[], _decompressor_syms_end[];
33256d78d0SAlexander Egorenkov extern char _stack_start[], _stack_end[];
348f75582aSVasily Gorbik 
359641b8ccSMartin Schwidefsky unsigned long read_ipl_report(unsigned long safe_offset);
369641b8ccSMartin Schwidefsky 
37*834979c2SHeiko Carstens #endif /* __ASSEMBLY__ */
388f75582aSVasily Gorbik #endif /* BOOT_BOOT_H */
39