Changeset a912777c in rtems


Ignore:
Timestamp:
Aug 9, 2006, 12:01:55 AM (13 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
783669fc
Parents:
a819821
Message:
  • libnetworking/rtems/rtems_mii_ioctl_kern.c: read ANER and include partner's autoneg capability when determining active link parameters.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    ra819821 ra912777c  
     12006-08-08      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * libnetworking/rtems/rtems_mii_ioctl_kern.c:
     4        read ANER and include partner's autoneg
     5        capability when determining active link parameters.
     6
    172006-07-12      Till Straumann <strauman@slac.stanford.edu>
    28
  • cpukit/libnetworking/rtems/rtems_mii_ioctl_kern.c

    ra819821 ra912777c  
    4545                 int *media)
    4646{
    47   uint32_t bmcr, bmsr, bmcr2 = 0, bmsr2 = 0, anar, lpar;
     47  uint32_t bmcr, bmsr, aner, bmcr2 = 0, bmsr2 = 0, anar, lpar;
    4848  int phy = IFM_INST (*media);
    4949  unsigned tmp;
     
    6161      return EINVAL;
    6262    if (info->mdio_r (phy, uarg, MII_BMSR, &bmsr))
     63      return EINVAL;
     64    if (info->mdio_r (phy, uarg, MII_ANER, &aner))
    6365      return EINVAL;
    6466    if (info->has_gmii) {
     
    9799      subtype = IFM_NONE;
    98100    } else {
    99       /* everything ok */
     101      /* everything ok on our side */
     102
     103          if ( ! (ANER_LPAN & aner) ) {
     104                /* Link partner doesn't autonegotiate --> our settings are the
     105                 * result of 'parallel detect' (in particular: duplex status is HALF
     106                 * according to the standard!).
     107                 * Let them know that something's fishy...
     108                 */
     109                options |= IFM_ANEG_DIS;
     110          }
    100111
    101112      tmp = ((bmcr2 >> 2) & bmsr2) & (GTSR_LP_1000THDX | GTSR_LP_1000TFDX);
Note: See TracChangeset for help on using the changeset viewer.