Skip to content

Commit 99b60d5

Browse files
hkallweitdavem330
authored andcommitted
net: phy: add EEE-related constants
Add EEE-related constants. This includes the new MMD EEE registers for NBase-T / 802.3bz. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 607f625 commit 99b60d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/uapi/linux/mdio.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,14 @@
4545
#define MDIO_AN_ADVERTISE 16 /* AN advertising (base page) */
4646
#define MDIO_AN_LPA 19 /* AN LP abilities (base page) */
4747
#define MDIO_PCS_EEE_ABLE 20 /* EEE Capability register */
48+
#define MDIO_PCS_EEE_ABLE2 21 /* EEE Capability register 2 */
4849
#define MDIO_PMA_NG_EXTABLE 21 /* 2.5G/5G PMA/PMD extended ability */
4950
#define MDIO_PCS_EEE_WK_ERR 22 /* EEE wake error counter */
5051
#define MDIO_PHYXS_LNSTAT 24 /* PHY XGXS lane state */
5152
#define MDIO_AN_EEE_ADV 60 /* EEE advertisement */
5253
#define MDIO_AN_EEE_LPABLE 61 /* EEE link partner ability */
54+
#define MDIO_AN_EEE_ADV2 62 /* EEE advertisement 2 */
55+
#define MDIO_AN_EEE_LPABLE2 63 /* EEE link partner ability 2 */
5356

5457
/* Media-dependent registers. */
5558
#define MDIO_PMA_10GBT_SWAPPOL 130 /* 10GBASE-T pair swap & polarity */
@@ -276,6 +279,13 @@
276279
#define MDIO_EEE_1000KX 0x0010 /* 1000KX EEE cap */
277280
#define MDIO_EEE_10GKX4 0x0020 /* 10G KX4 EEE cap */
278281
#define MDIO_EEE_10GKR 0x0040 /* 10G KR EEE cap */
282+
#define MDIO_EEE_40GR_FW 0x0100 /* 40G R fast wake */
283+
#define MDIO_EEE_40GR_DS 0x0200 /* 40G R deep sleep */
284+
#define MDIO_EEE_100GR_FW 0x1000 /* 100G R fast wake */
285+
#define MDIO_EEE_100GR_DS 0x2000 /* 100G R deep sleep */
286+
287+
#define MDIO_EEE_2_5GT 0x0001 /* 2.5GT EEE cap */
288+
#define MDIO_EEE_5GT 0x0002 /* 5GT EEE cap */
279289

280290
/* 2.5G/5G Extended abilities register. */
281291
#define MDIO_PMA_NG_EXTABLE_2_5GBT 0x0001 /* 2.5GBASET ability */

0 commit comments

Comments
 (0)