xref: /openbmc/linux/arch/mips/include/asm/setup.h (revision ee65728e)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _MIPS_SETUP_H
3 #define _MIPS_SETUP_H
4 
5 #include <linux/types.h>
6 #include <uapi/asm/setup.h>
7 
8 extern void prom_putchar(char);
9 extern void setup_early_printk(void);
10 
11 #ifdef CONFIG_EARLY_PRINTK_8250
12 extern void setup_8250_early_printk_port(unsigned long base,
13 	unsigned int reg_shift, unsigned int timeout);
14 #else
15 static inline void setup_8250_early_printk_port(unsigned long base,
16 	unsigned int reg_shift, unsigned int timeout) {}
17 #endif
18 
19 void set_handler(unsigned long offset, const void *addr, unsigned long len);
20 extern void set_uncached_handler(unsigned long offset, void *addr, unsigned long len);
21 
22 typedef void (*vi_handler_t)(void);
23 extern void *set_vi_handler(int n, vi_handler_t addr);
24 
25 extern void *set_except_vector(int n, void *addr);
26 extern unsigned long ebase;
27 extern unsigned int hwrena;
28 extern void per_cpu_trap_init(bool);
29 extern void cpu_cache_init(void);
30 
31 #endif /* __SETUP_H */
32