/** Initiate a interrupt transfer read.
*
* Read up to size bytes from the interrupt endpoint from the device to
* buffer. After the read, size contains the number of bytes actually read.
*
* @param dn device number
* @param buffer buffer to store read data in
* @param size size of the data
*
* @return
* - SANE_STATUS_GOOD - on succes
* - SANE_STATUS_EOF - if zero bytes have been read
* - SANE_STATUS_IO_ERROR - if an error occured during the read
* - SANE_STATUS_INVAL - on every other error
*
*/
instead of allocating on stack to avoid crossing 64k borders due to
restrictions of 16-bit device-driver. Cosmetic changes and some casts to
reduce compiler-warnings. Patch from Franz Bakan <fbakan@gmx.net>.
fixes the broken "ADF empty" detection on the Fujitsu scanners
when connected via USB. It also fixes a sense-request issues,
which were required in order to determine whether the ADF is
empty. It also eliminates some duplicate code blocks.
renamed some functions
(Linux). Without this fix, especially long running commands and command
queuing would cause memory corruption if the buffer was invalid after the
flush command.
control). Removed the signal blocking again. That only hides the segfault in
sanei_scsi. Check if there are documents in ADF for Paragon 2. Otherwise
return error. Fix some minor issues in reading the config file.
now. Looks like GT-6816 based scanners return 8 bytes if the firmware is
loaded and 64 bytes if it's not loaded. Changed GT-6816 firmware check to
ignore errors from above change. GT-6816 scanners work with the BSDs now (at
least once). Updated manpage concerning the BSDs.
* backend/fujitsu.c: gray duplex scanning now works with the 4097D
when disconnect is enabled in the scsi-controller
* doc/descriptions/unsupported.desc: remove fujitsu fi4120C
* doc/descriptions/fujitsu.desc added fi4120C, ScanParter 93GX
* backend/canon.c, canon-sane.c, canon.h: Added support for
the FB1200S flatbed scanner.
* backend/canon.c: Made the sense handler generate meaningful
status information for new scanner models (solved the Mandrake
crash problem).
* backend/canon.c, canon-sane.c, canon.h: Moved model-dependent
declarations and decisions to a common location.
* backend/canon-sane.c: Fixed the out-of-memory problem of
xscanimage when doing previews with scanners using hardware
scan resolutions only.