DragonFly commits List (threaded) for 2007-05
DragonFly BSD
DragonFly commits List (threaded) for 2007-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/dev/netif/mii_layer brgphy.c src/sys/dev/netif/bge if_bge.c if_bgereg.h

From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 2 May 2007 07:34:10 -0700 (PDT)

sephe       2007/05/02 07:34:10 PDT

DragonFly src repository

  Modified files:
    sys/dev/netif/mii_layer brgphy.c 
    sys/dev/netif/bge    if_bge.c if_bgereg.h 
  - Merge following link state detection fixes from FreeBSD:
    if_bge.c rev 1.{102, 104, 113, 120, 124} (mainly oleg@freebsd.org)
    Local modifications:
    o  Split bge_link_upd() into
       bge_bcm5700_link_upd() -- for 5700 chips, except B2
       bge_tbi_link_upd()     -- for fiber interface
       bge_copper_link_upd()  -- for the rest for the bge(4) chips
       Assign one of them to bge_softc.bge_link_upd based on chip type
       in attach routine.
    o  Add bge_softc.bge_link_chg, which is setup based on chip type in
       attach routine.  It is used to check against MAC_STS to determine
       whether link state is changed or not.
    o  We always trust that "link state changed" bit in MAC_STS is correct.
    o  Keep the PCS error checks for fiber interface during link state
       changing detection.
  - After above change, bge_tick() is used to drive mii_tick(), so cleanup
  - In brgphy_status(), use temporary variable to hold BRGPHY_MII_AUXSTS,
    so it is not accessed twice.
  - For fiber interface, correct media status reporting if link is down.
    Obtained-from: OpenBSD (brad@openbsd.org)
  - Correct chip id for 5700 B1 and 5700 B2.
  - Minor style changes.
  Revision  Changes    Path
  1.16      +27 -64    src/sys/dev/netif/mii_layer/brgphy.c
  1.73      +202 -129  src/sys/dev/netif/bge/if_bge.c
  1.20      +6 -2      src/sys/dev/netif/bge/if_bgereg.h


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]