xref: /linux/arch/powerpc/include/asm/setup.h (revision 4949009eb8d40a441dcddcd96e101e77d31cf1b2)
1 #ifndef _ASM_POWERPC_SETUP_H
2 #define _ASM_POWERPC_SETUP_H
3 
4 #include <uapi/asm/setup.h>
5 
6 #ifndef __ASSEMBLY__
7 extern void ppc_printk_progress(char *s, unsigned short hex);
8 
9 extern unsigned int rtas_data;
10 extern int mem_init_done;	/* set on boot once kmalloc can be called */
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 
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 
25 void check_for_initrd(void);
26 void initmem_init(void);
27 void setup_panic(void);
28 #define ARCH_PANIC_TIMEOUT 180
29 
30 #endif /* !__ASSEMBLY__ */
31 
32 #endif	/* _ASM_POWERPC_SETUP_H */
33 
34