Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun/sys/fdreg.h
          +++ new/usr/src/uts/sun/sys/fdreg.h
↓ open down ↓ 141 lines elided ↑ open up ↑
 142  142  #define DRVSEL          0x1     /* drive select */
 143  143  
 144  144  /* DIR - Digital Input register - 82077 only */
 145  145  #define DSKCHG  0x80            /* diskette was changed - was in Auxio */
 146  146  
 147  147  #define DRV_MASK        0x03    /* drive mask for the second command byte */
 148  148  
 149  149  #ifndef _ASM
 150  150  #define Moton_delay     (drv_usectohz(750000))          /* motor on delay */
 151  151                                                          /* 0.75 seconds */
 152      -#define Motoff_delay    (6 * drv_usectohz(1000000))     /* motor off delay */
      152 +#define Motoff_delay    drv_sectohz(6)          /* motor off delay */
 153  153                                                          /* 6 seconds */
 154  154  
 155  155  /* Macros to set and retrieve data from the controller registers */
 156  156  #define Msr(fdc)        ddi_get8(fdc->c_handlep_cont, \
 157  157                                          ((uint8_t *)fdc->c_control))
 158  158  #define Dsr(fdc, val)   ddi_put8(fdc->c_handlep_cont, \
 159  159                                          ((uint8_t *)fdc->c_control),\
 160  160                                          ((uint8_t)val))
 161  161  #define Dir(fdc)        ddi_get8(fdc->c_handlep_cont, \
 162  162                                          ((uint8_t *)fdc->c_dir))
↓ open down ↓ 149 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX