Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2002 09:10:47 +0200 (EET)
From:      Heikki Suonsivu <hsu@hsu.bbnetworks.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/34783: HP 5490C scanner not identified as scanner
Message-ID:  <200202100710.g1A7AlW67425@hsu.bbnetworks.net>

next in thread | raw e-mail | index | archive | help

>Number:         34783
>Category:       kern
>Synopsis:       HP 5490C scanner not identified as scanner
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 09 23:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Heikki Suonsivu
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
bbnetworks.net
>Environment:
System: FreeBSD hsu.bbnetworks.net 4.5-STABLE FreeBSD 4.5-STABLE #6: Wed Feb 6 11:47:15 EET 2002 hsu@hsu.bbnetworks.net:/usr/obj/usr/src/sys/CAT i386

Tracking stable.

>Description:

HP 5490C scanner is not recognized by FreeBSD as a scanner.  This is
first step for getting SANE to work (that is another story, as SANE
wants an ioctl to determine type of scanner, which needs to be
solved, and probably other work).

>How-To-Repeat:

Connect HP 54xxC series scanner.  The scanner gets allocated as
generic device, not a scanner.

>Fix:

Index: usbdevs
===================================================================
RCS file: /usr/CVS/src/sys/dev/usb/usbdevs,v
retrieving revision 1.11.2.17
diff -c -r1.11.2.17 usbdevs
*** usbdevs	4 Feb 2002 10:39:58 -0000	1.11.2.17
--- usbdevs	6 Feb 2002 09:21:08 -0000
***************
*** 596,601 ****
--- 596,602 ----
  product HP 840C			0x0604	DeskJet 840c
  product HP 5300C		0x0701	Scanjet 5300C
  product HP 970CSE		0x1004	Deskjet 970Cse
+ product HP 5400C		0x1105	Scanjet 5400C
  product HP 930C			0x1204	DeskJet 930c
  product HP 640C			0x2004	DeskJet 640c
  product HP P1100		0x3102	Photosmart P1100
Index: usbdevs.h
===================================================================
RCS file: /usr/CVS/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.32.2.17
diff -c -r1.32.2.17 usbdevs.h
*** usbdevs.h	4 Feb 2002 10:39:58 -0000	1.32.2.17
--- usbdevs.h	6 Feb 2002 09:22:02 -0000
***************
*** 1,10 ****
! /*	$FreeBSD: src/sys/dev/usb/usbdevs.h,v 1.32.2.17 2002/02/04 10:39:58 sobomax Exp $	*/
  
  /*
   * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
   *
   * generated from:
!  *	FreeBSD: src/sys/dev/usb/usbdevs,v 1.11.2.14 2001/12/10 11:47:20 sheldonh Exp 
   */
  
  /*
--- 1,10 ----
! /*	$FreeBSD$	*/
  
  /*
   * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
   *
   * generated from:
!  *	FreeBSD: src/sys/dev/usb/usbdevs,v 1.11.2.17 2002/02/04 10:39:58 sobomax Exp 
   */
  
  /*
***************
*** 603,608 ****
--- 603,609 ----
  #define	USB_PRODUCT_HP_840C	0x0604		/* DeskJet 840c */
  #define	USB_PRODUCT_HP_5300C	0x0701		/* Scanjet 5300C */
  #define	USB_PRODUCT_HP_970CSE	0x1004		/* Deskjet 970Cse */
+ #define	USB_PRODUCT_HP_5400C	0x1105		/* Scanjet 5400C */
  #define	USB_PRODUCT_HP_930C	0x1204		/* DeskJet 930c */
  #define	USB_PRODUCT_HP_640C	0x2004		/* DeskJet 640c */
  #define	USB_PRODUCT_HP_P1100	0x3102		/* Photosmart P1100 */
Index: usbdevs_data.h
===================================================================
RCS file: /usr/CVS/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.32.2.17
diff -c -r1.32.2.17 usbdevs_data.h
*** usbdevs_data.h	4 Feb 2002 10:39:58 -0000	1.32.2.17
--- usbdevs_data.h	6 Feb 2002 09:22:02 -0000
***************
*** 1,10 ****
! /*	$FreeBSD: src/sys/dev/usb/usbdevs_data.h,v 1.32.2.17 2002/02/04 10:39:58 sobomax Exp $	*/
  
  /*
   * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
   *
   * generated from:
!  *	FreeBSD: src/sys/dev/usb/usbdevs,v 1.11.2.14 2001/12/10 11:47:20 sheldonh Exp 
   */
  
  /*
--- 1,10 ----
! /*	$FreeBSD$	*/
  
  /*
   * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
   *
   * generated from:
!  *	FreeBSD: src/sys/dev/usb/usbdevs,v 1.11.2.17 2002/02/04 10:39:58 sobomax Exp 
   */
  
  /*
***************
*** 908,913 ****
--- 908,919 ----
  	    0,
  	    "Hewlett-Packard",
  	    "Deskjet 970Cse",
+ 	},
+ 	{
+ 	    USB_VENDOR_HP, USB_PRODUCT_HP_5400C,
+ 	    0,
+ 	    "Hewlett-Packard",
+ 	    "Scanjet 5400C",
  	},
  	{
  	    USB_VENDOR_HP, USB_PRODUCT_HP_930C,
Index: uscanner.c
===================================================================
RCS file: /usr/CVS/src/sys/dev/usb/uscanner.c,v
retrieving revision 1.2.2.5
diff -c -r1.2.2.5 uscanner.c
*** uscanner.c	27 Nov 2001 02:00:14 -0000	1.2.2.5
--- uscanner.c	6 Feb 2002 09:24:13 -0000
***************
*** 102,107 ****
--- 102,108 ----
  	{ USB_VENDOR_HP, USB_PRODUCT_HP_S20 },
  	{ USB_VENDOR_HP, USB_PRODUCT_HP_5200C },
  	{ USB_VENDOR_HP, USB_PRODUCT_HP_5300C },
+ 	{ USB_VENDOR_HP, USB_PRODUCT_HP_5400C },
  	{ USB_VENDOR_HP, USB_PRODUCT_HP_6200C },
  	{ USB_VENDOR_HP, USB_PRODUCT_HP_6300C },
  



>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202100710.g1A7AlW67425>