Print this page
XXXX introduce drv_sectohz

*** 147,157 **** #define DRV_MASK 0x03 /* drive mask for the second command byte */ #ifndef _ASM #define Moton_delay (drv_usectohz(750000)) /* motor on delay */ /* 0.75 seconds */ ! #define Motoff_delay (6 * drv_usectohz(1000000)) /* motor off delay */ /* 6 seconds */ /* Macros to set and retrieve data from the controller registers */ #define Msr(fdc) ddi_get8(fdc->c_handlep_cont, \ ((uint8_t *)fdc->c_control)) --- 147,157 ---- #define DRV_MASK 0x03 /* drive mask for the second command byte */ #ifndef _ASM #define Moton_delay (drv_usectohz(750000)) /* motor on delay */ /* 0.75 seconds */ ! #define Motoff_delay drv_sectohz(6) /* motor off delay */ /* 6 seconds */ /* Macros to set and retrieve data from the controller registers */ #define Msr(fdc) ddi_get8(fdc->c_handlep_cont, \ ((uint8_t *)fdc->c_control))