Commit Graph

27 Commits

Author SHA1 Message Date
msaitoh a62c5ff057 KNF. No functional change. 2019-04-11 09:14:07 +00:00
msaitoh a2ed0f0a5e MMDACR_FN_{DATANPI,DATAPIRW,DATAPIW} are little hard to identify and might be
misread, so rename them to MMDACR_FN_{DATA,DATA_INC_RW,DATA_INC_W}.
2019-02-25 07:36:16 +00:00
msaitoh 8a47091b00 Add MII_100T2CR and MII_GTCR's test mode definitions. 2019-01-16 08:32:24 +00:00
msaitoh eba330e81b Add MII_GTCR(== 0x09 == MII_100T2CR) and MII_GTSR(== 0x0a == MII_100T2SR).
100T2 is little hard to imagine the meaning for gigabit Ethernet.
2019-01-16 07:30:35 +00:00
msaitoh 9731950d5a - Rename ENP (Extended Next Page) to XNP.
- Add ANLPAR_XNP bit.
- Add definitions for RF1 and RF2 (for 1000BASE-X) .
- Rename MII_ANNP (Autonegotiation next page transmit) register to MII_ANNPT.
- Add bit definitions for MII_ANNPT and MII_ANLPRNP.
- Remove GTSR_LP_ASM_DIR bit. This is not described in the 802.3 spec now and
  no any NetBSD drivers use the definition.
2018-06-18 09:11:03 +00:00
msaitoh 6fa1e87bf8 - Add some bit definitions:
- Unidirectional enable
   - Unidirectional ability
   - Extended Next Page
   - Receive Next Page Location Able
   - Received Next Page Storage Location
   - Data Link Layer Classification capability
   - Enable Physical Layer Classification
   - Invalid Class in PD Class
   - PSE Status bit definitions
- Sort registers
- Modify comments.
2017-06-07 03:21:31 +00:00
msaitoh db571ad1db Fix typos. 2017-06-07 03:08:44 +00:00
msaitoh cf241ff9b0 Define MII_ADDRBITS and MII_ADDRMASK. 2016-10-28 05:47:16 +00:00
msaitoh b57c77f992 Fix typos reported by yuo@. 2015-07-21 02:04:24 +00:00
msaitoh 0be714dc99 No functional change:
- Fix typo.
- Remove trailing white spaces.
- Capitalize comments.
- Tabify.
- KNF.
2014-06-16 14:43:22 +00:00
msaitoh d13f03981b The bit location of link ability is different between 1000Base-X and others
(See annex 28B.2 and 28D). The old mii.h defined ANAR_X_PAUSE_* macros. Those
macros were named for 1000Base-X, but the bit definitions were not for
1000Base-X but for others (e.g. 1000BaseT). So there was bug in auto
negotiation for 1000Base-X, but there was no bug for other media. Define new
macro named ANAR_PAUSE_* and ANLPAR_PAUSE_* for other than 1000Base-X and fix
the bit definitions of ANAR_X_PAUSE_* and ANLPPAR_X_*. Change some PHY drivers
to use true macro. Same as other *BSDs.
2013-06-16 06:29:08 +00:00
msaitoh 83607aa191 Add the following registers from IEEE 802.3-2009 Clause 22.
- PSE control register(0x0b)
 - PSE status register(0x0c)
 - MMD access control register(0x0d)
 - MMD access address data register(0x0e)
2013-04-15 08:09:48 +00:00
msaitoh 97c93d2b80 Fix typo in comment. 2013-04-03 03:24:27 +00:00
bouyer 6d07b400dc Remove closes 3 & 4 from my licence. Lots of thanks to Soren Jacobsen
for the booring work !
2009-10-19 18:41:07 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
perry f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
thorpej 296c51f110 Correct pause related bits in ANAR and ANLPAR.
From HITOSHI Osada.
2004-04-09 20:39:44 +00:00
thorpej 4a416b823f Fix 1000BASE-X duplex negotiation. That'll teach me to read the
manual more carefully next time.
2001-07-25 22:00:43 +00:00
thorpej 9f63d3cd86 Typo in last. 2001-05-31 03:07:14 +00:00
thorpej f07f44812d The 1000baseT CR and SR are overlapped with the 100base-T2 CR and SR.
Note this in a comment.  Add the 1000baseT CR and SR bits.
2001-05-31 03:06:46 +00:00
matt f5d9baae2f Note that extended status is in register 15 2001-05-15 23:16:40 +00:00
thorpej d3a64bd0d8 Add code to recognize and set media on GMII (Gigabit MII) PHYs.
802.3 doens't specify ANAR or ANLPAR bits for GMII.  Need to
use PHY-specific registers for this, for now, which means we
need specific drivers for the Gigabit-capable PHYs (I think the
most common is the BCM5400).
2001-04-30 19:49:08 +00:00
thorpej 63604adafa Add a bunch of Gig-E definitions. 2001-04-30 19:21:03 +00:00
drochner 9e8def737f Reading the IEEE specs shows that the bits have to be reversed when
mapping an OUI to the MII id registers.
Doing this in the MII_OUI() macro would be too complex, so put it into
a helper function and move the MII id register interpretation stuff
into miivar.h.
2001-03-28 14:13:06 +00:00
thorpej 84dc99fdea Bring some order to the chaos which was the MII code function naming
"conventions".
2000-02-02 08:05:26 +00:00
thorpej be9104dd8d Define ANAR and ANLPAR bits that are used to negotiate the 802.3x PAUSE
feature.
1999-09-29 22:49:33 +00:00
thorpej 3f8be46d4d Near complete rewrite of the MII layer to present an interface compatible
with BSDI's MII layer to device drivers.
1998-08-10 23:55:16 +00:00