Deleted Added
full compact
brgphy.c (166680) brgphy.c (166716)
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 166680 2007-02-13 00:34:32Z jkim $");
34__FBSDID("$FreeBSD: head/sys/dev/mii/brgphy.c 166716 2007-02-14 18:21:32Z jkim $");
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>

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

614
615static void
616brgphy_fixup_crc_bug(struct mii_softc *sc)
617{
618 static const struct {
619 int reg;
620 uint16_t val;
621 } dspcode[] = {
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>

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

614
615static void
616brgphy_fixup_crc_bug(struct mii_softc *sc)
617{
618 static const struct {
619 int reg;
620 uint16_t val;
621 } dspcode[] = {
622 { BRGPHY_MII_DSP_ADDR_REG, 0x0a75 },
622 { BRGPHY_MII_DSP_RW_PORT, 0x0a75 },
623 { 0x1c, 0x8c68 },
624 { 0x1c, 0x8d68 },
625 { 0x1c, 0x8c68 },
626 { 0, 0 },
627 };
628 int i;
629
630 for (i = 0; dspcode[i].reg != 0; i++)

--- 137 unchanged lines hidden ---
623 { 0x1c, 0x8c68 },
624 { 0x1c, 0x8d68 },
625 { 0x1c, 0x8c68 },
626 { 0, 0 },
627 };
628 int i;
629
630 for (i = 0; dspcode[i].reg != 0; i++)

--- 137 unchanged lines hidden ---