Merge branch 'upstream-jgarzik' of git://git.tuxdriver.com/git/wireless-2.6
[linux-2.6] / arch / sh / boards / overdrive / mach.c
1 /*
2  * linux/arch/sh/overdrive/mach.c
3  *
4  * Copyright (C) 2000 Stuart Menefy (stuart.menefy@st.com)
5  *
6  * May be copied or modified under the terms of the GNU General Public
7  * License.  See linux/COPYING for more information.
8  *
9  * Machine vector for the STMicroelectronics Overdrive
10  */
11
12 #include <linux/init.h>
13
14 #include <asm/machvec.h>
15 #include <asm/rtc.h>
16 #include <asm/machvec_init.h>
17
18 #include <asm/io_unknown.h>
19 #include <asm/io_generic.h>
20 #include <asm/overdrive/io.h>
21
22 void heartbeat_od(void);
23 void init_overdrive_irq(void);
24 void galileo_pcibios_init(void);
25
26 /*
27  * The Machine Vector
28  */
29
30 struct sh_machine_vector mv_od __initmv = {
31         .mv_nr_irqs             = 48,
32
33         .mv_inb                 = od_inb,
34         .mv_inw                 = od_inw,
35         .mv_inl                 = od_inl,
36         .mv_outb                = od_outb,
37         .mv_outw                = od_outw,
38         .mv_outl                = od_outl,
39
40         .mv_inb_p               = od_inb_p,
41         .mv_inw_p               = od_inw_p,
42         .mv_inl_p               = od_inl_p,
43         .mv_outb_p              = od_outb_p,
44         .mv_outw_p              = od_outw_p,
45         .mv_outl_p              = od_outl_p,
46
47         .mv_insb                = od_insb,
48         .mv_insw                = od_insw,
49         .mv_insl                = od_insl,
50         .mv_outsb               = od_outsb,
51         .mv_outsw               = od_outsw,
52         .mv_outsl               = od_outsl,
53
54 #ifdef CONFIG_PCI
55         .mv_init_irq            = init_overdrive_irq,
56 #endif
57 #ifdef CONFIG_HEARTBEAT
58         .mv_heartbeat           = heartbeat_od,
59 #endif
60 };
61
62 ALIAS_MV(od)