diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2005-08-09 10:20:02 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2005-08-09 10:20:02 +0000 |
| commit | 13f4c340aeeeb104844712bb36899d1adef50579 (patch) | |
| tree | bb70e59641e2310a3c26ec449af5ab0cb7420d9d /sys/dev/snc | |
| parent | 292ee7be1c404a624dda68ddff1bd988a1851e5a (diff) | |
Notes
Diffstat (limited to 'sys/dev/snc')
| -rw-r--r-- | sys/dev/snc/dp83932.c | 22 | ||||
| -rw-r--r-- | sys/dev/snc/if_snc_pccard.c | 2 |
2 files changed, 13 insertions, 11 deletions
diff --git a/sys/dev/snc/dp83932.c b/sys/dev/snc/dp83932.c index b85170c43450..bbc1e97380fd 100644 --- a/sys/dev/snc/dp83932.c +++ b/sys/dev/snc/dp83932.c @@ -266,16 +266,16 @@ sncioctl(ifp, cmd, data) case SIOCSIFFLAGS: if ((ifp->if_flags & IFF_UP) == 0 && - (ifp->if_flags & IFF_RUNNING) != 0) { + (ifp->if_drv_flags & IFF_DRV_RUNNING) != 0) { /* * If interface is marked down and it is running, * then stop it. */ sncstop(sc); - ifp->if_flags &= ~IFF_RUNNING; + ifp->if_drv_flags &= ~IFF_DRV_RUNNING; snc_disable(sc); } else if ((ifp->if_flags & IFF_UP) != 0 && - (ifp->if_flags & IFF_RUNNING) == 0) { + (ifp->if_drv_flags & IFF_DRV_RUNNING) == 0) { /* * If interface is marked up and it is stopped, * then start it. @@ -330,7 +330,8 @@ sncstart(ifp) struct mbuf *m; int mtd_next; - if ((ifp->if_flags & (IFF_RUNNING | IFF_OACTIVE)) != IFF_RUNNING) + if ((ifp->if_drv_flags & (IFF_DRV_RUNNING | IFF_DRV_OACTIVE)) != + IFF_DRV_RUNNING) return; outloop: @@ -339,7 +340,7 @@ outloop: mtd_next = 0; if (mtd_next == sc->mtd_hw) { - ifp->if_flags |= IFF_OACTIVE; + ifp->if_drv_flags |= IFF_DRV_OACTIVE; return; } @@ -399,7 +400,7 @@ sncinit(xsc) u_long s_rcr; int s; - if (sc->sc_ifp->if_flags & IFF_RUNNING) + if (sc->sc_ifp->if_drv_flags & IFF_DRV_RUNNING) /* already running */ return; @@ -451,8 +452,8 @@ sncinit(xsc) wbflush(); /* flag interface as "running" */ - sc->sc_ifp->if_flags |= IFF_RUNNING; - sc->sc_ifp->if_flags &= ~IFF_OACTIVE; + sc->sc_ifp->if_drv_flags |= IFF_DRV_RUNNING; + sc->sc_ifp->if_drv_flags &= ~IFF_DRV_OACTIVE; splx(s); return; @@ -485,7 +486,8 @@ sncstop(sc) } sc->sc_ifp->if_timer = 0; - sc->sc_ifp->if_flags &= ~(IFF_RUNNING | IFF_UP); + sc->sc_ifp->if_drv_flags &= ~IFF_DRV_RUNNING; + sc->sc_ifp->if_flags &= ~IFF_UP; splx(s); return (0); @@ -939,7 +941,7 @@ sonictxint(sc) } #endif /* SNCDEBUG */ - ifp->if_flags &= ~IFF_OACTIVE; + ifp->if_drv_flags &= ~IFF_DRV_OACTIVE; if (mtd->mtd_mbuf != 0) { m_freem(mtd->mtd_mbuf); diff --git a/sys/dev/snc/if_snc_pccard.c b/sys/dev/snc/if_snc_pccard.c index a8150803b7cf..64e2faf782c0 100644 --- a/sys/dev/snc/if_snc_pccard.c +++ b/sys/dev/snc/if_snc_pccard.c @@ -95,7 +95,7 @@ snc_pccard_detach(device_t dev) return (0); } sncshutdown(sc); - ifp->if_flags &= ~IFF_RUNNING; + ifp->if_drv_flags &= ~IFF_DRV_RUNNING; if_detach(ifp); sc->gone = 1; bus_teardown_intr(dev, sc->irq, sc->irq_handle); |
