setup.h 846 B

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