Deleted Added
full compact
pnaphy.c (213364) pnaphy.c (213893)
1/*-
2 * Copyright (c) 2000 Berkeley Software Design, Inc.
3 * Copyright (c) 1997, 1998, 1999, 2000
4 * Bill Paul <wpaul@osd.bsdi.com>. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2000 Berkeley Software Design, Inc.
3 * Copyright (c) 1997, 1998, 1999, 2000
4 * Bill Paul <wpaul@osd.bsdi.com>. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/dev/mii/pnaphy.c 213364 2010-10-02 18:53:12Z marius $");
35__FBSDID("$FreeBSD: head/sys/dev/mii/pnaphy.c 213893 2010-10-15 14:52:11Z marius $");
36
37/*
38 * driver for homePNA PHYs
39 * This is really just a stub that allows us to identify homePNA-based
40 * transceicers and display the link status. MII-based homePNA PHYs
41 * only support one media type and no autonegotiation. If we were
42 * really clever, we could tweak some of the vendor-specific registers
43 * to optimize the link.

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

105 const char *sep = "";
106
107 sc = device_get_softc(dev);
108 ma = device_get_ivars(dev);
109 sc->mii_dev = device_get_parent(dev);
110 mii = ma->mii_data;
111 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list);
112
36
37/*
38 * driver for homePNA PHYs
39 * This is really just a stub that allows us to identify homePNA-based
40 * transceicers and display the link status. MII-based homePNA PHYs
41 * only support one media type and no autonegotiation. If we were
42 * really clever, we could tweak some of the vendor-specific registers
43 * to optimize the link.

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

105 const char *sep = "";
106
107 sc = device_get_softc(dev);
108 ma = device_get_ivars(dev);
109 sc->mii_dev = device_get_parent(dev);
110 mii = ma->mii_data;
111 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list);
112
113 sc->mii_flags = miibus_get_flags(dev);
113 sc->mii_inst = mii->mii_instance++;
114 sc->mii_phy = ma->mii_phyno;
115 sc->mii_service = pnaphy_service;
116 sc->mii_pdata = mii;
117
118 sc->mii_flags |= MIIF_NOISOLATE;
119
120#define ADD(m, c) ifmedia_add(&mii->mii_media, (m), (c), NULL)

--- 69 unchanged lines hidden ---
114 sc->mii_inst = mii->mii_instance++;
115 sc->mii_phy = ma->mii_phyno;
116 sc->mii_service = pnaphy_service;
117 sc->mii_pdata = mii;
118
119 sc->mii_flags |= MIIF_NOISOLATE;
120
121#define ADD(m, c) ifmedia_add(&mii->mii_media, (m), (c), NULL)

--- 69 unchanged lines hidden ---