Date: Sat, 2 Aug 1997 12:31:42 +0200 (CEST) From: root@deadline.snafu.de (Andreas S. Wetzel) To: hackers@freebsd.org Subject: Need help on writing SCSI scanner driver Message-ID: <m0wubTK-0004jwC@deadline.snafu.de>
index | next in thread | raw e-mail
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
~~ ~~
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0wubTK-0004jwC>
