diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-03-10 02:34:43 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-03-10 02:34:43 +0000 |
commit | 8a8f1a486564e20f0129360260e79167d359d1a0 (patch) | |
tree | d5731820c5bfbd0c313b6365cad5cd251cd882bb /sys/scsi | |
parent | e4d4e4f55fc2396da03136e3cbb9cfb0b2945631 (diff) |
SCSI 2 scanners use READ_BIG not READ
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/ss.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/scsi/ss.c b/sys/scsi/ss.c index bfc35923a79..b4fb0ba9623 100644 --- a/sys/scsi/ss.c +++ b/sys/scsi/ss.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ss.c,v 1.21 1997/03/10 02:29:39 kstailey Exp $ */ +/* $OpenBSD: ss.c,v 1.22 1997/03/10 02:34:42 kstailey Exp $ */ /* $NetBSD: ss.c,v 1.10 1996/05/05 19:52:55 christos Exp $ */ /* @@ -92,6 +92,10 @@ struct quirkdata { */ int (*vendor_unique_sw)__P((struct ss_softc *, struct scan_io *, struct scsi_set_window *, void *)); + /* + * If the scanner requires use of GET_BUFFER_STATUS before READ + * it can be called from ss_minphys(). + */ void (*special_minphys)__P(( struct ss_softc *, struct buf *)); }; @@ -575,7 +579,7 @@ ssstart(v) } else { /* generic scsi2 scanner read */ bzero(&read_cmd, sizeof(read_cmd)); - read_cmd.opcode = READ; + read_cmd.opcode = READ_BIG; _lto3b(bp->b_bcount, read_cmd.len); flags = SCSI_DATA_IN; /* |