Deleted Added
full compact
brgphy.c (215355) brgphy.c (217413)
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 215355 2010-11-15 23:38:52Z jkim $");
34__FBSDID("$FreeBSD: head/sys/dev/mii/brgphy.c 217413 2011-01-14 19:29:53Z marius $");
35
36/*
37 * Driver for the Broadcom BCM54xx/57xx 1000baseTX PHY.
38 */
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/kernel.h>

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

448 bmcr = BRGPHY_S100;
449 break;
450 case IFM_10_T:
451 default:
452 bmcr = BRGPHY_S10;
453 break;
454 }
455
35
36/*
37 * Driver for the Broadcom BCM54xx/57xx 1000baseTX PHY.
38 */
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/kernel.h>

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

448 bmcr = BRGPHY_S100;
449 break;
450 case IFM_10_T:
451 default:
452 bmcr = BRGPHY_S10;
453 break;
454 }
455
456 if ((media & IFM_GMASK) == IFM_FDX) {
456 if ((media & IFM_FDX) != 0) {
457 bmcr |= BRGPHY_BMCR_FDX;
458 gig = BRGPHY_1000CTL_AFD;
459 } else {
460 gig = BRGPHY_1000CTL_AHD;
461 }
462
463 /* Force loopback to disconnect PHY from Ethernet medium. */
464 brgphy_enable_loopback(sc);

--- 624 unchanged lines hidden ---
457 bmcr |= BRGPHY_BMCR_FDX;
458 gig = BRGPHY_1000CTL_AFD;
459 } else {
460 gig = BRGPHY_1000CTL_AHD;
461 }
462
463 /* Force loopback to disconnect PHY from Ethernet medium. */
464 brgphy_enable_loopback(sc);

--- 624 unchanged lines hidden ---