ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / arch / ia64 / sn / kernel / sn2 / io.c
1 /* 
2  * This file is subject to the terms and conditions of the GNU General Public
3  * License.  See the file "COPYING" in the main directory of this archive
4  * for more details.
5  *
6  * Copyright (C) 2003 Silicon Graphics, Inc. All rights reserved.
7  *
8  * The generic kernel requires function pointers to these routines, so
9  * we wrap the inlines from asm/ia64/sn/sn2/io.h here.
10  */
11
12 #include <asm/sn/sn2/io.h>
13
14 #ifdef CONFIG_IA64_GENERIC
15
16 #undef __sn_inb
17 #undef __sn_inw
18 #undef __sn_inl
19 #undef __sn_outb
20 #undef __sn_outw
21 #undef __sn_outl
22 #undef __sn_readb
23 #undef __sn_readw
24 #undef __sn_readl
25 #undef __sn_readq
26 #undef __sn_readb_relaxed
27 #undef __sn_readw_relaxed
28 #undef __sn_readl_relaxed
29 #undef __sn_readq_relaxed
30
31 unsigned int
32 __sn_inb (unsigned long port)
33 {
34         return ___sn_inb(port);
35 }
36
37 unsigned int
38 __sn_inw (unsigned long port)
39 {
40         return ___sn_inw(port);
41 }
42
43 unsigned int
44 __sn_inl (unsigned long port)
45 {
46         return ___sn_inl(port);
47 }
48
49 void
50 __sn_outb (unsigned char val, unsigned long port)
51 {
52         ___sn_outb(val, port);
53 }
54
55 void
56 __sn_outw (unsigned short val, unsigned long port)
57 {
58         ___sn_outw(val, port);
59 }
60
61 void
62 __sn_outl (unsigned int val, unsigned long port)
63 {
64         ___sn_outl(val, port);
65 }
66
67 unsigned char
68 __sn_readb (void *addr)
69 {
70         return ___sn_readb (addr);
71 }
72
73 unsigned short
74 __sn_readw (void *addr)
75 {
76         return ___sn_readw (addr);
77 }
78
79 unsigned int
80 __sn_readl (void *addr)
81 {
82         return ___sn_readl (addr);
83 }
84
85 unsigned long
86 __sn_readq (void *addr)
87 {
88         return ___sn_readq (addr);
89 }
90
91 unsigned char
92 __sn_readb_relaxed (void *addr)
93 {
94         return ___sn_readb_relaxed (addr);
95 }
96
97 unsigned short
98 __sn_readw_relaxed (void *addr)
99 {
100         return ___sn_readw_relaxed (addr);
101 }
102
103 unsigned int
104 __sn_readl_relaxed (void *addr)
105 {
106         return ___sn_readl_relaxed (addr);
107 }
108
109 unsigned long
110 __sn_readq_relaxed (void *addr)
111 {
112         return ___sn_readq_relaxed (addr);
113 }
114
115 #endif