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