ruephy.c (213364) | ruephy.c (213384) |
---|---|
1/*- 2 * Copyright (c) 2001-2003, Shunsuke Akiyama <akiyama@FreeBSD.org>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001-2003, Shunsuke Akiyama <akiyama@FreeBSD.org>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/dev/mii/ruephy.c 213364 2010-10-02 18:53:12Z marius $"); | 29__FBSDID("$FreeBSD: head/sys/dev/mii/ruephy.c 213384 2010-10-03 17:00:57Z marius $"); |
30 31/* 32 * driver for RealTek RTL8150 internal PHY 33 */ 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/kernel.h> --- 201 unchanged lines hidden (view full) --- 239 240 if (msr & RUEPHY_MSR_SPEED100) 241 mii->mii_media_active |= IFM_100_TX; 242 else 243 mii->mii_media_active |= IFM_10_T; 244 245 if (msr & RUEPHY_MSR_DUPLEX) 246 mii->mii_media_active |= IFM_FDX; | 30 31/* 32 * driver for RealTek RTL8150 internal PHY 33 */ 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/kernel.h> --- 201 unchanged lines hidden (view full) --- 239 240 if (msr & RUEPHY_MSR_SPEED100) 241 mii->mii_media_active |= IFM_100_TX; 242 else 243 mii->mii_media_active |= IFM_10_T; 244 245 if (msr & RUEPHY_MSR_DUPLEX) 246 mii->mii_media_active |= IFM_FDX; |
247 else 248 mii->mii_media_active |= IFM_HDX; |
|
247 } else 248 mii->mii_media_active = ife->ifm_media; 249} | 249 } else 250 mii->mii_media_active = ife->ifm_media; 251} |