Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / 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/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 __sn_inb(unsigned long port)
32 {
33         return ___sn_inb(port);
34 }
35
36 unsigned int __sn_inw(unsigned long port)
37 {
38         return ___sn_inw(port);
39 }
40
41 unsigned int __sn_inl(unsigned long port)
42 {
43         return ___sn_inl(port);
44 }
45
46 void __sn_outb(unsigned char val, unsigned long port)
47 {
48         ___sn_outb(val, port);
49 }
50
51 void __sn_outw(unsigned short val, unsigned long port)
52 {
53         ___sn_outw(val, port);
54 }
55
56 void __sn_outl(unsigned int val, unsigned long port)
57 {
58         ___sn_outl(val, port);
59 }
60
61 unsigned char __sn_readb(void __iomem *addr)
62 {
63         return ___sn_readb(addr);
64 }
65
66 unsigned short __sn_readw(void __iomem *addr)
67 {
68         return ___sn_readw(addr);
69 }
70
71 unsigned int __sn_readl(void __iomem *addr)
72 {
73         return ___sn_readl(addr);
74 }
75
76 unsigned long __sn_readq(void __iomem *addr)
77 {
78         return ___sn_readq(addr);
79 }
80
81 unsigned char __sn_readb_relaxed(void __iomem *addr)
82 {
83         return ___sn_readb_relaxed(addr);
84 }
85
86 unsigned short __sn_readw_relaxed(void __iomem *addr)
87 {
88         return ___sn_readw_relaxed(addr);
89 }
90
91 unsigned int __sn_readl_relaxed(void __iomem *addr)
92 {
93         return ___sn_readl_relaxed(addr);
94 }
95
96 unsigned long __sn_readq_relaxed(void __iomem *addr)
97 {
98         return ___sn_readq_relaxed(addr);
99 }
100
101 #endif