1 /*
2  * linux/arch/sh/kernel/mach_adx.c
3  *
4  * Copyright (C) 2001 A&D Co., Ltd.
5  *
6  * This file may be copied or modified under the terms of the GNU
7  * General Public License.  See linux/COPYING for more information.
8  *
9  * Machine vector for the A&D ADX Board
10  */
11 
12 #include <linux/config.h>
13 #include <linux/init.h>
14 
15 #include <asm/machvec.h>
16 #include <asm/rtc.h>
17 #include <asm/machvec_init.h>
18 #include <asm/io_adx.h>
19 
20 extern void setup_adx(void);
21 extern void init_adx_IRQ(void);
22 
23 /*
24  * The Machine Vector
25  */
26 
27 struct sh_machine_vector mv_adx __initmv = {
28 	mv_name:		"A&D_ADX",
29 
30 	mv_nr_irqs:		48,
31 
32 	mv_inb:			adx_inb,
33 	mv_inw:			adx_inw,
34 	mv_inl:			adx_inl,
35 	mv_outb:		adx_outb,
36 	mv_outw:		adx_outw,
37 	mv_outl:		adx_outl,
38 
39 	mv_inb_p:		adx_inb_p,
40 	mv_inw_p:		adx_inw,
41 	mv_inl_p:		adx_inl,
42 	mv_outb_p:		adx_outb_p,
43 	mv_outw_p:		adx_outw,
44 	mv_outl_p:		adx_outl,
45 
46 	mv_insb:		adx_insb,
47 	mv_insw:		adx_insw,
48 	mv_insl:		adx_insl,
49 	mv_outsb:		adx_outsb,
50 	mv_outsw:		adx_outsw,
51 	mv_outsl:		adx_outsl,
52 
53 	mv_readb:		adx_readb,
54 	mv_readw:		adx_readw,
55 	mv_readl:		adx_readl,
56 	mv_writeb:		adx_writeb,
57 	mv_writew:		adx_writew,
58 	mv_writel:		adx_writel,
59 
60 	mv_ioremap:		adx_ioremap,
61 	mv_iounmap:		adx_iounmap,
62 
63 	mv_isa_port2addr:	adx_isa_port2addr,
64 
65 	mv_init_arch:		setup_adx,
66 	mv_init_irq:		init_adx_IRQ,
67 
68 	mv_rtc_gettimeofday:	sh_rtc_gettimeofday,
69 	mv_rtc_settimeofday:	sh_rtc_settimeofday,
70 
71 	mv_hw_adx:		1,
72 };
73 ALIAS_MV(adx)
74