Reset dx_nextoff and dx_nextsize before transfer.

This commit is contained in:
minoura 2001-05-27 02:18:07 +00:00
parent 8ef179b856
commit cbfe174737
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: intio_dmac.c,v 1.10 2001/05/22 00:16:49 minoura Exp $ */
/* $NetBSD: intio_dmac.c,v 1.11 2001/05/27 02:18:07 minoura Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -303,6 +303,7 @@ dmac_alloc_xfer (chan, dmat, dmamap)
xf->dx_array = chan->ch_map;
xf->dx_done = 0;
#endif
xf->dx_nextoff = xf->dx_nextsize = -1;
return xf;
}
@ -628,6 +629,7 @@ dmac_abort_xfer(self, xf)
bus_space_write_1(sc->sc_bst, chan->ch_bht, DMAC_REG_CCR,
DMAC_CCR_INT | DMAC_CCR_HLT);
bus_space_write_1(sc->sc_bst, chan->ch_bht, DMAC_REG_CSR, 0xff);
xf->dx_nextoff = xf->dx_nextsize = -1;
return 0;
}