Wykres commitów

63 Commity (dedf081f7e1e10ac656e89ffcc622b5d0ca85fe6)

Autor SHA1 Wiadomość Data
Mattias Ellert ac71384c82 Typo 2007-11-16 18:37:07 +00:00
Mattias Ellert 71be983cdd use SCSITaskSGElement if available 2007-11-10 15:44:41 +00:00
Mattias Ellert 93e856b53f Cross compilation fixes and libtool update 2007-11-10 07:12:55 +00:00
Julien BLACHE 5dcf165795 Switch sanei_scsi to the SG_IO ioctl interface, instead of the
asynchronous SG3 read/write interface.

Makes it possible to use SCSI scanners in 32/64bit mixed environments,
thanks to the ioctl 32bit compatibility layer, which is NOT possible
using the SG3 interface.
2007-06-21 19:35:53 +00:00
Gerhard Jaeger 3766614f83 * sanei/sanei_scsi.c: Fixed retrieval of HZ. 2007-02-07 07:16:53 +00:00
Mattias Ellert cfd52e328f Adding some debugging. Fixing some warnings. 2005-11-22 21:17:20 +00:00
Henning Geinitz 00e9b16d58 Removed "const" to make gcc on OS/2 happy. 2005-07-17 16:18:34 +00:00
Frank Zago 5cab9b20c7 fixes for 64 bits platforms. 2004-11-13 19:43:01 +00:00
Gerhard Jaeger ab64285ff9 Added resource manager library support. 2004-07-26 15:15:39 +00:00
Mattias Ellert ac9ec0ff1c Missed one... 2004-06-20 01:22:44 +00:00
Mattias Ellert 3458605b55 SCSI scanners can now be selected by LUN on MacOS X
sane-find-scanner now finds SCSI scanners on MacOS X
making some sanei_scsi internal functions static
2004-06-19 21:31:42 +00:00
Henning Geinitz f99aea20cb Increased SCSI buffer size on MacOS X. Patch from Mattias Ellert, bug #300601. 2004-03-29 18:01:23 +00:00
Henning Geinitz e7484c515e Silenced some compilation warnings. 2003-12-27 17:48:39 +00:00
Henning Geinitz 66f4a68325 sanei_scsi.c should now compile with the new and old SCSI API of MacOS X. Patch
from Mattias Ellert <mattias.ellert@tsl.uu.se>.
2003-12-06 13:38:47 +00:00
Frank Zago 3bda0d541d Port to Cygwin. 2003-09-24 03:41:48 +00:00
Henning Geinitz 2cf12103d8 Added support for the MacOS X IOKit SCSI Architecture Model API. Added support
for Firewire scanners. Patch from Guy Brooker <guy_brooker@mac.com>.
2003-08-21 10:33:34 +00:00
Abel Deuring ee430a8af6 2003-07-17 Abel Deuring <a.deuring@satzbau-gmbh.de>
* sanei/sanei_scsi.c: improved SCSI error handling in
          sanei_scsi_cmd2 for FREEBSD_CAM_INTERFACE
2003-07-17 20:35:25 +00:00
Henning Geinitz fcd3e424a8 Fixed C++-like code for MacOS X (patch from Mattias Ellert
<mattias.ellert@tsl.uu.se>).
2003-06-04 18:55:38 +00:00
Henning Geinitz 30812eaa05 Added SCSI support for MacOS X (from Mattias Ellert
<mattias.ellert@tsl.uu.se>).
2003-04-30 23:02:17 +00:00
Henning Geinitz 967a3b2a37 Fixed some warnings. 2003-04-02 22:41:54 +00:00
Henning Geinitz 293a629d7c OS/2 specific changes: memory for SRB now is allocated using _tcalloc()
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>.
2003-03-16 11:04:19 +00:00
Henning Geinitz 646fbd05bc Wait for the completion of all SCSI commands in sanei_scsi_flush_all_extended
(Linux). Without this fix, especially long running commands and command
queuing would cause memory corruption if the buffer was invalid after the
flush command.
2003-03-09 19:22:43 +00:00
Henning Geinitz cb2e483d60 Disable the new Linux SG interface for sparc64 to work-around 32 bit userland
/ 64 bit kernel problems.
2003-01-17 12:21:16 +00:00
Abel Deuring a690b94687 fixed an error in sanei_scsi.c from my last commit
Abel
2002-12-07 22:17:27 +00:00
Abel Deuring aa85bb0192 sanei/sanei_scsi.c: improved error handling for Linux 2002-12-07 18:10:45 +00:00
Abel Deuring 9659512302 sanei/sanei_scci.c doc/sanei-scsi.man:
default timeout for SCSI commmands is now 120 seconds; added
the environment variable SANE_SCSICMD_TIMEOUT to override
the default value.

Abel
2002-09-04 22:13:44 +00:00
Henning Geinitz bc16d554dc Set buffer size to 64 kB for SOLARIS_USCSI_INTERFACE (reported by Ed Randall
<ed.randall@ingenotech.com>).
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-06-27 16:04:21 +00:00
Henning Geinitz 477e9c6334 Fixed request-sense handling for OpenStep (from Oliver Schirrmeister
<oschirr@abm.de>).
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-05-28 18:57:26 +00:00
Henning Geinitz bc0c6449f0 Fixed sanei_scsi_cmd2() for OPENSTEP (from Oliver Schirrmeister
<oschirr@abm.de>).
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-05-22 18:09:33 +00:00
Henning Geinitz 00e8ac71fd Use O_NONBLOCK when opening an sg device under Linux. Return
SANE_STATUS_DEVICE_BUSY if EBUSY. Check for buffer==0 for OS/2.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2002-04-13 18:56:39 +00:00
Abel Deuring 4f70616c01 configure.in, configure, include/sanei/config.h.in
sanei/sanei_scsi.c: Added HAVE_SG_TARGET_STATUS for compatibility
with old Linux sg.h versions

Abel
2002-03-10 14:34:11 +00:00
Abel Deuring eb0e878a0f sanei/sanei_scsi.c: fixed a typo (Sg_scsi_id -> SG_scsi_id)
Abel
2002-03-07 20:45:52 +00:00
Abel Deuring 6a57e91a51 * sanei/sanei_scsi.c: Added checks to the Linux part of
sanei_scsi_open_extended, if an SG device file is being
          opened

Abel
2002-02-09 16:37:21 +00:00
Abel Deuring 7fbdae8348 sanei/sanei_scsi.c: set timeout value for all operating
systems to 1 minute. The timeout value is now derived from
the macro SANE_SCSICMD_TIMEOUT.

Abel
2002-01-20 15:53:22 +00:00
Abel Deuring 1909b7f500 Replaced the configure option --enable-diretio with --enable-scsi-directio
and --enable-parport-directio.

NOTE: While I know, what the SCSI direct IO means, I have no idea, what
direct IO means in the context of the parport, so somebody needs to add
some useful description about parport direct io to configure.in and to
README (or README.linux)
2001-12-28 13:26:12 +00:00
Henning Geinitz c91858cf87 OS/2 changes: Removed semaphore code and
increased MAX_DATA to 64k (from "Franz Bakan" <fbakan@gmx.net>).
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-11-22 20:31:18 +00:00
Abel Deuring e4867cd08d Removed the #ifdef SG_IO/#endif around #include linux_sg3_err.h in
sanei_scsi.c. Now causes a compiler error, because some macros defined there
are used for the old SG interace too.

Thanks to Henning for discovering the bug

Abel
2001-11-11 22:49:51 +00:00
Abel Deuring b415404a29 sanei_scsi.c: patches for the Linux part committed: better error handling;
the residual return by the SG driver v§ is now ignored

sharp.c: Now retries SCSI READ commands, if sanei_scsi_rweq_wait returns
STATUS_BUSY

Abel
2001-11-11 15:56:50 +00:00
Henning Geinitz 365d3f2e64 Fixed detection of SCSI devices that return
device strings (vendor, product) consisting of spaces.
sanei_scsi_req_enter2 was changed to copy the CDB and data before
sending it to the device. Both patches are from Abel Deuring.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-09-21 11:29:13 +00:00
Oliver Rauch 590e9ea4b2 2001-06-13 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* sanei/sanei-scsi.c: Corrected bug in sanei_scsi_cmd2 for IRIX:
          - scsi_req.ds_senselen has been set to sizeof pointer, is set
            to 128 bytes now (1024 bytes does not work)
          - sensebuf is cleared before scsi command is executed
          - sensehandle always called when it exists and an error occurs
2001-06-13 16:16:09 +00:00
Oliver Rauch 69edd5604f 2001-06-09 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* sanei/sanei_scsi.c:
          applied patch by Douglas Gilbert <dgilbert@interlog.com>
          that solves compilation problem about:
          storage size of `ssid' isn't known
2001-06-09 19:59:47 +00:00
Henning Geinitz 7716aa8409 Use local assert.h file to fix problems with AIX and shared libraries.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-06-04 20:19:32 +00:00
Henning Geinitz 2e9c025c4d Fixed some small bugs concerning error reporting.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-06-04 11:09:55 +00:00
Henning Geinitz 021a47f2e1 Fixed compilation issue for OS/2 in sanei_scsi_find_devices.
Henning Meier-Geinitz <henning@meier-geinitz.de>
2001-05-31 17:32:38 +00:00
Oliver Rauch a917e2d039 2001-05-30 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* Problem with SOLARIS_INTERFACE (change from 2001-05-27)
          had an other reason than the scsi buffer size (MAX_DATA).
          Changed scsi buffer size for solaris sg driver
          (USE == SOLARIS_INTERFACE in sanei_scsi.c) again from 32 KB
          to 128KB.
2001-05-30 17:00:09 +00:00
Oliver Rauch 9225208519 2001-05-27 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* changed scsi buffer size for solaris sg driver
          (USE == SOLARIS_INTERFACE in sanei_scsi.c) to 32 KB
          again because it does not work for at least one system
          with 64KB.
2001-05-27 21:01:46 +00:00
Oliver Rauch bd82fa1557 Oliver Rauch:
cosmetic changes in just applied changes to sanei/sanei_scsi.c
2001-05-27 10:26:20 +00:00
Oliver Rauch eb8916c209 2001-05-27 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* sanei/sanei_scsi.c: changed scsi buffer size (MAX_DATA)
          to 128KB for: SOLARIS_INTERFACE, SOLARIS_SG_INTERFACE,
          SOLARIS_USCSI_INTERFACE and IRIX_INTERFACE
          (some scanners have problems with the predefined 32KB
           buffer size, these systems should work with 128KB
           but we need to test if no problems do occur).
2001-05-27 10:24:04 +00:00
Oliver Rauch 2246581236 2001-05-07 Oliver Rauch <Oliver.Rauch@rauch-domain.de>
* applied a patch by Douglas Gilbert to sanei_scsi.c
          it solves the Problem that the scanner is not
          found on linux systems when the order of the
          scsi devices is not coverd by the order of
          devices listed by /proc/scsi/scsi, it prefers
          new kernel 2.4 methods when available
2001-05-07 16:05:23 +00:00
Henning Geinitz 69fe89db99 Added support for Solaris sgen SCSI driver (patch from Juergen Keil
<jk@tools.de>).
2001-05-01 21:08:45 +00:00