Deleted Added
full compact
pnaphy.c (67164) pnaphy.c (69925)
1/*
2 * Copyright (c) 2000 Berkeley Software Design, Inc.
3 * Copyright (c) 1997, 1998, 1999, 2000
4 * Bill Paul <wpaul@osd.bsdi.com>. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 *
1/*
2 * Copyright (c) 2000 Berkeley Software Design, Inc.
3 * Copyright (c) 1997, 1998, 1999, 2000
4 * Bill Paul <wpaul@osd.bsdi.com>. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 *
33 * $FreeBSD: head/sys/dev/mii/pnaphy.c 67164 2000-10-15 14:19:01Z phk $
33 * $FreeBSD: head/sys/dev/mii/pnaphy.c 69925 2000-12-12 19:31:14Z wpaul $
34 */
35
36/*
37 * driver for homePNA PHYs
38 * This is really just a stub that allows us to identify homePNA-based
39 * transceicers and display the link status. MII-based homePNA PHYs
40 * only support one media type and no autonegotiation. If we were
41 * really clever, we could tweak some of the vendor-specific registers

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

58#include <dev/mii/mii.h>
59#include <dev/mii/miivar.h>
60#include <dev/mii/miidevs.h>
61
62#include "miibus_if.h"
63
64#if !defined(lint)
65static const char rcsid[] =
34 */
35
36/*
37 * driver for homePNA PHYs
38 * This is really just a stub that allows us to identify homePNA-based
39 * transceicers and display the link status. MII-based homePNA PHYs
40 * only support one media type and no autonegotiation. If we were
41 * really clever, we could tweak some of the vendor-specific registers

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

58#include <dev/mii/mii.h>
59#include <dev/mii/miivar.h>
60#include <dev/mii/miidevs.h>
61
62#include "miibus_if.h"
63
64#if !defined(lint)
65static const char rcsid[] =
66 "$FreeBSD: head/sys/dev/mii/pnaphy.c 67164 2000-10-15 14:19:01Z phk $";
66 "$FreeBSD: head/sys/dev/mii/pnaphy.c 69925 2000-12-12 19:31:14Z wpaul $";
67#endif
68
69static int pnaphy_probe __P((device_t));
70static int pnaphy_attach __P((device_t));
71static int pnaphy_detach __P((device_t));
72
73static device_method_t pnaphy_methods[] = {
74 /* device interface */

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

163static int pnaphy_detach(dev)
164 device_t dev;
165{
166 struct mii_softc *sc;
167 struct mii_data *mii;
168
169 sc = device_get_softc(dev);
170 mii = device_get_softc(device_get_parent(dev));
67#endif
68
69static int pnaphy_probe __P((device_t));
70static int pnaphy_attach __P((device_t));
71static int pnaphy_detach __P((device_t));
72
73static device_method_t pnaphy_methods[] = {
74 /* device interface */

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

163static int pnaphy_detach(dev)
164 device_t dev;
165{
166 struct mii_softc *sc;
167 struct mii_data *mii;
168
169 sc = device_get_softc(dev);
170 mii = device_get_softc(device_get_parent(dev));
171 mii_phy_auto_stop(sc);
171 sc->mii_dev = NULL;
172 LIST_REMOVE(sc, mii_list);
173
174 return(0);
175}
176
177int
178pnaphy_service(sc, mii, cmd)

--- 103 unchanged lines hidden ---
172 sc->mii_dev = NULL;
173 LIST_REMOVE(sc, mii_list);
174
175 return(0);
176}
177
178int
179pnaphy_service(sc, mii, cmd)

--- 103 unchanged lines hidden ---