summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorjkatz <jkatz@cvs.openbsd.org>1997-02-24 20:14:41 +0000
committerjkatz <jkatz@cvs.openbsd.org>1997-02-24 20:14:41 +0000
commit940265eddcb3c62cd3d9e32d5ad08b72e40896af (patch)
treece350edaf4734dc3771a8b369d7fb671de7a0d78 /sys/scsi
parentf0f420676bb6411a1a5678b235822b50294f9406 (diff)
Adds support for DEC SCSI tape drives used in Vaxen that can also be used
in PC's. from port-vax@netbsd.org
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/scsiconf.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c
index 1fd4f17f9f1..50f53e17b12 100644
--- a/sys/scsi/scsiconf.c
+++ b/sys/scsi/scsiconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsiconf.c,v 1.23 1997/01/18 12:24:25 niklas Exp $ */
+/* $OpenBSD: scsiconf.c,v 1.24 1997/02/24 20:14:40 jkatz Exp $ */
/* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */
/*
@@ -413,6 +413,10 @@ struct scsi_quirk_inquiry_pattern scsi_quirk_patterns[] = {
{{T_SEQUENTIAL, T_REMOV,
"CALIPER ", "CP150 ", ""}, SDEV_NOLUNS},
{{T_SEQUENTIAL, T_REMOV,
+ "DEC ", "TZ30 ", ""}, SDEV_NOLUNS},
+ {{T_SEQUENTIAL, T_REMOV,
+ "DEC ", "TK50 ", ""}, SDEV_NOLUNS},
+ {{T_SEQUENTIAL, T_REMOV,
"EXABYTE ", "EXB-8200 ", ""}, SDEV_NOLUNS},
{{T_SEQUENTIAL, T_REMOV,
"SONY ", "SDT-2000 ", "2.09"}, SDEV_NOLUNS},
@@ -602,6 +606,15 @@ scsi_probedev(scsi, target, lun)
inqbuf.unused[len++] = '\0';
while (len < 3 + 28)
inqbuf.unused[len++] = ' ';
+ if (inqbuf.additional_length == 0) {
+ if (inqbuf.dev_qual2 == 0xb0) {
+ strncpy(inqbuf.unused+3, "DEC", 3);
+ strncpy(inqbuf.unused+11, "TZ30", 4);
+ } else if (inqbuf.dev_qual2 == 0xd0) {
+ strncpy(inqbuf.unused+3, "DEC", 3);
+ strncpy(inqbuf.unused+11, "TK50", 4);
+ }
+ }
}
finger = (struct scsi_quirk_inquiry_pattern *)scsi_inqmatch(&inqbuf,