Print this page
XXXX introduce drv_sectohz
*** 773,783 ****
/*
* Wait if there's any activity on the port
*/
if ((pp->e_busy == ECPP_BUSY) || (pp->e_busy == ECPP_FLUSH)) {
(void) cv_reltimedwait(&pp->pport_cv, &pp->umutex,
! SUSPEND_TOUT * drv_usectohz(1000000),
TR_CLOCK_TICK);
if ((pp->e_busy == ECPP_BUSY) ||
(pp->e_busy == ECPP_FLUSH)) {
pp->suspended = FALSE;
mutex_exit(&pp->umutex);
--- 773,783 ----
/*
* Wait if there's any activity on the port
*/
if ((pp->e_busy == ECPP_BUSY) || (pp->e_busy == ECPP_FLUSH)) {
(void) cv_reltimedwait(&pp->pport_cv, &pp->umutex,
! drv_sectohz(SUSPEND_TOUT),
TR_CLOCK_TICK);
if ((pp->e_busy == ECPP_BUSY) ||
(pp->e_busy == ECPP_FLUSH)) {
pp->suspended = FALSE;
mutex_exit(&pp->umutex);
*** 2802,2812 ****
break;
}
/* schedule transfer timeout */
pp->timeout_id = timeout(ecpp_xfer_timeout, (caddr_t)pp,
! pp->xfer_parms.write_timeout * drv_usectohz(1000000));
}
/*
* Transfer a PIO "block" a byte at a time.
* The block is starts at addr and ends at pp->last_byte
--- 2802,2812 ----
break;
}
/* schedule transfer timeout */
pp->timeout_id = timeout(ecpp_xfer_timeout, (caddr_t)pp,
! drv_sectohz(pp->xfer_parms.write_timeout));
}
/*
* Transfer a PIO "block" a byte at a time.
* The block is starts at addr and ends at pp->last_byte