if_ep.c (11819) | if_ep.c (11872) |
---|---|
1/* 2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca> 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 --- 24 unchanged lines hidden (view full) --- 33/* 34 * Modified from the FreeBSD 1.1.5.1 version by: 35 * Andres Vega Garcia 36 * INRIA - Sophia Antipolis, France 37 * avega@sophia.inria.fr 38 */ 39 40/* | 1/* 2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca> 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 --- 24 unchanged lines hidden (view full) --- 33/* 34 * Modified from the FreeBSD 1.1.5.1 version by: 35 * Andres Vega Garcia 36 * INRIA - Sophia Antipolis, France 37 * avega@sophia.inria.fr 38 */ 39 40/* |
41 * $Id: if_ep.c,v 1.31 1995/10/13 19:47:44 wollman Exp $ | 41 * $Id: if_ep.c,v 1.32 1995/10/26 20:29:37 julian Exp $ |
42 * 43 * Promiscuous mode added and interrupt logic slightly changed 44 * to reduce the number of adapter failures. Transceiver select 45 * logic changed to use value from EEPROM. Autoconfiguration 46 * features added. 47 * Done by: 48 * Serge Babkin 49 * Chelindbank (Chelyabinsk, Russia) --- 254 unchanged lines hidden (view full) --- 304} 305 306int 307epprobe(is) 308 struct isa_device *is; 309{ 310 struct ep_softc *sc = &ep_softc[is->id_unit]; 311 u_short k; | 42 * 43 * Promiscuous mode added and interrupt logic slightly changed 44 * to reduce the number of adapter failures. Transceiver select 45 * logic changed to use value from EEPROM. Autoconfiguration 46 * features added. 47 * Done by: 48 * Serge Babkin 49 * Chelindbank (Chelyabinsk, Russia) --- 254 unchanged lines hidden (view full) --- 304} 305 306int 307epprobe(is) 308 struct isa_device *is; 309{ 310 struct ep_softc *sc = &ep_softc[is->id_unit]; 311 u_short k; |
312 int i; | |
313 314 ep_registerdev(is); 315 316 if (!ep_look_for_board_at(is)) 317 return (0); 318 /* 319 * The iobase was found and MFG_ID was 0x6d50. PROD_ID should be 320 * 0x9[0-f]50 --- 452 unchanged lines hidden (view full) --- 773 } 774 goto startagain; 775} 776 777void 778epintr(unit) 779 int unit; 780{ | 312 313 ep_registerdev(is); 314 315 if (!ep_look_for_board_at(is)) 316 return (0); 317 /* 318 * The iobase was found and MFG_ID was 0x6d50. PROD_ID should be 319 * 0x9[0-f]50 --- 452 unchanged lines hidden (view full) --- 772 } 773 goto startagain; 774} 775 776void 777epintr(unit) 778 int unit; 779{ |
781 int i; | |
782 register int status; 783 register struct ep_softc *sc = &ep_softc[unit]; | 780 register int status; 781 register struct ep_softc *sc = &ep_softc[unit]; |
784 struct ifnet *ifp = &sc->arpcom.ac_if; 785 struct mbuf *m; | |
786 int x; 787 788 x=splbio(); 789 790 outw(BASE + EP_COMMAND, SET_INTR_MASK); /* disable all Ints */ 791 792rescan: 793 --- 593 unchanged lines hidden --- | 782 int x; 783 784 x=splbio(); 785 786 outw(BASE + EP_COMMAND, SET_INTR_MASK); /* disable all Ints */ 787 788rescan: 789 --- 593 unchanged lines hidden --- |