Print this page
XXXX introduce drv_sectohz
*** 2213,2223 ****
if (status) {
cmn_err(CE_WARN, "%s: Couldn't bring down link\n", mgp->name);
}
while (old_down_cnt == *((volatile int *)&mgp->down_cnt)) {
! delay(1 * drv_usectohz(1000000));
wait_time--;
if (wait_time == 0)
break;
}
again:
--- 2213,2223 ----
if (status) {
cmn_err(CE_WARN, "%s: Couldn't bring down link\n", mgp->name);
}
while (old_down_cnt == *((volatile int *)&mgp->down_cnt)) {
! delay(drv_sectohz(1));
wait_time--;
if (wait_time == 0)
break;
}
again:
*** 2241,2255 ****
polling = mgp->ss->rx_polling;
mutex_exit(&mgp->ss->poll_lock);
if (polling) {
printf("%s: slice %d is polling\n",
mgp->name, i);
! delay(1 * drv_usectohz(1000000));
goto again;
}
}
! delay(1 * drv_usectohz(1000000));
if (old_down_cnt == *((volatile int *)&mgp->down_cnt)) {
cmn_err(CE_WARN, "%s: Never got down irq\n", mgp->name);
}
}
--- 2241,2255 ----
polling = mgp->ss->rx_polling;
mutex_exit(&mgp->ss->poll_lock);
if (polling) {
printf("%s: slice %d is polling\n",
mgp->name, i);
! delay(drv_sectohz(1));
goto again;
}
}
! delay(drv_sectohz(1));
if (old_down_cnt == *((volatile int *)&mgp->down_cnt)) {
cmn_err(CE_WARN, "%s: Never got down irq\n", mgp->name);
}
}
*** 5875,5885 ****
mgp->running = MYRI10GE_ETH_STOPPED;
mgp->vso = vso;
mgp->dip = dip;
mgp->cfg_hdl = handle;
! mgp->timer_ticks = 5 * drv_usectohz(1000000); /* 5 seconds */
myri10ge_test_physical(dip);
/* allocate command page */
bytes = sizeof (*mgp->cmd);
mgp->cmd = (mcp_cmd_response_t *)
--- 5875,5885 ----
mgp->running = MYRI10GE_ETH_STOPPED;
mgp->vso = vso;
mgp->dip = dip;
mgp->cfg_hdl = handle;
! mgp->timer_ticks = drv_sectohz(5);
myri10ge_test_physical(dip);
/* allocate command page */
bytes = sizeof (*mgp->cmd);
mgp->cmd = (mcp_cmd_response_t *)