Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic UltraMode is okay for SBus cards with chiptypes o...



details:   https://anonhg.NetBSD.org/src/rev/9032e2c31156
branches:  trunk
changeset: 480506:9032e2c31156
user:      mjacob <mjacob%NetBSD.org@localhost>
date:      Fri Jan 14 08:46:37 2000 +0000

description:
UltraMode is okay for SBus cards with chiptypes of 1020A.

diffstat:

 sys/dev/ic/isp.c |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r dbb5c40b340f -r 9032e2c31156 sys/dev/ic/isp.c
--- a/sys/dev/ic/isp.c  Fri Jan 14 08:43:17 2000 +0000
+++ b/sys/dev/ic/isp.c  Fri Jan 14 08:46:37 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isp.c,v 1.47 2000/01/06 23:02:51 mjacob Exp $ */
+/* $NetBSD: isp.c,v 1.48 2000/01/14 08:46:37 mjacob Exp $ */
 /*
  * Copyright (C) 1997, 1998, 1999 National Aeronautics & Space Administration
  * All rights reserved.
@@ -3866,7 +3866,14 @@
                sdp->isp_devparam[tgt].cur_period = 0;
                sdp->isp_devparam[tgt].dev_flags = DPARM_DEFAULT;
                sdp->isp_devparam[tgt].cur_dflags = 0;
-               if (isp->isp_type < ISP_HA_SCSI_1040 ||
+               /*
+                * We default to Wide/Fast for versions less than a 1040
+                * (unless it's SBus).
+                */
+               if ((isp->isp_bustype == ISP_BT_SBUS &&
+                   isp->isp_type < ISP_HA_SCSI_1020A) ||
+                   (isp->isp_bustype == ISP_BT_PCI &&
+                   isp->isp_type < ISP_HA_SCSI_1040) ||
                    (isp->isp_clock && isp->isp_clock < 60)) {
                        sdp->isp_devparam[tgt].sync_offset =
                            ISP_10M_SYNCPARMS >> 8;
@@ -3931,7 +3938,7 @@
                IDPRINTF(3, ("%s: bus %d tgt %d flags %x offset %x period %x\n",
                    isp->isp_name, channel, tgt,
                    sdp->isp_devparam[tgt].dev_flags,
-                   sdp->isp_devparam[tgt].sync_period,
+                   sdp->isp_devparam[tgt].sync_offset,
                    sdp->isp_devparam[tgt].sync_period));
        }
 



Home | Main Index | Thread Index | Old Index