diff options
author | mjacob <mjacob@FreeBSD.org> | 2000-01-15 01:52:01 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2000-01-15 01:52:01 +0000 |
commit | f12357ba4991bd91f856b7f38680c170ba71f8c6 (patch) | |
tree | 8dfd9b26e655186b7f5c1afb680c8f5859a59e7e | |
parent | e4f656172a336d8533dda331d256ffeb5caecaaf (diff) | |
download | FreeBSD-src-f12357ba4991bd91f856b7f38680c170ba71f8c6.zip FreeBSD-src-f12357ba4991bd91f856b7f38680c170ba71f8c6.tar.gz |
clean up for SBus Ultra (yes, we do not do that here yet)
-rw-r--r-- | sys/dev/isp/isp.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/dev/isp/isp.c b/sys/dev/isp/isp.c index 75a6618..8720617 100644 --- a/sys/dev/isp/isp.c +++ b/sys/dev/isp/isp.c @@ -3866,7 +3866,14 @@ isp_setdfltparm(isp, channel) 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 @@ isp_setdfltparm(isp, channel) 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)); } |