patch-2.4.15 linux/arch/alpha/lib/io.c
Next file: linux/arch/alpha/vmlinux.lds.in
Previous file: linux/arch/alpha/lib/dec_and_lock.c
Back to the patch index
Back to the overall index
- Lines: 147
- Date:
Fri Nov 9 13:45:35 2001
- Orig file:
v2.4.14/linux/arch/alpha/lib/io.c
- Orig date:
Sat Nov 27 15:27:48 1999
diff -u --recursive --new-file v2.4.14/linux/arch/alpha/lib/io.c linux/arch/alpha/lib/io.c
@@ -9,124 +9,124 @@
#include <asm/io.h>
-unsigned int _inb(unsigned long addr)
+u8 _inb(unsigned long addr)
{
return __inb(addr);
}
-unsigned int _inw(unsigned long addr)
+u16 _inw(unsigned long addr)
{
return __inw(addr);
}
-unsigned int _inl(unsigned long addr)
+u32 _inl(unsigned long addr)
{
return __inl(addr);
}
-void _outb(unsigned char b, unsigned long addr)
+void _outb(u8 b, unsigned long addr)
{
__outb(b, addr);
}
-void _outw(unsigned short b, unsigned long addr)
+void _outw(u16 b, unsigned long addr)
{
__outw(b, addr);
}
-void _outl(unsigned int b, unsigned long addr)
+void _outl(u32 b, unsigned long addr)
{
__outl(b, addr);
}
-unsigned long ___raw_readb(unsigned long addr)
+u8 ___raw_readb(unsigned long addr)
{
return __readb(addr);
}
-unsigned long ___raw_readw(unsigned long addr)
+u16 ___raw_readw(unsigned long addr)
{
return __readw(addr);
}
-unsigned long ___raw_readl(unsigned long addr)
+u32 ___raw_readl(unsigned long addr)
{
return __readl(addr);
}
-unsigned long ___raw_readq(unsigned long addr)
+u64 ___raw_readq(unsigned long addr)
{
return __readq(addr);
}
-unsigned long _readb(unsigned long addr)
+u8 _readb(unsigned long addr)
{
unsigned long r = __readb(addr);
mb();
return r;
}
-unsigned long _readw(unsigned long addr)
+u16 _readw(unsigned long addr)
{
unsigned long r = __readw(addr);
mb();
return r;
}
-unsigned long _readl(unsigned long addr)
+u32 _readl(unsigned long addr)
{
unsigned long r = __readl(addr);
mb();
return r;
}
-unsigned long _readq(unsigned long addr)
+u64 _readq(unsigned long addr)
{
unsigned long r = __readq(addr);
mb();
return r;
}
-void ___raw_writeb(unsigned char b, unsigned long addr)
+void ___raw_writeb(u8 b, unsigned long addr)
{
__writeb(b, addr);
}
-void ___raw_writew(unsigned short b, unsigned long addr)
+void ___raw_writew(u16 b, unsigned long addr)
{
__writew(b, addr);
}
-void ___raw_writel(unsigned int b, unsigned long addr)
+void ___raw_writel(u32 b, unsigned long addr)
{
__writel(b, addr);
}
-void ___raw_writeq(unsigned long b, unsigned long addr)
+void ___raw_writeq(u64 b, unsigned long addr)
{
__writeq(b, addr);
}
-void _writeb(unsigned char b, unsigned long addr)
+void _writeb(u8 b, unsigned long addr)
{
__writeb(b, addr);
mb();
}
-void _writew(unsigned short b, unsigned long addr)
+void _writew(u16 b, unsigned long addr)
{
__writew(b, addr);
mb();
}
-void _writel(unsigned int b, unsigned long addr)
+void _writel(u32 b, unsigned long addr)
{
__writel(b, addr);
mb();
}
-void _writeq(unsigned long b, unsigned long addr)
+void _writeq(u64 b, unsigned long addr)
{
__writeq(b, addr);
mb();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)