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
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>
15 sn_inb (unsigned long port)
17 return __sn_inb(port);
21 sn_inw (unsigned long port)
23 return __sn_inw(port);
27 sn_inl (unsigned long port)
29 return __sn_inl(port);
33 sn_outb (unsigned char val, unsigned long port)
39 sn_outw (unsigned short val, unsigned long port)
45 sn_outl (unsigned int val, unsigned long port)
53 return __sn_readb (addr);
59 return __sn_readw (addr);
65 return __sn_readl (addr);
71 return __sn_readq (addr);
77 asm (".global __sn_inb, __sn_inw, __sn_inl");
78 asm ("__sn_inb = sn_inb");
79 asm ("__sn_inw = sn_inw");
80 asm ("__sn_inl = sn_inl");
82 asm (".global __sn_outb, __sn_outw, __sn_outl");
83 asm ("__sn_outb = sn_outb");
84 asm ("__sn_outw = sn_outw");
85 asm ("__sn_outl = sn_outl");
87 asm (".global __sn_readb, __sn_readw, __sn_readl, __sn_readq");
88 asm ("__sn_readb = sn_readb");
89 asm ("__sn_readw = sn_readw");
90 asm ("__sn_readl = sn_readl");
91 asm ("__sn_readq = sn_readq");