Module Name: src Committed By: thorpej Date: Sun Mar 8 19:24:40 UTC 2020
Modified Files: src/sys/dev/pci: if_txp.c Log Message: Follow the example of the MII code and don't register the half-duplex versions of each media type. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/sys/dev/pci/if_txp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_txp.c diff -u src/sys/dev/pci/if_txp.c:1.65 src/sys/dev/pci/if_txp.c:1.66 --- src/sys/dev/pci/if_txp.c:1.65 Sun Mar 8 19:02:03 2020 +++ src/sys/dev/pci/if_txp.c Sun Mar 8 19:24:40 2020 @@ -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 @@ txp_attach(device_t parent, device_t sel 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); }