initial commit with v2.6.9
[linux-2.6.9-moxart.git] / arch / ia64 / sn / kernel / sn2 / io.c
blob37b4190b7dddf67a63838e2e40f6a656455ae3b9
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.
6 * Copyright (C) 2003 Silicon Graphics, Inc. All rights reserved.
8 * The generic kernel requires function pointers to these routines, so
9 * we wrap the inlines from asm/ia64/sn/sn2/io.h here.
12 #include <asm/sn/sn2/io.h>
14 #ifdef CONFIG_IA64_GENERIC
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
31 unsigned int
32 __sn_inb (unsigned long port)
34 return ___sn_inb(port);
37 unsigned int
38 __sn_inw (unsigned long port)
40 return ___sn_inw(port);
43 unsigned int
44 __sn_inl (unsigned long port)
46 return ___sn_inl(port);
49 void
50 __sn_outb (unsigned char val, unsigned long port)
52 ___sn_outb(val, port);
55 void
56 __sn_outw (unsigned short val, unsigned long port)
58 ___sn_outw(val, port);
61 void
62 __sn_outl (unsigned int val, unsigned long port)
64 ___sn_outl(val, port);
67 unsigned char
68 __sn_readb (void *addr)
70 return ___sn_readb (addr);
73 unsigned short
74 __sn_readw (void *addr)
76 return ___sn_readw (addr);
79 unsigned int
80 __sn_readl (void *addr)
82 return ___sn_readl (addr);
85 unsigned long
86 __sn_readq (void *addr)
88 return ___sn_readq (addr);
91 unsigned char
92 __sn_readb_relaxed (void *addr)
94 return ___sn_readb_relaxed (addr);
97 unsigned short
98 __sn_readw_relaxed (void *addr)
100 return ___sn_readw_relaxed (addr);
103 unsigned int
104 __sn_readl_relaxed (void *addr)
106 return ___sn_readl_relaxed (addr);
109 unsigned long
110 __sn_readq_relaxed (void *addr)
112 return ___sn_readq_relaxed (addr);
115 #endif