machvec.h 850 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* SPDX-License-Identifier: GPL-2.0
  2. *
  3. * include/asm-sh/machvec.h
  4. *
  5. * Copyright 2000 Stuart Menefy ([email protected])
  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. #ifdef CONFIG_HAS_IOPORT_MAP
  18. void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size);
  19. void (*mv_ioport_unmap)(void __iomem *);
  20. #endif
  21. int (*mv_clk_init)(void);
  22. int (*mv_mode_pins)(void);
  23. void (*mv_mem_init)(void);
  24. void (*mv_mem_reserve)(void);
  25. };
  26. extern struct sh_machine_vector sh_mv;
  27. #define get_system_type() sh_mv.mv_name
  28. #define __initmv \
  29. __used __section(".machvec.init")
  30. #endif /* _ASM_SH_MACHVEC_H */