Date: Wed, 22 Mar 2006 23:05:16 GMT From: Olivier Houchard <cognet@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 93831 for review Message-ID: <200603222305.k2MN5GXH007560@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=93831 Change 93831 by cognet@cognet on 2006/03/22 23:04:34 Handle SIOCSIFMEDIA / SIOCGIFMEDIA Affected files ... .. //depot/projects/arm/src/sys/arm/at91/if_ate.c#47 edit Differences ... ==== //depot/projects/arm/src/sys/arm/at91/if_ate.c#47 (text+ko) ==== @@ -881,6 +881,8 @@ ateioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { struct ate_softc *sc = ifp->if_softc; + struct mii_data *mii; + struct ifreq *ifr = (struct ifreq *)data; int error = 0; switch (cmd) { @@ -906,6 +908,11 @@ error = 0; break; + case SIOCSIFMEDIA: + case SIOCGIFMEDIA: + mii = device_get_softc(sc->miibus); + error = ifmedia_ioctl(ifp, ifr, &mii->mii_media, cmd); + break; default: error = ether_ioctl(ifp, cmd, data); break;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603222305.k2MN5GXH007560>