Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/arch/mvme68k/dev Pullup 1.2: Add some delay()s arou...



details:   https://anonhg.NetBSD.org/src/rev/085fcf256cc4
branches:  netbsd-1-4
changeset: 468209:085fcf256cc4
user:      scw <scw%NetBSD.org@localhost>
date:      Tue Apr 13 20:24:09 1999 +0000

description:
Pullup 1.2: Add some delay()s around the scsibus reset code.

diffstat:

 sys/arch/mvme68k/dev/siop.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 11fbf41e9073 -r 085fcf256cc4 sys/arch/mvme68k/dev/siop.c
--- a/sys/arch/mvme68k/dev/siop.c       Tue Apr 13 20:22:28 1999 +0000
+++ b/sys/arch/mvme68k/dev/siop.c       Tue Apr 13 20:24:09 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: siop.c,v 1.1 1999/02/20 00:12:00 scw Exp $ */
+/*     $NetBSD: siop.c,v 1.1.2.1 1999/04/13 20:24:09 scw Exp $ */
 
 /*
  * Copyright (c) 1994 Michael L. Hitch
@@ -618,14 +618,18 @@
         */
        rp->siop_istat |= SIOP_ISTAT_ABRT;      /* abort current script */
        rp->siop_istat |= SIOP_ISTAT_RST;               /* reset chip */
+       delay(1);
        rp->siop_istat &= ~SIOP_ISTAT_RST;
+       delay(100);
+
        /*
         * Reset SCSI bus (do we really want this?)
         */
        rp->siop_sien = 0;
        rp->siop_scntl1 |= SIOP_SCNTL1_RST;
-       delay(1);
+       delay(10);
        rp->siop_scntl1 &= ~SIOP_SCNTL1_RST;
+       delay(5000);
 
        /*
         * Set up various chip parameters



Home | Main Index | Thread Index | Old Index