fe3e8735e9f881bd9f77760cb2a9528b6e450047
[linux-drm-fsl-dcu.git] / arch / sh / boards / renesas / rts7751r2d / mach.c
1 /*
2  * linux/arch/sh/kernel/mach_rts7751r2d.c
3  *
4  * Minor tweak of mach_se.c file to reference rts7751r2d-specific items.
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 Renesas Technology sales RTS7751R2D
10  */
11
12 #include <linux/init.h>
13 #include <linux/types.h>
14
15 #include <asm/machvec.h>
16 #include <asm/rtc.h>
17 #include <asm/irq.h>
18 #include <asm/mach/rts7751r2d.h>
19
20 extern void heartbeat_rts7751r2d(void);
21 extern void init_rts7751r2d_IRQ(void);
22 extern int rts7751r2d_irq_demux(int irq);
23
24 extern void *voyagergx_consistent_alloc(struct device *, size_t, dma_addr_t *, gfp_t);
25 extern int voyagergx_consistent_free(struct device *, size_t, void *, dma_addr_t);
26
27 /*
28  * The Machine Vector
29  */
30
31 struct sh_machine_vector mv_rts7751r2d __initmv = {
32         .mv_nr_irqs             = 72,
33
34         .mv_inb                 = rts7751r2d_inb,
35         .mv_inw                 = rts7751r2d_inw,
36         .mv_inl                 = rts7751r2d_inl,
37         .mv_outb                = rts7751r2d_outb,
38         .mv_outw                = rts7751r2d_outw,
39         .mv_outl                = rts7751r2d_outl,
40
41         .mv_inb_p               = rts7751r2d_inb_p,
42         .mv_inw_p               = rts7751r2d_inw,
43         .mv_inl_p               = rts7751r2d_inl,
44         .mv_outb_p              = rts7751r2d_outb_p,
45         .mv_outw_p              = rts7751r2d_outw,
46         .mv_outl_p              = rts7751r2d_outl,
47
48         .mv_insb                = rts7751r2d_insb,
49         .mv_insw                = rts7751r2d_insw,
50         .mv_insl                = rts7751r2d_insl,
51         .mv_outsb               = rts7751r2d_outsb,
52         .mv_outsw               = rts7751r2d_outsw,
53         .mv_outsl               = rts7751r2d_outsl,
54
55         .mv_init_irq            = init_rts7751r2d_IRQ,
56 #ifdef CONFIG_HEARTBEAT
57         .mv_heartbeat           = heartbeat_rts7751r2d,
58 #endif
59         .mv_irq_demux           = rts7751r2d_irq_demux,
60
61 #ifdef CONFIG_USB_OHCI_HCD
62         .mv_consistent_alloc    = voyagergx_consistent_alloc,
63         .mv_consistent_free     = voyagergx_consistent_free,
64 #endif
65 };
66 ALIAS_MV(rts7751r2d)