summaryrefslogtreecommitdiff
path: root/sys/scsi/sd.c
diff options
context:
space:
mode:
authorThierry Deval <tdeval@cvs.openbsd.org>2002-09-04 23:07:29 +0000
committerThierry Deval <tdeval@cvs.openbsd.org>2002-09-04 23:07:29 +0000
commite4246e4a6e57452b37d4a86022289dca3401e3d8 (patch)
tree061f65704488fe7202c0b1e0973bd00d182ad052 /sys/scsi/sd.c
parenta98af4423d3839ab4773e0080a4ede3129ae01eb (diff)
Add support for RBC (simplified direct) devices.
ok costa@, krw@
Diffstat (limited to 'sys/scsi/sd.c')
-rw-r--r--sys/scsi/sd.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c
index fa288e71d5c..1c30de210f1 100644
--- a/sys/scsi/sd.c
+++ b/sys/scsi/sd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sd.c,v 1.54 2002/08/12 06:59:46 fgsch Exp $ */
+/* $OpenBSD: sd.c,v 1.55 2002/09/04 23:07:28 tdeval Exp $ */
/* $NetBSD: sd.c,v 1.111 1997/04/02 02:29:41 mycroft Exp $ */
/*-
@@ -129,6 +129,10 @@ struct scsi_inquiry_pattern sd_patterns[] = {
"", "", ""},
{T_DIRECT, T_REMOV,
"", "", ""},
+ {T_RDIRECT, T_FIXED,
+ "", "", ""},
+ {T_RDIRECT, T_REMOV,
+ "", "", ""},
{T_OPTICAL, T_FIXED,
"", "", ""},
{T_OPTICAL, T_REMOV,
@@ -197,6 +201,9 @@ sdattach(parent, self, aux)
sd->sc_ops = &sd_scsibus_ops;
}
+ if (!(sc_link->inquiry_flags & SID_RelAdr))
+ sc_link->quirks |= SDEV_NOCDB6;
+
/*
* Note if this device is ancient. This is used in sdminphys().
*/