patch-1.3.5 linux/include/asm-alpha/io.h
Next file: linux/include/asm-alpha/lca.h
Previous file: linux/fs/proc/scsi.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Tue Jun 27 13:54:24 1995
- Orig file:
v1.3.4/linux/include/asm-alpha/io.h
- Orig date:
Fri Jun 16 22:02:55 1995
diff -u --recursive --new-file v1.3.4/linux/include/asm-alpha/io.h linux/include/asm-alpha/io.h
@@ -44,7 +44,7 @@
/*
* Change virtual addresses to physical addresses and vv.
*/
-extern inline unsigned long virt_to_phys(void * address)
+extern inline unsigned long virt_to_phys(volatile void * address)
{
return 0xffffffffUL & (unsigned long) address;
}
@@ -89,5 +89,22 @@
#else
#include <asm/jensen.h>
#endif
+
+/*
+ * String version of IO memory access ops:
+ */
+extern void memcpy_fromio(void *, unsigned long, unsigned long);
+extern void memcpy_toio(unsigned long, void *, unsigned long);
+extern void memset_io(unsigned long, int, unsigned long);
+
+/*
+ * String versions of in/out ops:
+ */
+extern void insb (unsigned long port, void *src, unsigned long count);
+extern void insw (unsigned long port, void *src, unsigned long count);
+extern void insl (unsigned long port, void *src, unsigned long count);
+extern void outsb (unsigned long port, void *dst, unsigned long count);
+extern void outsw (unsigned long port, void *dst, unsigned long count);
+extern void outsl (unsigned long port, void *dst, unsigned long count);
#endif
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