summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1998-09-16 15:53:25 +0000
committerkstailey <kstailey@cvs.openbsd.org>1998-09-16 15:53:25 +0000
commitf8caf6605589d5e954399a32efb3b35727337026 (patch)
treede25d32cf00858749283083a49eb7369af5f202d
parent54f5b92b91c20e3d89cdf00f8285c894a06aca13 (diff)
add support for HP ScanJet IIp
-rw-r--r--sys/scsi/ss.c4
-rw-r--r--sys/scsi/ss_scanjet.c7
2 files changed, 9 insertions, 2 deletions
diff --git a/sys/scsi/ss.c b/sys/scsi/ss.c
index d93e5e65991..c8fc006a38f 100644
--- a/sys/scsi/ss.c
+++ b/sys/scsi/ss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ss.c,v 1.35 1998/02/22 00:49:13 niklas Exp $ */
+/* $OpenBSD: ss.c,v 1.36 1998/09/16 15:53:24 kstailey Exp $ */
/* $NetBSD: ss.c,v 1.10 1996/05/05 19:52:55 christos Exp $ */
/*
@@ -269,6 +269,8 @@ struct scsi_inquiry_pattern ss_patterns[] = {
{T_PROCESSOR, T_FIXED,
"HP ", "C1750A ", ""},
{T_PROCESSOR, T_FIXED,
+ "HP ", "C1790A ", ""},
+ {T_PROCESSOR, T_FIXED,
"HP ", "C2500A ", ""},
{T_PROCESSOR, T_FIXED,
"HP ", "C1130A ", ""},
diff --git a/sys/scsi/ss_scanjet.c b/sys/scsi/ss_scanjet.c
index e9e449e4677..c28f57573ff 100644
--- a/sys/scsi/ss_scanjet.c
+++ b/sys/scsi/ss_scanjet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ss_scanjet.c,v 1.20 1997/08/02 21:35:33 kstailey Exp $ */
+/* $OpenBSD: ss_scanjet.c,v 1.21 1998/09/16 15:53:24 kstailey Exp $ */
/* $NetBSD: ss_scanjet.c,v 1.6 1996/05/18 22:58:01 christos Exp $ */
/*
@@ -109,6 +109,11 @@ scanjet_attach(ss, sa)
ss->sio.scan_scanner_type = HP_SCANJET_IIC;
printf("HP ScanJet IIc");
}
+ /* The IIp is a grayscale-only HP SCL scanner */
+ if (!bcmp(sa->sa_inqbuf->product, "C1790A", 6)) {
+ ss->sio.scan_scanner_type = HP_SCANJET_IIC;
+ printf("HP ScanJet IIp");
+ }
if (!bcmp(sa->sa_inqbuf->product, "C2500A", 6)) {
ss->sio.scan_scanner_type = HP_SCANJET_IIC;
printf("HP ScanJet IIcx");