if_tl.c (37094) | if_tl.c (37618) |
---|---|
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.9 1998/06/07 17:12:38 dfr Exp $ | 32 * $Id: if_tl.c,v 1.10 1998/06/21 14:53:34 bde 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 * --- 171 unchanged lines hidden (view full) --- 212 213#include <pci/pcireg.h> 214#include <pci/pcivar.h> 215 216#include <pci/if_tlreg.h> 217 218#ifndef lint 219static 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 * --- 171 unchanged lines hidden (view full) --- 212 213#include <pci/pcireg.h> 214#include <pci/pcivar.h> 215 216#include <pci/if_tlreg.h> 217 218#ifndef lint 219static char rcsid[] = |
220 "$Id: if_tl.c,v 1.9 1998/06/07 17:12:38 dfr Exp $"; | 220 "$Id: if_tl.c,v 1.10 1998/06/21 14:53:34 bde Exp $"; |
221#endif 222 223/* 224 * Various supported device vendors/types and their names. 225 */ 226 227static struct tl_type tl_devs[] = { 228 { TI_VENDORID, TI_DEVICEID_THUNDERLAN, --- 1191 unchanged lines hidden (view full) --- 1420static void 1421tl_attach_ctlr(config_id, unit) 1422 pcici_t config_id; 1423 int unit; 1424{ 1425 int s, i, phys = 0; 1426 vm_offset_t pbase, vbase; 1427 struct tl_csr *csr; | 221#endif 222 223/* 224 * Various supported device vendors/types and their names. 225 */ 226 227static struct tl_type tl_devs[] = { 228 { TI_VENDORID, TI_DEVICEID_THUNDERLAN, --- 1191 unchanged lines hidden (view full) --- 1420static void 1421tl_attach_ctlr(config_id, unit) 1422 pcici_t config_id; 1423 int unit; 1424{ 1425 int s, i, phys = 0; 1426 vm_offset_t pbase, vbase; 1427 struct tl_csr *csr; |
1428 char eaddr[ETHER_ADDR_LEN]; | 1428 u_char eaddr[ETHER_ADDR_LEN]; |
1429 struct tl_mii_frame frame; 1430 u_int32_t command; 1431 struct tl_iflist *ilist; 1432 1433 s = splimp(); 1434 1435 for (ilist = tl_iflist; ilist != NULL; ilist = ilist->tl_next) 1436 if (ilist->tl_config_id == config_id) --- 1179 unchanged lines hidden --- | 1429 struct tl_mii_frame frame; 1430 u_int32_t command; 1431 struct tl_iflist *ilist; 1432 1433 s = splimp(); 1434 1435 for (ilist = tl_iflist; ilist != NULL; ilist = ilist->tl_next) 1436 if (ilist->tl_config_id == config_id) --- 1179 unchanged lines hidden --- |