if_ed.c (30892) | if_ed.c (31016) |
---|---|
1/* 2 * Copyright (c) 1995, David Greenman 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 --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 * | 1/* 2 * Copyright (c) 1995, David Greenman 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 --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 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 * $Id: if_ed.c,v 1.126 1997/10/29 00:51:50 jdp Exp $ | 27 * $Id: if_ed.c,v 1.127 1997/11/02 07:12:52 davidg Exp $ |
28 */ 29 30/* 31 * Device driver for National Semiconductor DS8390/WD83C690 based ethernet 32 * adapters. By David Greenman, 29-April-1993 33 * 34 * Currently supports the Western Digital/SMC 8003 and 8013 series, 35 * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000, --- 2529 unchanged lines hidden (view full) --- 2565 */ 2566static int 2567ed_ioctl(ifp, command, data) 2568 register struct ifnet *ifp; 2569 int command; 2570 caddr_t data; 2571{ 2572 struct ed_softc *sc = ifp->if_softc; | 28 */ 29 30/* 31 * Device driver for National Semiconductor DS8390/WD83C690 based ethernet 32 * adapters. By David Greenman, 29-April-1993 33 * 34 * Currently supports the Western Digital/SMC 8003 and 8013 series, 35 * the SMC Elite Ultra (8216), the 3Com 3c503, the NE1000 and NE2000, --- 2529 unchanged lines hidden (view full) --- 2565 */ 2566static int 2567ed_ioctl(ifp, command, data) 2568 register struct ifnet *ifp; 2569 int command; 2570 caddr_t data; 2571{ 2572 struct ed_softc *sc = ifp->if_softc; |
2573 struct ifreq *ifr = (struct ifreq *) data; | |
2574 int s, error = 0; 2575 2576 if (sc->gone) { 2577 ifp->if_flags &= ~IFF_RUNNING; 2578 return ENXIO; 2579 } 2580 s = splimp(); 2581 --- 801 unchanged lines hidden --- | 2573 int s, error = 0; 2574 2575 if (sc->gone) { 2576 ifp->if_flags &= ~IFF_RUNNING; 2577 return ENXIO; 2578 } 2579 s = splimp(); 2580 --- 801 unchanged lines hidden --- |