patch-2.1.16 linux/include/asm-sparc/io.h
Next file: linux/include/asm-sparc/page.h
Previous file: linux/include/asm-sparc/head.h
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Fri Dec 13 11:37:40 1996
- Orig file:
v2.1.15/linux/include/asm-sparc/io.h
- Orig date:
Tue Nov 12 15:56:12 1996
diff -u --recursive --new-file v2.1.15/linux/include/asm-sparc/io.h linux/include/asm-sparc/io.h
@@ -1,4 +1,4 @@
-/* $Id: io.h,v 1.10 1996/08/29 09:48:14 davem Exp $ */
+/* $Id: io.h,v 1.11 1996/11/19 11:26:14 davem Exp $ */
#ifndef __SPARC_IO_H
#define __SPARC_IO_H
@@ -138,5 +138,8 @@
extern void *sparc_alloc_io (void *, void *, int, char *, int, int);
extern void sparc_free_io (void *, int);
extern void *sparc_dvma_malloc (int, char *);
+
+#define virt_to_phys(x) __pa((unsigned long)(x))
+#define phys_to_virt(x) __va((unsigned long)(x))
#endif /* !(__SPARC_IO_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov