Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
[pandora-kernel.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/machvec_init.h>
17
18 #include <asm/se/io.h>
19
20 void heartbeat_se(void);
21 void setup_se(void);
22 void init_se_IRQ(void);
23
24 /*
25  * The Machine Vector
26  */
27
28 struct sh_machine_vector mv_se __initmv = {
29 #if defined(CONFIG_CPU_SH4)
30         .mv_nr_irqs             = 48,
31 #elif defined(CONFIG_CPU_SUBTYPE_SH7708)
32         .mv_nr_irqs             = 32,
33 #elif defined(CONFIG_CPU_SUBTYPE_SH7709)
34         .mv_nr_irqs             = 61,
35 #elif defined(CONFIG_CPU_SUBTYPE_SH7705)
36         .mv_nr_irqs             = 86,
37 #endif
38
39         .mv_inb                 = se_inb,
40         .mv_inw                 = se_inw,
41         .mv_inl                 = se_inl,
42         .mv_outb                = se_outb,
43         .mv_outw                = se_outw,
44         .mv_outl                = se_outl,
45
46         .mv_inb_p               = se_inb_p,
47         .mv_inw_p               = se_inw,
48         .mv_inl_p               = se_inl,
49         .mv_outb_p              = se_outb_p,
50         .mv_outw_p              = se_outw,
51         .mv_outl_p              = se_outl,
52
53         .mv_insb                = se_insb,
54         .mv_insw                = se_insw,
55         .mv_insl                = se_insl,
56         .mv_outsb               = se_outsb,
57         .mv_outsw               = se_outsw,
58         .mv_outsl               = se_outsl,
59
60         .mv_isa_port2addr       = se_isa_port2addr,
61
62         .mv_init_irq            = init_se_IRQ,
63 #ifdef CONFIG_HEARTBEAT
64         .mv_heartbeat           = heartbeat_se,
65 #endif
66 };
67 ALIAS_MV(se)