patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / include / asm-arm / arch-ebsa110 / io.h
1 /*
2  *  linux/include/asm-arm/arch-ebsa110/io.h
3  *
4  *  Copyright (C) 1997,1998 Russell King
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * Modifications:
11  *  06-Dec-1997 RMK     Created.
12  */
13 #ifndef __ASM_ARM_ARCH_IO_H
14 #define __ASM_ARM_ARCH_IO_H
15
16 #define IO_SPACE_LIMIT 0xffff
17
18 u8  __inb(int port);
19 u16 __inw(int port);
20 u32 __inl(int port);
21
22 #define inb(p)                  __inb(p)
23 #define inw(p)                  __inw(p)
24 #define inl(p)                  __inl(p)
25
26 void __outb(u8  val, int port);
27 void __outw(u16 val, int port);
28 void __outl(u32 val, int port);
29
30 #define outb(v,p)               __outb(v,p)
31 #define outw(v,p)               __outw(v,p)
32 #define outl(v,p)               __outl(v,p)
33
34 u8  __readb(void *addr);
35 u16 __readw(void *addr);
36 u32 __readl(void *addr);
37
38 #define readb(b)                __readb(b)
39 #define readw(b)                __readw(b)
40 #define readl(b)                __readl(b)
41 #define readb_relaxed(addr)     readb(addr)
42 #define readw_relaxed(addr)     readw(addr)
43 #define readl_relaxed(addr)     readl(addr)
44
45 void __writeb(u8  val, void *addr);
46 void __writew(u16 val, void *addr);
47 void __writel(u32 val, void *addr);
48
49 #define writeb(v,b)             __writeb(v,b)
50 #define writew(v,b)             __writew(v,b)
51 #define writel(v,b)             __writel(v,b)
52
53 #define __arch_ioremap(cookie,sz,c,a)   ((void *)(cookie))
54 #define __arch_iounmap(cookie)          do { } while (0)
55
56 #endif