Skip to content

Commit c4471ad

Browse files
mwalledavem330
authored andcommitted
net: phy: add USXGMII link partner ability constants
The constants are taken from the USXGMII Singleport Copper Interface specification. The naming are based on the SGMII ones, but with an MDIO_ prefix. Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent a050d82 commit c4471ad

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

include/uapi/linux/mdio.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,4 +324,30 @@ static inline __u16 mdio_phy_id_c45(int prtad, int devad)
324324
return MDIO_PHY_ID_C45 | (prtad << 5) | devad;
325325
}
326326

327+
/* UsxgmiiChannelInfo[15:0] for USXGMII in-band auto-negotiation.*/
328+
#define MDIO_USXGMII_EEE_CLK_STP 0x0080 /* EEE clock stop supported */
329+
#define MDIO_USXGMII_EEE 0x0100 /* EEE supported */
330+
#define MDIO_USXGMII_SPD_MASK 0x0e00 /* USXGMII speed mask */
331+
#define MDIO_USXGMII_FULL_DUPLEX 0x1000 /* USXGMII full duplex */
332+
#define MDIO_USXGMII_DPX_SPD_MASK 0x1e00 /* USXGMII duplex and speed bits */
333+
#define MDIO_USXGMII_10 0x0000 /* 10Mbps */
334+
#define MDIO_USXGMII_10HALF 0x0000 /* 10Mbps half-duplex */
335+
#define MDIO_USXGMII_10FULL 0x1000 /* 10Mbps full-duplex */
336+
#define MDIO_USXGMII_100 0x0200 /* 100Mbps */
337+
#define MDIO_USXGMII_100HALF 0x0200 /* 100Mbps half-duplex */
338+
#define MDIO_USXGMII_100FULL 0x1200 /* 100Mbps full-duplex */
339+
#define MDIO_USXGMII_1000 0x0400 /* 1000Mbps */
340+
#define MDIO_USXGMII_1000HALF 0x0400 /* 1000Mbps half-duplex */
341+
#define MDIO_USXGMII_1000FULL 0x1400 /* 1000Mbps full-duplex */
342+
#define MDIO_USXGMII_10G 0x0600 /* 10Gbps */
343+
#define MDIO_USXGMII_10GHALF 0x0600 /* 10Gbps half-duplex */
344+
#define MDIO_USXGMII_10GFULL 0x1600 /* 10Gbps full-duplex */
345+
#define MDIO_USXGMII_2500 0x0800 /* 2500Mbps */
346+
#define MDIO_USXGMII_2500HALF 0x0800 /* 2500Mbps half-duplex */
347+
#define MDIO_USXGMII_2500FULL 0x1800 /* 2500Mbps full-duplex */
348+
#define MDIO_USXGMII_5000 0x0a00 /* 5000Mbps */
349+
#define MDIO_USXGMII_5000HALF 0x0a00 /* 5000Mbps half-duplex */
350+
#define MDIO_USXGMII_5000FULL 0x1a00 /* 5000Mbps full-duplex */
351+
#define MDIO_USXGMII_LINK 0x8000 /* PHY link with copper-side partner */
352+
327353
#endif /* _UAPI__LINUX_MDIO_H__ */

0 commit comments

Comments
 (0)