Deleted Added
full compact
if_tx.c (148887) if_tx.c (150306)
1/*-
2 * Copyright (c) 1997 Semen Ustimenko (semenu@FreeBSD.org)
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997 Semen Ustimenko (semenu@FreeBSD.org)
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

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

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/dev/tx/if_tx.c 148887 2005-08-09 10:20:02Z rwatson $");
28__FBSDID("$FreeBSD: head/sys/dev/tx/if_tx.c 150306 2005-09-19 03:10:21Z imp $");
29
30/*
31 * EtherPower II 10/100 Fast Ethernet (SMC 9432 serie)
32 *
33 * These cards are based on SMC83c17x (EPIC) chip and one of the various
34 * PHYs (QS6612, AC101 and LXT970 were seen). The media support depends on
35 * card model. All cards support 10baseT/UTP and 100baseTX half- and full-
36 * duplex (SMB9432TX). SMC9432BTX also supports 10baseT/BNC. SMC9432FTX also

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

441}
442
443/*
444 * Free any resources allocated by the driver.
445 */
446static void
447epic_release(epic_softc_t *sc)
448{
29
30/*
31 * EtherPower II 10/100 Fast Ethernet (SMC 9432 serie)
32 *
33 * These cards are based on SMC83c17x (EPIC) chip and one of the various
34 * PHYs (QS6612, AC101 and LXT970 were seen). The media support depends on
35 * card model. All cards support 10baseT/UTP and 100baseTX half- and full-
36 * duplex (SMB9432TX). SMC9432BTX also supports 10baseT/BNC. SMC9432FTX also

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

441}
442
443/*
444 * Free any resources allocated by the driver.
445 */
446static void
447epic_release(epic_softc_t *sc)
448{
449
450 if (sc->ifp != NULL)
451 if_free(sc->ifp);
452 if (sc->irq)
453 bus_release_resource(sc->dev, SYS_RES_IRQ, 0, sc->irq);
454 if (sc->res)
455 bus_release_resource(sc->dev, EPIC_RES, EPIC_RID, sc->res);
456 epic_free_rings(sc);
457 if (sc->tx_flist) {

--- 1442 unchanged lines hidden ---
449 if (sc->ifp != NULL)
450 if_free(sc->ifp);
451 if (sc->irq)
452 bus_release_resource(sc->dev, SYS_RES_IRQ, 0, sc->irq);
453 if (sc->res)
454 bus_release_resource(sc->dev, EPIC_RES, EPIC_RID, sc->res);
455 epic_free_rings(sc);
456 if (sc->tx_flist) {

--- 1442 unchanged lines hidden ---