Deleted Added
full compact
ruephy.c (227908) ruephy.c (233774)
1/*-
2 * Copyright (c) 2001-2003, Shunsuke Akiyama <akiyama@FreeBSD.org>.
3 * 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

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

21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2001-2003, Shunsuke Akiyama <akiyama@FreeBSD.org>.
3 * 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

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

21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/dev/usb/net/ruephy.c 227908 2011-11-23 20:27:26Z marius $");
29__FBSDID("$FreeBSD: head/sys/dev/usb/net/ruephy.c 233774 2012-04-02 10:50:42Z hselasky $");
30
31/*
32 * driver for RealTek RTL8150 internal PHY
33 */
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/kernel.h>

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

62 DEVMETHOD(device_detach, mii_phy_detach),
63 DEVMETHOD(device_shutdown, bus_generic_shutdown),
64 DEVMETHOD_END
65};
66
67static devclass_t ruephy_devclass;
68
69static driver_t ruephy_driver = {
30
31/*
32 * driver for RealTek RTL8150 internal PHY
33 */
34
35#include <sys/param.h>
36#include <sys/systm.h>
37#include <sys/kernel.h>

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

62 DEVMETHOD(device_detach, mii_phy_detach),
63 DEVMETHOD(device_shutdown, bus_generic_shutdown),
64 DEVMETHOD_END
65};
66
67static devclass_t ruephy_devclass;
68
69static driver_t ruephy_driver = {
70 "ruephy",
71 ruephy_methods,
72 sizeof(struct mii_softc)
70 .name = "ruephy",
71 .methods = ruephy_methods,
72 .size = sizeof(struct mii_softc)
73};
74
75DRIVER_MODULE(ruephy, miibus, ruephy_driver, ruephy_devclass, 0, 0);
76
77static int ruephy_service(struct mii_softc *, struct mii_data *, int);
78static void ruephy_reset(struct mii_softc *);
79static void ruephy_status(struct mii_softc *);
80

--- 152 unchanged lines hidden ---
73};
74
75DRIVER_MODULE(ruephy, miibus, ruephy_driver, ruephy_devclass, 0, 0);
76
77static int ruephy_service(struct mii_softc *, struct mii_data *, int);
78static void ruephy_reset(struct mii_softc *);
79static void ruephy_status(struct mii_softc *);
80

--- 152 unchanged lines hidden ---