Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Anton Blanchard | 560285c | 2012-11-01 14:55:04 +0000 | [diff] [blame] | 2 | #ifndef _ASM_POWERPC_SETUP_H |
| 3 | #define _ASM_POWERPC_SETUP_H |
| 4 | |
| 5 | #include <uapi/asm/setup.h> |
| 6 | |
| 7 | #ifndef __ASSEMBLY__ |
| 8 | extern void ppc_printk_progress(char *s, unsigned short hex); |
| 9 | |
| 10 | extern unsigned int rtas_data; |
Anton Blanchard | 560285c | 2012-11-01 14:55:04 +0000 | [diff] [blame] | 11 | extern unsigned long long memory_limit; |
| 12 | extern unsigned long klimit; |
| 13 | extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask); |
| 14 | |
Anton Blanchard | 560285c | 2012-11-01 14:55:04 +0000 | [diff] [blame] | 15 | struct device_node; |
| 16 | extern void note_scsi_host(struct device_node *, void *); |
| 17 | |
| 18 | /* Used in very early kernel initialization. */ |
| 19 | extern unsigned long reloc_offset(void); |
| 20 | extern unsigned long add_reloc_offset(unsigned long); |
| 21 | extern void reloc_got2(unsigned long); |
| 22 | |
| 23 | #define PTRRELOC(x) ((typeof(x)) add_reloc_offset((unsigned long)(x))) |
| 24 | |
Robert Jennings | b88c476 | 2013-10-28 09:20:51 -0500 | [diff] [blame] | 25 | void check_for_initrd(void); |
Anton Blanchard | 1023973 | 2014-09-17 22:15:33 +1000 | [diff] [blame] | 26 | void initmem_init(void); |
Jason Baron | b71d47c | 2013-11-25 23:23:11 +0000 | [diff] [blame] | 27 | #define ARCH_PANIC_TIMEOUT 180 |
Robert Jennings | b88c476 | 2013-10-28 09:20:51 -0500 | [diff] [blame] | 28 | |
Benjamin Herrenschmidt | d3cbff1 | 2016-07-05 15:03:49 +1000 | [diff] [blame] | 29 | #ifdef CONFIG_PPC_PSERIES |
| 30 | extern void pseries_enable_reloc_on_exc(void); |
| 31 | extern void pseries_disable_reloc_on_exc(void); |
| 32 | extern void pseries_big_endian_exceptions(void); |
| 33 | extern void pseries_little_endian_exceptions(void); |
| 34 | #else |
| 35 | static inline void pseries_enable_reloc_on_exc(void) {} |
| 36 | static inline void pseries_disable_reloc_on_exc(void) {} |
| 37 | static inline void pseries_big_endian_exceptions(void) {} |
| 38 | static inline void pseries_little_endian_exceptions(void) {} |
| 39 | #endif /* CONFIG_PPC_PSERIES */ |
| 40 | |
Anton Blanchard | 560285c | 2012-11-01 14:55:04 +0000 | [diff] [blame] | 41 | #endif /* !__ASSEMBLY__ */ |
| 42 | |
| 43 | #endif /* _ASM_POWERPC_SETUP_H */ |
| 44 | |