patch-1.3.38 linux/include/asm-alpha/apecs.h
Next file: linux/include/asm-alpha/errno.h
Previous file: linux/fs/smbfs/sock.c
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Tue Nov 7 09:18:35 1995
- Orig file:
v1.3.37/linux/include/asm-alpha/apecs.h
- Orig date:
Fri Oct 6 14:35:16 1995
diff -u --recursive --new-file v1.3.37/linux/include/asm-alpha/apecs.h linux/include/asm-alpha/apecs.h
@@ -306,42 +306,14 @@
*(vuip) (addr + APECS_DENSE_MEM) = b;
}
-/*
- * Most of the above have so much overhead that it probably doesn't
- * make sense to have them inlined (better icache behavior).
- */
-extern unsigned int inb(unsigned long addr);
-extern unsigned int inw(unsigned long addr);
-extern unsigned int inl(unsigned long addr);
-
-extern void outb(unsigned char b, unsigned long addr);
-extern void outw(unsigned short b, unsigned long addr);
-extern void outl(unsigned int b, unsigned long addr);
-
-extern unsigned long readb(unsigned long addr);
-extern unsigned long readw(unsigned long addr);
-
-extern void writeb(unsigned char b, unsigned long addr);
-extern void writew(unsigned short b, unsigned long addr);
-
#define inb(port) \
-(__builtin_constant_p((port))?__inb(port):(inb)(port))
+(__builtin_constant_p((port))?__inb(port):_inb(port))
#define outb(x, port) \
-(__builtin_constant_p((port))?__outb((x),(port)):(outb)((x),(port)))
-
-#define inb_p inb
-#define outb_p outb
-
-extern inline unsigned long readl(unsigned long addr)
-{
- return __readl(addr);
-}
+(__builtin_constant_p((port))?__outb((x),(port)):_outb((x),(port)))
-extern inline void writel(unsigned int b, unsigned long addr)
-{
- __writel(b, addr);
-}
+#define readl(a) __readl((unsigned long)(a))
+#define writel(v,a) __writel((v),(unsigned long)(a))
#undef vuip
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this