blob: 11ba86e176315e4ef260c8eb740ba52ca347c192 [file] [log] [blame]
Anton Blanchard560285c2012-11-01 14:55:04 +00001#ifndef _ASM_POWERPC_SETUP_H
2#define _ASM_POWERPC_SETUP_H
3
4#include <uapi/asm/setup.h>
5
6#ifndef __ASSEMBLY__
7extern void ppc_printk_progress(char *s, unsigned short hex);
8
9extern unsigned int rtas_data;
10extern int mem_init_done; /* set on boot once kmalloc can be called */
11extern int init_bootmem_done; /* set once bootmem is available */
12extern unsigned long long memory_limit;
13extern unsigned long klimit;
14extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask);
15
Anton Blanchard560285c2012-11-01 14:55:04 +000016struct device_node;
17extern void note_scsi_host(struct device_node *, void *);
18
19/* Used in very early kernel initialization. */
20extern unsigned long reloc_offset(void);
21extern unsigned long add_reloc_offset(unsigned long);
22extern void reloc_got2(unsigned long);
23
24#define PTRRELOC(x) ((typeof(x)) add_reloc_offset((unsigned long)(x)))
25
Robert Jenningsb88c4762013-10-28 09:20:51 -050026void check_for_initrd(void);
27void do_init_bootmem(void);
28void setup_panic(void);
Jason Baronb71d47c2013-11-25 23:23:11 +000029#define ARCH_PANIC_TIMEOUT 180
Robert Jenningsb88c4762013-10-28 09:20:51 -050030
Anton Blanchard560285c2012-11-01 14:55:04 +000031#endif /* !__ASSEMBLY__ */
32
33#endif /* _ASM_POWERPC_SETUP_H */
34