if_cs.c (148887) | if_cs.c (150306) |
---|---|
1/*- 2 * Copyright (c) 1997,1998 Maxim Bolotin and Oleg Sharoiko. 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 --- 13 unchanged lines hidden (view full) --- 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997,1998 Maxim Bolotin and Oleg Sharoiko. 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 --- 13 unchanged lines hidden (view full) --- 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/dev/cs/if_cs.c 148887 2005-08-09 10:20:02Z rwatson $"); | 30__FBSDID("$FreeBSD: head/sys/dev/cs/if_cs.c 150306 2005-09-19 03:10:21Z imp $"); |
31 32/* 33 * 34 * Device driver for Crystal Semiconductor CS8920 based ethernet 35 * adapters. By Maxim Bolotin and Oleg Sharoiko, 27-April-1997 36 */ 37 38/* --- 652 unchanged lines hidden (view full) --- 691 struct ifnet *ifp; 692 693 sc = device_get_softc(dev); 694 ifp = sc->ifp; 695 696 cs_stop(sc); 697 ifp->if_drv_flags &= ~IFF_DRV_RUNNING; 698 ether_ifdetach(ifp); | 31 32/* 33 * 34 * Device driver for Crystal Semiconductor CS8920 based ethernet 35 * adapters. By Maxim Bolotin and Oleg Sharoiko, 27-April-1997 36 */ 37 38/* --- 652 unchanged lines hidden (view full) --- 691 struct ifnet *ifp; 692 693 sc = device_get_softc(dev); 694 ifp = sc->ifp; 695 696 cs_stop(sc); 697 ifp->if_drv_flags &= ~IFF_DRV_RUNNING; 698 ether_ifdetach(ifp); |
699 if_free(ifp); | |
700 cs_release_resources(dev); | 699 cs_release_resources(dev); |
700 if_free(ifp); |
|
701 return (0); 702} 703 704/* 705 * Initialize the board 706 */ 707static void 708cs_init(void *xsc) --- 559 unchanged lines hidden --- | 701 return (0); 702} 703 704/* 705 * Initialize the board 706 */ 707static void 708cs_init(void *xsc) --- 559 unchanged lines hidden --- |