1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 #ifndef _M68K_IDE_H
29 #define _M68K_IDE_H
30
31 #ifdef __KERNEL__
32 #include <asm/setup.h>
33 #include <asm/io.h>
34 #include <asm/irq.h>
35
36 #ifdef CONFIG_MMU
37
38
39
40
41
42
43 #undef readb
44 #undef readw
45 #undef writeb
46 #undef writew
47
48 #define readb in_8
49 #define readw in_be16
50 #define __ide_mm_insw(port, addr, n) raw_insw((u16 *)port, addr, n)
51 #define __ide_mm_insl(port, addr, n) raw_insl((u32 *)port, addr, n)
52 #define writeb(val, port) out_8(port, val)
53 #define writew(val, port) out_be16(port, val)
54 #define __ide_mm_outsw(port, addr, n) raw_outsw((u16 *)port, addr, n)
55 #define __ide_mm_outsl(port, addr, n) raw_outsl((u32 *)port, addr, n)
56
57 #else
58
59 #define __ide_mm_insw(port, addr, n) io_insw((unsigned int)port, addr, n)
60 #define __ide_mm_insl(port, addr, n) io_insl((unsigned int)port, addr, n)
61 #define __ide_mm_outsw(port, addr, n) io_outsw((unsigned int)port, addr, n)
62 #define __ide_mm_outsl(port, addr, n) io_outsl((unsigned int)port, addr, n)
63
64 #endif
65
66 #endif
67 #endif