summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev/vs.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2004-01-14 02:00:42 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2004-01-14 02:00:42 +0000
commitf7cc5b8655c9095d9f23aa77c1baec172c8b4598 (patch)
tree98e1c8baa14b2f29b38626b97795d69e7a91ec61 /sys/arch/mvme88k/dev/vs.c
parent7d99d1eb35ee8d037e426b4bb8e04e943a7c16da (diff)
Nuke SDEV_NOLUNS, SDEV_FORCELUNS, and PQUIRK_FORCELUNS quirks. Also
moreluns field in scsi_link structure. Instead, treat an INQUIRY result that duplicates the INQUIRY result of LUN 0 as proof the LUN does not exist. Compensate for lack of SDEV_NOLUNS where necessary by setting sc_link->luns to 1, which has the same effect. From Marco Peereboom. Don't issue Test Unit Ready command before INQUIRY command - not necessary and potentially harmful to devices with ADEV_NOTUR quirk since quirks have not been set yet. From mycroft@NetBSD ok deraadt@, mvme* changes by miod@.
Diffstat (limited to 'sys/arch/mvme88k/dev/vs.c')
-rw-r--r--sys/arch/mvme88k/dev/vs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/dev/vs.c b/sys/arch/mvme88k/dev/vs.c
index c7db92bcbf8..6a4c97763bc 100644
--- a/sys/arch/mvme88k/dev/vs.c
+++ b/sys/arch/mvme88k/dev/vs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vs.c,v 1.25 2004/01/02 23:38:37 miod Exp $ */
+/* $OpenBSD: vs.c,v 1.26 2004/01/14 02:00:41 krw Exp $ */
/*
* Copyright (c) 1999 Steve Murphree, Jr.
@@ -136,6 +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.luns = 1;
sc->sc_link.openings = roundup(NUM_IOPB, 8) / 8;
sc->sc_ih_n.ih_fn = vs_nintr;
@@ -283,7 +284,6 @@ vs_scsicmd(xs)
M328_IOPB *iopb;
M328_CMD *m328_cmd;
- slp->quirks |= SDEV_NOLUNS;
flags = xs->flags;
#ifdef SDEBUG