Deleted Added
full compact
tdkphy.c (213384) tdkphy.c (213893)
1/*-
2 * Copyright (c) 2000,2001 Jonathan Chen.
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

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

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2000,2001 Jonathan Chen.
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

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

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/mii/tdkphy.c 213384 2010-10-03 17:00:57Z marius $");
30__FBSDID("$FreeBSD: head/sys/dev/mii/tdkphy.c 213893 2010-10-15 14:52:11Z marius $");
31
32/*
33 * Driver for the TDK 78Q2120 MII
34 *
35 * References:
36 * Datasheet for the 78Q2120 - http://www.tsc.tdk.com/lan/78q2120.pdf
37 * Most of this code stolen from ukphy.c
38 */

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

111 mii = ma->mii_data;
112 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list);
113
114 if (bootverbose)
115 device_printf(dev, "OUI 0x%06x, model 0x%04x, rev. %d\n",
116 MII_OUI(ma->mii_id1, ma->mii_id2),
117 MII_MODEL(ma->mii_id2), MII_REV(ma->mii_id2));
118
31
32/*
33 * Driver for the TDK 78Q2120 MII
34 *
35 * References:
36 * Datasheet for the 78Q2120 - http://www.tsc.tdk.com/lan/78q2120.pdf
37 * Most of this code stolen from ukphy.c
38 */

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

111 mii = ma->mii_data;
112 LIST_INSERT_HEAD(&mii->mii_phys, sc, mii_list);
113
114 if (bootverbose)
115 device_printf(dev, "OUI 0x%06x, model 0x%04x, rev. %d\n",
116 MII_OUI(ma->mii_id1, ma->mii_id2),
117 MII_MODEL(ma->mii_id2), MII_REV(ma->mii_id2));
118
119 sc->mii_flags = miibus_get_flags(dev);
119 sc->mii_inst = mii->mii_instance++;
120 sc->mii_phy = ma->mii_phyno;
121 sc->mii_service = tdkphy_service;
122 sc->mii_pdata = mii;
123
124 /*
125 * Apparently, we can't do loopback on this PHY.
126 */

--- 125 unchanged lines hidden ---
120 sc->mii_inst = mii->mii_instance++;
121 sc->mii_phy = ma->mii_phyno;
122 sc->mii_service = tdkphy_service;
123 sc->mii_pdata = mii;
124
125 /*
126 * Apparently, we can't do loopback on this PHY.
127 */

--- 125 unchanged lines hidden ---