patch-2.3.17 linux/include/asm-m68k/virtconvert.h
Next file: linux/include/asm-mips/hardirq.h
Previous file: linux/include/asm-m68k/swim_iop.h
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Sat Sep 4 13:06:41 1999
- Orig file:
v2.3.16/linux/include/asm-m68k/virtconvert.h
- Orig date:
Tue Jan 19 10:58:34 1999
diff -u --recursive --new-file v2.3.16/linux/include/asm-m68k/virtconvert.h linux/include/asm-m68k/virtconvert.h
@@ -17,9 +17,21 @@
/*
* Change virtual addresses to physical addresses and vv.
*/
+#ifndef CONFIG_SUN3
extern unsigned long mm_vtop(unsigned long addr) __attribute__ ((const));
extern unsigned long mm_vtop_fallback (unsigned long) __attribute__ ((const));
extern unsigned long mm_ptov(unsigned long addr) __attribute__ ((const));
+#else
+extern inline unsigned long mm_vtop(unsigned long vaddr)
+{
+ return __pa(vaddr);
+}
+
+extern inline unsigned long mm_ptov(unsigned long paddr)
+{
+ return (unsigned long)__va(paddr);
+}
+#endif
#ifdef CONFIG_SINGLE_MEMORY_CHUNK
extern inline unsigned long virt_to_phys(volatile void * address)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)