Print this page
212 Atheros AR8132 / L1c Gigabit Ethernet Adapter

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/atge/atge_l1e.c
          +++ new/usr/src/uts/common/io/atge/atge_l1e.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
       23 + * Copyright (c) 2012 Gary Mills
       24 + *
  23   25   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  #include <sys/types.h>
  28   30  #include <sys/stream.h>
  29   31  #include <sys/strsun.h>
  30   32  #include <sys/stat.h>
  31   33  #include <sys/modctl.h>
  32   34  #include <sys/ethernet.h>
↓ open down ↓ 361 lines elided ↑ open up ↑
 394  396           */
 395  397          OUTL(atgep, L1E_INT_TRIG_TIMER,
 396  398              ((ATGE_USECS(10) << INT_TRIG_RX_TIMER_SHIFT) |
 397  399              (ATGE_USECS(1000) << INT_TRIG_TX_TIMER_SHIFT)));
 398  400  
 399  401          reg = ATGE_USECS(ATGE_IM_RX_TIMER_DEFAULT) << IM_TIMER_RX_SHIFT;
 400  402          reg |= ATGE_USECS(ATGE_IM_TX_TIMER_DEFAULT) << IM_TIMER_TX_SHIFT;
 401  403          OUTL(atgep, ATGE_IM_TIMER, reg);
 402  404  
 403  405          reg = INL(atgep, ATGE_MASTER_CFG);
 404      -        reg &= ~(MASTER_CHIP_REV_MASK | MASTER_CHIP_ID_MASK);
 405      -        reg &= ~(MASTER_IM_RX_TIMER_ENB | MASTER_IM_TX_TIMER_ENB);
 406      -        reg |= MASTER_IM_RX_TIMER_ENB;
 407      -        reg |= MASTER_IM_TX_TIMER_ENB;
      406 +        reg &= ~(L1E_MASTER_CHIP_REV_MASK | L1E_MASTER_CHIP_ID_MASK);
      407 +        reg &= ~(L1E_MASTER_IM_RX_TIMER_ENB | L1E_MASTER_IM_TX_TIMER_ENB);
      408 +        reg |= L1E_MASTER_IM_RX_TIMER_ENB;
      409 +        reg |= L1E_MASTER_IM_TX_TIMER_ENB;
 408  410          OUTL(atgep, ATGE_MASTER_CFG, reg);
 409  411  
 410  412          OUTW(atgep, RX_COALSC_PKT_1e, 0);
 411  413          OUTW(atgep, RX_COALSC_TO_1e, 0);
 412  414          OUTW(atgep, TX_COALSC_PKT_1e, 1);
 413  415          OUTW(atgep, TX_COALSC_TO_1e, 4000/2);           /* 4mS */
 414  416  }
 415  417  
 416  418  mblk_t *
 417  419  atge_l1e_receive(atge_t *atgep)
↓ open down ↓ 540 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX