Disabled LPC_ENA related I/O access. This I/O access clobbers i8255

mode register on PC98.
This commit is contained in:
KATO Takenori 1997-01-17 14:43:34 +00:00
parent a84bc4735a
commit 9124cd1f10

View File

@ -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) {