Print this page
XXXX introduce drv_sectohz

*** 1134,1144 **** /* * Miscellaneous macros */ - #define SD_USECTOHZ(x) (drv_usectohz((x)*1000000)) #define SD_GET_PKT_STATUS(pktp) ((*(pktp)->pkt_scbp) & STATUS_MASK) #define SD_BIOERROR(bp, errcode) \ if ((bp)->b_resid == 0) { \ (bp)->b_resid = (bp)->b_bcount; \ --- 1134,1143 ----
*** 1314,1328 **** #define SD_QFULL_THROTTLE_TIMEOUT 10 #define SD_THROTTLE_TRAN_BUSY 0 #define SD_THROTTLE_QFULL 1 ! #define SD_THROTTLE_RESET_INTERVAL \ ! (sd_reset_throttle_timeout * drv_usectohz(1000000)) #define SD_QFULL_THROTTLE_RESET_INTERVAL \ ! (sd_qfull_throttle_timeout * drv_usectohz(1000000)) /* * xb_pkt_flags defines * SD_XB_DMA_FREED indicates the scsi_pkt has had its DMA resources freed --- 1313,1326 ---- #define SD_QFULL_THROTTLE_TIMEOUT 10 #define SD_THROTTLE_TRAN_BUSY 0 #define SD_THROTTLE_QFULL 1 ! #define SD_THROTTLE_RESET_INTERVAL drv_sectohz(sd_reset_throttle_timeout) #define SD_QFULL_THROTTLE_RESET_INTERVAL \ ! drv_sectohz(sd_qfull_throttle_timeout) /* * xb_pkt_flags defines * SD_XB_DMA_FREED indicates the scsi_pkt has had its DMA resources freed
*** 1714,1724 **** #define SD_FMT_TIME (120 * 60) /* * 5 seconds is what we'll wait if we get a Busy Status back */ ! #define SD_BSY_TIMEOUT (drv_usectohz(5 * 1000000)) /* * 100 msec. is what we'll wait if we get Unit Attention. */ #define SD_UA_RETRY_DELAY (drv_usectohz((clock_t)100000)) --- 1712,1722 ---- #define SD_FMT_TIME (120 * 60) /* * 5 seconds is what we'll wait if we get a Busy Status back */ ! #define SD_BSY_TIMEOUT drv_sectohz(5) /* * 100 msec. is what we'll wait if we get Unit Attention. */ #define SD_UA_RETRY_DELAY (drv_usectohz((clock_t)100000))
*** 1729,1739 **** #define SD_RESTART_TIMEOUT (drv_usectohz((clock_t)100000)) /* * 10s misaligned I/O warning message interval */ ! #define SD_RMW_MSG_PRINT_TIMEOUT (drv_usectohz((clock_t)10000000)) /* * 100 msec. is what we'll wait for certain retries for fibre channel * targets, 0 msec for parallel SCSI. */ --- 1727,1737 ---- #define SD_RESTART_TIMEOUT (drv_usectohz((clock_t)100000)) /* * 10s misaligned I/O warning message interval */ ! #define SD_RMW_MSG_PRINT_TIMEOUT drv_sectohz(10) /* * 100 msec. is what we'll wait for certain retries for fibre channel * targets, 0 msec for parallel SCSI. */