Deleted Added
full compact
nsgphy.c (213893) nsgphy.c (215298)
1/*-
2 * Copyright (c) 2001 Wind River Systems
3 * Copyright (c) 2001
4 * Bill Paul <wpaul@bsdi.com>. All rights reserved.
5 * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation

--- 24 unchanged lines hidden (view full) ---

33 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
37 * THE POSSIBILITY OF SUCH DAMAGE.
38 */
39
40#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001 Wind River Systems
3 * Copyright (c) 2001
4 * Bill Paul <wpaul@bsdi.com>. All rights reserved.
5 * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation

--- 24 unchanged lines hidden (view full) ---

33 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
34 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
37 * THE POSSIBILITY OF SUCH DAMAGE.
38 */
39
40#include <sys/cdefs.h>
41__FBSDID("$FreeBSD: head/sys/dev/mii/nsgphy.c 213893 2010-10-15 14:52:11Z marius $");
41__FBSDID("$FreeBSD: head/sys/dev/mii/nsgphy.c 215298 2010-11-14 13:31:01Z marius $");
42
43/*
44 * Driver for the National Semiconductor DP83861, DP83865 and DP83891
45 * 10/100/1000 PHYs.
46 * Datasheet available at: http://www.national.com/ds/DP/DP83861.pdf
47 * and at: http://www.national.com/ds/DP/DP83865.pdf
48 *
49 * The DP83891 is the older NS GigE PHY which isn't being sold

--- 191 unchanged lines hidden (view full) ---

241
242 default:
243 mii->mii_media_active |= IFM_NONE;
244 mii->mii_media_status = 0;
245 return;
246 }
247
248 if (physup & PHY_SUP_DUPLEX)
42
43/*
44 * Driver for the National Semiconductor DP83861, DP83865 and DP83891
45 * 10/100/1000 PHYs.
46 * Datasheet available at: http://www.national.com/ds/DP/DP83861.pdf
47 * and at: http://www.national.com/ds/DP/DP83865.pdf
48 *
49 * The DP83891 is the older NS GigE PHY which isn't being sold

--- 191 unchanged lines hidden (view full) ---

241
242 default:
243 mii->mii_media_active |= IFM_NONE;
244 mii->mii_media_status = 0;
245 return;
246 }
247
248 if (physup & PHY_SUP_DUPLEX)
249 mii->mii_media_active |= IFM_FDX;
249 mii->mii_media_active |=
250 IFM_FDX | mii_phy_flowstatus(sc);
250 else
251 mii->mii_media_active |= IFM_HDX;
252 } else
253 mii->mii_media_active = ife->ifm_media;
254}
251 else
252 mii->mii_media_active |= IFM_HDX;
253 } else
254 mii->mii_media_active = ife->ifm_media;
255}