diff options
author | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2007-04-07 13:05:19 +0000 |
---|---|---|
committer | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2007-04-07 13:05:19 +0000 |
commit | ff8d71edba0fdd86abb1dd12bb30cb423aa695ae (patch) | |
tree | ccb365dec7ffd50ea8b617b645469424a763e7ac /sys | |
parent | 5b47b46c9f1a064d93dc98c1ea47163862ce9ae7 (diff) |
Use the rx_count saved in the LRAM command slot entry to determine the
xfer residual.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/sili.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/sili.c b/sys/dev/ic/sili.c index 86b04ff79b9..750eb21c71c 100644 --- a/sys/dev/ic/sili.c +++ b/sys/dev/ic/sili.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sili.c,v 1.17 2007/04/07 10:07:12 pascoe Exp $ */ +/* $OpenBSD: sili.c,v 1.18 2007/04/07 13:05:18 pascoe Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -687,7 +687,7 @@ sili_unload(struct sili_ccb *ccb) BUS_DMASYNC_POSTWRITE); bus_dmamap_unload(sc->sc_dmat, dmap); - xa->resid = 0; + xa->resid = xa->datalen - sili_pread(sp, SILI_PREG_RX_COUNT(xa->tag)); } struct ata_xfer * |