Lines Matching defs:dma
1 /* $NetBSD: dma.c,v 1.25 2024/12/20 23:52:00 tsutsui Exp $ */
34 __KERNEL_RCSID(0, "$NetBSD: dma.c,v 1.25 2024/12/20 23:52:00 tsutsui Exp $");
63 CFATTACH_DECL_NEW(dma, sizeof(struct dma_softc),
72 * Check for the DMA registers.
115 aprint_error(": can't create DMA map\n");
124 * Make sure the DMA chip is supported revision.
133 panic("unsupported dma rev");
143 struct dma_softc *dma;
145 dma = device_lookup_private(&dma_cd, unit);
146 if (dma == NULL)
147 panic("%s: no dma", __func__);
148 return dma;
168 * DMA rev0 & rev1: we are not allowed to touch the DMA "flush" \
190 * DMA rev0 & rev1: we are not allowed to touch the DMA "flush" \
214 csr |= D_RESET; /* reset DMA */
228 * always has the old, REV zero DMA chip.
242 * setup a dma transfer
263 * of this DMA chip (64k for old and 16Mb for new),
271 /* Program the DMA address */
286 /* Setup DMA control register */
300 * current running DMA transfer. I am relying on espintr() to
303 * return 1 if it was a DMA continue.
325 csr &= ~D_EN_DMA; /* Stop DMA */
334 panic("%s: DMA wasn't active", __func__);
338 /* DMA has stopped */
387 * if the ESP is reselected while using DMA to select