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