Deleted Added
full compact
brgphy.c (118814) brgphy.c (119157)
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

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

31 */
32
33/*
34 * Driver for the Broadcom BCR5400 1000baseTX PHY. Speed is always
35 * 1000mbps; all we need to negotiate here is full or half duplex.
36 */
37
38#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

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

31 */
32
33/*
34 * Driver for the Broadcom BCR5400 1000baseTX PHY. Speed is always
35 * 1000mbps; all we need to negotiate here is full or half duplex.
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/dev/mii/brgphy.c 118814 2003-08-12 05:18:51Z wpaul $");
39__FBSDID("$FreeBSD: head/sys/dev/mii/brgphy.c 119157 2003-08-20 04:06:00Z ambrisko $");
40
41#include <sys/param.h>
42#include <sys/systm.h>
43#include <sys/kernel.h>
44#include <sys/socket.h>
45#include <sys/bus.h>
46
47#include <machine/clock.h>

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

615 bge_sc->bge_chipid == BGE_CHIPID_BCM5705_A1 ||
616 bge_sc->bge_chipid == BGE_CHIPID_BCM5705_A2))
617 return;
618
619 /* Enable Ethernet@WireSpeed. */
620 PHY_WRITE(sc, BRGPHY_MII_AUXCTL, 0x7007);
621 val = PHY_READ(sc, BRGPHY_MII_AUXCTL);
622 PHY_WRITE(sc, BRGPHY_MII_AUXCTL, val | (1 << 15) || (1 << 4));
40
41#include <sys/param.h>
42#include <sys/systm.h>
43#include <sys/kernel.h>
44#include <sys/socket.h>
45#include <sys/bus.h>
46
47#include <machine/clock.h>

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

615 bge_sc->bge_chipid == BGE_CHIPID_BCM5705_A1 ||
616 bge_sc->bge_chipid == BGE_CHIPID_BCM5705_A2))
617 return;
618
619 /* Enable Ethernet@WireSpeed. */
620 PHY_WRITE(sc, BRGPHY_MII_AUXCTL, 0x7007);
621 val = PHY_READ(sc, BRGPHY_MII_AUXCTL);
622 PHY_WRITE(sc, BRGPHY_MII_AUXCTL, val | (1 << 15) || (1 << 4));
623
624 /* Enable Link LED on Dell boxes */
625 if (bge_sc->bge_no_3_led) {
626 PHY_WRITE(sc, BRGPHY_MII_PHY_EXTCTL,
627 PHY_READ(sc, BRGPHY_MII_PHY_EXTCTL)
628 & ~BRGPHY_PHY_EXTCTL_3_LED);
629 }
623}
630}