summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-03-11 02:34:26 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-03-11 02:34:26 +0000
commit245800aeccc717ae5ee6d36beeae39657f7b56ce (patch)
tree98f734aa764230b4a5b33ad260115b890dbc14ab
parent77f0a1a81985201364021d06ff9d075b1382902b (diff)
Added notes about how to use the driver.
-rw-r--r--sys/scsi/README.ss15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/scsi/README.ss b/sys/scsi/README.ss
index c582d02799a..dc8da5bdb8b 100644
--- a/sys/scsi/README.ss
+++ b/sys/scsi/README.ss
@@ -1,4 +1,4 @@
-$OpenBSD: README.ss,v 1.3 1997/03/10 02:28:46 kstailey Exp $
+$OpenBSD: README.ss,v 1.4 1997/03/11 02:34:25 kstailey Exp $
If you think SCSI tape drives are quirky you haven't seen anything.
@@ -42,3 +42,16 @@ to describe the kind of data that is available.
Halftone control of scanners is missing, save for one pre-defined
selection. This also should be in the ioctl() interface.
+
+Basic workflow for scanning
+
+1. Open driver.
+2. ioctl to get parameters (this fills in default values and generally makes
+ step 3 easier.)
+3. Modify parameters.
+4. ioctl to set parameters.
+5. ioctl to get data size (same as step 2, but values will be different if
+ the image size, resolution, or image data type was set.)
+6. Read data based on size from scanner retrieved in step 5 (the driver
+ delivers an EOF if you overread.)
+7. Close driver (or use ioctl to reset it so you can scan again.)