summaryrefslogtreecommitdiff
path: root/sys/scsi/ss.c
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-03-11 03:40:51 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-03-11 03:40:51 +0000
commit07d8a64c0df680b9bed35d844a2a1fd7e2a207d4 (patch)
tree6bbb959ff32371bf316a3d64794097b1f3222d32 /sys/scsi/ss.c
parent2c9f7b546f76c7a75234d7755f9d96688406046f (diff)
move init. code to m.i. section
Diffstat (limited to 'sys/scsi/ss.c')
-rw-r--r--sys/scsi/ss.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/scsi/ss.c b/sys/scsi/ss.c
index cd906c3e388..15c37389f96 100644
--- a/sys/scsi/ss.c
+++ b/sys/scsi/ss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ss.c,v 1.25 1997/03/11 03:19:16 kstailey Exp $ */
+/* $OpenBSD: ss.c,v 1.26 1997/03/11 03:40:49 kstailey Exp $ */
/* $NetBSD: ss.c,v 1.10 1996/05/05 19:52:55 christos Exp $ */
/*
@@ -288,6 +288,20 @@ ssattach(parent, self, aux)
ss_identify_scanner(ss, sa->sa_inqbuf);
/*
+ * populate the scanio struct with legal values
+ */
+ ss->sio.scan_width = 1200;
+ ss->sio.scan_height = 1200;
+ ss->sio.scan_x_resolution = 100;
+ ss->sio.scan_y_resolution = 100;
+ ss->sio.scan_x_origin = 0;
+ ss->sio.scan_y_origin = 0;
+ ss->sio.scan_brightness = 128;
+ ss->sio.scan_contrast = 128;
+ ss->sio.scan_quality = 100;
+ ss->sio.scan_image_mode = SIM_GRAYSCALE;
+
+ /*
* Set up the buf queue for this device
*/
ss->buf_queue.b_active = 0;