Deleted Added
full compact
if_smsc.c (243421) if_smsc.c (246128)
1/*-
2 * Copyright (c) 2012
3 * Ben Gray <bgray@freebsd.org>.
4 * 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:

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

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2012
3 * Ben Gray <bgray@freebsd.org>.
4 * 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:

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

20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/usb/net/if_smsc.c 243421 2012-11-23 03:34:12Z gonzo $");
28__FBSDID("$FreeBSD: head/sys/dev/usb/net/if_smsc.c 246128 2013-01-30 18:01:20Z sbz $");
29
30/*
31 * SMSC LAN9xxx devices (http://www.smsc.com/)
32 *
33 * The LAN9500 & LAN9500A devices are stand-alone USB to Ethernet chips that
34 * support USB 2.0 and 10/100 Mbps Ethernet.
35 *
36 * The LAN951x devices are an integrated USB hub and USB to Ethernet adapter.

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

1805 DEVMETHOD(bus_print_child, bus_generic_print_child),
1806 DEVMETHOD(bus_driver_added, bus_generic_driver_added),
1807
1808 /* MII interface */
1809 DEVMETHOD(miibus_readreg, smsc_miibus_readreg),
1810 DEVMETHOD(miibus_writereg, smsc_miibus_writereg),
1811 DEVMETHOD(miibus_statchg, smsc_miibus_statchg),
1812
29
30/*
31 * SMSC LAN9xxx devices (http://www.smsc.com/)
32 *
33 * The LAN9500 & LAN9500A devices are stand-alone USB to Ethernet chips that
34 * support USB 2.0 and 10/100 Mbps Ethernet.
35 *
36 * The LAN951x devices are an integrated USB hub and USB to Ethernet adapter.

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

1805 DEVMETHOD(bus_print_child, bus_generic_print_child),
1806 DEVMETHOD(bus_driver_added, bus_generic_driver_added),
1807
1808 /* MII interface */
1809 DEVMETHOD(miibus_readreg, smsc_miibus_readreg),
1810 DEVMETHOD(miibus_writereg, smsc_miibus_writereg),
1811 DEVMETHOD(miibus_statchg, smsc_miibus_statchg),
1812
1813 {0, 0}
1813 DEVMETHOD_END
1814};
1815
1816static driver_t smsc_driver = {
1817 .name = "smsc",
1818 .methods = smsc_methods,
1819 .size = sizeof(struct smsc_softc),
1820};
1821
1822static devclass_t smsc_devclass;
1823
1824DRIVER_MODULE(smsc, uhub, smsc_driver, smsc_devclass, NULL, 0);
1825DRIVER_MODULE(miibus, smsc, miibus_driver, miibus_devclass, 0, 0);
1826MODULE_DEPEND(smsc, uether, 1, 1, 1);
1827MODULE_DEPEND(smsc, usb, 1, 1, 1);
1828MODULE_DEPEND(smsc, ether, 1, 1, 1);
1829MODULE_DEPEND(smsc, miibus, 1, 1, 1);
1830MODULE_VERSION(smsc, 1);
1814};
1815
1816static driver_t smsc_driver = {
1817 .name = "smsc",
1818 .methods = smsc_methods,
1819 .size = sizeof(struct smsc_softc),
1820};
1821
1822static devclass_t smsc_devclass;
1823
1824DRIVER_MODULE(smsc, uhub, smsc_driver, smsc_devclass, NULL, 0);
1825DRIVER_MODULE(miibus, smsc, miibus_driver, miibus_devclass, 0, 0);
1826MODULE_DEPEND(smsc, uether, 1, 1, 1);
1827MODULE_DEPEND(smsc, usb, 1, 1, 1);
1828MODULE_DEPEND(smsc, ether, 1, 1, 1);
1829MODULE_DEPEND(smsc, miibus, 1, 1, 1);
1830MODULE_VERSION(smsc, 1);