1 /*
2  * linux/arch/sh/kernel/mach_microdev.c
3  *
4  * Copyright (C) 2003 Sean McGoogan (Sean.McGoogan@superh.com)
5  *
6  * Machine vector for the SuperH SH4-202 MicroDev board.
7  *
8  * May be copied or modified under the terms of the GNU General Public
9  * License.  See linux/COPYING for more information.
10  *
11  */
12 
13 #include <linux/config.h>
14 #include <linux/init.h>
15 
16 #include <asm/machvec.h>
17 #include <asm/rtc.h>
18 #include <asm/machvec_init.h>
19 
20 #include <asm/io_microdev.h>
21 #include <asm/irq_microdev.h>
22 
23 void setup_microdev(void);
24 
25 /*
26  * The Machine Vector
27  */
28 
29 struct sh_machine_vector mv_sh4202_microdev __initmv = {
30 	mv_name:		"SH4-202 MicroDev",
31 
32 	mv_nr_irqs:		72,		/* QQQ need to check this - use the MACRO */
33 
34 	mv_inb:			microdev_inb,
35 	mv_inw:			microdev_inw,
36 	mv_inl:			microdev_inl,
37 	mv_outb:		microdev_outb,
38 	mv_outw:		microdev_outw,
39 	mv_outl:		microdev_outl,
40 
41 	mv_inb_p:		microdev_inb_p,
42 	mv_inw_p:		microdev_inw_p,
43 	mv_inl_p:		microdev_inl_p,
44 	mv_outb_p:		microdev_outb_p,
45 	mv_outw_p:		microdev_outw_p,
46 	mv_outl_p:		microdev_outl_p,
47 
48 	mv_insb:		microdev_insb,
49 	mv_insw:		microdev_insw,
50 	mv_insl:		microdev_insl,
51 	mv_outsb:		microdev_outsb,
52 	mv_outsw:		microdev_outsw,
53 	mv_outsl:		microdev_outsl,
54 
55 	mv_readb:		generic_readb,
56 	mv_readw:		generic_readw,
57 	mv_readl:		generic_readl,
58 	mv_writeb:		generic_writeb,
59 	mv_writew:		generic_writew,
60 	mv_writel:		generic_writel,
61 
62 	mv_ioremap:		generic_ioremap,
63 	mv_iounmap:		generic_iounmap,
64 
65 	mv_isa_port2addr:	microdev_isa_port2addr,
66 
67 	mv_init_arch:		setup_microdev,
68 
69 	mv_init_irq:		init_microdev_irq,
70 
71 	mv_rtc_gettimeofday:	sh_rtc_gettimeofday,
72 	mv_rtc_settimeofday:	sh_rtc_settimeofday,
73 
74 	mv_hw_sh4202_microdev:	1,
75 };
76 ALIAS_MV(sh4202_microdev)
77 
78