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 SIOCGIFMED...



details:   https://anonhg.NetBSD.org/src/rev/b900f7597958
branches:  trunk
changeset: 998623:b900f7597958
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Apr 24 10:38:09 2019 +0000

description:
This driver uses MII(4) and have hook SIOCGIFMEDIA 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/arch/arm/xscale/ixp425_if_npe.c |  5 ++---
 sys/dev/pci/if_bnx.c                |  6 ++----
 2 files changed, 4 insertions(+), 7 deletions(-)

diffs (53 lines):

diff -r bd559fa4c4ae -r b900f7597958 sys/arch/arm/xscale/ixp425_if_npe.c
--- a/sys/arch/arm/xscale/ixp425_if_npe.c       Wed Apr 24 10:28:17 2019 +0000
+++ b/sys/arch/arm/xscale/ixp425_if_npe.c       Wed Apr 24 10:38:09 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ixp425_if_npe.c,v 1.37 2019/03/05 08:25:02 msaitoh Exp $ */
+/*     $NetBSD: ixp425_if_npe.c,v 1.38 2019/04/24 10:40:18 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 2006 Sam Leffler.  All rights reserved.
@@ -28,7 +28,7 @@
 #if 0
 __FBSDID("$FreeBSD: src/sys/arm/xscale/ixp425/if_npe.c,v 1.1 2006/11/19 23:55:23 sam Exp $");
 #endif
-__KERNEL_RCSID(0, "$NetBSD: ixp425_if_npe.c,v 1.37 2019/03/05 08:25:02 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ixp425_if_npe.c,v 1.38 2019/04/24 10:40:18 msaitoh Exp $");
 
 /*
  * Intel XScale NPE Ethernet driver.
@@ -1421,7 +1421,6 @@
 
        switch (cmd) {
        case SIOCSIFMEDIA:
-       case SIOCGIFMEDIA:
 #if 0 /* not yet */
                /* Flow control requires full-duplex mode. */
                if (IFM_SUBTYPE(ifr->ifr_media) == IFM_AUTO ||
diff -r bd559fa4c4ae -r b900f7597958 sys/dev/pci/if_bnx.c
--- a/sys/dev/pci/if_bnx.c      Wed Apr 24 10:28:17 2019 +0000
+++ b/sys/dev/pci/if_bnx.c      Wed Apr 24 10:38:09 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bnx.c,v 1.81 2019/04/11 08:50:59 msaitoh Exp $      */
+/*     $NetBSD: if_bnx.c,v 1.82 2019/04/24 10:38:09 msaitoh Exp $      */
 /*     $OpenBSD: if_bnx.c,v 1.101 2013/03/28 17:21:44 brad Exp $       */
 
 /*-
@@ -35,7 +35,7 @@
 #if 0
 __FBSDID("$FreeBSD: src/sys/dev/bce/if_bce.c,v 1.3 2006/04/13 14:12:26 ru Exp $");
 #endif
-__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.81 2019/04/11 08:50:59 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.82 2019/04/24 10:38:09 msaitoh Exp $");
 
 /*
  * The following controllers are supported by this driver:
@@ -5415,8 +5415,6 @@
                        }
                        sc->bnx_flowflags = ifr->ifr_media & IFM_ETH_FMASK;
                }
-               /* FALLTHROUGH */
-       case SIOCGIFMEDIA:
                DBPRINT(sc, BNX_VERBOSE, "bnx_phy_flags = 0x%08X\n",
                    sc->bnx_phy_flags);
 



Home | Main Index | Thread Index | Old Index