treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / mips / include / asm / setup.h
blobbb36a400203df50d8a76a74420213bad6b61b45c
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _MIPS_SETUP_H
3 #define _MIPS_SETUP_H
5 #include <linux/types.h>
6 #include <uapi/asm/setup.h>
8 extern void prom_putchar(char);
9 extern void setup_early_printk(void);
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
19 extern void set_handler(unsigned long offset, void *addr, unsigned long len);
20 extern void set_uncached_handler(unsigned long offset, void *addr, unsigned long len);
22 typedef void (*vi_handler_t)(void);
23 extern void *set_vi_handler(int n, vi_handler_t addr);
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);
31 #endif /* __SETUP_H */