Put back the initialization of the time constants of the SCSI and Sync.
logic clock signal, which had been erroneously commented out by the previous commit. This will re-enable support for sync. transfer negotiation, which depends on one of those values.
This commit is contained in:
parent
0210175107
commit
111f20268d
@ -1,6 +1,6 @@
|
|||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
**
|
**
|
||||||
** $Id: ncr.c,v 1.74 1996/08/05 19:39:51 se Exp $
|
** $Id: ncr.c,v 1.75 1996/08/26 22:38:07 se Exp $
|
||||||
**
|
**
|
||||||
** Device driver for the NCR 53C810 PCI-SCSI-Controller.
|
** Device driver for the NCR 53C810 PCI-SCSI-Controller.
|
||||||
**
|
**
|
||||||
@ -1254,7 +1254,7 @@ static void ncr_attach (pcici_t tag, int unit);
|
|||||||
|
|
||||||
|
|
||||||
static char ident[] =
|
static char ident[] =
|
||||||
"\n$Id: ncr.c,v 1.74 1996/08/05 19:39:51 se Exp $\n";
|
"\n$Id: ncr.c,v 1.75 1996/08/26 22:38:07 se Exp $\n";
|
||||||
|
|
||||||
static const u_long ncr_version = NCR_VERSION * 11
|
static const u_long ncr_version = NCR_VERSION * 11
|
||||||
+ (u_long) sizeof (struct ncb) * 7
|
+ (u_long) sizeof (struct ncb) * 7
|
||||||
@ -6797,9 +6797,18 @@ static void ncr_getclock (ncb_p np, u_char scntl3)
|
|||||||
* For now just preserve the BIOS setting ...
|
* For now just preserve the BIOS setting ...
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if ((scntl3 & 7) == 0) {
|
||||||
|
scntl3 = 3; /* assume 40MHz if no value supplied by BIOS */
|
||||||
|
}
|
||||||
|
|
||||||
|
np->ns_sync = 25;
|
||||||
|
np->ns_async = 50;
|
||||||
np->rv_scntl3 = ((scntl3 & 0x7) << 4) -0x20 + (scntl3 & 0x7);
|
np->rv_scntl3 = ((scntl3 & 0x7) << 4) -0x20 + (scntl3 & 0x7);
|
||||||
if (bootverbose) printf ("\tinitial value of SCNTL3 = %02x, final = %02x\n",
|
|
||||||
scntl3, np->rv_scntl3);
|
if (bootverbose) {
|
||||||
|
printf ("\tinitial value of SCNTL3 = %02x, final = %02x\n",
|
||||||
|
scntl3, np->rv_scntl3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*=========================================================================*/
|
/*=========================================================================*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user