Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci This driver uses MII(4) and have hook SIOC[GS]IF...



details:   https://anonhg.NetBSD.org/src/rev/5da743d883fc
branches:  trunk
changeset: 998583:5da743d883fc
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Apr 22 09:08:14 2019 +0000

description:
This driver uses MII(4) and have hook SIOC[GS]IFMEDIA which just pass to
ifmedia_ioctl(), the hook is not required because ether_ioctl has it
(if_ethersubr.c rev. 1.160). This driver might require some additional fixes
for SIOCSIFMTU and other ioctl()s.

diffstat:

 sys/dev/pci/if_alc.c |  9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diffs (30 lines):

diff -r 4840b746f744 -r 5da743d883fc sys/dev/pci/if_alc.c
--- a/sys/dev/pci/if_alc.c      Mon Apr 22 09:00:12 2019 +0000
+++ b/sys/dev/pci/if_alc.c      Mon Apr 22 09:08:14 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_alc.c,v 1.31 2019/03/05 08:25:02 msaitoh Exp $      */
+/*     $NetBSD: if_alc.c,v 1.32 2019/04/22 09:08:14 msaitoh Exp $      */
 /*     $OpenBSD: if_alc.c,v 1.1 2009/08/08 09:31:13 kevlo Exp $        */
 /*-
  * Copyright (c) 2009, Pyun YongHyeon <yongari%FreeBSD.org@localhost>
@@ -2050,8 +2050,6 @@
 alc_ioctl(struct ifnet *ifp, u_long cmd, void *data)
 {
        struct alc_softc *sc = ifp->if_softc;
-       struct mii_data *mii = &sc->sc_miibus;
-       struct ifreq *ifr = (struct ifreq *)data;
        int s, error = 0;
 
        s = splnet();
@@ -2076,11 +2074,6 @@
                }
                break;
  
-       case SIOCSIFMEDIA:
-       case SIOCGIFMEDIA:
-               error = ifmedia_ioctl(ifp, ifr, &mii->mii_media, cmd);
-               break;
- 
        default:
                error = ether_ioctl(ifp, cmd, data);
                break;



Home | Main Index | Thread Index | Old Index