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/28f18f5b85cc
branches: trunk
changeset: 1008039:28f18f5b85cc
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 2db71c1756fc -r 28f18f5b85cc 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