Print this page
XXXX introduce drv_sectohz


 355 
 356 typedef struct fcoe_fcp_xfer_rdy {
 357         uint8_t fxr_data_ro[4];
 358         uint8_t fxr_burst_len[4];
 359         uint8_t fxr_rsvd[4];
 360 } fcoe_fcp_xfer_rdy_t;
 361 
 362 /*
 363  * FCOE project global functions
 364  */
 365 #if !defined(__FUNCTION__)
 366 #define __FUNCTION__ ((caddr_t)__func__)
 367 #endif
 368 
 369 #define FCOE_STR_LEN 32
 370 
 371 /*
 372  * timestamp (golbal variable in sys/systm.h)
 373  */
 374 #define CURRENT_CLOCK           (ddi_get_lbolt())
 375 #define FCOE_SEC2TICK(x_sec)    (drv_usectohz((x_sec) * 1000000))
 376 
 377 /*
 378  * Form/convert mod_hash_key from/to xch ID
 379  */
 380 #define FMHK(x_xid)             (mod_hash_key_t)(uintptr_t)(x_xid)
 381 #define CMHK(x_key)             (uint16_t)(uintptr_t)(x_key)
 382 
 383 typedef void (*TQ_FUNC_P)(void *);
 384 extern void fcoe_trace(caddr_t ident, const char *fmt, ...);
 385 
 386 #endif
 387 
 388 #ifdef  __cplusplus
 389 }
 390 #endif
 391 
 392 #endif  /* _FCOE_COMMON_H_ */


 355 
 356 typedef struct fcoe_fcp_xfer_rdy {
 357         uint8_t fxr_data_ro[4];
 358         uint8_t fxr_burst_len[4];
 359         uint8_t fxr_rsvd[4];
 360 } fcoe_fcp_xfer_rdy_t;
 361 
 362 /*
 363  * FCOE project global functions
 364  */
 365 #if !defined(__FUNCTION__)
 366 #define __FUNCTION__ ((caddr_t)__func__)
 367 #endif
 368 
 369 #define FCOE_STR_LEN 32
 370 
 371 /*
 372  * timestamp (golbal variable in sys/systm.h)
 373  */
 374 #define CURRENT_CLOCK           (ddi_get_lbolt())
 375 #define FCOE_SEC2TICK(x_sec)    drv_sectohz(x_sec)
 376 
 377 /*
 378  * Form/convert mod_hash_key from/to xch ID
 379  */
 380 #define FMHK(x_xid)             (mod_hash_key_t)(uintptr_t)(x_xid)
 381 #define CMHK(x_key)             (uint16_t)(uintptr_t)(x_key)
 382 
 383 typedef void (*TQ_FUNC_P)(void *);
 384 extern void fcoe_trace(caddr_t ident, const char *fmt, ...);
 385 
 386 #endif
 387 
 388 #ifdef  __cplusplus
 389 }
 390 #endif
 391 
 392 #endif  /* _FCOE_COMMON_H_ */