Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/stmf.h
          +++ new/usr/src/uts/common/sys/stmf.h
↓ open down ↓ 347 lines elided ↑ open up ↑
 348  348   * VPD page bits.
 349  349   */
 350  350  #define STMF_VPD_LU_ID          0x01
 351  351  #define STMF_VPD_TARGET_ID      0x02
 352  352  #define STMF_VPD_TP_GROUP       0x04
 353  353  #define STMF_VPD_RELATIVE_TP_ID 0x08
 354  354  
 355  355  /*
 356  356   * Common macros to simplify coding
 357  357   */
 358      -#define STMF_SEC2TICK(x_sec)    (drv_usectohz((x_sec) * 1000000))
      358 +#define STMF_SEC2TICK(x_sec)    drv_sectohz(x_sec)
 359  359  
 360  360  void stmf_trace(caddr_t ident, const char *fmt, ...);
 361  361  void *stmf_alloc(stmf_struct_id_t sid, int additional_size, int alloc_flags);
 362  362  void stmf_free(void *struct_ptr);
 363  363  struct scsi_task *stmf_task_alloc(struct stmf_local_port *lport,
 364  364      struct stmf_scsi_session *ss, uint8_t *lun, uint16_t cdb_length,
 365  365      uint16_t ext_id);
 366  366  void stmf_post_task(scsi_task_t *task, stmf_data_buf_t *dbuf);
 367  367  stmf_data_buf_t *stmf_alloc_dbuf(scsi_task_t *task, uint32_t size,
 368  368      uint32_t *pminsize, uint32_t flags);
↓ open down ↓ 55 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX