From owner-freebsd-hackers Sat Aug 2 12:44:39 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id MAA09155 for hackers-outgoing; Sat, 2 Aug 1997 12:44:39 -0700 (PDT) Received: from rah.star-gate.com (rah.star-gate.com [204.188.121.18]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA09141 for ; Sat, 2 Aug 1997 12:44:34 -0700 (PDT) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.5/8.8.5) with ESMTP id MAA01510; Sat, 2 Aug 1997 12:44:21 -0700 (PDT) Message-Id: <199708021944.MAA01510@rah.star-gate.com> X-Mailer: exmh version 2.0gamma 1/27/96 To: root@deadline.snafu.de (Andreas S. Wetzel) cc: hackers@FreeBSD.ORG Subject: Re: Need help on writing SCSI scanner driver In-reply-to: Your message of "Sat, 02 Aug 1997 12:31:42 +0200." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 02 Aug 1997 12:44:21 -0700 From: Amancio Hasty Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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 > ~~ ~~ >