Deleted Added
full compact
if_tl.c (113609) if_tl.c (113812)
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

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

172 * Using these techniques, this driver achieves very high performance
173 * by minimizing the amount of interrupts generated during large
174 * transfers and by completely avoiding buffer copies. Frame transfer
175 * to and from the ThunderLAN chip is performed entirely by the chip
176 * itself thereby reducing the load on the host CPU.
177 */
178
179#include <sys/cdefs.h>
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

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

172 * Using these techniques, this driver achieves very high performance
173 * by minimizing the amount of interrupts generated during large
174 * transfers and by completely avoiding buffer copies. Frame transfer
175 * to and from the ThunderLAN chip is performed entirely by the chip
176 * itself thereby reducing the load on the host CPU.
177 */
178
179#include <sys/cdefs.h>
180__FBSDID("$FreeBSD: head/sys/pci/if_tl.c 113609 2003-04-17 20:32:06Z njl $");
180__FBSDID("$FreeBSD: head/sys/pci/if_tl.c 113812 2003-04-21 18:34:04Z imp $");
181
182#include <sys/param.h>
183#include <sys/systm.h>
184#include <sys/sockio.h>
185#include <sys/mbuf.h>
186#include <sys/malloc.h>
187#include <sys/kernel.h>
188#include <sys/socket.h>

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

1344 struct ifnet *ifp;
1345
1346 sc = device_get_softc(dev);
1347 KASSERT(mtx_initialized(&sc->tl_mtx), ("tl mutex not initialized"));
1348 TL_LOCK(sc);
1349 ifp = &sc->arpcom.ac_if;
1350
1351 /* These should only be active if attach succeeded */
181
182#include <sys/param.h>
183#include <sys/systm.h>
184#include <sys/sockio.h>
185#include <sys/mbuf.h>
186#include <sys/malloc.h>
187#include <sys/kernel.h>
188#include <sys/socket.h>

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

1344 struct ifnet *ifp;
1345
1346 sc = device_get_softc(dev);
1347 KASSERT(mtx_initialized(&sc->tl_mtx), ("tl mutex not initialized"));
1348 TL_LOCK(sc);
1349 ifp = &sc->arpcom.ac_if;
1350
1351 /* These should only be active if attach succeeded */
1352 if (device_is_alive(dev)) {
1352 if (device_is_attached(dev)) {
1353 tl_stop(sc);
1354 ether_ifdetach(ifp);
1355 }
1356 if (sc->tl_miibus)
1357 device_delete_child(dev, sc->tl_miibus);
1358 bus_generic_detach(dev);
1359
1360 if (sc->tl_ldata)

--- 993 unchanged lines hidden ---
1353 tl_stop(sc);
1354 ether_ifdetach(ifp);
1355 }
1356 if (sc->tl_miibus)
1357 device_delete_child(dev, sc->tl_miibus);
1358 bus_generic_detach(dev);
1359
1360 if (sc->tl_ldata)

--- 993 unchanged lines hidden ---