summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2010-11-14 15:15:22 +0000
committermarius <marius@FreeBSD.org>2010-11-14 15:15:22 +0000
commit3f7f99e32bfd4a62f3516eb46a43d84639f51f92 (patch)
tree2b91dada31d83a184a50be62d5202b8e7ce9a912 /sys/dev/mii
parent46d16d30f250ee1a0f6c356def0f6a2360fe0046 (diff)
downloadFreeBSD-src-3f7f99e32bfd4a62f3516eb46a43d84639f51f92.zip
FreeBSD-src-3f7f99e32bfd4a62f3516eb46a43d84639f51f92.tar.gz
Move the limiting of the PHY to 10/100 modes of operation due to limitations
of certain MAC models from brgphy(4) to bge(4) where it belongs. While at it, update the list of models having that restriction to what OpenBSD uses, which in turn seems to have obtained that information from the Linux tg3 driver.
Diffstat (limited to 'sys/dev/mii')
-rw-r--r--sys/dev/mii/brgphy.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/dev/mii/brgphy.c b/sys/dev/mii/brgphy.c
index c0b1428..96947d4 100644
--- a/sys/dev/mii/brgphy.c
+++ b/sys/dev/mii/brgphy.c
@@ -268,17 +268,6 @@ brgphy_attach(device_t dev)
bce_sc = ifp->if_softc;
}
- /* Todo: Need to add additional controllers such as 5906 & 5787F */
- /* The 590x chips are 10/100 only. */
- if (bge_sc &&
- pci_get_vendor(bge_sc->bge_dev) == BCOM_VENDORID &&
- (pci_get_device(bge_sc->bge_dev) == BCOM_DEVICEID_BCM5901 ||
- pci_get_device(bge_sc->bge_dev) == BCOM_DEVICEID_BCM5901A2 ||
- pci_get_device(bge_sc->bge_dev) == BCOM_DEVICEID_BCM5906 ||
- pci_get_device(bge_sc->bge_dev) == BCOM_DEVICEID_BCM5906M)) {
- ma->mii_capmask &= ~BMSR_EXTSTAT;
- }
-
brgphy_reset(sc);
/* Read the PHY's capabilities. */
OpenPOWER on IntegriCloud