patch-2.3.17 linux/include/asm-m68k/dvma.h
Next file: linux/include/asm-m68k/elf.h
Previous file: linux/include/asm-i386/fixmap.h
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Sat Sep 4 13:06:41 1999
- Orig file:
v2.3.16/linux/include/asm-m68k/dvma.h
- Orig date:
Tue May 11 09:57:14 1999
diff -u --recursive --new-file v2.3.16/linux/include/asm-m68k/dvma.h linux/include/asm-m68k/dvma.h
@@ -9,6 +9,23 @@
#ifndef __M68K_DVMA_H
#define __M68K_DVMA_H
+#ifdef CONFIG_SUN3
+/* sun3 dvma page support */
+
+/* memory and pmegs reserved for dvma */
+#define DVMA_PMEG_START 10
+#define DVMA_PMEG_END 16
+#define DVMA_START 0xff00000
+#define DVMA_END 0xffe0000
+#define DVMA_SIZE (DVMA_END-DVMA_START)
+
+/* virt <-> phys conversions */
+#define sun3_dvma_vtop(x) ((unsigned long)(x) & 0xffffff)
+#define sun3_dvma_ptov(x) ((unsigned long)(x) | 0xf000000)
+
+void *sun3_dvma_malloc(int len);
+#else /* Sun3x */
+
/* Structure to describe the current status of DMA registers on the Sparc */
struct sparc_dma_registers {
__volatile__ unsigned long cond_reg; /* DMA condition register */
@@ -161,5 +178,5 @@
extern unsigned long dvma_alloc (unsigned long, unsigned long);
extern void dvma_free (unsigned long, unsigned long);
-
+#endif /* !CONFIG_SUN3 */
#endif /* !(__M68K_DVMA_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)