machvec.h 939 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * include/asm-sh/machvec.h
  3. *
  4. * Copyright 2000 Stuart Menefy ([email protected])
  5. *
  6. * May be copied or modified under the terms of the GNU General Public
  7. * License. See linux/COPYING for more information.
  8. */
  9. #ifndef _ASM_SH_MACHVEC_H
  10. #define _ASM_SH_MACHVEC_H
  11. #include <linux/types.h>
  12. #include <linux/time.h>
  13. #include <generated/machtypes.h>
  14. struct sh_machine_vector {
  15. void (*mv_setup)(char **cmdline_p);
  16. const char *mv_name;
  17. int (*mv_irq_demux)(int irq);
  18. void (*mv_init_irq)(void);
  19. #ifdef CONFIG_HAS_IOPORT_MAP
  20. void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size);
  21. void (*mv_ioport_unmap)(void __iomem *);
  22. #endif
  23. int (*mv_clk_init)(void);
  24. int (*mv_mode_pins)(void);
  25. void (*mv_mem_init)(void);
  26. void (*mv_mem_reserve)(void);
  27. };
  28. extern struct sh_machine_vector sh_mv;
  29. #define get_system_type() sh_mv.mv_name
  30. #define __initmv \
  31. __used __section(.machvec.init)
  32. #endif /* _ASM_SH_MACHVEC_H */