Disabled LPC_ENA related I/O access. This I/O access clobbers i8255
mode register on PC98.
This commit is contained in:
parent
a84bc4735a
commit
9124cd1f10
@ -991,6 +991,10 @@ lpioctl (struct ifnet *ifp, int cmd, caddr_t data)
|
||||
ifp->if_flags &= ~IFF_RUNNING;
|
||||
break;
|
||||
}
|
||||
#ifdef PC98
|
||||
/* XXX */
|
||||
return ENOBUFS;
|
||||
#else
|
||||
if (((ifp->if_flags & IFF_UP)) && (!(ifp->if_flags & IFF_RUNNING))) {
|
||||
if (lpinittables())
|
||||
return ENOBUFS;
|
||||
@ -1003,7 +1007,7 @@ lpioctl (struct ifnet *ifp, int cmd, caddr_t data)
|
||||
ifp->if_flags |= IFF_RUNNING;
|
||||
}
|
||||
break;
|
||||
|
||||
#endif
|
||||
case SIOCSIFMTU:
|
||||
ptr = sc->sc_ifbuf;
|
||||
sc->sc_ifbuf = malloc(ifr->ifr_mtu+MLPIPHDRLEN, M_DEVBUF, M_NOWAIT);
|
||||
@ -1264,8 +1268,10 @@ lpoutput (struct ifnet *ifp, struct mbuf *m,
|
||||
|
||||
s = splhigh();
|
||||
|
||||
#ifndef PC98
|
||||
/* Suspend (on laptops) or receive-errors might have taken us offline */
|
||||
outb(lpt_ctrl_port, LPC_ENA);
|
||||
#endif
|
||||
|
||||
if (ifp->if_flags & IFF_LINK0) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user