blob: 257d23dbf55dce902644334280e9d72b3ff91ba8 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Anton Blanchard560285c2012-11-01 14:55:04 +00002#ifndef _ASM_POWERPC_SETUP_H
3#define _ASM_POWERPC_SETUP_H
4
5#include <uapi/asm/setup.h>
6
7#ifndef __ASSEMBLY__
8extern void ppc_printk_progress(char *s, unsigned short hex);
9
10extern unsigned int rtas_data;
Anton Blanchard560285c2012-11-01 14:55:04 +000011extern unsigned long long memory_limit;
12extern unsigned long klimit;
13extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask);
14
Anton Blanchard560285c2012-11-01 14:55:04 +000015struct device_node;
16extern void note_scsi_host(struct device_node *, void *);
17
18/* Used in very early kernel initialization. */
19extern unsigned long reloc_offset(void);
20extern unsigned long add_reloc_offset(unsigned long);
21extern void reloc_got2(unsigned long);
22
23#define PTRRELOC(x) ((typeof(x)) add_reloc_offset((unsigned long)(x)))
24
Robert Jenningsb88c4762013-10-28 09:20:51 -050025void check_for_initrd(void);
Anton Blanchard10239732014-09-17 22:15:33 +100026void initmem_init(void);
Jason Baronb71d47c2013-11-25 23:23:11 +000027#define ARCH_PANIC_TIMEOUT 180
Robert Jenningsb88c4762013-10-28 09:20:51 -050028
Benjamin Herrenschmidtd3cbff12016-07-05 15:03:49 +100029#ifdef CONFIG_PPC_PSERIES
30extern void pseries_enable_reloc_on_exc(void);
31extern void pseries_disable_reloc_on_exc(void);
32extern void pseries_big_endian_exceptions(void);
33extern void pseries_little_endian_exceptions(void);
34#else
35static inline void pseries_enable_reloc_on_exc(void) {}
36static inline void pseries_disable_reloc_on_exc(void) {}
37static inline void pseries_big_endian_exceptions(void) {}
38static inline void pseries_little_endian_exceptions(void) {}
39#endif /* CONFIG_PPC_PSERIES */
40
Anton Blanchard560285c2012-11-01 14:55:04 +000041#endif /* !__ASSEMBLY__ */
42
43#endif /* _ASM_POWERPC_SETUP_H */
44