if_ex.c (36735) | if_ex.c (40565) |
---|---|
1/* 2 * Copyright (c) 1996, Javier Mart�n Rueda (jmrueda@diatel.upm.es) 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) 1996, Javier Mart�n Rueda (jmrueda@diatel.upm.es) 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_ex.c,v 1.11 1998/03/28 13:24:06 bde Exp $ | 27 * $Id: if_ex.c,v 1.12 1998/06/07 17:10:30 dfr Exp $ |
28 */ 29 30/* 31 * Intel EtherExpress Pro/10, Pro/10+ Ethernet driver 32 * 33 * Revision history: 34 * 35 * 30-Oct-1996: first beta version. Inet and BPF supported, but no multicast. --- 78 unchanged lines hidden (view full) --- 114static char plus_irq2eemap[] = { -1, -1, -1, 0, 1, 2, -1, 3, -1, 4, 5, 6, 7, -1, -1, -1 }; 115static u_char plus_ee2irqmap[] = { 3, 4, 5, 7, 9, 10, 11, 12 }; 116 117static int ex_probe __P((struct isa_device *)); 118static int ex_attach __P((struct isa_device *)); 119static void ex_init __P((void *)); 120static void ex_start __P((struct ifnet *)); 121static void ex_stop __P((int)); | 28 */ 29 30/* 31 * Intel EtherExpress Pro/10, Pro/10+ Ethernet driver 32 * 33 * Revision history: 34 * 35 * 30-Oct-1996: first beta version. Inet and BPF supported, but no multicast. --- 78 unchanged lines hidden (view full) --- 114static char plus_irq2eemap[] = { -1, -1, -1, 0, 1, 2, -1, 3, -1, 4, 5, 6, 7, -1, -1, -1 }; 115static u_char plus_ee2irqmap[] = { 3, 4, 5, 7, 9, 10, 11, 12 }; 116 117static int ex_probe __P((struct isa_device *)); 118static int ex_attach __P((struct isa_device *)); 119static void ex_init __P((void *)); 120static void ex_start __P((struct ifnet *)); 121static void ex_stop __P((int)); |
122static ointhand2_t exintr; |
|
122static int ex_ioctl __P((struct ifnet *, u_long, caddr_t)); 123static void ex_reset __P((int)); 124static void ex_watchdog __P((struct ifnet *)); 125 126static u_short eeprom_read __P((int, int)); 127static int look_for_card __P((u_int)); 128static void ex_tx_intr __P((int)); 129static void ex_rx_intr __P((int)); --- 119 unchanged lines hidden (view full) --- 249int ex_attach(struct isa_device *dev) 250{ 251 int unit = dev->id_unit; 252 struct ex_softc *sc = &ex_sc[unit]; 253 struct ifnet *ifp = &sc->arpcom.ac_if; 254 255 DODEBUG(Start_End, printf("ex_attach%d: start\n", unit);); 256 | 123static int ex_ioctl __P((struct ifnet *, u_long, caddr_t)); 124static void ex_reset __P((int)); 125static void ex_watchdog __P((struct ifnet *)); 126 127static u_short eeprom_read __P((int, int)); 128static int look_for_card __P((u_int)); 129static void ex_tx_intr __P((int)); 130static void ex_rx_intr __P((int)); --- 119 unchanged lines hidden (view full) --- 250int ex_attach(struct isa_device *dev) 251{ 252 int unit = dev->id_unit; 253 struct ex_softc *sc = &ex_sc[unit]; 254 struct ifnet *ifp = &sc->arpcom.ac_if; 255 256 DODEBUG(Start_End, printf("ex_attach%d: start\n", unit);); 257 |
258 dev->id_ointr = exintr; 259 |
|
257 /* 258 * Initialize the ifnet structure. 259 */ 260 ifp->if_softc = sc; 261 ifp->if_unit = unit; 262 ifp->if_name = "ex"; 263 ifp->if_init = ex_init; 264 ifp->if_output = ether_output; --- 295 unchanged lines hidden (view full) --- 560 outb(iobase + STATUS_REG, All_Int); 561 outb(iobase + CMD_REG, Reset_CMD); 562 DELAY(200); 563 564 DODEBUG(Start_End, printf("ex_stop%d: finish\n", unit);); 565} 566 567 | 260 /* 261 * Initialize the ifnet structure. 262 */ 263 ifp->if_softc = sc; 264 ifp->if_unit = unit; 265 ifp->if_name = "ex"; 266 ifp->if_init = ex_init; 267 ifp->if_output = ether_output; --- 295 unchanged lines hidden (view full) --- 563 outb(iobase + STATUS_REG, All_Int); 564 outb(iobase + CMD_REG, Reset_CMD); 565 DELAY(200); 566 567 DODEBUG(Start_End, printf("ex_stop%d: finish\n", unit);); 568} 569 570 |
568void exintr(int unit) | 571static void exintr(int unit) |
569{ 570 struct ex_softc *sc = &ex_sc[unit]; 571 struct ifnet *ifp = &sc->arpcom.ac_if; 572 int iobase = sc->iobase; 573 int int_status, send_pkts; 574 575 DODEBUG(Start_End, printf("exintr%d: start\n", unit);); 576 --- 366 unchanged lines hidden --- | 572{ 573 struct ex_softc *sc = &ex_sc[unit]; 574 struct ifnet *ifp = &sc->arpcom.ac_if; 575 int iobase = sc->iobase; 576 int int_status, send_pkts; 577 578 DODEBUG(Start_End, printf("exintr%d: start\n", unit);); 579 --- 366 unchanged lines hidden --- |