Home | History | Annotate | Download | only in boot

Lines Matching defs:dma

69     struct dma_dev *dma;
72 dma = (struct dma_dev *)P_SCSI_CSR;
78 /* first reset DMA */
79 dma->dd_csr = DMACSR_RESET;
187 /* registers are not valid on DMA intr */
189 DPRINTF(("scsiicmd: DMA intr\n"));
332 struct dma_dev *dma;
335 dma = (struct dma_dev *)P_SCSI_CSR;
339 scsierror("DMA too long");
346 DPRINTF(("hmm ... no DMA requested.\n"));
353 scsierror("unrequested DMA");
358 PRINTF(("DMA start: %lx, %d byte.\n", (long)addr, len));
372 dma->dd_csr = DMACSR_READ | DMACSR_RESET;
373 dma->dd_next_initbuf = dma_buffer;
374 dma->dd_limit = DMA_ENDALIGN(char *, dma_buffer+len);
375 dma->dd_csr = DMACSR_READ | DMACSR_SETENABLE;
377 dma->dd_csr = 0;
378 dma->dd_csr = DMACSR_INITBUF | DMACSR_READ | DMACSR_RESET;
379 dma->dd_next = dma_buffer;
380 dma->dd_limit = DMA_ENDALIGN(char *, dma_buffer+len);
381 dma->dd_csr = DMACSR_READ | DMACSR_SETENABLE;
394 struct dma_dev *dma;
399 dma = (struct dma_dev *)P_SCSI_CSR;
401 state = dma->dd_csr & (DMACSR_BUSEXC | DMACSR_COMPLETE
406 DPRINTF(("DMA state = 0x%x, remain = %d.\n", state, resid));
414 DPRINTF(("DMA still enabled, flushing DCTL.\n"));
422 state = dma->dd_csr & (DMACSR_BUSEXC | DMACSR_COMPLETE
429 dma->dd_csr = DMACSR_CLRCOMPLETE | DMACSR_RESET;
431 DPRINTF(("DMA done. remain = %d, state = 0x%x, fifo = 0x%x.\n", resid, state, sr[NCR_FFLAG] & NCRFIFO_FF));
436 printf("WARNING: unexpected %d characters remain in DMA\n",resid);
437 scsierror("DMA transfer incomplete");
445 scsierror("DMA failed");
455 DPRINTF(("DMA done. got %d.\n", sc->dma_len));
458 /* scsierror("DMA not completed\n"); */