SC_DEBUG(sc_link, SDEV_DB1, ("window size = %d\n",
SC_DEBUG(sc_link, SDEV_DB1, ("window size = %ld\n",
mustek_get_status(ss, timeout, update)	struct ss_softc *ss;	int timeout, update;{	struct mustek_get_status_cmd cmd;	struct mustek_get_status_data data;	struct scsi_link *sc_link = ss->sc_link;	int error, lines, bytes_per_line;	bzero(&cmd, sizeof(cmd));	cmd.opcode = MUSTEK_GET_STATUS;	cmd.length = sizeof(data);	while (1) {		SC_DEBUG(sc_link, SDEV_DB1, ("mustek_get_status: stat_cmd\n"));		error = scsi_scsi_cmd(sc_link, (struct scsi_generic *) &cmd,		    sizeof(cmd), (u_char *) &data, sizeof(data), MUSTEK_RETRIES,		    5000, NULL, SCSI_DATA_IN);		if (error)			return (error);		if ((data.ready_busy == MUSTEK_READY) ||		    (timeout-- <= 0))			break;		/* please wait a second */		tsleep((caddr_t)mustek_get_status, PRIBIO + 1, "mtkrdy", hz);	}	if (update) {		bytes_per_line = _2ltol(data.bytes_per_line);		lines = _3ltol(data.lines);		if (lines != ss->sio.scan_lines) {			printf("mustek: lines actual(%d) != computed(%ld)\n",			    lines, ss->sio.scan_lines);			return (EIO);		}		if (bytes_per_line * lines != ss->sio.scan_window_size) {			printf("mustek: win-size actual(%d) != computed(%ld)\n",			    bytes_per_line * lines, ss->sio.scan_window_size);		    return (EIO);		}		SC_DEBUG(sc_link, SDEV_DB1,		    ("mustek_get_size: bpl=%ld, lines=%ld\n",		    (ss->sio.scan_pixels_per_line * ss->sio.scan_bits_per_pixel) / 8,		    ss->sio.scan_lines));		SC_DEBUG(sc_link, SDEV_DB1, ("window size = %d\n",		    ss->sio.scan_window_size));	}	SC_DEBUG(sc_link, SDEV_DB1, ("mustek_get_status: end\n"));	if (data.ready_busy == MUSTEK_READY)		return (0);	else		return (EBUSY);}