Deleted Added
full compact
if_tl.c (51453) if_tl.c (51455)
1/*
2 * Copyright (c) 1997, 1998
3 * Bill Paul <wpaul@ctr.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) 1997, 1998
3 * Bill Paul <wpaul@ctr.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/pci/if_tl.c 51453 1999-09-20 08:14:39Z wpaul $
32 * $FreeBSD: head/sys/pci/if_tl.c 51455 1999-09-20 08:47:11Z wpaul $
33 */
34
35/*
36 * Texas Instruments ThunderLAN driver for FreeBSD 2.2.6 and 3.x.
37 * Supports many Compaq PCI NICs based on the ThunderLAN ethernet controller,
38 * the National Semiconductor DP83840A physical interface and the
39 * Microchip Technology 24Cxx series serial EEPROM.
40 *

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

223
224#include <pci/if_tlreg.h>
225
226/* "controller miibus0" required. See GENERIC if you get errors here. */
227#include "miibus_if.h"
228
229#if !defined(lint)
230static const char rcsid[] =
33 */
34
35/*
36 * Texas Instruments ThunderLAN driver for FreeBSD 2.2.6 and 3.x.
37 * Supports many Compaq PCI NICs based on the ThunderLAN ethernet controller,
38 * the National Semiconductor DP83840A physical interface and the
39 * Microchip Technology 24Cxx series serial EEPROM.
40 *

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

223
224#include <pci/if_tlreg.h>
225
226/* "controller miibus0" required. See GENERIC if you get errors here. */
227#include "miibus_if.h"
228
229#if !defined(lint)
230static const char rcsid[] =
231 "$FreeBSD: head/sys/pci/if_tl.c 51453 1999-09-20 08:14:39Z wpaul $";
231 "$FreeBSD: head/sys/pci/if_tl.c 51455 1999-09-20 08:47:11Z wpaul $";
232#endif
233
234/*
235 * Various supported device vendors/types and their names.
236 */
237
238static struct tl_type tl_devs[] = {
239 { TI_VENDORID, TI_DEVICEID_THUNDERLAN,

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

349 DEVMETHOD(miibus_readreg, tl_miibus_readreg),
350 DEVMETHOD(miibus_writereg, tl_miibus_writereg),
351 DEVMETHOD(miibus_statchg, tl_miibus_statchg),
352
353 { 0, 0 }
354};
355
356static driver_t tl_driver = {
232#endif
233
234/*
235 * Various supported device vendors/types and their names.
236 */
237
238static struct tl_type tl_devs[] = {
239 { TI_VENDORID, TI_DEVICEID_THUNDERLAN,

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

349 DEVMETHOD(miibus_readreg, tl_miibus_readreg),
350 DEVMETHOD(miibus_writereg, tl_miibus_writereg),
351 DEVMETHOD(miibus_statchg, tl_miibus_statchg),
352
353 { 0, 0 }
354};
355
356static driver_t tl_driver = {
357 "if_tl",
357 "tl",
358 tl_methods,
359 sizeof(struct tl_softc)
360};
361
362static devclass_t tl_devclass;
363
364DRIVER_MODULE(if_tl, pci, tl_driver, tl_devclass, 0, 0);
365DRIVER_MODULE(miibus, if_tl, miibus_driver, miibus_devclass, 0, 0);

--- 1995 unchanged lines hidden ---
358 tl_methods,
359 sizeof(struct tl_softc)
360};
361
362static devclass_t tl_devclass;
363
364DRIVER_MODULE(if_tl, pci, tl_driver, tl_devclass, 0, 0);
365DRIVER_MODULE(miibus, if_tl, miibus_driver, miibus_devclass, 0, 0);

--- 1995 unchanged lines hidden ---