1 /* SPDX-License-Identifier: GPL-2.0 */
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
);
15 static inline void setup_8250_early_printk_port(unsigned long base
,
16 unsigned int reg_shift
, unsigned int timeout
) {}
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 */