Patch to sane-backends to autodetect USB scanners on FreeBSD

Erik H. Bakke ebakke at trolltech.com
Fri May 2 07:33:00 PDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello.

Attached is a patch to make sane-backends autodetect USB scanners on FreeBSD.
This patch does not require any changes to the uscanner driver to work, as my 
first patch to this effect did.

The patch replaces the existing (Linux-only) kernel_get_vendor_product() in 
sanei/sanei_usb.c with a version that works on FreeBSD.

To find the product and vendor ID the function iterates over the USB 
controllers found and looks at each device in turn to find the scanner 
device.  Then the vendor and product IDs are fetched using a USB_DEVICEINFO 
ioctl.

I hope this patch can get submitted into the port as I'm sure it will help a 
lot of people with USB scanners.

I've submitted a PR with this patch, it is in the system as ports/51692.

Regards
- ---
Erik H. Bakke
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+soJL9C11Y60pBiMRAlZ0AJ44Le/Vm+vEv9X53PzEJcFidVZ7oACdHvfS
IOQPAbOy4N1IQNmv9D75iYI=
=Rse6
-----END PGP SIGNATURE-----


More information about the freebsd-ports mailing list