K 10 svn:author V 7 glebius K 8 svn:date V 27 2015-04-26T21:16:38.395684Z K 7 svn:log V 669 iConvert fxp(4) to new media and miibus KPI. Functional changes: o Move "Clear wakeup events" block down below if_attach(). This is actually bugfix after initial conversion to projects/ifnet. o In fxp_init() first set FXP_FLAG_RUNNING, then call mii_mediachg(), otherwise fxp_miibus_statchg() would return at beginning. o In fxp_miibus_statchg() don't return on !IFM_AVALID media, and we won't call if_media_status(). Tested: Intel 82557 (phy DP83840, nsphy) Tested: Intel 82558 (phy i82555, inphy) Tested: Intel 82558B (phy i82555, inphy) Tested: Intel 82559 (phy i82555, inphy) Sponsored by: Netflix Sponsored by: Nginx, Inc. END