patch-2.1.110 linux/include/asm-arm/arch-arc/io.h
Next file: linux/include/asm-arm/arch-arc/processor.h
Previous file: linux/include/asm-alpha/tsunami.h
Back to the patch index
Back to the overall index
-  Lines: 20
-  Date:
Sat Jul 18 11:55:25 1998
-  Orig file: 
v2.1.109/linux/include/asm-arm/arch-arc/io.h
-  Orig date: 
Tue Apr 14 14:29:25 1998
diff -u --recursive --new-file v2.1.109/linux/include/asm-arm/arch-arc/io.h linux/include/asm-arm/arch-arc/io.h
@@ -159,7 +159,18 @@
 	result & 0xffff;							\
 })
 
-#define __outlc(v,p) __outwc((v),(p))
+#define __outlc(value,port) 							\
+({										\
+	unsigned long v = value;						\
+	if (__PORT_PCIO((port)))						\
+		__asm__ __volatile__(						\
+		"str	%0, [%1, %2]"						\
+		: : "r" (v), "r" (PCIO_BASE), "Jr" ((port) << 2));		\
+	else									\
+		__asm__ __volatile__(						\
+		"str	%0, [%1, %2]"						\
+		: : "r" (v), "r" (IO_BASE), "r" ((port) << 2));			\
+})
 
 #define __inlc(port)								\
 ({										\
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov