setup.h 942 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _MIPS_SETUP_H
  3. #define _MIPS_SETUP_H
  4. #include <linux/types.h>
  5. #include <uapi/asm/setup.h>
  6. extern void prom_putchar(char);
  7. extern void setup_early_printk(void);
  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. extern void set_handler(unsigned long offset, void *addr, unsigned long len);
  16. extern void set_uncached_handler(unsigned long offset, void *addr, unsigned long len);
  17. typedef void (*vi_handler_t)(void);
  18. extern void *set_vi_handler(int n, vi_handler_t addr);
  19. extern void *set_except_vector(int n, void *addr);
  20. extern unsigned long ebase;
  21. extern unsigned int hwrena;
  22. extern void per_cpu_trap_init(bool);
  23. extern void cpu_cache_init(void);
  24. #endif /* __SETUP_H */