patch-2.4.2 linux/include/asm-arm/arch-shark/io.h
Next file: linux/include/asm-arm/arch-tbox/io.h
Previous file: linux/include/asm-arm/arch-sa1100/uncompress.h
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Thu Feb 8 16:32:44 2001
- Orig file:
v2.4.1/linux/include/asm-arm/arch-shark/io.h
- Orig date:
Mon Sep 18 15:15:23 2000
diff -u --recursive --new-file v2.4.1/linux/include/asm-arm/arch-shark/io.h linux/include/asm-arm/arch-shark/io.h
@@ -35,7 +35,7 @@
"tst %2, #0x80000000\n\t" \
"mov %0, %4\n\t" \
"addeq %0, %0, %3\n\t" \
- "str" ##instr## " %1, [%0, %2] @ out"###fnsuffix \
+ "str" instr " %1, [%0, %2] @ out" #fnsuffix \
: "=&r" (temp) \
: "r" (value), "r" (port), "Ir" (PCIO_BASE - IO_BASE), "Ir" (IO_BASE) \
: "cc"); \
@@ -49,7 +49,7 @@
"tst %2, #0x80000000\n\t" \
"mov %0, %4\n\t" \
"addeq %0, %0, %3\n\t" \
- "ldr" ##instr## " %1, [%0, %2] @ in"###fnsuffix \
+ "ldr" instr " %1, [%0, %2] @ in" #fnsuffix \
: "=&r" (temp), "=r" (value) \
: "r" (port), "Ir" (PCIO_BASE - IO_BASE), "Ir" (IO_BASE) \
: "cc"); \
@@ -181,13 +181,8 @@
#define outw(v,p) (__builtin_constant_p((p)) ? __outwc(v,p) : __outw(v,p))
#define outl(v,p) (__builtin_constant_p((p)) ? __outlc(v,p) : __outl(v,p))
-#define __arch_getb(addr) (*(volatile unsigned char *)(addr))
#define __arch_getw(addr) (*(volatile unsigned short *)(addr))
-#define __arch_getl(addr) (*(volatile unsigned long *)(addr))
-
-#define __arch_putb(b,addr) (*(volatile unsigned char *)(addr) = (b))
#define __arch_putw(b,addr) (*(volatile unsigned short *)(addr) = (b))
-#define __arch_putl(b,addr) (*(volatile unsigned long *)(addr) = (b))
/*
* Translated address IO functions
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)