Print this page
XXXX introduce drv_sectohz

*** 3110,3120 **** ddi_put8(asy->asy_iohandle, asy->asy_ioaddr + LCR, (val | SETBREAK)); mutex_exit(&asy->asy_excl_hi); async->async_flags |= ASYNC_BREAK; (void) timeout(async_restart, (caddr_t)async, ! drv_usectohz(1000000)/4); freemsg(bp); return; /* wait for this to finish */ case M_DELAY: /* --- 3110,3120 ---- ddi_put8(asy->asy_iohandle, asy->asy_ioaddr + LCR, (val | SETBREAK)); mutex_exit(&asy->asy_excl_hi); async->async_flags |= ASYNC_BREAK; (void) timeout(async_restart, (caddr_t)async, ! drv_sectohz(1) / 4); freemsg(bp); return; /* wait for this to finish */ case M_DELAY: /*
*** 3577,3587 **** ddi_put8(asy->asy_iohandle, asy->asy_ioaddr + LCR, (val | SETBREAK)); mutex_exit(&asy->asy_excl_hi); (void) timeout(async_restart, (caddr_t)async, ! drv_usectohz(1000000)/4); } else { DEBUGCONT1(ASY_DEBUG_OUT, "async%d_ioctl: wait for flush.\n", instance); mutex_enter(&asy->asy_excl_hi); --- 3577,3587 ---- ddi_put8(asy->asy_iohandle, asy->asy_ioaddr + LCR, (val | SETBREAK)); mutex_exit(&asy->asy_excl_hi); (void) timeout(async_restart, (caddr_t)async, ! drv_sectohz(1) / 4); } else { DEBUGCONT1(ASY_DEBUG_OUT, "async%d_ioctl: wait for flush.\n", instance); mutex_enter(&asy->asy_excl_hi);