Deleted Added
full compact
if_tl.c (41656) if_tl.c (41771)
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 * $Id: if_tl.c,v 1.21 1998/12/07 21:58:46 archie Exp $
32 * $Id: if_tl.c,v 1.22 1998/12/10 19:02:07 wpaul Exp $
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 *

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

213#define TL_USEIOSPACE
214
215/* #define TL_BACKGROUND_AUTONEG */
216
217#include <pci/if_tlreg.h>
218
219#if !defined(lint)
220static 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 *

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

213#define TL_USEIOSPACE
214
215/* #define TL_BACKGROUND_AUTONEG */
216
217#include <pci/if_tlreg.h>
218
219#if !defined(lint)
220static const char rcsid[] =
221 "$Id: if_tl.c,v 1.21 1998/12/07 21:58:46 archie Exp $";
221 "$Id: if_tl.c,v 1.22 1998/12/10 19:02:07 wpaul Exp $";
222#endif
223
224#ifdef TL_DEBUG
225#define EV_TXEOC 2
226#define EV_TXEOF 3
227#define EV_RXEOC 4
228#define EV_RXEOF 5
229#define EV_START_TX 6

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

311 { LEVEL1_PHY_VENDORID, LEVEL1_PHY_LXT970, "<Level 1 LXT970>" },
312 { INTEL_PHY_VENDORID, INTEL_PHY_82555, "<Intel 82555>" },
313 { SEEQ_PHY_VENDORID, SEEQ_PHY_80220, "<SEEQ 80220>" },
314 { 0, 0, "<MII-compliant physical interface>" }
315};
316
317static unsigned long tl_count;
318
222#endif
223
224#ifdef TL_DEBUG
225#define EV_TXEOC 2
226#define EV_TXEOF 3
227#define EV_RXEOC 4
228#define EV_RXEOF 5
229#define EV_START_TX 6

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

311 { LEVEL1_PHY_VENDORID, LEVEL1_PHY_LXT970, "<Level 1 LXT970>" },
312 { INTEL_PHY_VENDORID, INTEL_PHY_82555, "<Intel 82555>" },
313 { SEEQ_PHY_VENDORID, SEEQ_PHY_80220, "<SEEQ 80220>" },
314 { 0, 0, "<MII-compliant physical interface>" }
315};
316
317static unsigned long tl_count;
318
319static char *tl_probe __P((pcici_t, pcidi_t));
319static const char *tl_probe __P((pcici_t, pcidi_t));
320static void tl_attach __P((pcici_t, int));
321static int tl_attach_phy __P((struct tl_softc *));
322static int tl_intvec_rxeoc __P((void *, u_int32_t));
323static int tl_intvec_txeoc __P((void *, u_int32_t));
324static int tl_intvec_txeof __P((void *, u_int32_t));
325static int tl_intvec_rxeof __P((void *, u_int32_t));
326static int tl_intvec_adchk __P((void *, u_int32_t));
327static int tl_intvec_netsts __P((void *, u_int32_t));

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

1360
1361 return;
1362}
1363
1364/*
1365 * Probe for a ThunderLAN chip. Check the PCI vendor and device IDs
1366 * against our list and return its name if we find a match.
1367 */
320static void tl_attach __P((pcici_t, int));
321static int tl_attach_phy __P((struct tl_softc *));
322static int tl_intvec_rxeoc __P((void *, u_int32_t));
323static int tl_intvec_txeoc __P((void *, u_int32_t));
324static int tl_intvec_txeof __P((void *, u_int32_t));
325static int tl_intvec_rxeof __P((void *, u_int32_t));
326static int tl_intvec_adchk __P((void *, u_int32_t));
327static int tl_intvec_netsts __P((void *, u_int32_t));

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

1360
1361 return;
1362}
1363
1364/*
1365 * Probe for a ThunderLAN chip. Check the PCI vendor and device IDs
1366 * against our list and return its name if we find a match.
1367 */
1368static char *
1368static const char *
1369tl_probe(config_id, device_id)
1370 pcici_t config_id;
1371 pcidi_t device_id;
1372{
1373 struct tl_type *t;
1374
1375 t = tl_devs;
1376

--- 1461 unchanged lines hidden ---
1369tl_probe(config_id, device_id)
1370 pcici_t config_id;
1371 pcidi_t device_id;
1372{
1373 struct tl_type *t;
1374
1375 t = tl_devs;
1376

--- 1461 unchanged lines hidden ---