/* DMA card description */ #define UNIX_DMA 0x500000 struct dma_regs { union { short dma_clear; caddr_t dma_addr; } dma_r0; short dma_cnt; short dma_ctrl; }; typedef struct dma_regs dma_card[1]; #define dma_stat dma_ctrl /* control register */ #define DMA_I_FLAG 0x01 #define DMA_WMODE 0x02 #define DMA_WRIT 0x04 #define DMA_PRI 0x08 /* status */ #define DMA_ARMED 0x01 #define DMA_INTG 0x02