From 9124cd1f10d0b1c3edd58d687a260463d37f4fc0 Mon Sep 17 00:00:00 2001 From: KATO Takenori Date: Fri, 17 Jan 1997 14:43:34 +0000 Subject: [PATCH] Disabled LPC_ENA related I/O access. This I/O access clobbers i8255 mode register on PC98. --- sys/pc98/pc98/lpt.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/pc98/pc98/lpt.c b/sys/pc98/pc98/lpt.c index e78f41a02c3..bea6e78f04e 100644 --- a/sys/pc98/pc98/lpt.c +++ b/sys/pc98/pc98/lpt.c @@ -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) {