summaryrefslogtreecommitdiff
path: root/sys/dev/mii
AgeCommit message (Collapse)Author
2018-04-09regenMark Kettenis
2018-04-09Add Marvell 88E1512.Mark Kettenis
2018-02-27Add RTL8211F support. Loosely based on the FreeBSD driver.Mark Kettenis
ok jsg@
2017-03-11Add support for RTL8153 devices. Heavily based on changes made by Kevin LoMark Kettenis
to the FreeBSD driver. This driver will attach instead of cdce(4), which doesn't expose a PHY and doesn't work with my 5c20 revision of the chip. ok jimatthew@, jcs@
2016-07-11Initialize oui and model fields in the softc.Mark Kettenis
ok deraadt@, mpi@
2016-07-10regenMark Kettenis
2016-07-10Add MICREL KSZ9021 and KSZ9031.Mark Kettenis
2016-07-09Initialize the mii_oui field such that fec(4) can look at it.Mark Kettenis
ok jsg@
2016-07-08regenMark Kettenis
2016-07-08The Atheros PHYs with model ID 7 are the AR8031/AR8033/AR8035 family.Mark Kettenis
Identify as AR8035 since that one has the lowest revision number. ok mlarkin@, millert@
2015-12-29Tweak previous by de-indenting label and replacing remaining continuesmmcc
with gotos. supported by kettenis@, ok sobrado@
2015-12-281. Add a loop_end label to the outer loopmmcc
2. Replace a continue statement in an inner loop with goto loop_end This fixes a simple logical bug found with Coccinelle. ok kettenis@
2015-09-12mii_softc's view of the current mii state need to use the proper typesMiod Vallat
(ifmedia64).
2015-09-11Make room for media types of the future. Extend the ifmedia word to 64 bits.Stefan Sperling
This changes numbers of the SIOCSIFMEDIA and SIOCGIFMEDIA ioctls and grows struct ifmediareq. Old ifconfig and dhclient binaries can still assign addresses, however the 'media' subcommand stops working. Recompiling ifconfig and dhclient with new headers before a reboot should not be necessary unless in very special circumstances where non-default media settings must be used to get link and console access is not available. There may be some MD fallout but that will be cleared up later. ok deraadt miod with help and suggestions from several sharks attending l2k15
2015-07-19use standardized register defintion in mii.h rather than specificYojiro Uo
driver definetion. ok deraadt@
2015-07-19regenYojiro Uo
2015-07-19add RTL8211Yojiro Uo
2015-07-19use standardized register definition in mii.h rather than eachYojiro Uo
specific driver definition. no logical change. ok deraadt@
2015-07-19revert privious commitYojiro Uo
2015-07-19according to MII specification, these seems to be bug.Yojiro Uo
ok deraadt@
2015-07-18fix typo.Yojiro Uo
2015-07-18add following registers from IEEE 802.3-2009 Clause 22.Yojiro Uo
- PSE control register (0x0b) - PSE status register (0x0c) - MMD access control register (0x0d) - MMD access address data register (0x0e) from netbsd ok deraadt@, miod@
2015-06-04Add support for em(4) on Teak 3020, a Tolopai (EP80579)Dariusz Swiderski
based devices. This introduces Realtek PHY into em driver code and is only a temporary solution to the problem. OK deraadt@
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
2015-01-20And the variable too.Brad Smith
2015-01-20Back out a chunk of rev 1.34 that wasn't supposed to go in with theBrad Smith
capitalization corrections.
2015-01-20printf wasn't supposed to go in.Brad Smith
2014-12-05Explicitly include <net/if_var.h> instead of pulling it in <net/if.h>.Martin Pieuchot
ok mikeb@, krw@, bluhm@, tedu@
2014-11-24regenBrad Smith
2014-11-24use the correct capitalization for Realtek.Brad Smith
2014-09-14remove uneeded proc.h includesJonathan Gray
ok mpi@ kspillner@
2014-05-06Add support for the Broadcom PHY found on the Octeon-based DSR-500.Paul Irofti
This is an MI driver currently targeting only the BCM53115 model, but other Broadcom devices (specially from the 53XX family) can make use of it as well. The driver currently accounts just for the CPU port. The switch is left in dumb-mode. Further advanced switch control is in the works. Parts of this was inspired by looking at the b53 driver from the OpenWrt project. Thanks! Okay miod@
2014-05-06Regen after Broadcom 53115 addition.Paul Irofti
2014-05-06Add an entry for the Broadcom 53115 model found on the DSR-500.Paul Irofti
Okay miod@
2014-02-01Split bge(4)'s feature flags into bge_flags and bge_phy_flags.Brad Smith
ok naddy@
2014-01-21Sync in the PHY Specific Control and Status register bits.Brad Smith
ok mikeb@
2013-12-30Add support for newer integrated Realtek PHY.Brad Smith
Tested with 8168G controllers.
2013-12-30Have rgephy(4) always use RL_GMEDIASTAT to retrieve the link/media statusBrad Smith
when attached to re(4), as was done before rev 1.25 which was intended to fix rgephy(4) with external PHY with MACs other than re(4). This is to fix operation with some integrated PHY on re(4) where the PHY Specific Status register does not work properly and the link cannot be established. From FreeBSD and matches what the Linux driver does. Tested on a number of newer re(4) with PHYs rev 2, 4 and 5 and newer integrated PHY with the 8168G controllers.
2013-12-28Always call PHY_RESET upon attaching eephy(4) so as to do PHY initialization,Brad Smith
to match behavior before rev 1.52. ok deraadt@
2013-12-28mii drivers no longer need activate functions. Repair of the PHYTheo de Raadt
configuration setting is done at resume time because all networks drivers which were previously up, do an IFF_UP operation which hits PHY_RESET. This was in snapshots for about 2 weeks.
2013-12-28Move the fairly heavy eephy_init sequence [which was only done atTheo de Raadt
attach() and activate() time] into the eephy_reset() routine. This means that a bit more work gets done at PHY_RESET time, but it means also means it gets done in all scenarios. Why? For the next commit... This was in snapshots for about 2 weeks.
2013-12-14regenBrad Smith
2013-12-14new Realtek PHY.Brad Smith
2013-12-08remove case that does nothingTheo de Raadt
2013-06-25Remove unsigned comparison < 0.Brad Smith
Pointed out by LLVM. ok mikeb@
2013-06-15Add support for RTL8101E 10/100 PHY.Mark Kettenis
ok miod@, mikeb@
2013-06-15regenMark Kettenis
2013-06-15Add RTL8101E 10/100 PHY.Mark Kettenis
ok miod@, mikeb@
2013-05-28Fix a common issue across different PHY drivers to reset theMike Belopuhov
autonegotiation timer when PHY gets the link so that if we restart the timer the mii_ticks value would be sane. Lifted originally from FreeBSD, tested by a few on re(4) and bge(4), ok kettenis
2013-03-17Split out bge / bnx reset code into a separate set of functions.Brad Smith
ok sthen@