git: bge/bce: Use mii private data to pass various flags to brgphy

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sat Jul 7 01:33:31 PDT 2012


commit f31c6e4d3b77deff15f5c222822b439e424fc2dc
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Sat Jul 7 16:15:29 2012 +0800

    bge/bce: Use mii private data to pass various flags to brgphy
    
    This unbreaks if_name support on bce(4) and bge(4).  And this mechanism
    is cleaner and easier to extend than checking if_name and accessing
    NIC drivers' softc.

Summary of changes:
 sys/dev/netif/bce/if_bce.c          |   38 +++++++++-----
 sys/dev/netif/bge/if_bge.c          |   24 +++++---
 sys/dev/netif/bge/if_bgereg.h       |   10 ----
 sys/dev/netif/mii_layer/brgphy.c    |  100 +++++++++++++++--------------------
 sys/dev/netif/mii_layer/brgphyreg.h |   12 ++++
 5 files changed, 94 insertions(+), 90 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f31c6e4d3b77deff15f5c222822b439e424fc2dc


-- 
DragonFly BSD source repository





More information about the Commits mailing list