if_dc.c (114399) | if_dc.c (114957) |
---|---|
1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ee.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 --- 32 unchanged lines hidden (view full) --- 41 * ASIX Electronics AX88141 (www.asix.com.tw) 42 * ADMtek AL981 (www.admtek.com.tw) 43 * ADMtek AN985 (www.admtek.com.tw) 44 * Davicom DM9100, DM9102, DM9102A (www.davicom8.com) 45 * Accton EN1217 (www.accton.com) 46 * Xircom X3201 (www.xircom.com) 47 * Abocom FE2500 48 * Conexant LANfinity (www.conexant.com) | 1/* 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ee.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 --- 32 unchanged lines hidden (view full) --- 41 * ASIX Electronics AX88141 (www.asix.com.tw) 42 * ADMtek AL981 (www.admtek.com.tw) 43 * ADMtek AN985 (www.admtek.com.tw) 44 * Davicom DM9100, DM9102, DM9102A (www.davicom8.com) 45 * Accton EN1217 (www.accton.com) 46 * Xircom X3201 (www.xircom.com) 47 * Abocom FE2500 48 * Conexant LANfinity (www.conexant.com) |
49 * 3Com OfficeConnect 10/100B 3CSOHO100B (www.3com.com) |
|
49 * 50 * Datasheets for the 21143 are available at developer.intel.com. 51 * Datasheets for the clone parts can be found at their respective sites. 52 * (Except for the PNIC; see www.freebsd.org/~wpaul/PNIC/pnic.ps.gz.) 53 * The PNIC II is essentially a Macronix 98715A chip; the only difference 54 * worth noting is that its multicast hash table is only 128 bits wide 55 * instead of 512. 56 * --- 26 unchanged lines hidden (view full) --- 83 * All of the workalike chips use some form of MII transceiver support 84 * with the exception of the Macronix chips, which also have a SYM port. 85 * The ASIX AX88140A is also documented to have a SYM port, but all 86 * the cards I've seen use an MII transceiver, probably because the 87 * AX88140A doesn't support internal NWAY. 88 */ 89 90#include <sys/cdefs.h> | 50 * 51 * Datasheets for the 21143 are available at developer.intel.com. 52 * Datasheets for the clone parts can be found at their respective sites. 53 * (Except for the PNIC; see www.freebsd.org/~wpaul/PNIC/pnic.ps.gz.) 54 * The PNIC II is essentially a Macronix 98715A chip; the only difference 55 * worth noting is that its multicast hash table is only 128 bits wide 56 * instead of 512. 57 * --- 26 unchanged lines hidden (view full) --- 84 * All of the workalike chips use some form of MII transceiver support 85 * with the exception of the Macronix chips, which also have a SYM port. 86 * The ASIX AX88140A is also documented to have a SYM port, but all 87 * the cards I've seen use an MII transceiver, probably because the 88 * AX88140A doesn't support internal NWAY. 89 */ 90 91#include <sys/cdefs.h> |
91__FBSDID("$FreeBSD: head/sys/dev/dc/if_dc.c 114399 2003-05-01 09:31:01Z mbr $"); | 92__FBSDID("$FreeBSD: head/sys/dev/dc/if_dc.c 114957 2003-05-12 19:50:21Z mbr $"); |
92 93#include <sys/param.h> 94#include <sys/systm.h> 95#include <sys/sockio.h> 96#include <sys/mbuf.h> 97#include <sys/malloc.h> 98#include <sys/kernel.h> 99#include <sys/socket.h> --- 91 unchanged lines hidden (view full) --- 191 { DC_VENDORID_ABOCOM, DC_DEVICEID_FE2500, 192 "Abocom FE2500 10/100BaseTX" }, 193 { DC_VENDORID_CONEXANT, DC_DEVICEID_RS7112, 194 "Conexant LANfinity MiniPCI 10/100BaseTX" }, 195 { DC_VENDORID_HAWKING, DC_DEVICEID_HAWKING_PN672TX, 196 "Hawking CB102 CardBus 10/100" }, 197 { DC_VENDORID_PLANEX, DC_DEVICEID_FNW3602T, 198 "PlaneX FNW-3602-T CardBus 10/100" }, | 93 94#include <sys/param.h> 95#include <sys/systm.h> 96#include <sys/sockio.h> 97#include <sys/mbuf.h> 98#include <sys/malloc.h> 99#include <sys/kernel.h> 100#include <sys/socket.h> --- 91 unchanged lines hidden (view full) --- 192 { DC_VENDORID_ABOCOM, DC_DEVICEID_FE2500, 193 "Abocom FE2500 10/100BaseTX" }, 194 { DC_VENDORID_CONEXANT, DC_DEVICEID_RS7112, 195 "Conexant LANfinity MiniPCI 10/100BaseTX" }, 196 { DC_VENDORID_HAWKING, DC_DEVICEID_HAWKING_PN672TX, 197 "Hawking CB102 CardBus 10/100" }, 198 { DC_VENDORID_PLANEX, DC_DEVICEID_FNW3602T, 199 "PlaneX FNW-3602-T CardBus 10/100" }, |
200 { DC_VENDORID_3COM, DC_DEVICEID_3CSOHOB, 201 "3Com OfficeConnect 10/100B" }, |
|
199 { 0, 0, NULL } 200}; 201 202static int dc_probe (device_t); 203static int dc_attach (device_t); 204static int dc_detach (device_t); 205static int dc_suspend (device_t); 206static int dc_resume (device_t); --- 1775 unchanged lines hidden (view full) --- 1982 sc->dc_flags |= DC_TX_ADMTEK_WAR; 1983 sc->dc_pmode = DC_PMODE_MII; 1984 dc_read_srom(sc, sc->dc_romwidth); 1985 break; 1986 case DC_DEVICEID_AN985: 1987 case DC_DEVICEID_FE2500: 1988 case DC_DEVICEID_EN2242: 1989 case DC_DEVICEID_HAWKING_PN672TX: | 202 { 0, 0, NULL } 203}; 204 205static int dc_probe (device_t); 206static int dc_attach (device_t); 207static int dc_detach (device_t); 208static int dc_suspend (device_t); 209static int dc_resume (device_t); --- 1775 unchanged lines hidden (view full) --- 1985 sc->dc_flags |= DC_TX_ADMTEK_WAR; 1986 sc->dc_pmode = DC_PMODE_MII; 1987 dc_read_srom(sc, sc->dc_romwidth); 1988 break; 1989 case DC_DEVICEID_AN985: 1990 case DC_DEVICEID_FE2500: 1991 case DC_DEVICEID_EN2242: 1992 case DC_DEVICEID_HAWKING_PN672TX: |
1993 case DC_DEVICEID_3CSOHOB: |
|
1990 sc->dc_type = DC_TYPE_AN985; 1991 sc->dc_flags |= DC_64BIT_HASH; 1992 sc->dc_flags |= DC_TX_USE_TX_INTR; 1993 sc->dc_flags |= DC_TX_ADMTEK_WAR; 1994 sc->dc_pmode = DC_PMODE_MII; 1995 dc_read_srom(sc, sc->dc_romwidth); 1996 break; 1997 case DC_DEVICEID_98713: --- 1765 unchanged lines hidden --- | 1994 sc->dc_type = DC_TYPE_AN985; 1995 sc->dc_flags |= DC_64BIT_HASH; 1996 sc->dc_flags |= DC_TX_USE_TX_INTR; 1997 sc->dc_flags |= DC_TX_ADMTEK_WAR; 1998 sc->dc_pmode = DC_PMODE_MII; 1999 dc_read_srom(sc, sc->dc_romwidth); 2000 break; 2001 case DC_DEVICEID_98713: --- 1765 unchanged lines hidden --- |