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