sh: Board updates for I/O routine rework.
[sfrench/cifs-2.6.git] / arch / sh / boards / se / 770x / mach.c
1 /*
2  * linux/arch/sh/kernel/mach_se.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 Hitachi SolutionEngine
10  */
11
12 #include <linux/init.h>
13
14 #include <asm/machvec.h>
15 #include <asm/rtc.h>
16 #include <asm/se.h>
17
18 void heartbeat_se(void);
19 void init_se_IRQ(void);
20
21 /*
22  * The Machine Vector
23  */
24
25 struct sh_machine_vector mv_se __initmv = {
26 #if defined(CONFIG_CPU_SH4)
27         .mv_nr_irqs             = 48,
28 #elif defined(CONFIG_CPU_SUBTYPE_SH7708)
29         .mv_nr_irqs             = 32,
30 #elif defined(CONFIG_CPU_SUBTYPE_SH7709)
31         .mv_nr_irqs             = 61,
32 #elif defined(CONFIG_CPU_SUBTYPE_SH7705)
33         .mv_nr_irqs             = 86,
34 #endif
35
36         .mv_inb                 = se_inb,
37         .mv_inw                 = se_inw,
38         .mv_inl                 = se_inl,
39         .mv_outb                = se_outb,
40         .mv_outw                = se_outw,
41         .mv_outl                = se_outl,
42
43         .mv_inb_p               = se_inb_p,
44         .mv_inw_p               = se_inw,
45         .mv_inl_p               = se_inl,
46         .mv_outb_p              = se_outb_p,
47         .mv_outw_p              = se_outw,
48         .mv_outl_p              = se_outl,
49
50         .mv_insb                = se_insb,
51         .mv_insw                = se_insw,
52         .mv_insl                = se_insl,
53         .mv_outsb               = se_outsb,
54         .mv_outsw               = se_outsw,
55         .mv_outsl               = se_outsl,
56
57         .mv_init_irq            = init_se_IRQ,
58 #ifdef CONFIG_HEARTBEAT
59         .mv_heartbeat           = heartbeat_se,
60 #endif
61 };
62 ALIAS_MV(se)