From 9e8667b9a66c4533c0a81ce40e8361180586f896 Mon Sep 17 00:00:00 2001 From: jkatz Date: Mon, 24 Feb 1997 20:14:40 +0000 Subject: [PATCH] Adds support for DEC SCSI tape drives used in Vaxen that can also be used in PC's. from port-vax@netbsd.org --- sys/scsi/scsiconf.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 $ */ /* @@ -412,6 +412,10 @@ struct scsi_quirk_inquiry_pattern scsi_quirk_patterns[] = { " ", " ", " "}, SDEV_NOLUNS}, {{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, @@ -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, -- 2.20.1