^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * include/asm-sh/machvec.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright 2000 Stuart Menefy (stuart.menefy@st.com)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #ifndef _ASM_SH_MACHVEC_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #define _ASM_SH_MACHVEC_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #include <linux/time.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #include <generated/machtypes.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) struct sh_machine_vector {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) void (*mv_setup)(char **cmdline_p);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) const char *mv_name;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) int (*mv_irq_demux)(int irq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) void (*mv_init_irq)(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #ifdef CONFIG_HAS_IOPORT_MAP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) void (*mv_ioport_unmap)(void __iomem *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) int (*mv_clk_init)(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) int (*mv_mode_pins)(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) void (*mv_mem_init)(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) void (*mv_mem_reserve)(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) extern struct sh_machine_vector sh_mv;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #define get_system_type() sh_mv.mv_name
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #define __initmv \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) __used __section(".machvec.init")
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #endif /* _ASM_SH_MACHVEC_H */