Deleted Added
full compact
if_ed.c (39144) if_ed.c (40565)
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.144 1998/08/24 02:28:15 bde Exp $
27 * $Id: if_ed.c,v 1.145 1998/09/13 22:15:44 eivind 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,

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

133};
134
135static struct ed_softc ed_softc[NEDTOT];
136
137static int ed_attach __P((struct ed_softc *, int, int));
138static int ed_attach_isa __P((struct isa_device *));
139
140static void ed_init __P((void *));
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,

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

133};
134
135static struct ed_softc ed_softc[NEDTOT];
136
137static int ed_attach __P((struct ed_softc *, int, int));
138static int ed_attach_isa __P((struct isa_device *));
139
140static void ed_init __P((void *));
141static ointhand2_t edintr;
141static int ed_ioctl __P((struct ifnet *, u_long, caddr_t));
142static int ed_probe __P((struct isa_device *));
143static void ed_start __P((struct ifnet *));
144static void ed_reset __P((struct ifnet *));
145static void ed_watchdog __P((struct ifnet *));
146
147static void ed_stop __P((struct ed_softc *));
148static int ed_probe_generic8390 __P((struct ed_softc *));

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

1734static int
1735ed_attach_isa(isa_dev)
1736 struct isa_device *isa_dev;
1737{
1738 int unit = isa_dev->id_unit;
1739 struct ed_softc *sc = &ed_softc[unit];
1740 int flags = isa_dev->id_flags;
1741
142static int ed_ioctl __P((struct ifnet *, u_long, caddr_t));
143static int ed_probe __P((struct isa_device *));
144static void ed_start __P((struct ifnet *));
145static void ed_reset __P((struct ifnet *));
146static void ed_watchdog __P((struct ifnet *));
147
148static void ed_stop __P((struct ed_softc *));
149static int ed_probe_generic8390 __P((struct ed_softc *));

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

1735static int
1736ed_attach_isa(isa_dev)
1737 struct isa_device *isa_dev;
1738{
1739 int unit = isa_dev->id_unit;
1740 struct ed_softc *sc = &ed_softc[unit];
1741 int flags = isa_dev->id_flags;
1742
1743 isa_dev->id_ointr = edintr;
1742 return ed_attach(sc, unit, flags);
1743}
1744
1745#if NPCI > 0
1746void *
1747ed_attach_NE2000_pci(unit, port)
1748 int unit;
1749 int port;

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

2562 if (isr & ED_ISR_CNT) {
2563 (void) inb(sc->nic_addr + ED_P0_CNTR0);
2564 (void) inb(sc->nic_addr + ED_P0_CNTR1);
2565 (void) inb(sc->nic_addr + ED_P0_CNTR2);
2566 }
2567 }
2568}
2569
1744 return ed_attach(sc, unit, flags);
1745}
1746
1747#if NPCI > 0
1748void *
1749ed_attach_NE2000_pci(unit, port)
1750 int unit;
1751 int port;

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

2564 if (isr & ED_ISR_CNT) {
2565 (void) inb(sc->nic_addr + ED_P0_CNTR0);
2566 (void) inb(sc->nic_addr + ED_P0_CNTR1);
2567 (void) inb(sc->nic_addr + ED_P0_CNTR2);
2568 }
2569 }
2570}
2571
2570void
2572static void
2571edintr(unit)
2572 int unit;
2573{
2574 edintr_sc (&ed_softc[unit]);
2575}
2576
2577/*
2578 * Process an ioctl request. This code needs some work - it looks

--- 906 unchanged lines hidden ---
2573edintr(unit)
2574 int unit;
2575{
2576 edintr_sc (&ed_softc[unit]);
2577}
2578
2579/*
2580 * Process an ioctl request. This code needs some work - it looks

--- 906 unchanged lines hidden ---