Re-enable EISA reset code -- definately needed now. do RX_DISCARD_TOP_PACK

before leaving splhigh(), to give incoming packets a better chance.
This commit is contained in:
deraadt 1994-08-26 12:11:44 +00:00
parent 2a316aaed4
commit de20d2cf67
2 changed files with 8 additions and 8 deletions

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_ep.c,v 1.53 1994/08/23 19:30:12 mycroft Exp $
* $Id: if_ep.c,v 1.54 1994/08/26 12:11:44 deraadt Exp $
*/
#include "bpfilter.h"
@ -182,7 +182,7 @@ epprobe(parent, self, aux)
continue;
}
#ifdef notyet
#ifndef notyet
outb(iobase + EISA_CONTROL, EISA_ENABLE | EISA_RESET);
delay(10);
outb(iobase + EISA_CONTROL, EISA_ENABLE);
@ -777,8 +777,6 @@ epread(sc)
}
}
splx(sh);
m0->m_pkthdr.len = save_totlen;
m0->m_pkthdr.rcvif = &sc->sc_arpcom.ac_if;
@ -786,6 +784,8 @@ epread(sc)
while (inw(BASE + EP_STATUS) & S_COMMAND_IN_PROGRESS)
;
splx(sh);
++sc->sc_arpcom.ac_if.if_ipackets;
#if NBPFILTER > 0

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_ep.c,v 1.53 1994/08/23 19:30:12 mycroft Exp $
* $Id: if_ep.c,v 1.54 1994/08/26 12:11:44 deraadt Exp $
*/
#include "bpfilter.h"
@ -182,7 +182,7 @@ epprobe(parent, self, aux)
continue;
}
#ifdef notyet
#ifndef notyet
outb(iobase + EISA_CONTROL, EISA_ENABLE | EISA_RESET);
delay(10);
outb(iobase + EISA_CONTROL, EISA_ENABLE);
@ -777,8 +777,6 @@ epread(sc)
}
}
splx(sh);
m0->m_pkthdr.len = save_totlen;
m0->m_pkthdr.rcvif = &sc->sc_arpcom.ac_if;
@ -786,6 +784,8 @@ epread(sc)
while (inw(BASE + EP_STATUS) & S_COMMAND_IN_PROGRESS)
;
splx(sh);
++sc->sc_arpcom.ac_if.if_ipackets;
#if NBPFILTER > 0