Deleted Added
full compact
if_tl.c (51455) if_tl.c (51473)
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 51455 1999-09-20 08:47:11Z wpaul $
32 * $FreeBSD: head/sys/pci/if_tl.c 51473 1999-09-20 19:06:45Z 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 51455 1999-09-20 08:47:11Z wpaul $";
231 "$FreeBSD: head/sys/pci/if_tl.c 51473 1999-09-20 19:06:45Z 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,

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

356static driver_t tl_driver = {
357 "tl",
358 tl_methods,
359 sizeof(struct tl_softc)
360};
361
362static devclass_t tl_devclass;
363
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,

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

356static driver_t tl_driver = {
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);
364DRIVER_MODULE(tl, pci, tl_driver, tl_devclass, 0, 0);
365DRIVER_MODULE(miibus, tl, miibus_driver, miibus_devclass, 0, 0);
366
367static u_int8_t tl_dio_read8(sc, reg)
368 struct tl_softc *sc;
369 int reg;
370{
371 CSR_WRITE_2(sc, TL_DIO_ADDR, reg);
372 return(CSR_READ_1(sc, TL_DIO_DATA + (reg & 3)));
373}

--- 1987 unchanged lines hidden ---
366
367static u_int8_t tl_dio_read8(sc, reg)
368 struct tl_softc *sc;
369 int reg;
370{
371 CSR_WRITE_2(sc, TL_DIO_ADDR, reg);
372 return(CSR_READ_1(sc, TL_DIO_DATA + (reg & 3)));
373}

--- 1987 unchanged lines hidden ---