include: replace linux/module.h with "struct module" wherever possible
[linux-2.6/next.git] / arch / sh / include / asm / machvec.h
blob57c5c3d0f39fe4b1bfdff174b544045a9c8baac8
1 /*
2 * include/asm-sh/machvec.h
4 * Copyright 2000 Stuart Menefy (stuart.menefy@st.com)
6 * May be copied or modified under the terms of the GNU General Public
7 * License. See linux/COPYING for more information.
8 */
10 #ifndef _ASM_SH_MACHVEC_H
11 #define _ASM_SH_MACHVEC_H
13 #include <linux/types.h>
14 #include <linux/time.h>
15 #include <generated/machtypes.h>
17 struct sh_machine_vector {
18 void (*mv_setup)(char **cmdline_p);
19 const char *mv_name;
20 int mv_nr_irqs;
22 int (*mv_irq_demux)(int irq);
23 void (*mv_init_irq)(void);
25 #ifdef CONFIG_HAS_IOPORT
26 void __iomem *(*mv_ioport_map)(unsigned long port, unsigned int size);
27 void (*mv_ioport_unmap)(void __iomem *);
28 #endif
30 int (*mv_clk_init)(void);
31 int (*mv_mode_pins)(void);
33 void (*mv_mem_init)(void);
34 void (*mv_mem_reserve)(void);
37 extern struct sh_machine_vector sh_mv;
39 #define get_system_type() sh_mv.mv_name
41 #define __initmv \
42 __used __section(.machvec.init)
44 #endif /* _ASM_SH_MACHVEC_H */