Print this page
XXXX introduce drv_sectohz
*** 3787,3797 ****
* Start watchdog timer on data transfer type commands - required
* in case a diskette is not present or is unformatted
*/
if (csb->csb_opflags & CSB_OFTIMEIT) {
fdc->c_timeid = timeout(fdwatch, a,
! tosec * drv_usectohz(1000000));
}
FDERRPRINT(FDEP_L1, FDEM_EXEC,
(C, "fdexec: cmd sent, Msr 0x%x\n", Msr(fdc)));
--- 3787,3797 ----
* Start watchdog timer on data transfer type commands - required
* in case a diskette is not present or is unformatted
*/
if (csb->csb_opflags & CSB_OFTIMEIT) {
fdc->c_timeid = timeout(fdwatch, a,
! drv_sectohz(tosec));
}
FDERRPRINT(FDEP_L1, FDEM_EXEC,
(C, "fdexec: cmd sent, Msr 0x%x\n", Msr(fdc)));
*** 4840,4850 ****
FDERRPRINT(FDEP_L1, FDEM_ATTA,
(C, "fdattach: Dor 0x%x\n", Dor(fdc)));
local_lbolt = ddi_get_lbolt();
if (cv_timedwait(&fdc->c_iocv, &fdc->c_lolock,
! local_lbolt + drv_usectohz(1000000)) == -1) {
return (-1);
}
break;
default:
--- 4840,4850 ----
FDERRPRINT(FDEP_L1, FDEM_ATTA,
(C, "fdattach: Dor 0x%x\n", Dor(fdc)));
local_lbolt = ddi_get_lbolt();
if (cv_timedwait(&fdc->c_iocv, &fdc->c_lolock,
! local_lbolt + drv_sectohz(1)) == -1) {
return (-1);
}
break;
default: