diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2007-02-28 18:46:17 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2007-02-28 18:46:17 +0000 |
commit | dd1fcdbcbb034dcabbf48f0f3fd5a2a0dc5cece3 (patch) | |
tree | 41f5e6bc57bc9e1b0b72aae53d806166d62e4805 | |
parent | 7ebdecca2d6ec1365f10d76b7d030c6c9985d1d1 (diff) |
Adjust residual counter for esp wide transfers; from NetBSD
-rw-r--r-- | sys/dev/ic/lsi64854.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ic/lsi64854.c b/sys/dev/ic/lsi64854.c index 17760eaa162..c70d95ac495 100644 --- a/sys/dev/ic/lsi64854.c +++ b/sys/dev/ic/lsi64854.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lsi64854.c,v 1.6 2005/03/03 01:41:44 miod Exp $ */ +/* $OpenBSD: lsi64854.c,v 1.7 2007/02/28 18:46:16 miod Exp $ */ /* $NetBSD: lsi64854.c,v 1.18 2001/06/04 20:56:51 mrg Exp $ */ /*- @@ -438,6 +438,9 @@ lsi64854_scsi_intr(arg) if (!(csr & D_WRITE) && (resid = (NCR_READ_REG(nsc, NCR_FFLAG) & NCRFIFO_FF)) != 0) { DPRINTF(LDB_SCSI, ("dmaintr: empty esp FIFO of %d ", resid)); + if (nsc->sc_rev == NCR_VARIANT_FAS366 && + (NCR_READ_REG(nsc, NCR_CFG3) & NCRFASCFG3_EWIDE)) + resid <<= 1; } if ((nsc->sc_espstat & NCRSTAT_TC) == 0) { |