aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/sn/kernel/sn2/io.c
blob: a12c0586de38257c4f0a4bc8c792d8e90db65ab5 (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/* 
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 2003 Silicon Graphics, Inc. All rights reserved.
 *
 * The generic kernel requires function pointers to these routines, so
 * we wrap the inlines from asm/ia64/sn/sn2/io.h here.
 */

#include <asm/sn/io.h>

#ifdef CONFIG_IA64_GENERIC

#undef __sn_inb
#undef __sn_inw
#undef __sn_inl
#undef __sn_outb
#undef __sn_outw
#undef __sn_outl
#undef __sn_readb
#undef __sn_readw
#undef __sn_readl
#undef __sn_readq
#undef __sn_readb_relaxed
#undef __sn_readw_relaxed
#undef __sn_readl_relaxed
#undef __sn_readq_relaxed

unsigned int __sn_inb(unsigned long port)
{
	return ___sn_inb(port);
}

unsigned int __sn_inw(unsigned long port)
{
	return ___sn_inw(port);
}

unsigned int __sn_inl(unsigned long port)
{
	return ___sn_inl(port);
}

void __sn_outb(unsigned char val, unsigned long port)
{
	___sn_outb(val, port);
}

void __sn_outw(unsigned short val, unsigned long port)
{
	___sn_outw(val, port);
}

void __sn_outl(unsigned int val, unsigned long port)
{
	___sn_outl(val, port);
}

unsigned char __sn_readb(void __iomem *addr)
{
	return ___sn_readb(addr);
}

unsigned short __sn_readw(void __iomem *addr)
{
	return ___sn_readw(addr);
}

unsigned int __sn_readl(void __iomem *addr)
{
	return ___sn_readl(addr);
}

unsigned long __sn_readq(void __iomem *addr)
{
	return ___sn_readq(addr);
}

unsigned char __sn_readb_relaxed(void __iomem *addr)
{
	return ___sn_readb_relaxed(addr);
}

unsigned short __sn_readw_relaxed(void __iomem *addr)
{
	return ___sn_readw_relaxed(addr);
}

unsigned int __sn_readl_relaxed(void __iomem *addr)
{
	return ___sn_readl_relaxed(addr);
}

unsigned long __sn_readq_relaxed(void __iomem *addr)
{
	return ___sn_readq_relaxed(addr);
}

#endif