summaryrefslogtreecommitdiff
path: root/sys/dev/mii
AgeCommit message (Collapse)Author
2007-02-11Add support for fiber on the 88E1112 (88E8021/22 integrated PHY).Mark Kettenis
2007-02-10Use right flow control autonegotiation bits for 1000baseX.Mark Kettenis
2007-01-30Rough in more support for 5787/5755 chips so far known to not work orKenneth R Westerback
unreported in the wild. In this case add a PHY workaround for an eventual mobile version of the chipset. No change to existing functionality. From Michael Chan (mchan@broadcom), via Linux tg3 and brad.
2007-01-27In autoneg mode, use RL_MEDIASTAT on re(4), like we do on rl(4) already.Miod Vallat
2007-01-21Use MII_ANEGTICKS_GIGE instead of MII_ANEGTICKS.Mark Kettenis
2007-01-10Flow control support for bge(4)/brgphy(4). From brad@ based on code fromMark Kettenis
NetBSD.
2007-01-05Now that all ethernet drivers that support flow control set MIIF_DOPAUSE,Mark Kettenis
stop doing it here. From brad@
2006-12-31Bring last few phys into line by calling their XXX_status() functionsKenneth R Westerback
through mii_phy_status() rather than directly. No functional change. from brad@ ok mglocker@
2006-12-30Set MASTER based on IFM_ETH_MASTER instead of LINK0.Mark Kettenis
ok brad@
2006-12-30Only advertise flow control if MIIF_DOPAUSE is set.Mark Kettenis
From brad@
2006-12-30Rewrite eephy(4) to take advantage of generic phy code.Mark Kettenis
Enable auto MDI/MDIX on PHY's that support it. Disable energy detect on PHY's that need it. tested on gem(4), msk(4), nfe(4), sk(4), stge(4)
2006-12-30Add flow control support.Mark Kettenis
ok brad@
2006-12-30Make mii_phy_auto() advertise flow control if MIIF_DOPAUSE is set.Mark Kettenis
ok jsg@, brad@
2006-12-29Use mii_phy_flowstatus() to replace the code that sets flag0/flag1 toMark Kettenis
report flow control status. From brad@
2006-12-29No need to read ANAR and ANLPAR anymore.Mark Kettenis
From brad@
2006-12-28Use mii_phy_flowstatus() to set flow control status bits.Mark Kettenis
ok brad@
2006-12-28Add function to detect flow control status. From NetBSD.Mark Kettenis
ok brad@
2006-12-27Always explicitly set IFM_HDX for half-duplex.Mark Kettenis
From brad@
2006-12-23Set IFM_ETH_MASTER if local PHY configuration resolved to MASTER.Mark Kettenis
Based on a diff by brad@
2006-12-23Fix check for active 1000baseT media.Mark Kettenis
Pointed out by brad@
2006-12-22Fix check for active 1000baseT media.Mark Kettenis
2006-12-22Set IFM_ETH_MASTER if local PHY configuration resolved to MASTER.Mark Kettenis
Based on a diff by brad@
2006-12-22- Add IFM_NONE.Mark Kettenis
- Don't set MIIF_NOISOLATE so eephy(4) can be used in configurations with multiple PHYs. - When PHY is resolved to a master, show it with IFM_ETH_MASTER. Based on a diff from yongari@FreeBSD, through brad@
2006-12-20Set IFM_ETH_MASTER if local PHY configuration resolved to MASTER.Mark Kettenis
ok deraadt@, brad@
2006-12-15use mii_media_active instead of mii_media_status to get the fullReyk Floeter
duplex state. this will actually enable duplex reporting for drivers using the mii layer. figured out by Moritz Grimm with sk(4)
2006-11-28add additional link states to report the half duplex / full duplexReyk Floeter
state, if known by the driver. this is required to check the full duplex state without depending on the ifmedia ioctl which can't be called in the kernel without process context. ok henning@, brad@
2006-11-28some additional registers.Brad Smith
From Pyun YongHyeon <pyunh at gmail dot com>
2006-11-28sync with new miidevs entries.Brad Smith
2006-11-28regenBrad Smith
2006-11-28rename Marvell Gig PHY E1000_5/6 to E1116/E1118.Brad Smith
From Pyun YongHyeon <pyunh at gmail dot com>
2006-11-02simplify parent driver matching code a bit. no-op change.Brad Smith
2006-10-22Set Jumbo frame settings for Jumbo capable bge(4) adapters.Brad Smith
Tested with BCM5700, BCM5703 and some BCM5704's.
2006-10-20remove the IFM_100_T4 switch case for the manual media code, brgphy(4)Brad Smith
does not actually support 100baseT4.
2006-10-20attach for the Broadcom BCM5755 ASIC based chipsets as well.Brad Smith
2006-10-20regenBrad Smith
2006-10-20add PHY id for the Broadcom BCM5755 ASIC based chipsets.Brad Smith
2006-10-20move the Jumbo frame settings and Ethernet@Wirespeed code into separateBrad Smith
functions. no-op change.
2006-10-19add a PHY workaround for the 5787 ASIC based chipsets.Brad Smith
Tested by Benjamin Black <ben at layer8 dot net>
2006-10-19Rearrange the code a bit, rename a few functions and make brgphy(4) useBrad Smith
the bge(4) PHY flags, to ensure errata workarounds are being applied to the PHY on the appropriate chipsets. Tested on bnx/gem/sk and a wide range of bge's.
2006-10-15fix parent driver match in brgphy_reset(), simplify code a bit as well, don'tBrad Smith
need to bring in the bnx(4) softc. Tested on bge, bnx, gem, sk ok krw@ kettenis@
2006-10-15attach to the Broadcom BCM5787 PHY.Brad Smith
Tested by Benjamin Black <ben at layer8 dot net>
2006-10-15regenBrad Smith
2006-10-15add another OUI id for Broadcom and the BCM5787 PHY id.Brad Smith
2006-10-11revert rev 1.54. This causes breakage with the PHY on a 5704 A3 chipset;Brad Smith
the link comes up, there is activity with tcpdump, but it doesn't work as expected. Issue reported by kettenis. ok kettenis@
2006-10-09revert the last two changes. the changes were causing brgphy@gem to panic.Brad Smith
2006-10-08set Jumbo frame settings for Jumbo capable bge(4) adapters.Brad Smith
2006-10-08refactor the code a bit, use the bge(4) PHY flags and add anotherBrad Smith
PHY workaround from the Linux tg3 driver.
2006-10-08- g/c unused code.Brad Smith
- only call PHY_RESET if trying to set a valid media type.
2006-10-07g/c unused code.Brad Smith
2006-10-02do not bother to read the esr and isr registers in the status routine justBrad Smith
to end up not using the information read.