Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / powerpc / include / asm / setup.h
blob469b7fdc9be41cd9ab0ceb7f50c2b633c19f01a4
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_SETUP_H
3 #define _ASM_POWERPC_SETUP_H
5 #include <uapi/asm/setup.h>
7 #ifndef __ASSEMBLY__
8 extern void ppc_printk_progress(char *s, unsigned short hex);
10 extern unsigned int rtas_data;
11 extern unsigned long long memory_limit;
12 extern unsigned long klimit;
13 extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask);
15 struct device_node;
16 extern void note_scsi_host(struct device_node *, void *);
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);
23 #define PTRRELOC(x) ((typeof(x)) add_reloc_offset((unsigned long)(x)))
25 void check_for_initrd(void);
26 void initmem_init(void);
27 void setup_panic(void);
28 #define ARCH_PANIC_TIMEOUT 180
30 #ifdef CONFIG_PPC_PSERIES
31 extern void pseries_enable_reloc_on_exc(void);
32 extern void pseries_disable_reloc_on_exc(void);
33 extern void pseries_big_endian_exceptions(void);
34 extern void pseries_little_endian_exceptions(void);
35 #else
36 static inline void pseries_enable_reloc_on_exc(void) {}
37 static inline void pseries_disable_reloc_on_exc(void) {}
38 static inline void pseries_big_endian_exceptions(void) {}
39 static inline void pseries_little_endian_exceptions(void) {}
40 #endif /* CONFIG_PPC_PSERIES */
42 void rfi_flush_enable(bool enable);
44 /* These are bit flags */
45 enum l1d_flush_type {
46 L1D_FLUSH_NONE = 0x1,
47 L1D_FLUSH_FALLBACK = 0x2,
48 L1D_FLUSH_ORI = 0x4,
49 L1D_FLUSH_MTTRIG = 0x8,
52 void __init setup_rfi_flush(enum l1d_flush_type, bool enable);
53 void do_rfi_flush_fixups(enum l1d_flush_type types);
55 #endif /* !__ASSEMBLY__ */
57 #endif /* _ASM_POWERPC_SETUP_H */