From: kstailey Date: Mon, 10 Mar 1997 02:34:42 +0000 (+0000) Subject: SCSI 2 scanners use READ_BIG not READ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=442b35f5a574e695e61ed7c5c07acde1c6c325ae;p=openbsd SCSI 2 scanners use READ_BIG not READ --- 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; /*