Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/nxge/nxge_hio.c
          +++ new/usr/src/uts/common/io/nxge/nxge_hio.c
↓ open down ↓ 798 lines elided ↑ open up ↑
 799  799   * Notes:
 800  800   *      This is a developer-only function.
 801  801   *
 802  802   * Context:
 803  803   *      Any domain
 804  804   */
 805  805  void
 806  806  nxge_delay(
 807  807          int seconds)
 808  808  {
 809      -        delay(drv_usectohz(seconds * 1000000));
      809 +        delay(drv_sectohz(seconds));
 810  810  }
 811  811  
 812  812  static dmc_reg_name_t rx_names[] = {
 813  813          { "RXDMA_CFIG1",        0 },
 814  814          { "RXDMA_CFIG2",        8 },
 815  815          { "RBR_CFIG_A",         0x10 },
 816  816          { "RBR_CFIG_B",         0x18 },
 817  817          { "RBR_KICK",           0x20 },
 818  818          { "RBR_STAT",           0x28 },
 819  819          { "RBR_HDH",            0x30 },
↓ open down ↓ 1785 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX