if_ep.c (60536) | if_ep.c (63090) |
---|---|
1/* 2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca> 3 * 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 --- 24 unchanged lines hidden (view full) --- 33/* 34 * Modified from the FreeBSD 1.1.5.1 version by: 35 * Andres Vega Garcia 36 * INRIA - Sophia Antipolis, France 37 * avega@sophia.inria.fr 38 */ 39 40/* | 1/* 2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca> 3 * 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 --- 24 unchanged lines hidden (view full) --- 33/* 34 * Modified from the FreeBSD 1.1.5.1 version by: 35 * Andres Vega Garcia 36 * INRIA - Sophia Antipolis, France 37 * avega@sophia.inria.fr 38 */ 39 40/* |
41 * $FreeBSD: head/sys/dev/ep/if_ep.c 60536 2000-05-14 02:18:43Z archie $ | 41 * $FreeBSD: head/sys/dev/ep/if_ep.c 63090 2000-07-13 22:54:34Z archie $ |
42 * 43 * Promiscuous mode added and interrupt logic slightly changed 44 * to reduce the number of adapter failures. Transceiver select 45 * logic changed to use value from EEPROM. Autoconfiguration 46 * features added. 47 * Done by: 48 * Serge Babkin 49 * Chelindbank (Chelyabinsk, Russia) --- 261 unchanged lines hidden (view full) --- 311 312 ifmedia_set(&sc->ifmedia, IFM_ETHER|ep_media2if_media[sc->ep_connector]); 313 314 ifm = &sc->ifmedia; 315 ifm->ifm_media = ifm->ifm_cur->ifm_media; 316 ep_ifmedia_upd(ifp); 317 } 318 | 42 * 43 * Promiscuous mode added and interrupt logic slightly changed 44 * to reduce the number of adapter failures. Transceiver select 45 * logic changed to use value from EEPROM. Autoconfiguration 46 * features added. 47 * Done by: 48 * Serge Babkin 49 * Chelindbank (Chelyabinsk, Russia) --- 261 unchanged lines hidden (view full) --- 311 312 ifmedia_set(&sc->ifmedia, IFM_ETHER|ep_media2if_media[sc->ep_connector]); 313 314 ifm = &sc->ifmedia; 315 ifm->ifm_media = ifm->ifm_cur->ifm_media; 316 ep_ifmedia_upd(ifp); 317 } 318 |
319 if (!attached) { 320 if_attach(ifp); 321 ether_ifattach(ifp); 322 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); 323 } | 319 if (!attached) 320 ether_ifattach(ifp, ETHER_BPF_SUPPORTED); |
324 325#ifdef EP_LOCAL_STATS 326 sc->rx_no_first = sc->rx_no_mbuf = sc->rx_bpf_disc = 327 sc->rx_overrunf = sc->rx_overrunl = sc->tx_underrun = 0; 328#endif 329 EP_FSET(sc, F_RX_FIRST); 330 sc->top = sc->mcur = 0; 331 --- 633 unchanged lines hidden --- | 321 322#ifdef EP_LOCAL_STATS 323 sc->rx_no_first = sc->rx_no_mbuf = sc->rx_bpf_disc = 324 sc->rx_overrunf = sc->rx_overrunl = sc->tx_underrun = 0; 325#endif 326 EP_FSET(sc, F_RX_FIRST); 327 sc->top = sc->mcur = 0; 328 --- 633 unchanged lines hidden --- |