diff options
Diffstat (limited to 'sys/arch/hp300/dev/dmareg.h')
-rw-r--r-- | sys/arch/hp300/dev/dmareg.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/hp300/dev/dmareg.h b/sys/arch/hp300/dev/dmareg.h index 1e94ae6c069..96f9741dbce 100644 --- a/sys/arch/hp300/dev/dmareg.h +++ b/sys/arch/hp300/dev/dmareg.h @@ -1,5 +1,5 @@ -/* $OpenBSD: dmareg.h,v 1.3 1997/01/12 15:12:28 downsj Exp $ */ -/* $NetBSD: dmareg.h,v 1.7 1996/12/09 06:18:13 thorpej Exp $ */ +/* $OpenBSD: dmareg.h,v 1.4 1997/02/03 04:47:22 downsj Exp $ */ +/* $NetBSD: dmareg.h,v 1.8 1997/01/30 09:04:34 thorpej Exp $ */ /* * Copyright (c) 1982, 1990, 1993 @@ -116,21 +116,21 @@ struct dmareg { #define DMA_ARM(dc) \ if (dc->dm_softc->sc_type == DMA_B) { \ register struct dmaBdevice *dma = dc->dm_Bhwaddr; \ - dma->dmaB_addr = dc->dm_cur->dc_addr; \ - dma->dmaB_count = dc->dm_cur->dc_count - 1; \ + dma->dmaB_addr = dc->dm_chain[dc->dm_cur].dc_addr; \ + dma->dmaB_count = dc->dm_chain[dc->dm_cur].dc_count - 1; \ dma->dmaB_cmd = dc->dm_cmd; \ } else { \ register struct dmadevice *dma = dc->dm_hwaddr; \ - dma->dma_addr = dc->dm_cur->dc_addr; \ - dma->dma_count = dc->dm_cur->dc_count - 1; \ + dma->dma_addr = dc->dm_chain[dc->dm_cur].dc_addr; \ + dma->dma_count = dc->dm_chain[dc->dm_cur].dc_count - 1; \ dma->dma_cmd = dc->dm_cmd; \ } #else #define DMA_ARM(dc) \ { \ register struct dmadevice *dma = dc->dm_hwaddr; \ - dma->dma_addr = dc->dm_cur->dc_addr; \ - dma->dma_count = dc->dm_cur->dc_count - 1; \ + dma->dma_addr = dc->dm_chain[dc->dm_cur].dc_addr; \ + dma->dma_count = dc->dm_chain[dc->dm_cur].dc_count - 1; \ dma->dma_cmd = dc->dm_cmd; \ } #endif |