summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-03-13 12:22:38 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-03-13 12:22:38 +0000
commit6e0f740fe402f51cdf52c350f93fbda7a6328142 (patch)
tree448241c2453a75e51b82a58e4d2ad02123bfed8c
parent54fc930ea6e994e9fa62b9dd78830160110f8bd7 (diff)
Copy the scanner_type from the quirkdata to the sio for userland to see.
-rw-r--r--sys/scsi/ss.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/scsi/ss.c b/sys/scsi/ss.c
index c513d33702c..554f4b6ff88 100644
--- a/sys/scsi/ss.c
+++ b/sys/scsi/ss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ss.c,v 1.29 1997/03/13 12:19:59 kstailey Exp $ */
+/* $OpenBSD: ss.c,v 1.30 1997/03/13 12:22:37 kstailey Exp $ */
/* $NetBSD: ss.c,v 1.10 1996/05/05 19:52:55 christos Exp $ */
/*
@@ -345,6 +345,7 @@ ss_identify_scanner(ss, inqbuf)
if (ss->quirkdata->special_minphys != NULL) {
ss->special.minphys = ss->quirkdata->special_minphys;
}
+ ss->sio.scan_scanner_type = ss->quirkdata->scanner_type;
printf("\n%s: %s\n", ss->sc_dev.dv_xname, ss->quirkdata->name);
} else {
printf("\n%s: generic scanner\n", ss->sc_dev.dv_xname);