Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Follow the example of the MII code and don't reg...



details:   https://anonhg.NetBSD.org/src/rev/acac465c1391
branches:  trunk
changeset: 970004:acac465c1391
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Mar 08 19:24:40 2020 +0000

description:
Follow the example of the MII code and don't register the half-duplex
versions of each media type.

diffstat:

 sys/dev/pci/if_txp.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (40 lines):

diff -r 19d92b826577 -r acac465c1391 sys/dev/pci/if_txp.c
--- a/sys/dev/pci/if_txp.c      Sun Mar 08 19:02:03 2020 +0000
+++ b/sys/dev/pci/if_txp.c      Sun Mar 08 19:24:40 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_txp.c,v 1.65 2020/03/08 19:02:03 thorpej Exp $ */
+/* $NetBSD: if_txp.c,v 1.66 2020/03/08 19:24:40 thorpej Exp $ */
 
 /*
  * Copyright (c) 2001
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_txp.c,v 1.65 2020/03/08 19:02:03 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_txp.c,v 1.66 2020/03/08 19:24:40 thorpej Exp $");
 
 #include "opt_inet.h"
 
@@ -297,21 +297,15 @@
        if (flags & TXP_FIBER) {
                ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_100_FX,
                            0, NULL);
-               ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_100_FX | IFM_HDX,
-                           0, NULL);
                ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_100_FX | IFM_FDX,
                            0, NULL);
        } else {
                ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_10_T,
                            0, NULL);
-               ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_10_T | IFM_HDX,
-                           0, NULL);
                ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_10_T | IFM_FDX,
                            0, NULL);
                ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_100_TX,
                            0, NULL);
-               ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_100_TX | IFM_HDX,
-                           0, NULL);
                ifmedia_add(&sc->sc_ifmedia, IFM_ETHER | IFM_100_TX | IFM_FDX,
                            0, NULL);
        }



Home | Main Index | Thread Index | Old Index