From 842c591aefe3599241a65b662b439cebd4dd61d6 Mon Sep 17 00:00:00 2001 From: se Date: Tue, 2 Dec 1997 22:37:58 +0000 Subject: Fix size of start queue to 32 entries, independent of the default number of tags (NCR_SCSI_DFLT_TAGS), which is 0 in the FAILSAFE case. This should fix the incompatibility between kernel and ncrcontrol, which is the result of FAILSAFE being defined in the kernel config file, invisible to the build of ncrcontrol. (See kern/5133, which should be fixed by this change.) --- sys/pci/ncr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c index c7a38b3..749ce0e 100644 --- a/sys/pci/ncr.c +++ b/sys/pci/ncr.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: ncr.c,v 1.111 1997/09/21 22:02:16 gibbs Exp $ +** $Id: ncr.c,v 1.112 1997/11/07 09:20:56 phk Exp $ ** ** Device driver for the NCR 53C810 PCI-SCSI-Controller. ** @@ -164,7 +164,7 @@ ** The calculation below is actually quite silly ... */ -#define MAX_START (MAX_TARGET + 7 * SCSI_NCR_DFLT_TAGS) +#define MAX_START (32) /* (MAX_TARGET + 7 * SCSI_NCR_DFLT_TAGS) */ /* ** The maximum number of segments a transfer is split into. @@ -1341,7 +1341,7 @@ static void ncr_attach (pcici_t tag, int unit); static char ident[] = - "\n$Id: ncr.c,v 1.111 1997/09/21 22:02:16 gibbs Exp $\n"; + "\n$Id: ncr.c,v 1.112 1997/11/07 09:20:56 phk Exp $\n"; static const u_long ncr_version = NCR_VERSION * 11 + (u_long) sizeof (struct ncb) * 7 -- cgit v1.1