diff options
Diffstat (limited to 'include/asm-m68k/dvma.h')
-rw-r--r-- | include/asm-m68k/dvma.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/include/asm-m68k/dvma.h b/include/asm-m68k/dvma.h index f6976b43c..4f7875def 100644 --- a/include/asm-m68k/dvma.h +++ b/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 struct Linux_SBus_DMA *dma_chain; extern unsigned long dvma_alloc (unsigned long, unsigned long); extern void dvma_free (unsigned long, unsigned long); - +#endif /* !CONFIG_SUN3 */ #endif /* !(__M68K_DVMA_H) */ |