Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/bge/bge_impl.h
          +++ new/usr/src/uts/common/io/bge/bge_impl.h
↓ open down ↓ 177 lines elided ↑ open up ↑
 178  178   *      the log only, not the console.  At any other time, link change
 179  179   *      events are regarded as unexpected and sent to both console & log.
 180  180   *
 181  181   *      These latter two values have no theoretical justification, but
 182  182   *      are derived from observations and heuristics - the values below
 183  183   *      just seem to work quite well.
 184  184   */
 185  185  
 186  186  #define BGE_HALFTICK            268435456LL             /* 2**28 ns!    */
 187  187  #define BGE_CYCLIC_PERIOD       (4*BGE_HALFTICK)        /*    ~1.0s     */
 188      -#define BGE_CYCLIC_TIMEOUT      (drv_usectohz(1000000)) /*    ~1.0s     */
      188 +#define BGE_CYCLIC_TIMEOUT      drv_sectohz(1)          /*    ~1.0s     */
 189  189  #define BGE_SERDES_STABLE_TIME  (3*BGE_HALFTICK)        /*    ~0.8s     */
 190  190  #define BGE_PHY_STABLE_TIME     (11*BGE_HALFTICK)       /*    ~3.0s     */
 191  191  #define BGE_LINK_SETTLE_TIME    (111*BGE_HALFTICK)      /*   ~30.0s     */
 192  192  
 193  193  /*
 194  194   * Indices used to identify the different buffer rings internally
 195  195   */
 196  196  #define BGE_STD_BUFF_RING       0
 197  197  #define BGE_JUMBO_BUFF_RING     1
 198  198  #define BGE_MINI_BUFF_RING      2
↓ open down ↓ 1137 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX