Merge master.kernel.org:/pub/scm/linux/kernel/git/steve/gfs2-2.6-nmw
[pandora-kernel.git] / arch / sh / boards / se / 7619 / io.c
1 /*
2  *
3  * linux/arch/sh/boards/se/7619/io.c
4  *
5  * Copyright (C) 2006  Yoshinori Sato
6  *
7  * I/O routine for Hitachi 7619 SolutionEngine.
8  *
9  */
10
11 #include <linux/kernel.h>
12 #include <linux/types.h>
13 #include <asm/io.h>
14 #include <asm/se7619.h>
15 #include <asm/irq.h>
16
17 /* FIXME: M3A-ZAB7 Compact Flash Slot support */
18
19 static inline void delay(void)
20 {
21         ctrl_inw(0xa0000000);   /* Uncached ROM area (P2) */
22 }
23
24 #define badio(name,port) \
25   printk("bad I/O operation (%s) for port 0x%lx at 0x%08x\n", \
26          #name, (port), (__u32) __builtin_return_address(0))
27
28 unsigned char se7619___inb(unsigned long port)
29 {
30         badio(inb, port);
31         return 0;
32 }
33
34 unsigned char se7619___inb_p(unsigned long port)
35 {
36         badio(inb_p, port);
37         delay();
38         return 0;
39 }
40
41 unsigned short se7619___inw(unsigned long port)
42 {
43         badio(inw, port);
44         return 0;
45 }
46
47 unsigned int se7619___inl(unsigned long port)
48 {
49         badio(inl, port);
50         return 0;
51 }
52
53 void se7619___outb(unsigned char value, unsigned long port)
54 {
55         badio(outb, port);
56 }
57
58 void se7619___outb_p(unsigned char value, unsigned long port)
59 {
60         badio(outb_p, port);
61         delay();
62 }
63
64 void se7619___outw(unsigned short value, unsigned long port)
65 {
66         badio(outw, port);
67 }
68
69 void se7619___outl(unsigned int value, unsigned long port)
70 {
71         badio(outl, port);
72 }
73
74 void se7619___insb(unsigned long port, void *addr, unsigned long count)
75 {
76         badio(inw, port);
77 }
78
79 void se7619___insw(unsigned long port, void *addr, unsigned long count)
80 {
81         badio(inw, port);
82 }
83
84 void se7619___insl(unsigned long port, void *addr, unsigned long count)
85 {
86         badio(insl, port);
87 }
88
89 void se7619___outsb(unsigned long port, const void *addr, unsigned long count)
90 {
91         badio(insl, port);
92 }
93
94 void se7619___outsw(unsigned long port, const void *addr, unsigned long count)
95 {
96         badio(insl, port);
97 }
98
99 void se7619___outsl(unsigned long port, const void *addr, unsigned long count)
100 {
101         badio(outsw, port);
102 }