From 3ae1a191dc5c570012b978d18c022ec748a819b9 Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 3 Dec 1996 01:25:53 +0000 Subject: [PATCH] Recognize the HP ScanJet 4p, per PR #2663 (Kenneth Stailey). --- sys/dev/scsipi/ss_scanjet.c | 6 +++++- sys/scsi/ss_scanjet.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/dev/scsipi/ss_scanjet.c b/sys/dev/scsipi/ss_scanjet.c index 8300572b8177..83267bc995f9 100644 --- a/sys/dev/scsipi/ss_scanjet.c +++ b/sys/dev/scsipi/ss_scanjet.c @@ -1,4 +1,4 @@ -/* $NetBSD: ss_scanjet.c,v 1.8 1996/10/12 23:23:22 christos Exp $ */ +/* $NetBSD: ss_scanjet.c,v 1.9 1996/12/03 01:25:53 thorpej Exp $ */ /* * Copyright (c) 1995 Kenneth Stailey. All rights reserved. @@ -111,6 +111,10 @@ scanjet_attach(ss, sa) ss->sio.scan_scanner_type = HP_SCANJET_IIC; printf("HP ScanJet IIcx"); } + if (!bcmp(sa->sa_inqbuf->product, "C1130A", 6)) { + ss->sio.scan_scanner_type = HP_SCANJET_IIC; + printf("HP ScanJet 4p"); + } SC_DEBUG(sc_link, SDEV_DB1, ("scanjet_attach: scanner_type = %d\n", ss->sio.scan_scanner_type)); diff --git a/sys/scsi/ss_scanjet.c b/sys/scsi/ss_scanjet.c index 8300572b8177..83267bc995f9 100644 --- a/sys/scsi/ss_scanjet.c +++ b/sys/scsi/ss_scanjet.c @@ -1,4 +1,4 @@ -/* $NetBSD: ss_scanjet.c,v 1.8 1996/10/12 23:23:22 christos Exp $ */ +/* $NetBSD: ss_scanjet.c,v 1.9 1996/12/03 01:25:53 thorpej Exp $ */ /* * Copyright (c) 1995 Kenneth Stailey. All rights reserved. @@ -111,6 +111,10 @@ scanjet_attach(ss, sa) ss->sio.scan_scanner_type = HP_SCANJET_IIC; printf("HP ScanJet IIcx"); } + if (!bcmp(sa->sa_inqbuf->product, "C1130A", 6)) { + ss->sio.scan_scanner_type = HP_SCANJET_IIC; + printf("HP ScanJet 4p"); + } SC_DEBUG(sc_link, SDEV_DB1, ("scanjet_attach: scanner_type = %d\n", ss->sio.scan_scanner_type));