From c5c95fe6e1cc766826deb62c01fab01349035b43 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 2 Jan 2004 23:38:38 +0000 Subject: Better openings value computation. For now, the result is the same as the hard-coded constant it used to be, due to a pessimistic NUM_IOPB value. This will change. --- sys/arch/mvme88k/dev/vs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/mvme88k') diff --git a/sys/arch/mvme88k/dev/vs.c b/sys/arch/mvme88k/dev/vs.c index 629358a621b..c7db92bcbf8 100644 --- a/sys/arch/mvme88k/dev/vs.c +++ b/sys/arch/mvme88k/dev/vs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vs.c,v 1.24 2003/12/26 10:41:43 miod Exp $ */ +/* $OpenBSD: vs.c,v 1.25 2004/01/02 23:38:37 miod Exp $ */ /* * Copyright (c) 1999 Steve Murphree, Jr. @@ -136,7 +136,7 @@ vsattach(parent, self, auxp) sc->sc_link.adapter_target = 7; sc->sc_link.adapter = &vs_scsiswitch; sc->sc_link.device = &vs_scsidev; - sc->sc_link.openings = 1; + sc->sc_link.openings = roundup(NUM_IOPB, 8) / 8; sc->sc_ih_n.ih_fn = vs_nintr; sc->sc_ih_n.ih_arg = sc; -- cgit v1.2.3