patch-2.1.106 linux/include/asm-arm/io.h
Next file: linux/include/asm-arm/ioctl.h
Previous file: linux/include/asm-arm/hardirq.h
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Sat Jun 13 13:11:12 1998
- Orig file:
v2.1.105/linux/include/asm-arm/io.h
- Orig date:
Tue Apr 14 14:29:25 1998
diff -u --recursive --new-file v2.1.105/linux/include/asm-arm/io.h linux/include/asm-arm/io.h
@@ -170,44 +170,5 @@
#undef ARCH_IO_DELAY
#undef ARCH_IO_CONSTANT
-/*
- * Leftovers...
- */
-#if 0
-#define __outwc(value,port) \
-({ \
- if (port < 256) \
- __asm__ __volatile__( \
- "strh %0, [%1, %2]" \
- : : "r" (value), "r" (PCIO_BASE), "J" (port << 2)); \
- else if (__PORT_PCIO(port)) \
- __asm__ __volatile__( \
- "strh %0, [%1, %2]" \
- : : "r" (value), "r" (PCIO_BASE), "r" (port << 2)); \
- else \
- __asm__ __volatile__( \
- "strh %0, [%1, %2]" \
- : : "r" (value), "r" (IO_BASE), "r" (port << 2)); \
-})
-
-#define __inwc(port) \
-({ \
- unsigned short result; \
- if (port < 256) \
- __asm__ __volatile__( \
- "ldrh %0, [%1, %2]" \
- : "=r" (result) : "r" (PCIO_BASE), "J" (port << 2)); \
- else \
- if (__PORT_PCIO(port)) \
- __asm__ __volatile__( \
- "ldrh %0, [%1, %2]" \
- : "=r" (result) : "r" (PCIO_BASE), "r" (port << 2)); \
- else \
- __asm__ __volatile__( \
- "ldrh %0, [%1, %2]" \
- : "=r" (result) : "r" (IO_BASE), "r" (port << 2)); \
- result; \
-})
-#endif
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov