Print this page
XXXX introduce drv_sectohz
@@ -498,20 +498,20 @@
return;
if (ddi_regs_map_setup(dip, 1, (caddr_t *)&mp, 0, bar_size,
&mattr, &h) != DDI_SUCCESS)
return;
ddi_put32(h, (uint32_t *)((uchar_t *)mp + addr_reg_off), data);
- delay(drv_usectohz(1000000));
+ delay(drv_sectohz(1));
printf("%s#%d: EEPROM StatusReg = %x, CRC = %x\n",
ddi_driver_name(dip), ddi_get_instance(dip),
ddi_get32(h, (uint32_t *)((uchar_t *)mp + addr_reg_off)),
ddi_get32(h, (uint32_t *)((uchar_t *)mp + data_reg_off)));
#ifdef PLX_HOT_RESET_DISABLE
/* prevent hot reset from propogating downstream. */
data = ddi_get32(h, (uint32_t *)((uchar_t *)mp + 0x1DC));
ddi_put32(h, (uint32_t *)((uchar_t *)mp + 0x1DC), data | 0x80000);
- delay(drv_usectohz(1000000));
+ delay(drv_sectohz(1));
printf("%s#%d: EEPROM 0x1DC prewrite=%x postwrite=%x\n",
ddi_driver_name(dip), ddi_get_instance(dip), data,
ddi_get32(h, (uint32_t *)((uchar_t *)mp + 0x1DC)));
#endif /* PLX_HOT_RESET_DISABLE */
ddi_regs_map_free(&h);