Date: Sat, 02 Aug 1997 12:44:21 -0700 From: Amancio Hasty <hasty@rah.star-gate.com> To: root@deadline.snafu.de (Andreas S. Wetzel) Cc: hackers@FreeBSD.ORG Subject: Re: Need help on writing SCSI scanner driver Message-ID: <199708021944.MAA01510@rah.star-gate.com> In-Reply-To: Your message of "Sat, 02 Aug 1997 12:31:42 %2B0200." <m0wubTK-0004jwC@deadline.snafu.de>
next in thread | previous in thread | raw e-mail | index | archive | help
I own a UMAX S12 and it works with sane and/or gimp 8) sane has a graphical frontend and it also provides a plugin for gimp so you can scan images directly into gimp . You may want to joing the sane project: http://www.azstarnet.com/~axplinux/sane/ Cheers, Amancio >From The Desk Of Andreas S. Wetzel : > Hi! > --- > > Some time ago I started to write a high level SCSI driver for my > AGFA Studio Star scanner. Now I'm facing some minor problems in > the overall design of the driver code. My imagination of a scanner > driver has been to have a device that is opened by the application > software by a open(2) call and than configured to the correct scan > parameters using ioctls before the scan data is retrieved via one > or more read(2) calls. The problem in this context seems to be > that the scanner is in fact able to deliver all the scan data > at once, but the I/O subsystem seems to split a big read call into > several 64k segments. Another problem is that the scanner expects > the READ_SCANNED_DATA SCSI command to have a number of scanlines > (not bytes) attached, so I will have to convert the number of > bytes from a read(2) call to a number of scan lines internally > in the driver code. My question is, if it is possible to read > in all the scan data at once from the scanner (wheter or not > it is handed to the user process in 64k segments). In other words, > I do want to only issue a READ_SCANNED_DATA SCSI command to the > scanner once, but not everytime a 64k segment is read by the user > process. > > Thankful for any advice. > > Rergards, Mickey > > -- > (__) > (@@) Andreas S. Wetzel Mail: mickey@deadline.snafu.de > /-------\/ Utrechter Strasse 41 Web: http://cenotaph.snafu.de/ > / | || 13347 Berlin Fon: <+4930> 456 066 90 > * ||----|| Germany Fax: <+4930> 456 066 91/92 > ~~ ~~ >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708021944.MAA01510>