]> git.ipfire.org Git - people/arne_f/kernel.git/blame - arch/powerpc/include/asm/setup.h
powerpc/rfi-flush: Move the logic to avoid a redo into the debugfs code
[people/arne_f/kernel.git] / arch / powerpc / include / asm / setup.h
CommitLineData
560285cd
AB
1#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;
560285cd
AB
10extern unsigned long long memory_limit;
11extern unsigned long klimit;
12extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask);
13
560285cd
AB
14struct device_node;
15extern void note_scsi_host(struct device_node *, void *);
16
17/* Used in very early kernel initialization. */
18extern unsigned long reloc_offset(void);
19extern unsigned long add_reloc_offset(unsigned long);
20extern void reloc_got2(unsigned long);
21
22#define PTRRELOC(x) ((typeof(x)) add_reloc_offset((unsigned long)(x)))
23
b88c4767 24void check_for_initrd(void);
10239733 25void initmem_init(void);
b88c4767 26void setup_panic(void);
b71d47c1 27#define ARCH_PANIC_TIMEOUT 180
b88c4767 28
d3cbff1b
BH
29#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
c3b82ebe
ME
41void rfi_flush_enable(bool enable);
42
43/* These are bit flags */
44enum l1d_flush_type {
45 L1D_FLUSH_NONE = 0x1,
46 L1D_FLUSH_FALLBACK = 0x2,
47 L1D_FLUSH_ORI = 0x4,
48 L1D_FLUSH_MTTRIG = 0x8,
49};
50
51void __init setup_rfi_flush(enum l1d_flush_type, bool enable);
52void do_rfi_flush_fixups(enum l1d_flush_type types);
53
560285cd
AB
54#endif /* !__ASSEMBLY__ */
55
56#endif /* _ASM_POWERPC_SETUP_H */
57