Deleted Added
full compact
if_fe.c (61011) if_fe.c (63090)
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 61011 2000-05-28 13:40:48Z peter $
24 * $FreeBSD: head/sys/dev/fe/if_fe.c 63090 2000-07-13 22:54:34Z archie $
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

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

2844 }
2845#if 0 /* Turned off; this is called later, when the interface UPs. */
2846 fe_medchange(sc);
2847#endif
2848
2849 /* Attach and stop the interface. */
2850#if NCARD > 0
2851 if (already_ifattach[dev->id_unit] != 1) {
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

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

2844 }
2845#if 0 /* Turned off; this is called later, when the interface UPs. */
2846 fe_medchange(sc);
2847#endif
2848
2849 /* Attach and stop the interface. */
2850#if NCARD > 0
2851 if (already_ifattach[dev->id_unit] != 1) {
2852 if_attach(&sc->sc_if);
2852 ether_ifattach(&sc->sc_if, ETHER_BPF_SUPPORTED);
2853 already_ifattach[dev->id_unit] = 1;
2854 }
2855#else
2853 already_ifattach[dev->id_unit] = 1;
2854 }
2855#else
2856 if_attach(&sc->sc_if);
2856 ether_ifattach(&sc->sc_if, ETHER_BPF_SUPPORTED);
2857#endif
2858 fe_stop(sc);
2857#endif
2858 fe_stop(sc);
2859 ether_ifattach(&sc->sc_if);
2860
2861 /* Print additional info when attached. */
2862 printf("fe%d: address %6D, type %s%s\n", sc->sc_unit,
2863 sc->sc_enaddr, ":" , sc->typestr,
2864 (sc->proto_dlcr4 & FE_D4_DSC) ? ", full duplex" : "");
2865 if (bootverbose) {
2866 int buf, txb, bbw, sbw, ram;
2867

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

2900 printf("fe%d: warning: above MAC address may be incorrect\n",
2901 sc->sc_unit);
2902 }
2903 if (sc->stability & UNSTABLE_TYPE) {
2904 printf("fe%d: warning: hardware type was not validated\n",
2905 sc->sc_unit);
2906 }
2907
2859
2860 /* Print additional info when attached. */
2861 printf("fe%d: address %6D, type %s%s\n", sc->sc_unit,
2862 sc->sc_enaddr, ":" , sc->typestr,
2863 (sc->proto_dlcr4 & FE_D4_DSC) ? ", full duplex" : "");
2864 if (bootverbose) {
2865 int buf, txb, bbw, sbw, ram;
2866

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

2899 printf("fe%d: warning: above MAC address may be incorrect\n",
2900 sc->sc_unit);
2901 }
2902 if (sc->stability & UNSTABLE_TYPE) {
2903 printf("fe%d: warning: hardware type was not validated\n",
2904 sc->sc_unit);
2905 }
2906
2908 /* If BPF is in the kernel, call the attach for it. */
2909 bpfattach(&sc->sc_if, DLT_EN10MB, sizeof(struct ether_header));
2910 return 1;
2911}
2912
2913/*
2914 * Reset interface, after some (hardware) trouble is deteced.
2915 */
2916static void
2917fe_reset (struct fe_softc *sc)

--- 1366 unchanged lines hidden ---
2907 return 1;
2908}
2909
2910/*
2911 * Reset interface, after some (hardware) trouble is deteced.
2912 */
2913static void
2914fe_reset (struct fe_softc *sc)

--- 1366 unchanged lines hidden ---