Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/bscv_impl.h
          +++ new/usr/src/uts/common/sys/bscv_impl.h
↓ open down ↓ 326 lines elided ↑ open up ↑
 327  327           * Error message count since last successful use of the idi interface.
 328  328           */
 329  329          uint64_t errs;
 330  330  };
 331  331  
 332  332  
 333  333  
 334  334  #define BSC_IMAGE_MAX_SIZE (0x20000 + sizeof (lom_prog_data_t))
 335  335  
 336  336  #define BSC_PROBE_FAULT_LIMIT   8       /* Tries before declaring lom dead */
 337      -#define BSC_EVENT_POLL_NORMAL   (drv_usectohz(1000000))         /* 1 second */
 338      -#define BSC_EVENT_POLL_FAULTY   (drv_usectohz(10000000))        /* 10 second */
      337 +#define BSC_EVENT_POLL_NORMAL   drv_sectohz(1)
      338 +#define BSC_EVENT_POLL_FAULTY   drv_sectohz(10)
 339  339  
 340  340  #define BSC_FAILURE_RETRY_LIMIT 5       /* Access retries before giving up */
 341  341  #define BSC_ERASE_RETRY_LIMIT   5       /* Erase retries */
 342  342  #define BSC_PAGE_RETRY_LIMIT    5       /* Page write retries */
 343  343  
 344  344  #define BSC_ADDR_CACHE_LIMIT    \
 345  345                  (sizeof (((bscv_soft_state_t *)NULL)->lom_regs))
 346  346  #define BSC_INFORM_ONLINE       0x4f530100
 347  347  #define BSC_INFORM_OFFLINE      0x4f530201
 348  348  #define BSC_INFORM_PANIC        0x4f530204
↓ open down ↓ 21 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX