diff options
author | 2007-02-28 18:46:16 +0000 | |
---|---|---|
committer | 2007-02-28 18:46:16 +0000 | |
commit | 49e2ba2465d6a7833d25c2ab3be18bfb5adb9ed5 (patch) | |
tree | 6fa478245f50418f688bf2734b643c31187069ad | |
parent | do status dampening for OK status as well, i. e. (diff) | |
download | wireguard-openbsd-49e2ba2465d6a7833d25c2ab3be18bfb5adb9ed5.tar.xz wireguard-openbsd-49e2ba2465d6a7833d25c2ab3be18bfb5adb9ed5.zip |
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) { |