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

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

24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
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 *
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

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

24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
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 * $FreeBSD: head/sys/dev/mii/brgphy.c 84145 2001-09-29 19:18:52Z jlemon $
32 * $FreeBSD: head/sys/dev/mii/brgphy.c 92739 2002-03-20 02:08:01Z alfred $
33 */
34
35/*
36 * Driver for the Broadcom BCR5400 1000baseTX PHY. Speed is always
37 * 1000mbps; all we need to negotiate here is full or half duplex.
38 */
39
40#include <sys/param.h>

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

54#include <dev/mii/miidevs.h>
55
56#include <dev/mii/brgphyreg.h>
57
58#include "miibus_if.h"
59
60#if !defined(lint)
61static const char rcsid[] =
33 */
34
35/*
36 * Driver for the Broadcom BCR5400 1000baseTX PHY. Speed is always
37 * 1000mbps; all we need to negotiate here is full or half duplex.
38 */
39
40#include <sys/param.h>

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

54#include <dev/mii/miidevs.h>
55
56#include <dev/mii/brgphyreg.h>
57
58#include "miibus_if.h"
59
60#if !defined(lint)
61static const char rcsid[] =
62 "$FreeBSD: head/sys/dev/mii/brgphy.c 84145 2001-09-29 19:18:52Z jlemon $";
62 "$FreeBSD: head/sys/dev/mii/brgphy.c 92739 2002-03-20 02:08:01Z alfred $";
63#endif
64
63#endif
64
65static int brgphy_probe __P((device_t));
66static int brgphy_attach __P((device_t));
67static int brgphy_detach __P((device_t));
65static int brgphy_probe (device_t);
66static int brgphy_attach (device_t);
67static int brgphy_detach (device_t);
68
69static device_method_t brgphy_methods[] = {
70 /* device interface */
71 DEVMETHOD(device_probe, brgphy_probe),
72 DEVMETHOD(device_attach, brgphy_attach),
73 DEVMETHOD(device_detach, brgphy_detach),
74 DEVMETHOD(device_shutdown, bus_generic_shutdown),
75 { 0, 0 }

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

82 brgphy_methods,
83 sizeof(struct mii_softc)
84};
85
86DRIVER_MODULE(brgphy, miibus, brgphy_driver, brgphy_devclass, 0, 0);
87
88static int brgphy_service(struct mii_softc *, struct mii_data *, int);
89static void brgphy_status(struct mii_softc *);
68
69static device_method_t brgphy_methods[] = {
70 /* device interface */
71 DEVMETHOD(device_probe, brgphy_probe),
72 DEVMETHOD(device_attach, brgphy_attach),
73 DEVMETHOD(device_detach, brgphy_detach),
74 DEVMETHOD(device_shutdown, bus_generic_shutdown),
75 { 0, 0 }

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

82 brgphy_methods,
83 sizeof(struct mii_softc)
84};
85
86DRIVER_MODULE(brgphy, miibus, brgphy_driver, brgphy_devclass, 0, 0);
87
88static int brgphy_service(struct mii_softc *, struct mii_data *, int);
89static void brgphy_status(struct mii_softc *);
90static int brgphy_mii_phy_auto __P((struct mii_softc *, int));
91extern void mii_phy_auto_timeout __P((void *));
90static int brgphy_mii_phy_auto(struct mii_softc *, int);
91extern void mii_phy_auto_timeout(void *);
92
93static int brgphy_probe(dev)
94 device_t dev;
95{
96 struct mii_attach_args *ma;
97
98 ma = device_get_ivars(dev);
99

--- 363 unchanged lines hidden ---
92
93static int brgphy_probe(dev)
94 device_t dev;
95{
96 struct mii_attach_args *ma;
97
98 ma = device_get_ivars(dev);
99

--- 363 unchanged lines hidden ---