if_fe.c (60536) | if_fe.c (61011) |
---|---|
1/* 2 * All Rights Reserved, Copyright (C) Fujitsu Limited 1995 3 * 4 * This software may be used, modified, copied, distributed, and sold, in 5 * both source and binary form provided that the above copyright, these 6 * terms and the following disclaimer are retained. The name of the author 7 * and/or the contributor may not be used to endorse or promote products 8 * derived from this software without specific prior written permission. --- 7 unchanged lines hidden (view full) --- 16 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION. 17 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 18 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 19 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 * SUCH DAMAGE. 21 */ 22 23/* | 1/* 2 * All Rights Reserved, Copyright (C) Fujitsu Limited 1995 3 * 4 * This software may be used, modified, copied, distributed, and sold, in 5 * both source and binary form provided that the above copyright, these 6 * terms and the following disclaimer are retained. The name of the author 7 * and/or the contributor may not be used to endorse or promote products 8 * derived from this software without specific prior written permission. --- 7 unchanged lines hidden (view full) --- 16 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION. 17 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 18 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 19 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 * SUCH DAMAGE. 21 */ 22 23/* |
24 * $FreeBSD: head/sys/dev/fe/if_fe.c 60536 2000-05-14 02:18:43Z archie $ | 24 * $FreeBSD: head/sys/dev/fe/if_fe.c 61011 2000-05-28 13:40:48Z peter $ |
25 * 26 * Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards. 27 * To be used with FreeBSD 3.x 28 * Contributed by M. Sekiguchi. <seki@sysrap.cs.fujitsu.co.jp> 29 * 30 * This version is intended to be a generic template for various 31 * MB86960A/MB86965A based Ethernet cards. It currently supports 32 * Fujitsu FMV-180 series for ISA and Allied-Telesis AT1700/RE2000 --- 37 unchanged lines hidden (view full) --- 70 71#include "fe.h" 72#include "opt_fe.h" 73#include "opt_inet.h" 74#include "opt_ipx.h" 75 76#include <sys/param.h> 77#include <sys/systm.h> | 25 * 26 * Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards. 27 * To be used with FreeBSD 3.x 28 * Contributed by M. Sekiguchi. <seki@sysrap.cs.fujitsu.co.jp> 29 * 30 * This version is intended to be a generic template for various 31 * MB86960A/MB86965A based Ethernet cards. It currently supports 32 * Fujitsu FMV-180 series for ISA and Allied-Telesis AT1700/RE2000 --- 37 unchanged lines hidden (view full) --- 70 71#include "fe.h" 72#include "opt_fe.h" 73#include "opt_inet.h" 74#include "opt_ipx.h" 75 76#include <sys/param.h> 77#include <sys/systm.h> |
78#include <sys/kernel.h> |
|
78#include <sys/sockio.h> 79#include <sys/mbuf.h> 80#include <sys/socket.h> | 79#include <sys/sockio.h> 80#include <sys/mbuf.h> 81#include <sys/socket.h> |
82#include <sys/bus.h> |
|
81 82#include <net/ethernet.h> 83#include <net/if.h> 84#include <net/if_dl.h> 85#include <net/if_mib.h> 86#include <net/if_media.h> 87#include <net/if_types.h> 88 89#include <netinet/in.h> 90#include <netinet/if_ether.h> 91 92#include <net/bpf.h> 93 94#include <machine/clock.h> 95 96#include <i386/isa/isa_device.h> 97#include <i386/isa/icu.h> 98 | 83 84#include <net/ethernet.h> 85#include <net/if.h> 86#include <net/if_dl.h> 87#include <net/if_mib.h> 88#include <net/if_media.h> 89#include <net/if_types.h> 90 91#include <netinet/in.h> 92#include <netinet/if_ether.h> 93 94#include <net/bpf.h> 95 96#include <machine/clock.h> 97 98#include <i386/isa/isa_device.h> 99#include <i386/isa/icu.h> 100 |
101#ifndef COMPAT_OLDISA 102#error "The fe device requires the old isa compatibility shims" 103#endif 104 |
|
99/* PCCARD suport */ 100/* XXX FIXME! doesn't work with new pccard code, must be converted! */ 101#ifdef notdef 102#include "card.h" 103#endif 104#if NCARD > 0 105#include <sys/kernel.h> 106#include <sys/select.h> --- 152 unchanged lines hidden (view full) --- 259 260#ifdef DIAGNOSTIC 261static void fe_emptybuffer ( struct fe_softc * ); 262#endif 263 264/* Driver struct used in the config code. This must be public (external.) */ 265struct isa_driver fedriver = 266{ | 105/* PCCARD suport */ 106/* XXX FIXME! doesn't work with new pccard code, must be converted! */ 107#ifdef notdef 108#include "card.h" 109#endif 110#if NCARD > 0 111#include <sys/kernel.h> 112#include <sys/select.h> --- 152 unchanged lines hidden (view full) --- 265 266#ifdef DIAGNOSTIC 267static void fe_emptybuffer ( struct fe_softc * ); 268#endif 269 270/* Driver struct used in the config code. This must be public (external.) */ 271struct isa_driver fedriver = 272{ |
273 INTR_TYPE_NET, |
|
267 fe_probe, 268 fe_attach, 269 "fe", 270 1 /* It's safe to mark as "sensitive" */ 271}; | 274 fe_probe, 275 fe_attach, 276 "fe", 277 1 /* It's safe to mark as "sensitive" */ 278}; |
279COMPAT_ISA_DRIVER(fe, fedriver); |
|
272 273/* 274 * Fe driver specific constants which relate to 86960/86965. 275 */ 276 277/* Interrupt masks */ 278#define FE_TMASK ( FE_D2_COLL16 | FE_D2_TXDONE ) 279#define FE_RMASK ( FE_D3_OVRFLO | FE_D3_CRCERR \ --- 3996 unchanged lines hidden --- | 280 281/* 282 * Fe driver specific constants which relate to 86960/86965. 283 */ 284 285/* Interrupt masks */ 286#define FE_TMASK ( FE_D2_COLL16 | FE_D2_TXDONE ) 287#define FE_RMASK ( FE_D3_OVRFLO | FE_D3_CRCERR \ --- 3996 unchanged lines hidden --- |