Lines Matching defs:ncr_sc

158 	struct ncr5380_softc *ncr_sc = &sc->ncr_sc;
162 ncr_sc->sc_dev = self;
192 ncr_sc->sc_pio_out = ncr5380_pio_out;
193 ncr_sc->sc_pio_in = ncr5380_pio_in;
194 ncr_sc->sc_dma_alloc = si_dma_alloc;
195 ncr_sc->sc_dma_free = si_dma_free;
196 ncr_sc->sc_dma_setup = si_obio_dma_setup;
197 ncr_sc->sc_dma_start = si_obio_dma_start;
198 ncr_sc->sc_dma_poll = si_dma_poll;
199 ncr_sc->sc_dma_eop = si_obio_dma_eop;
200 ncr_sc->sc_dma_stop = si_obio_dma_stop;
201 ncr_sc->sc_intr_on = NULL;
202 ncr_sc->sc_intr_off = NULL;
211 si_obio_reset(ncr_sc);
218 si_obio_reset(struct ncr5380_softc *ncr_sc)
220 struct si_softc *sc = (struct si_softc *)ncr_sc;
276 si_obio_dma_setup(struct ncr5380_softc *ncr_sc)
278 struct si_softc *sc = (struct si_softc *)ncr_sc;
279 struct sci_req *sr = ncr_sc->sc_current;
375 si_obio_dma_start(struct ncr5380_softc *ncr_sc)
377 struct si_softc *sc = (struct si_softc *)ncr_sc;
378 struct sci_req *sr = ncr_sc->sc_current;
400 *ncr_sc->sci_tcmd = PHASE_DATA_OUT;
401 SCI_CLR_INTR(ncr_sc);
402 *ncr_sc->sci_icmd = SCI_ICMD_DATA;
403 *ncr_sc->sci_mode |= (SCI_MODE_DMA | SCI_MODE_DMA_IE);
404 *ncr_sc->sci_dma_send = 0; /* start it */
406 *ncr_sc->sci_tcmd = PHASE_DATA_IN;
407 SCI_CLR_INTR(ncr_sc);
408 *ncr_sc->sci_icmd = 0;
409 *ncr_sc->sci_mode |= (SCI_MODE_DMA | SCI_MODE_DMA_IE);
410 *ncr_sc->sci_irecv = 0; /* start it */
414 ncr_sc->sc_state |= NCR_DOINGDMA;
419 __func__, ncr_sc->sc_state);
426 si_obio_dma_eop(struct ncr5380_softc *ncr_sc)
434 si_obio_dma_stop(struct ncr5380_softc *ncr_sc)
436 struct si_softc *sc = (struct si_softc *)ncr_sc;
437 struct sci_req *sr = ncr_sc->sc_current;
442 if ((ncr_sc->sc_state & NCR_DOINGDMA) == 0) {
448 ncr_sc->sc_state &= ~NCR_DOINGDMA;
454 *ncr_sc->sci_tcmd = PHASE_INVALID;
460 ncr_sc->sc_state |= NCR_ABORTING;
461 si_obio_reset(ncr_sc);
466 if (ncr_sc->sc_state & NCR_ABORTING)
480 ncr_sc->sc_state |= NCR_ABORTING;
481 /* si_obio_reset(ncr_sc); */
506 ncr_sc->sc_state |= NCR_ABORTING;
509 if (ntrans > ncr_sc->sc_datalen)
513 ncr_sc->sc_dataptr += ntrans;
514 ncr_sc->sc_datalen -= ntrans;
524 (int) ncr_sc->sc_dataptr - 1);
525 ncr_sc->sc_dataptr[-1] =
533 (int) ncr_sc->sc_dataptr - 2);
534 ncr_sc->sc_dataptr[-2] =
536 ncr_sc->sc_dataptr[-1] =
553 *ncr_sc->sci_mode &= ~(SCI_MODE_DMA | SCI_MODE_DMA_IE);
554 *ncr_sc->sci_icmd = 0;