SC_DEBUG(sc_link, SDEV_DB1, ("mustek_read: read %d lines\n",
SC_DEBUG(sc_link, SDEV_DB1, ("mustek_read: read %ld lines\n",
mustek_read(ss, bp)	struct ss_softc *ss;	struct buf *bp;{	struct mustek_read_cmd cmd;	struct scsi_link *sc_link = ss->sc_link;	u_long lines_to_read;	SC_DEBUG(sc_link, SDEV_DB1, ("mustek_read: start\n"));	bzero(&cmd, sizeof(cmd));	cmd.opcode = MUSTEK_READ;	/* instead of the bytes, the mustek wants the number of lines */	lines_to_read = bp->b_bcount /	    ((ss->sio.scan_pixels_per_line * ss->sio.scan_bits_per_pixel) / 8);	SC_DEBUG(sc_link, SDEV_DB1, ("mustek_read: read %d lines\n",	    lines_to_read));	_lto3b(lines_to_read, cmd.length);	/*	 * go ask the adapter to do all this for us	 */	if (scsi_scsi_cmd(sc_link, (struct scsi_generic *) &cmd, sizeof(cmd),	    (u_char *) bp->b_data, bp->b_bcount, MUSTEK_RETRIES, 10000, bp,	    SCSI_NOSLEEP | SCSI_DATA_IN) != SUCCESSFULLY_QUEUED)		printf("%s: not queued\n", ss->sc_dev.dv_xname);	else {		ss->sio.scan_lines -= lines_to_read;		ss->sio.scan_window_size -= bp->b_bcount;	}	return (0);}