patch-2.4.21 linux-2.4.21/include/asm-m68k/dvma.h
Next file: linux-2.4.21/include/asm-m68k/floppy.h
Previous file: linux-2.4.21/include/asm-m68k/delay.h
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
2003-06-13 07:51:38.000000000 -0700
- Orig file:
linux-2.4.20/include/asm-m68k/dvma.h
- Orig date:
2001-06-11 19:15:27.000000000 -0700
diff -urN linux-2.4.20/include/asm-m68k/dvma.h linux-2.4.21/include/asm-m68k/dvma.h
@@ -22,7 +22,8 @@
#define dvma_malloc(x) dvma_malloc_align(x, 0)
#define dvma_map(x, y) dvma_map_align(x, y, 0)
-
+#define dvma_map_vme(x, y) (dvma_map(x, y) & 0xfffff)
+#define dvma_map_align_vme(x, y, z) (dvma_map_align (x, y, z) & 0xfffff)
extern unsigned long dvma_map_align(unsigned long kaddr, int len,
int align);
extern void *dvma_malloc_align(unsigned long len, unsigned long align);
@@ -52,6 +53,8 @@
/* virt <-> phys conversions */
#define dvma_vtop(x) ((unsigned long)(x) & 0xffffff)
#define dvma_ptov(x) ((unsigned long)(x) | 0xf000000)
+#define dvma_vtovme(x) ((unsigned long)(x) & 0x00fffff)
+#define dvma_vmetov(x) ((unsigned long)(x) | 0xff00000)
#define dvma_vtob(x) dvma_vtop(x)
#define dvma_btov(x) dvma_ptov(x)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)