Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 May 2003 16:35:54 +0200
From:      "Erik H. Bakke" <ebakke@trolltech.com>
To:        ports@freebsd.org
Subject:   Patch to sane-backends to autodetect USB scanners on FreeBSD
Message-ID:  <200305021635.56171.ebakke@trolltech.com>

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

--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--



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