machvec.h 699 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* SPDX-License-Identifier: GPL-2.0
  2. *
  3. * include/asm-sh/machvec.h
  4. *
  5. * Copyright 2000 Stuart Menefy (stuart.menefy@st.com)
  6. */
  7. #ifndef _ASM_SH_MACHVEC_H
  8. #define _ASM_SH_MACHVEC_H
  9. #include <linux/types.h>
  10. #include <linux/time.h>
  11. #include <generated/machtypes.h>
  12. struct sh_machine_vector {
  13. void (*mv_setup)(char **cmdline_p);
  14. const char *mv_name;
  15. int (*mv_irq_demux)(int irq);
  16. void (*mv_init_irq)(void);
  17. int (*mv_clk_init)(void);
  18. int (*mv_mode_pins)(void);
  19. void (*mv_mem_init)(void);
  20. void (*mv_mem_reserve)(void);
  21. };
  22. extern struct sh_machine_vector sh_mv;
  23. #define get_system_type() sh_mv.mv_name
  24. #define __initmv \
  25. __used __section(".machvec.init")
  26. #endif /* _ASM_SH_MACHVEC_H */