From owner-freebsd-ports@FreeBSD.ORG Fri May 2 07:33:00 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D03537B401 for ; Fri, 2 May 2003 07:33:00 -0700 (PDT) Received: from lupinella.troll.no (lupinella.troll.no [80.232.37.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80C2143FD7 for ; Fri, 2 May 2003 07:32:59 -0700 (PDT) (envelope-from ebakke@trolltech.com) Received: from riserva.troll.no ([80.232.37.220]:16576 "EHLO riserva.troll.no" ident: "NO-IDENT-SERVICE[2]") by trolltech.com with ESMTP id ; Fri, 2 May 2003 16:32:49 +0200 From: "Erik H. Bakke" To: ports@freebsd.org Date: Fri, 2 May 2003 16:35:54 +0200 User-Agent: KMail/1.5.1 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_KJos+HULlK+PO+o" Message-Id: <200305021635.56171.ebakke@trolltech.com> X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Patch to sane-backends to autodetect USB scanners on FreeBSD X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2003 14:33:00 -0000 --Boundary-00=_KJos+HULlK+PO+o Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello. Attached is a patch to make sane-backends autodetect USB scanners on FreeBS= D. This patch does not require any changes to the uscanner driver to work, as = my=20 first patch to this effect did. The patch replaces the existing (Linux-only) kernel_get_vendor_product() in= =20 sanei/sanei_usb.c with a version that works on FreeBSD. To find the product and vendor ID the function iterates over the USB=20 controllers found and looks at each device in turn to find the scanner=20 device. Then the vendor and product IDs are fetched using a USB_DEVICEINFO= =20 ioctl. I hope this patch can get submitted into the port as I'm sure it will help = a=20 lot of people with USB scanners. I've submitted a PR with this patch, it is in the system as ports/51692. Regards =2D --- Erik H. Bakke =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+soJL9C11Y60pBiMRAlZ0AJ44Le/Vm+vEv9X53PzEJcFidVZ7oACdHvfS IOQPAbOy4N1IQNmv9D75iYI=3D =3DRse6 =2D----END PGP SIGNATURE----- --Boundary-00=_KJos+HULlK+PO+o--