summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1997-09-09 21:52:31 +0000
committerse <se@FreeBSD.org>1997-09-09 21:52:31 +0000
commita3513c6deea05987d74ccabf2c51c5f5b1875548 (patch)
tree8ad652747e0bc1b43ed1db9f42af68cf7519246e /sys/pci
parent0791c3c050563d41ecbe2f1f3dbd97650078073e (diff)
downloadFreeBSD-src-a3513c6deea05987d74ccabf2c51c5f5b1875548.zip
FreeBSD-src-a3513c6deea05987d74ccabf2c51c5f5b1875548.tar.gz
Remove scaling of tp->period, since the value is assumed to be in
tenth of a nanoseconds by ncrcontrol
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/ncr.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c
index 1b3fc74..c6f6ee5 100644
--- a/sys/pci/ncr.c
+++ b/sys/pci/ncr.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: ncr.c,v 1.107 1997/08/31 19:36:56 se Exp $
+** $Id: ncr.c,v 1.108 1997/08/31 19:42:29 se Exp $
**
** Device driver for the NCR 53C810 PCI-SCSI-Controller.
**
@@ -1340,7 +1340,7 @@ static void ncr_attach (pcici_t tag, int unit);
static char ident[] =
- "\n$Id: ncr.c,v 1.107 1997/08/31 19:36:56 se Exp $\n";
+ "\n$Id: ncr.c,v 1.108 1997/08/31 19:42:29 se Exp $\n";
static const u_long ncr_version = NCR_VERSION * 11
+ (u_long) sizeof (struct ncb) * 7
@@ -5204,16 +5204,6 @@ static void ncr_setsync (ncb_p np, ccb_p cp, u_char scntl3, u_char sxfer)
mb10 / 10, mb10 % 10, tp->period / 10, sxfer & 0x1f);
} else printf ("asynchronous.\n");
-#if 1
- /*
- ** Convert tp->period in nano-seconds since ncrcontrol
- ** is expecting nano-seconds. It should be better to
- ** update ncrcontrol.
- */
- if (tp->period != 0xffff)
- tp->period = (tp->period + 9) / 10;
-#endif
-
/*
** set actual value and sync_status
*/
OpenPOWER on IntegriCloud