Lines Matching +full:half +full:- +full:duplex
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
4 * Copyright 2006-2009 Solarflare Communications Inc.
25 #define MDIO_MMD_AN 7 /* Auto-Negotiation */
58 /* Media-dependent registers. */
59 #define MDIO_PMA_10GBT_SWAPPOL 130 /* 10GBASE-T pair swap & polarity */
60 #define MDIO_PMA_10GBT_TXPWR 131 /* 10GBASE-T TX power control */
61 #define MDIO_PMA_10GBT_SNR 133 /* 10GBASE-T SNR margin, lane A.
62 * Lanes B-D are numbered 134-136. */
63 #define MDIO_PMA_10GBR_FSRT_CSR 147 /* 10GBASE-R fast retrain status and control */
64 #define MDIO_PMA_10GBR_FECABLE 170 /* 10GBASE-R FEC ability */
65 #define MDIO_PCS_10GBX_STAT1 24 /* 10GBASE-X PCS status 1 */
66 #define MDIO_PCS_10GBRT_STAT1 32 /* 10GBASE-R/-T PCS status 1 */
67 #define MDIO_PCS_10GBRT_STAT2 33 /* 10GBASE-R/-T PCS status 2 */
68 #define MDIO_AN_10GBT_CTRL 32 /* 10GBASE-T auto-negotiation control */
69 #define MDIO_AN_10GBT_STAT 33 /* 10GBASE-T auto-negotiation status */
70 #define MDIO_B10L_PMA_CTRL 2294 /* 10BASE-T1L PMA control */
71 #define MDIO_PMA_10T1L_STAT 2295 /* 10BASE-T1L PMA status */
72 #define MDIO_PCS_10T1L_CTRL 2278 /* 10BASE-T1L PCS control */
73 #define MDIO_PMA_PMD_BT1 18 /* BASE-T1 PMA/PMD extended ability */
74 #define MDIO_AN_T1_CTRL 512 /* BASE-T1 AN control */
75 #define MDIO_AN_T1_STAT 513 /* BASE-T1 AN status */
76 #define MDIO_AN_T1_ADV_L 514 /* BASE-T1 AN advertisement register [15:0] */
77 #define MDIO_AN_T1_ADV_M 515 /* BASE-T1 AN advertisement register [31:16] */
78 #define MDIO_AN_T1_ADV_H 516 /* BASE-T1 AN advertisement register [47:32] */
79 #define MDIO_AN_T1_LP_L 517 /* BASE-T1 AN LP Base Page ability register [15:0] */
80 #define MDIO_AN_T1_LP_M 518 /* BASE-T1 AN LP Base Page ability register [31:16] */
81 #define MDIO_AN_T1_LP_H 519 /* BASE-T1 AN LP Base Page ability register [47:32] */
82 #define MDIO_PMA_PMD_BT1_CTRL 2100 /* BASE-T1 PMA/PMD control register */
112 /* 10PASS-TS/2BASE-TL */
120 #define MDIO_STAT1_LPOWERABLE 0x0002 /* Low-power ability */
132 #define MDIO_PMA_SPEED_2B 0x0002 /* 2BASE-TL capable */
133 #define MDIO_PMA_SPEED_10P 0x0004 /* 10PASS-TS capable */
137 #define MDIO_PCS_SPEED_10P2B 0x0002 /* 10PASS-TS/2BASE-TL capable */
157 #define MDIO_PMA_CTRL2_10GBCX4 0x0000 /* 10GBASE-CX4 type */
158 #define MDIO_PMA_CTRL2_10GBEW 0x0001 /* 10GBASE-EW type */
159 #define MDIO_PMA_CTRL2_10GBLW 0x0002 /* 10GBASE-LW type */
160 #define MDIO_PMA_CTRL2_10GBSW 0x0003 /* 10GBASE-SW type */
161 #define MDIO_PMA_CTRL2_10GBLX4 0x0004 /* 10GBASE-LX4 type */
162 #define MDIO_PMA_CTRL2_10GBER 0x0005 /* 10GBASE-ER type */
163 #define MDIO_PMA_CTRL2_10GBLR 0x0006 /* 10GBASE-LR type */
164 #define MDIO_PMA_CTRL2_10GBSR 0x0007 /* 10GBASE-SR type */
165 #define MDIO_PMA_CTRL2_10GBLRM 0x0008 /* 10GBASE-LRM type */
166 #define MDIO_PMA_CTRL2_10GBT 0x0009 /* 10GBASE-T type */
167 #define MDIO_PMA_CTRL2_10GBKX4 0x000a /* 10GBASE-KX4 type */
168 #define MDIO_PMA_CTRL2_10GBKR 0x000b /* 10GBASE-KR type */
169 #define MDIO_PMA_CTRL2_1000BT 0x000c /* 1000BASE-T type */
170 #define MDIO_PMA_CTRL2_1000BKX 0x000d /* 1000BASE-KX type */
171 #define MDIO_PMA_CTRL2_100BTX 0x000e /* 100BASE-TX type */
172 #define MDIO_PMA_CTRL2_10BT 0x000f /* 10BASE-T type */
175 #define MDIO_PMA_CTRL2_BASET1 0x003D /* BASE-T1 type */
177 #define MDIO_PCS_CTRL2_10GBR 0x0000 /* 10GBASE-R type */
178 #define MDIO_PCS_CTRL2_10GBX 0x0001 /* 10GBASE-X type */
179 #define MDIO_PCS_CTRL2_10GBW 0x0002 /* 10GBASE-W type */
180 #define MDIO_PCS_CTRL2_10GBT 0x0003 /* 10GBASE-T type */
188 #define MDIO_PMA_STAT2_10GBEW 0x0002 /* 10GBASE-EW ability */
189 #define MDIO_PMA_STAT2_10GBLW 0x0004 /* 10GBASE-LW ability */
190 #define MDIO_PMA_STAT2_10GBSW 0x0008 /* 10GBASE-SW ability */
191 #define MDIO_PMA_STAT2_10GBLX4 0x0010 /* 10GBASE-LX4 ability */
192 #define MDIO_PMA_STAT2_10GBER 0x0020 /* 10GBASE-ER ability */
193 #define MDIO_PMA_STAT2_10GBLR 0x0040 /* 10GBASE-LR ability */
194 #define MDIO_PMA_STAT2_10GBSR 0x0080 /* 10GBASE-SR ability */
199 #define MDIO_PCS_STAT2_10GBR 0x0001 /* 10GBASE-R capable */
200 #define MDIO_PCS_STAT2_10GBX 0x0002 /* 10GBASE-X capable */
201 #define MDIO_PCS_STAT2_10GBW 0x0004 /* 10GBASE-W capable */
220 #define MDIO_PMA_EXTABLE_10GCX4 0x0001 /* 10GBASE-CX4 ability */
221 #define MDIO_PMA_EXTABLE_10GBLRM 0x0002 /* 10GBASE-LRM ability */
222 #define MDIO_PMA_EXTABLE_10GBT 0x0004 /* 10GBASE-T ability */
223 #define MDIO_PMA_EXTABLE_10GBKX4 0x0008 /* 10GBASE-KX4 ability */
224 #define MDIO_PMA_EXTABLE_10GBKR 0x0010 /* 10GBASE-KR ability */
225 #define MDIO_PMA_EXTABLE_1000BT 0x0020 /* 1000BASE-T ability */
226 #define MDIO_PMA_EXTABLE_1000BKX 0x0040 /* 1000BASE-KX ability */
227 #define MDIO_PMA_EXTABLE_100BTX 0x0080 /* 100BASE-TX ability */
228 #define MDIO_PMA_EXTABLE_10BT 0x0100 /* 10BASE-T ability */
229 #define MDIO_PMA_EXTABLE_BT1 0x0800 /* BASE-T1 ability */
230 #define MDIO_PMA_EXTABLE_NBT 0x4000 /* 2.5/5GBASE-T ability */
239 /* PMA 10GBASE-T pair swap & polarity */
247 /* PMA 10GBASE-T TX power register. */
248 #define MDIO_PMA_10GBT_TXPWR_SHORT 0x0001 /* Short-reach mode */
250 /* PMA 10GBASE-T SNR registers. */
251 /* Value is SNR margin in dB, clamped to range [-127, 127], plus 0x8000. */
255 /* PMA 10GBASE-R FEC ability register. */
259 /* PMA 10GBASE-R Fast Retrain status and control register. */
262 /* PCS 10GBASE-R/-T status register 1. */
265 /* PCS 10GBASE-R/-T status register 2. */
269 /* AN 10GBASE-T control register. */
270 #define MDIO_AN_10GBT_CTRL_ADVFSRT2_5G 0x0020 /* Advertise 2.5GBASE-T fast retrain */
271 #define MDIO_AN_10GBT_CTRL_ADV2_5G 0x0080 /* Advertise 2.5GBASE-T */
272 #define MDIO_AN_10GBT_CTRL_ADV5G 0x0100 /* Advertise 5GBASE-T */
273 #define MDIO_AN_10GBT_CTRL_ADV10G 0x1000 /* Advertise 10GBASE-T */
275 /* AN 10GBASE-T status register. */
286 /* 10BASE-T1L PMA control */
289 #define MDIO_PMA_10T1L_CTRL_LOW_POWER 0x0800 /* Low-power mode */
294 /* 10BASE-T1L PMA status register. */
300 #define MDIO_PMA_10T1L_STAT_LOW_POWER 0x0800 /* PMA has low-power ability */
304 /* 10BASE-T1L PCS control register. */
308 /* BASE-T1 PMA/PMD extended ability register. */
309 #define MDIO_PMA_PMD_BT1_B10L_ABLE 0x0004 /* 10BASE-T1L Ability */
311 /* BASE-T1 auto-negotiation advertisement register [15:0] */
319 /* BASE-T1 auto-negotiation advertisement register [31:16] */
320 #define MDIO_AN_T1_ADV_M_B10L 0x4000 /* device is compatible with 10BASE-T1L */
323 /* BASE-T1 auto-negotiation advertisement register [47:32] */
324 #define MDIO_AN_T1_ADV_H_10L_TX_HI_REQ 0x1000 /* 10BASE-T1L High Level Transmit Request */
325 #define MDIO_AN_T1_ADV_H_10L_TX_HI 0x2000 /* 10BASE-T1L High Level Transmit Ability */
327 /* BASE-T1 AN LP Base Page ability register [15:0] */
335 /* BASE-T1 AN LP Base Page ability register [31:16] */
337 #define MDIO_AN_T1_LP_M_B10L 0x4000 /* LP is compatible with 10BASE-T1L */
339 /* BASE-T1 AN LP Base Page ability register [47:32] */
340 #define MDIO_AN_T1_LP_H_10L_TX_HI_REQ 0x1000 /* 10BASE-T1L High Level LP Transmit Request */
341 #define MDIO_AN_T1_LP_H_10L_TX_HI 0x2000 /* 10BASE-T1L High Level LP Transmit Ability */
343 /* BASE-T1 PMA/PMD control register */
344 #define MDIO_PMA_PMD_BT1_CTRL_CFG_MST 0x4000 /* MASTER-SLAVE config value */
354 /* Note: the two defines above can be potentially used by the user-land
373 /* AN MultiGBASE-T AN control 2 */
413 /* UsxgmiiChannelInfo[15:0] for USXGMII in-band auto-negotiation.*/
417 #define MDIO_USXGMII_FULL_DUPLEX 0x1000 /* USXGMII full duplex */
418 #define MDIO_USXGMII_DPX_SPD_MASK 0x1e00 /* USXGMII duplex and speed bits */
420 #define MDIO_USXGMII_10HALF 0x0000 /* 10Mbps half-duplex */
421 #define MDIO_USXGMII_10FULL 0x1000 /* 10Mbps full-duplex */
423 #define MDIO_USXGMII_100HALF 0x0200 /* 100Mbps half-duplex */
424 #define MDIO_USXGMII_100FULL 0x1200 /* 100Mbps full-duplex */
426 #define MDIO_USXGMII_1000HALF 0x0400 /* 1000Mbps half-duplex */
427 #define MDIO_USXGMII_1000FULL 0x1400 /* 1000Mbps full-duplex */
429 #define MDIO_USXGMII_10GHALF 0x0600 /* 10Gbps half-duplex */
430 #define MDIO_USXGMII_10GFULL 0x1600 /* 10Gbps full-duplex */
432 #define MDIO_USXGMII_2500HALF 0x0800 /* 2500Mbps half-duplex */
433 #define MDIO_USXGMII_2500FULL 0x1800 /* 2500Mbps full-duplex */
435 #define MDIO_USXGMII_5000HALF 0x0a00 /* 5000Mbps half-duplex */
436 #define MDIO_USXGMII_5000FULL 0x1a00 /* 5000Mbps full-duplex */
437 #define MDIO_USXGMII_LINK 0x8000 /* PHY link with copper-side partner */