+ /*
+ * Set next state; give 5 minutes to complete
+ * rewind, or 10 seconds per iteration (minimum 60
+ * seconds and max 5 minutes) to complete other ops.
+ */
+ if (bp->b_command == TM_REW) {
+ um->um_tab.b_active = SREW;
+ sc->sc_timo = 5 * 60;
+ } else {
+ um->um_tab.b_active = SCOM;
+ sc->sc_timo =
+ imin(imax(10*(int)-bp->b_repcnt,60),5*60);
+ }