kopia lustrzana https://gitlab.com/sane-project/backends
Added (limited) support for FreeBSD.
Henning Meier-Geinitz <henning@meier-geinitz.de>DEVEL_2_0_BRANCH-1
rodzic
8e6d97f814
commit
36f00f522b
|
@ -1,4 +1,4 @@
|
||||||
.TH sane-find-scanner 1 "11 Aug 2001"
|
.TH sane-find-scanner 1 "16 Aug 2001"
|
||||||
.IX sane-find-scanner
|
.IX sane-find-scanner
|
||||||
.SH NAME
|
.SH NAME
|
||||||
sane-find-scanner - find SCSI and USB scanners and their device files
|
sane-find-scanner - find SCSI and USB scanners and their device files
|
||||||
|
@ -19,8 +19,8 @@ device type of "scanner" or "processor" (some old HP scanners seem to send
|
||||||
supported by any SANE backend. For USB devices, the corresponding files are
|
supported by any SANE backend. For USB devices, the corresponding files are
|
||||||
opened and the vendor and device ids are determined if the operating system
|
opened and the vendor and device ids are determined if the operating system
|
||||||
supports this feature. Currently USB scanners are only found if they are
|
supports this feature. Currently USB scanners are only found if they are
|
||||||
supported by the Linux scanner module (or a similar system on other
|
supported by the Linux scanner module or the FreeBSD uscanner
|
||||||
platforms). sane-find-scanner won't find parallel port scanners, or scanners
|
driver. sane-find-scanner won't find parallel port scanners, or scanners
|
||||||
connected to proprietary ports.
|
connected to proprietary ports.
|
||||||
|
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
|
@ -46,7 +46,9 @@ Look for a scanner (only) at /dev/scanner and print the result.
|
||||||
sane(7), sane-scsi(5), sane-usb(5), scanimage(1), xscanimage(1), xsane(1),
|
sane(7), sane-scsi(5), sane-usb(5), scanimage(1), xscanimage(1), xsane(1),
|
||||||
sane-"backendname"(5)
|
sane-"backendname"(5)
|
||||||
.SH AUTHOR
|
.SH AUTHOR
|
||||||
Oliver Rauch and others. Manual page by Henning Meier-Geinitz.
|
Oliver Rauch, Henning Meier-Geinitz and others. Manual page by Henning
|
||||||
|
Meier-Geinitz.
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
No support for parallel port scanners yet. USB support should be extended to
|
No support for parallel port scanners yet. USB support should be extended to
|
||||||
other platforms and scanners.
|
other platforms and scanners. Detection of USB vendor/device ids should be
|
||||||
|
extended, if possible.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH sane-scsi 5 "11 Aug 2001"
|
.TH sane-scsi 5 "16 Aug 2001"
|
||||||
.IX sane-usb
|
.IX sane-usb
|
||||||
.SH NAME
|
.SH NAME
|
||||||
sane-usb - USB configuration tips for SANE
|
sane-usb - USB configuration tips for SANE
|
||||||
|
@ -23,8 +23,7 @@ This manual page describes the access of USB scanners over the sanei_usb
|
||||||
interface. For point 1 and three of this list have a look at the backend's
|
interface. For point 1 and three of this list have a look at the backend's
|
||||||
manual page for details.
|
manual page for details.
|
||||||
.PP
|
.PP
|
||||||
Currently USB access is only tested for Linux. It may work on FreeBSD but it's
|
Currently USB access is only tested for Linux and FreeBSD.
|
||||||
not tested.
|
|
||||||
.PP
|
.PP
|
||||||
For scanners with a USB interface, it may be necessary to edit the
|
For scanners with a USB interface, it may be necessary to edit the
|
||||||
appropriate backend configuration file before using SANE for the first time.
|
appropriate backend configuration file before using SANE for the first time.
|
||||||
|
@ -33,7 +32,9 @@ device file that the scanner is connected to (e.g., under Linux,
|
||||||
.B /dev/usb/scanner0
|
.B /dev/usb/scanner0
|
||||||
or
|
or
|
||||||
.B /dev/usbscanner0
|
.B /dev/usbscanner0
|
||||||
is such a USB device). Do
|
is such a USB device, the device file for FreeBSD is e.g.
|
||||||
|
.BR /dev/uscanner0 ).
|
||||||
|
Do
|
||||||
.I not
|
.I not
|
||||||
create a symlink from
|
create a symlink from
|
||||||
.B /dev/scanner
|
.B /dev/scanner
|
||||||
|
|
|
@ -143,8 +143,13 @@ sanei_usb_find_devices (SANE_Int vendor, SANE_Int product,
|
||||||
SANE_Status (*attach) (SANE_String_Const dev))
|
SANE_Status (*attach) (SANE_String_Const dev))
|
||||||
{
|
{
|
||||||
SANE_String *prefix;
|
SANE_String *prefix;
|
||||||
SANE_String prefixlist[] = {"/dev/usbscanner",
|
SANE_String prefixlist[] = {
|
||||||
|
#if defined(__linux__)
|
||||||
|
"/dev/usbscanner",
|
||||||
"/dev/usb/scanner",
|
"/dev/usb/scanner",
|
||||||
|
#elif defined(__FreeBSD__)
|
||||||
|
"/dev/uscanner",
|
||||||
|
#endif
|
||||||
0};
|
0};
|
||||||
SANE_Char devname[30];
|
SANE_Char devname[30];
|
||||||
int devcount;
|
int devcount;
|
||||||
|
|
|
@ -411,6 +411,7 @@ main (int argc, char **argv)
|
||||||
};
|
};
|
||||||
static char *usb_default_dev_list[] =
|
static char *usb_default_dev_list[] =
|
||||||
{
|
{
|
||||||
|
#if defined(__linux__)
|
||||||
"/dev/usb/scanner",
|
"/dev/usb/scanner",
|
||||||
"/dev/usb/scanner0", "/dev/usb/scanner1",
|
"/dev/usb/scanner0", "/dev/usb/scanner1",
|
||||||
"/dev/usb/scanner2", "/dev/usb/scanner3",
|
"/dev/usb/scanner2", "/dev/usb/scanner3",
|
||||||
|
@ -429,6 +430,17 @@ main (int argc, char **argv)
|
||||||
"/dev/usbscanner10", "/dev/usbscanner11",
|
"/dev/usbscanner10", "/dev/usbscanner11",
|
||||||
"/dev/usbscanner12", "/dev/usbscanner13",
|
"/dev/usbscanner12", "/dev/usbscanner13",
|
||||||
"/dev/usbscanner14", "/dev/usbscanner15",
|
"/dev/usbscanner14", "/dev/usbscanner15",
|
||||||
|
#elif defined(__FreeBSD__)
|
||||||
|
"/dev/uscanner",
|
||||||
|
"/dev/uscanner0", "/dev/uscanner1",
|
||||||
|
"/dev/uscanner2", "/dev/uscanner3",
|
||||||
|
"/dev/uscanner4", "/dev/uscanner5",
|
||||||
|
"/dev/uscanner6", "/dev/uscanner7",
|
||||||
|
"/dev/uscanner8", "/dev/uscanner9",
|
||||||
|
"/dev/uscanner10", "/dev/uscanner11",
|
||||||
|
"/dev/uscanner12", "/dev/uscanner13",
|
||||||
|
"/dev/uscanner14", "/dev/uscanner15",
|
||||||
|
#endif
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue