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

git: mii: Allow NIC drivers to pass more information to MII probe


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 1 Jul 2012 16:29:22 -0700 (PDT)

commit 6435039f813dc3fe6fb867625f1b7e0fd76fec7d
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date:   Mon Jul 2 07:17:30 2012 +0800

    mii: Allow NIC drivers to pass more information to MII probe
    
    - mii_capmask, which is used to mask out uninstended BMSR bits.
    - At which PHYs that MII should perform probing and attching
      (mii_probe_args.mii_probemask).
    - mii_flags, which will be used for future mii flow control support.
    
    Th he above information could only be passed using new mii_probe(),
    it should be used in the following way:
    
    struct mii_probe_args mii_args;
    
    mii_probe_args_init(&mii_args, ifmedia_upd, ifmedia_sts);
    /*
     * Adjust mii_args if necessary
     */
    error = mii_probe(dev, &mii_dev, &mii_args);
    
    Inspired-by: FreeBSD 213878

Summary of changes:
 sys/dev/netif/mii_layer/mii.c    |   61 ++++++++++++++++++++++++++------------
 sys/dev/netif/mii_layer/miivar.h |   15 +++++++++
 2 files changed, 57 insertions(+), 19 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6435039f813dc3fe6fb867625f1b7e0fd76fec7d


-- 
DragonFly BSD source repository



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