Deleted Added
full compact
brgphy.c (157642) brgphy.c (157691)
1/*-
2 * Copyright (c) 2000
3 * Bill Paul <wpaul@ee.columbia.edu>. 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

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

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2000
3 * Bill Paul <wpaul@ee.columbia.edu>. 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

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

26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/dev/mii/brgphy.c 157642 2006-04-10 19:55:23Z ps $");
34__FBSDID("$FreeBSD: head/sys/dev/mii/brgphy.c 157691 2006-04-12 18:34:00Z ps $");
35
36/*
37 * Driver for the Broadcom BCR5400 1000baseTX PHY. Speed is always
38 * 1000mbps; all we need to negotiate here is full or half duplex.
39 */
40
41#include <sys/param.h>
42#include <sys/systm.h>

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

158 MII_MODEL(ma->mii_id2) == MII_MODEL_xxBROADCOM_BCM5714) {
159 device_set_desc(dev, MII_STR_xxBROADCOM_BCM5714);
160 return(0);
161 }
162
163 if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_xxBROADCOM &&
164 MII_MODEL(ma->mii_id2) == MII_MODEL_xxBROADCOM_BCM5780) {
165 device_set_desc(dev, MII_STR_xxBROADCOM_BCM5780);
35
36/*
37 * Driver for the Broadcom BCR5400 1000baseTX PHY. Speed is always
38 * 1000mbps; all we need to negotiate here is full or half duplex.
39 */
40
41#include <sys/param.h>
42#include <sys/systm.h>

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

158 MII_MODEL(ma->mii_id2) == MII_MODEL_xxBROADCOM_BCM5714) {
159 device_set_desc(dev, MII_STR_xxBROADCOM_BCM5714);
160 return(0);
161 }
162
163 if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_xxBROADCOM &&
164 MII_MODEL(ma->mii_id2) == MII_MODEL_xxBROADCOM_BCM5780) {
165 device_set_desc(dev, MII_STR_xxBROADCOM_BCM5780);
166 return (0);
166 }
167
168 if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_xxBROADCOM &&
169 MII_MODEL(ma->mii_id2) == MII_MODEL_xxBROADCOM_BCM5706C) {
170 device_set_desc(dev, MII_STR_xxBROADCOM_BCM5706C);
171 return(0);
172 }
173

--- 556 unchanged lines hidden ---
167 }
168
169 if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_xxBROADCOM &&
170 MII_MODEL(ma->mii_id2) == MII_MODEL_xxBROADCOM_BCM5706C) {
171 device_set_desc(dev, MII_STR_xxBROADCOM_BCM5706C);
172 return(0);
173 }
174

--- 556 unchanged lines hidden ---