Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
mdio.h File Reference
#include <linux/types.h>
#include <linux/mii.h>

Go to the source code of this file.

Macros

#define MDIO_MMD_PMAPMD
 
#define MDIO_MMD_WIS   2 /* WAN Interface Sublayer */
 
#define MDIO_MMD_PCS   3 /* Physical Coding Sublayer */
 
#define MDIO_MMD_PHYXS   4 /* PHY Extender Sublayer */
 
#define MDIO_MMD_DTEXS   5 /* DTE Extender Sublayer */
 
#define MDIO_MMD_TC   6 /* Transmission Convergence */
 
#define MDIO_MMD_AN   7 /* Auto-Negotiation */
 
#define MDIO_MMD_C22EXT   29 /* Clause 22 extension */
 
#define MDIO_MMD_VEND1   30 /* Vendor specific 1 */
 
#define MDIO_MMD_VEND2   31 /* Vendor specific 2 */
 
#define MDIO_CTRL1   MII_BMCR
 
#define MDIO_STAT1   MII_BMSR
 
#define MDIO_DEVID1   MII_PHYSID1
 
#define MDIO_DEVID2   MII_PHYSID2
 
#define MDIO_SPEED   4 /* Speed ability */
 
#define MDIO_DEVS1   5 /* Devices in package */
 
#define MDIO_DEVS2   6
 
#define MDIO_CTRL2   7 /* 10G control 2 */
 
#define MDIO_STAT2   8 /* 10G status 2 */
 
#define MDIO_PMA_TXDIS   9 /* 10G PMA/PMD transmit disable */
 
#define MDIO_PMA_RXDET   10 /* 10G PMA/PMD receive signal detect */
 
#define MDIO_PMA_EXTABLE   11 /* 10G PMA/PMD extended ability */
 
#define MDIO_PKGID1   14 /* Package identifier */
 
#define MDIO_PKGID2   15
 
#define MDIO_AN_ADVERTISE   16 /* AN advertising (base page) */
 
#define MDIO_AN_LPA   19 /* AN LP abilities (base page) */
 
#define MDIO_PCS_EEE_ABLE   20 /* EEE Capability register */
 
#define MDIO_PCS_EEE_WK_ERR   22 /* EEE wake error counter */
 
#define MDIO_PHYXS_LNSTAT   24 /* PHY XGXS lane state */
 
#define MDIO_AN_EEE_ADV   60 /* EEE advertisement */
 
#define MDIO_AN_EEE_LPABLE   61 /* EEE link partner ability */
 
#define MDIO_PMA_10GBT_SWAPPOL   130 /* 10GBASE-T pair swap & polarity */
 
#define MDIO_PMA_10GBT_TXPWR   131 /* 10GBASE-T TX power control */
 
#define MDIO_PMA_10GBT_SNR
 
#define MDIO_PMA_10GBR_FECABLE   170 /* 10GBASE-R FEC ability */
 
#define MDIO_PCS_10GBX_STAT1   24 /* 10GBASE-X PCS status 1 */
 
#define MDIO_PCS_10GBRT_STAT1   32 /* 10GBASE-R/-T PCS status 1 */
 
#define MDIO_PCS_10GBRT_STAT2   33 /* 10GBASE-R/-T PCS status 2 */
 
#define MDIO_AN_10GBT_CTRL   32 /* 10GBASE-T auto-negotiation control */
 
#define MDIO_AN_10GBT_STAT   33 /* 10GBASE-T auto-negotiation status */
 
#define MDIO_PMA_LASI_RXCTRL   0x9000 /* RX_ALARM control */
 
#define MDIO_PMA_LASI_TXCTRL   0x9001 /* TX_ALARM control */
 
#define MDIO_PMA_LASI_CTRL   0x9002 /* LASI control */
 
#define MDIO_PMA_LASI_RXSTAT   0x9003 /* RX_ALARM status */
 
#define MDIO_PMA_LASI_TXSTAT   0x9004 /* TX_ALARM status */
 
#define MDIO_PMA_LASI_STAT   0x9005 /* LASI status */
 
#define MDIO_CTRL1_SPEEDSELEXT   (BMCR_SPEED1000 | BMCR_SPEED100)
 
#define MDIO_CTRL1_SPEEDSEL   (MDIO_CTRL1_SPEEDSELEXT | 0x003c)
 
#define MDIO_CTRL1_FULLDPLX   BMCR_FULLDPLX
 
#define MDIO_CTRL1_LPOWER   BMCR_PDOWN
 
#define MDIO_CTRL1_RESET   BMCR_RESET
 
#define MDIO_PMA_CTRL1_LOOPBACK   0x0001
 
#define MDIO_PMA_CTRL1_SPEED1000   BMCR_SPEED1000
 
#define MDIO_PMA_CTRL1_SPEED100   BMCR_SPEED100
 
#define MDIO_PCS_CTRL1_LOOPBACK   BMCR_LOOPBACK
 
#define MDIO_PHYXS_CTRL1_LOOPBACK   BMCR_LOOPBACK
 
#define MDIO_AN_CTRL1_RESTART   BMCR_ANRESTART
 
#define MDIO_AN_CTRL1_ENABLE   BMCR_ANENABLE
 
#define MDIO_AN_CTRL1_XNP   0x2000 /* Enable extended next page */
 
#define MDIO_PCS_CTRL1_CLKSTOP_EN   0x400 /* Stop the clock during LPI */
 
#define MDIO_CTRL1_SPEED10G   (MDIO_CTRL1_SPEEDSELEXT | 0x00)
 
#define MDIO_CTRL1_SPEED10P2B   (MDIO_CTRL1_SPEEDSELEXT | 0x04)
 
#define MDIO_STAT1_LPOWERABLE   0x0002 /* Low-power ability */
 
#define MDIO_STAT1_LSTATUS   BMSR_LSTATUS
 
#define MDIO_STAT1_FAULT   0x0080 /* Fault */
 
#define MDIO_AN_STAT1_LPABLE   0x0001 /* Link partner AN ability */
 
#define MDIO_AN_STAT1_ABLE   BMSR_ANEGCAPABLE
 
#define MDIO_AN_STAT1_RFAULT   BMSR_RFAULT
 
#define MDIO_AN_STAT1_COMPLETE   BMSR_ANEGCOMPLETE
 
#define MDIO_AN_STAT1_PAGE   0x0040 /* Page received */
 
#define MDIO_AN_STAT1_XNP   0x0080 /* Extended next page status */
 
#define MDIO_SPEED_10G   0x0001 /* 10G capable */
 
#define MDIO_PMA_SPEED_2B   0x0002 /* 2BASE-TL capable */
 
#define MDIO_PMA_SPEED_10P   0x0004 /* 10PASS-TS capable */
 
#define MDIO_PMA_SPEED_1000   0x0010 /* 1000M capable */
 
#define MDIO_PMA_SPEED_100   0x0020 /* 100M capable */
 
#define MDIO_PMA_SPEED_10   0x0040 /* 10M capable */
 
#define MDIO_PCS_SPEED_10P2B   0x0002 /* 10PASS-TS/2BASE-TL capable */
 
#define MDIO_DEVS_PRESENT(devad)   (1 << (devad))
 
#define MDIO_DEVS_PMAPMD   MDIO_DEVS_PRESENT(MDIO_MMD_PMAPMD)
 
#define MDIO_DEVS_WIS   MDIO_DEVS_PRESENT(MDIO_MMD_WIS)
 
#define MDIO_DEVS_PCS   MDIO_DEVS_PRESENT(MDIO_MMD_PCS)
 
#define MDIO_DEVS_PHYXS   MDIO_DEVS_PRESENT(MDIO_MMD_PHYXS)
 
#define MDIO_DEVS_DTEXS   MDIO_DEVS_PRESENT(MDIO_MMD_DTEXS)
 
#define MDIO_DEVS_TC   MDIO_DEVS_PRESENT(MDIO_MMD_TC)
 
#define MDIO_DEVS_AN   MDIO_DEVS_PRESENT(MDIO_MMD_AN)
 
#define MDIO_DEVS_C22EXT   MDIO_DEVS_PRESENT(MDIO_MMD_C22EXT)
 
#define MDIO_PMA_CTRL2_TYPE   0x000f /* PMA/PMD type selection */
 
#define MDIO_PMA_CTRL2_10GBCX4   0x0000 /* 10GBASE-CX4 type */
 
#define MDIO_PMA_CTRL2_10GBEW   0x0001 /* 10GBASE-EW type */
 
#define MDIO_PMA_CTRL2_10GBLW   0x0002 /* 10GBASE-LW type */
 
#define MDIO_PMA_CTRL2_10GBSW   0x0003 /* 10GBASE-SW type */
 
#define MDIO_PMA_CTRL2_10GBLX4   0x0004 /* 10GBASE-LX4 type */
 
#define MDIO_PMA_CTRL2_10GBER   0x0005 /* 10GBASE-ER type */
 
#define MDIO_PMA_CTRL2_10GBLR   0x0006 /* 10GBASE-LR type */
 
#define MDIO_PMA_CTRL2_10GBSR   0x0007 /* 10GBASE-SR type */
 
#define MDIO_PMA_CTRL2_10GBLRM   0x0008 /* 10GBASE-LRM type */
 
#define MDIO_PMA_CTRL2_10GBT   0x0009 /* 10GBASE-T type */
 
#define MDIO_PMA_CTRL2_10GBKX4   0x000a /* 10GBASE-KX4 type */
 
#define MDIO_PMA_CTRL2_10GBKR   0x000b /* 10GBASE-KR type */
 
#define MDIO_PMA_CTRL2_1000BT   0x000c /* 1000BASE-T type */
 
#define MDIO_PMA_CTRL2_1000BKX   0x000d /* 1000BASE-KX type */
 
#define MDIO_PMA_CTRL2_100BTX   0x000e /* 100BASE-TX type */
 
#define MDIO_PMA_CTRL2_10BT   0x000f /* 10BASE-T type */
 
#define MDIO_PCS_CTRL2_TYPE   0x0003 /* PCS type selection */
 
#define MDIO_PCS_CTRL2_10GBR   0x0000 /* 10GBASE-R type */
 
#define MDIO_PCS_CTRL2_10GBX   0x0001 /* 10GBASE-X type */
 
#define MDIO_PCS_CTRL2_10GBW   0x0002 /* 10GBASE-W type */
 
#define MDIO_PCS_CTRL2_10GBT   0x0003 /* 10GBASE-T type */
 
#define MDIO_STAT2_RXFAULT   0x0400 /* Receive fault */
 
#define MDIO_STAT2_TXFAULT   0x0800 /* Transmit fault */
 
#define MDIO_STAT2_DEVPRST   0xc000 /* Device present */
 
#define MDIO_STAT2_DEVPRST_VAL   0x8000 /* Device present value */
 
#define MDIO_PMA_STAT2_LBABLE   0x0001 /* PMA loopback ability */
 
#define MDIO_PMA_STAT2_10GBEW   0x0002 /* 10GBASE-EW ability */
 
#define MDIO_PMA_STAT2_10GBLW   0x0004 /* 10GBASE-LW ability */
 
#define MDIO_PMA_STAT2_10GBSW   0x0008 /* 10GBASE-SW ability */
 
#define MDIO_PMA_STAT2_10GBLX4   0x0010 /* 10GBASE-LX4 ability */
 
#define MDIO_PMA_STAT2_10GBER   0x0020 /* 10GBASE-ER ability */
 
#define MDIO_PMA_STAT2_10GBLR   0x0040 /* 10GBASE-LR ability */
 
#define MDIO_PMA_STAT2_10GBSR   0x0080 /* 10GBASE-SR ability */
 
#define MDIO_PMD_STAT2_TXDISAB   0x0100 /* PMD TX disable ability */
 
#define MDIO_PMA_STAT2_EXTABLE   0x0200 /* Extended abilities */
 
#define MDIO_PMA_STAT2_RXFLTABLE   0x1000 /* Receive fault ability */
 
#define MDIO_PMA_STAT2_TXFLTABLE   0x2000 /* Transmit fault ability */
 
#define MDIO_PCS_STAT2_10GBR   0x0001 /* 10GBASE-R capable */
 
#define MDIO_PCS_STAT2_10GBX   0x0002 /* 10GBASE-X capable */
 
#define MDIO_PCS_STAT2_10GBW   0x0004 /* 10GBASE-W capable */
 
#define MDIO_PCS_STAT2_RXFLTABLE   0x1000 /* Receive fault ability */
 
#define MDIO_PCS_STAT2_TXFLTABLE   0x2000 /* Transmit fault ability */
 
#define MDIO_PMD_TXDIS_GLOBAL   0x0001 /* Global PMD TX disable */
 
#define MDIO_PMD_TXDIS_0   0x0002 /* PMD TX disable 0 */
 
#define MDIO_PMD_TXDIS_1   0x0004 /* PMD TX disable 1 */
 
#define MDIO_PMD_TXDIS_2   0x0008 /* PMD TX disable 2 */
 
#define MDIO_PMD_TXDIS_3   0x0010 /* PMD TX disable 3 */
 
#define MDIO_PMD_RXDET_GLOBAL   0x0001 /* Global PMD RX signal detect */
 
#define MDIO_PMD_RXDET_0   0x0002 /* PMD RX signal detect 0 */
 
#define MDIO_PMD_RXDET_1   0x0004 /* PMD RX signal detect 1 */
 
#define MDIO_PMD_RXDET_2   0x0008 /* PMD RX signal detect 2 */
 
#define MDIO_PMD_RXDET_3   0x0010 /* PMD RX signal detect 3 */
 
#define MDIO_PMA_EXTABLE_10GCX4   0x0001 /* 10GBASE-CX4 ability */
 
#define MDIO_PMA_EXTABLE_10GBLRM   0x0002 /* 10GBASE-LRM ability */
 
#define MDIO_PMA_EXTABLE_10GBT   0x0004 /* 10GBASE-T ability */
 
#define MDIO_PMA_EXTABLE_10GBKX4   0x0008 /* 10GBASE-KX4 ability */
 
#define MDIO_PMA_EXTABLE_10GBKR   0x0010 /* 10GBASE-KR ability */
 
#define MDIO_PMA_EXTABLE_1000BT   0x0020 /* 1000BASE-T ability */
 
#define MDIO_PMA_EXTABLE_1000BKX   0x0040 /* 1000BASE-KX ability */
 
#define MDIO_PMA_EXTABLE_100BTX   0x0080 /* 100BASE-TX ability */
 
#define MDIO_PMA_EXTABLE_10BT   0x0100 /* 10BASE-T ability */
 
#define MDIO_PHYXS_LNSTAT_SYNC0   0x0001
 
#define MDIO_PHYXS_LNSTAT_SYNC1   0x0002
 
#define MDIO_PHYXS_LNSTAT_SYNC2   0x0004
 
#define MDIO_PHYXS_LNSTAT_SYNC3   0x0008
 
#define MDIO_PHYXS_LNSTAT_ALIGN   0x1000
 
#define MDIO_PMA_10GBT_SWAPPOL_ABNX   0x0001 /* Pair A/B uncrossed */
 
#define MDIO_PMA_10GBT_SWAPPOL_CDNX   0x0002 /* Pair C/D uncrossed */
 
#define MDIO_PMA_10GBT_SWAPPOL_AREV   0x0100 /* Pair A polarity reversed */
 
#define MDIO_PMA_10GBT_SWAPPOL_BREV   0x0200 /* Pair B polarity reversed */
 
#define MDIO_PMA_10GBT_SWAPPOL_CREV   0x0400 /* Pair C polarity reversed */
 
#define MDIO_PMA_10GBT_SWAPPOL_DREV   0x0800 /* Pair D polarity reversed */
 
#define MDIO_PMA_10GBT_TXPWR_SHORT   0x0001 /* Short-reach mode */
 
#define MDIO_PMA_10GBT_SNR_BIAS   0x8000
 
#define MDIO_PMA_10GBT_SNR_MAX   127
 
#define MDIO_PMA_10GBR_FECABLE_ABLE   0x0001 /* FEC ability */
 
#define MDIO_PMA_10GBR_FECABLE_ERRABLE   0x0002 /* FEC error indic. ability */
 
#define MDIO_PCS_10GBRT_STAT1_BLKLK   0x0001 /* Block lock attained */
 
#define MDIO_PCS_10GBRT_STAT2_ERR   0x00ff
 
#define MDIO_PCS_10GBRT_STAT2_BER   0x3f00
 
#define MDIO_AN_10GBT_CTRL_ADV10G   0x1000 /* Advertise 10GBASE-T */
 
#define MDIO_AN_10GBT_STAT_LPTRR   0x0200 /* LP training reset req. */
 
#define MDIO_AN_10GBT_STAT_LPLTABLE   0x0400 /* LP loop timing ability */
 
#define MDIO_AN_10GBT_STAT_LP10G   0x0800 /* LP is 10GBT capable */
 
#define MDIO_AN_10GBT_STAT_REMOK   0x1000 /* Remote OK */
 
#define MDIO_AN_10GBT_STAT_LOCOK   0x2000 /* Local OK */
 
#define MDIO_AN_10GBT_STAT_MS   0x4000 /* Master/slave config */
 
#define MDIO_AN_10GBT_STAT_MSFLT   0x8000 /* Master/slave config fault */
 
#define MDIO_AN_EEE_ADV_100TX   0x0002 /* Advertise 100TX EEE cap */
 
#define MDIO_AN_EEE_ADV_1000T   0x0004 /* Advertise 1000T EEE cap */
 
#define MDIO_EEE_100TX   MDIO_AN_EEE_ADV_100TX /* 100TX EEE cap */
 
#define MDIO_EEE_1000T   MDIO_AN_EEE_ADV_1000T /* 1000T EEE cap */
 
#define MDIO_EEE_10GT   0x0008 /* 10GT EEE cap */
 
#define MDIO_EEE_1000KX   0x0010 /* 1000KX EEE cap */
 
#define MDIO_EEE_10GKX4   0x0020 /* 10G KX4 EEE cap */
 
#define MDIO_EEE_10GKR   0x0040 /* 10G KR EEE cap */
 
#define MDIO_PMA_LASI_RX_PHYXSLFLT   0x0001 /* PHY XS RX local fault */
 
#define MDIO_PMA_LASI_RX_PCSLFLT   0x0008 /* PCS RX local fault */
 
#define MDIO_PMA_LASI_RX_PMALFLT   0x0010 /* PMA/PMD RX local fault */
 
#define MDIO_PMA_LASI_RX_OPTICPOWERFLT   0x0020 /* RX optical power fault */
 
#define MDIO_PMA_LASI_RX_WISLFLT   0x0200 /* WIS local fault */
 
#define MDIO_PMA_LASI_TX_PHYXSLFLT   0x0001 /* PHY XS TX local fault */
 
#define MDIO_PMA_LASI_TX_PCSLFLT   0x0008 /* PCS TX local fault */
 
#define MDIO_PMA_LASI_TX_PMALFLT   0x0010 /* PMA/PMD TX local fault */
 
#define MDIO_PMA_LASI_TX_LASERPOWERFLT   0x0080 /* Laser output power fault */
 
#define MDIO_PMA_LASI_TX_LASERTEMPFLT   0x0100 /* Laser temperature fault */
 
#define MDIO_PMA_LASI_TX_LASERBICURRFLT   0x0200 /* Laser bias current fault */
 
#define MDIO_PMA_LASI_LSALARM   0x0001 /* LS_ALARM enable/status */
 
#define MDIO_PMA_LASI_TXALARM   0x0002 /* TX_ALARM enable/status */
 
#define MDIO_PMA_LASI_RXALARM   0x0004 /* RX_ALARM enable/status */
 
#define MDIO_PHY_ID_C45   0x8000
 
#define MDIO_PHY_ID_PRTAD   0x03e0
 
#define MDIO_PHY_ID_DEVAD   0x001f
 
#define MDIO_PHY_ID_C45_MASK   (MDIO_PHY_ID_C45 | MDIO_PHY_ID_PRTAD | MDIO_PHY_ID_DEVAD)
 

Macro Definition Documentation

#define MDIO_AN_10GBT_CTRL   32 /* 10GBASE-T auto-negotiation control */

Definition at line 59 of file mdio.h.

#define MDIO_AN_10GBT_CTRL_ADV10G   0x1000 /* Advertise 10GBASE-T */

Definition at line 231 of file mdio.h.

#define MDIO_AN_10GBT_STAT   33 /* 10GBASE-T auto-negotiation status */

Definition at line 60 of file mdio.h.

#define MDIO_AN_10GBT_STAT_LOCOK   0x2000 /* Local OK */

Definition at line 238 of file mdio.h.

#define MDIO_AN_10GBT_STAT_LP10G   0x0800 /* LP is 10GBT capable */

Definition at line 236 of file mdio.h.

#define MDIO_AN_10GBT_STAT_LPLTABLE   0x0400 /* LP loop timing ability */

Definition at line 235 of file mdio.h.

#define MDIO_AN_10GBT_STAT_LPTRR   0x0200 /* LP training reset req. */

Definition at line 234 of file mdio.h.

#define MDIO_AN_10GBT_STAT_MS   0x4000 /* Master/slave config */

Definition at line 239 of file mdio.h.

#define MDIO_AN_10GBT_STAT_MSFLT   0x8000 /* Master/slave config fault */

Definition at line 240 of file mdio.h.

#define MDIO_AN_10GBT_STAT_REMOK   0x1000 /* Remote OK */

Definition at line 237 of file mdio.h.

#define MDIO_AN_ADVERTISE   16 /* AN advertising (base page) */

Definition at line 43 of file mdio.h.

#define MDIO_AN_CTRL1_ENABLE   BMCR_ANENABLE

Definition at line 84 of file mdio.h.

#define MDIO_AN_CTRL1_RESTART   BMCR_ANRESTART

Definition at line 83 of file mdio.h.

#define MDIO_AN_CTRL1_XNP   0x2000 /* Enable extended next page */

Definition at line 85 of file mdio.h.

#define MDIO_AN_EEE_ADV   60 /* EEE advertisement */

Definition at line 48 of file mdio.h.

#define MDIO_AN_EEE_ADV_1000T   0x0004 /* Advertise 1000T EEE cap */

Definition at line 249 of file mdio.h.

#define MDIO_AN_EEE_ADV_100TX   0x0002 /* Advertise 100TX EEE cap */

Definition at line 248 of file mdio.h.

#define MDIO_AN_EEE_LPABLE   61 /* EEE link partner ability */

Definition at line 49 of file mdio.h.

#define MDIO_AN_LPA   19 /* AN LP abilities (base page) */

Definition at line 44 of file mdio.h.

#define MDIO_AN_STAT1_ABLE   BMSR_ANEGCAPABLE

Definition at line 98 of file mdio.h.

#define MDIO_AN_STAT1_COMPLETE   BMSR_ANEGCOMPLETE

Definition at line 100 of file mdio.h.

#define MDIO_AN_STAT1_LPABLE   0x0001 /* Link partner AN ability */

Definition at line 97 of file mdio.h.

#define MDIO_AN_STAT1_PAGE   0x0040 /* Page received */

Definition at line 101 of file mdio.h.

#define MDIO_AN_STAT1_RFAULT   BMSR_RFAULT

Definition at line 99 of file mdio.h.

#define MDIO_AN_STAT1_XNP   0x0080 /* Extended next page status */

Definition at line 102 of file mdio.h.

#define MDIO_CTRL1   MII_BMCR

Definition at line 29 of file mdio.h.

#define MDIO_CTRL1_FULLDPLX   BMCR_FULLDPLX

Definition at line 75 of file mdio.h.

#define MDIO_CTRL1_LPOWER   BMCR_PDOWN

Definition at line 76 of file mdio.h.

#define MDIO_CTRL1_RESET   BMCR_RESET

Definition at line 77 of file mdio.h.

#define MDIO_CTRL1_SPEED10G   (MDIO_CTRL1_SPEEDSELEXT | 0x00)

Definition at line 89 of file mdio.h.

#define MDIO_CTRL1_SPEED10P2B   (MDIO_CTRL1_SPEEDSELEXT | 0x04)

Definition at line 91 of file mdio.h.

#define MDIO_CTRL1_SPEEDSEL   (MDIO_CTRL1_SPEEDSELEXT | 0x003c)

Definition at line 74 of file mdio.h.

#define MDIO_CTRL1_SPEEDSELEXT   (BMCR_SPEED1000 | BMCR_SPEED100)

Definition at line 72 of file mdio.h.

#define MDIO_CTRL2   7 /* 10G control 2 */

Definition at line 36 of file mdio.h.

#define MDIO_DEVID1   MII_PHYSID1

Definition at line 31 of file mdio.h.

#define MDIO_DEVID2   MII_PHYSID2

Definition at line 32 of file mdio.h.

#define MDIO_DEVS1   5 /* Devices in package */

Definition at line 34 of file mdio.h.

#define MDIO_DEVS2   6

Definition at line 35 of file mdio.h.

#define MDIO_DEVS_AN   MDIO_DEVS_PRESENT(MDIO_MMD_AN)

Definition at line 121 of file mdio.h.

#define MDIO_DEVS_C22EXT   MDIO_DEVS_PRESENT(MDIO_MMD_C22EXT)

Definition at line 122 of file mdio.h.

#define MDIO_DEVS_DTEXS   MDIO_DEVS_PRESENT(MDIO_MMD_DTEXS)

Definition at line 119 of file mdio.h.

#define MDIO_DEVS_PCS   MDIO_DEVS_PRESENT(MDIO_MMD_PCS)

Definition at line 117 of file mdio.h.

#define MDIO_DEVS_PHYXS   MDIO_DEVS_PRESENT(MDIO_MMD_PHYXS)

Definition at line 118 of file mdio.h.

#define MDIO_DEVS_PMAPMD   MDIO_DEVS_PRESENT(MDIO_MMD_PMAPMD)

Definition at line 115 of file mdio.h.

#define MDIO_DEVS_PRESENT (   devad)    (1 << (devad))

Definition at line 114 of file mdio.h.

#define MDIO_DEVS_TC   MDIO_DEVS_PRESENT(MDIO_MMD_TC)

Definition at line 120 of file mdio.h.

#define MDIO_DEVS_WIS   MDIO_DEVS_PRESENT(MDIO_MMD_WIS)

Definition at line 116 of file mdio.h.

#define MDIO_EEE_1000KX   0x0010 /* 1000KX EEE cap */

Definition at line 258 of file mdio.h.

#define MDIO_EEE_1000T   MDIO_AN_EEE_ADV_1000T /* 1000T EEE cap */

Definition at line 256 of file mdio.h.

#define MDIO_EEE_100TX   MDIO_AN_EEE_ADV_100TX /* 100TX EEE cap */

Definition at line 255 of file mdio.h.

#define MDIO_EEE_10GKR   0x0040 /* 10G KR EEE cap */

Definition at line 260 of file mdio.h.

#define MDIO_EEE_10GKX4   0x0020 /* 10G KX4 EEE cap */

Definition at line 259 of file mdio.h.

#define MDIO_EEE_10GT   0x0008 /* 10GT EEE cap */

Definition at line 257 of file mdio.h.

#define MDIO_MMD_AN   7 /* Auto-Negotiation */

Definition at line 23 of file mdio.h.

#define MDIO_MMD_C22EXT   29 /* Clause 22 extension */

Definition at line 24 of file mdio.h.

#define MDIO_MMD_DTEXS   5 /* DTE Extender Sublayer */

Definition at line 21 of file mdio.h.

#define MDIO_MMD_PCS   3 /* Physical Coding Sublayer */

Definition at line 19 of file mdio.h.

#define MDIO_MMD_PHYXS   4 /* PHY Extender Sublayer */

Definition at line 20 of file mdio.h.

#define MDIO_MMD_PMAPMD
Value:
1 /* Physical Medium Attachment/
* Physical Medium Dependent */

Definition at line 17 of file mdio.h.

#define MDIO_MMD_TC   6 /* Transmission Convergence */

Definition at line 22 of file mdio.h.

#define MDIO_MMD_VEND1   30 /* Vendor specific 1 */

Definition at line 25 of file mdio.h.

#define MDIO_MMD_VEND2   31 /* Vendor specific 2 */

Definition at line 26 of file mdio.h.

#define MDIO_MMD_WIS   2 /* WAN Interface Sublayer */

Definition at line 18 of file mdio.h.

#define MDIO_PCS_10GBRT_STAT1   32 /* 10GBASE-R/-T PCS status 1 */

Definition at line 57 of file mdio.h.

#define MDIO_PCS_10GBRT_STAT1_BLKLK   0x0001 /* Block lock attained */

Definition at line 224 of file mdio.h.

#define MDIO_PCS_10GBRT_STAT2   33 /* 10GBASE-R/-T PCS status 2 */

Definition at line 58 of file mdio.h.

#define MDIO_PCS_10GBRT_STAT2_BER   0x3f00

Definition at line 228 of file mdio.h.

#define MDIO_PCS_10GBRT_STAT2_ERR   0x00ff

Definition at line 227 of file mdio.h.

#define MDIO_PCS_10GBX_STAT1   24 /* 10GBASE-X PCS status 1 */

Definition at line 56 of file mdio.h.

#define MDIO_PCS_CTRL1_CLKSTOP_EN   0x400 /* Stop the clock during LPI */

Definition at line 86 of file mdio.h.

#define MDIO_PCS_CTRL1_LOOPBACK   BMCR_LOOPBACK

Definition at line 81 of file mdio.h.

#define MDIO_PCS_CTRL2_10GBR   0x0000 /* 10GBASE-R type */

Definition at line 143 of file mdio.h.

#define MDIO_PCS_CTRL2_10GBT   0x0003 /* 10GBASE-T type */

Definition at line 146 of file mdio.h.

#define MDIO_PCS_CTRL2_10GBW   0x0002 /* 10GBASE-W type */

Definition at line 145 of file mdio.h.

#define MDIO_PCS_CTRL2_10GBX   0x0001 /* 10GBASE-X type */

Definition at line 144 of file mdio.h.

#define MDIO_PCS_CTRL2_TYPE   0x0003 /* PCS type selection */

Definition at line 142 of file mdio.h.

#define MDIO_PCS_EEE_ABLE   20 /* EEE Capability register */

Definition at line 45 of file mdio.h.

#define MDIO_PCS_EEE_WK_ERR   22 /* EEE wake error counter */

Definition at line 46 of file mdio.h.

#define MDIO_PCS_SPEED_10P2B   0x0002 /* 10PASS-TS/2BASE-TL capable */

Definition at line 111 of file mdio.h.

#define MDIO_PCS_STAT2_10GBR   0x0001 /* 10GBASE-R capable */

Definition at line 165 of file mdio.h.

#define MDIO_PCS_STAT2_10GBW   0x0004 /* 10GBASE-W capable */

Definition at line 167 of file mdio.h.

#define MDIO_PCS_STAT2_10GBX   0x0002 /* 10GBASE-X capable */

Definition at line 166 of file mdio.h.

#define MDIO_PCS_STAT2_RXFLTABLE   0x1000 /* Receive fault ability */

Definition at line 168 of file mdio.h.

#define MDIO_PCS_STAT2_TXFLTABLE   0x2000 /* Transmit fault ability */

Definition at line 169 of file mdio.h.

#define MDIO_PHY_ID_C45   0x8000

Definition at line 284 of file mdio.h.

#define MDIO_PHY_ID_C45_MASK   (MDIO_PHY_ID_C45 | MDIO_PHY_ID_PRTAD | MDIO_PHY_ID_DEVAD)

Definition at line 287 of file mdio.h.

#define MDIO_PHY_ID_DEVAD   0x001f

Definition at line 286 of file mdio.h.

#define MDIO_PHY_ID_PRTAD   0x03e0

Definition at line 285 of file mdio.h.

#define MDIO_PHYXS_CTRL1_LOOPBACK   BMCR_LOOPBACK

Definition at line 82 of file mdio.h.

#define MDIO_PHYXS_LNSTAT   24 /* PHY XGXS lane state */

Definition at line 47 of file mdio.h.

#define MDIO_PHYXS_LNSTAT_ALIGN   0x1000

Definition at line 201 of file mdio.h.

#define MDIO_PHYXS_LNSTAT_SYNC0   0x0001

Definition at line 197 of file mdio.h.

#define MDIO_PHYXS_LNSTAT_SYNC1   0x0002

Definition at line 198 of file mdio.h.

#define MDIO_PHYXS_LNSTAT_SYNC2   0x0004

Definition at line 199 of file mdio.h.

#define MDIO_PHYXS_LNSTAT_SYNC3   0x0008

Definition at line 200 of file mdio.h.

#define MDIO_PKGID1   14 /* Package identifier */

Definition at line 41 of file mdio.h.

#define MDIO_PKGID2   15

Definition at line 42 of file mdio.h.

#define MDIO_PMA_10GBR_FECABLE   170 /* 10GBASE-R FEC ability */

Definition at line 55 of file mdio.h.

#define MDIO_PMA_10GBR_FECABLE_ABLE   0x0001 /* FEC ability */

Definition at line 220 of file mdio.h.

#define MDIO_PMA_10GBR_FECABLE_ERRABLE   0x0002 /* FEC error indic. ability */

Definition at line 221 of file mdio.h.

#define MDIO_PMA_10GBT_SNR
Value:
133 /* 10GBASE-T SNR margin, lane A.
* Lanes B-D are numbered 134-136. */

Definition at line 54 of file mdio.h.

#define MDIO_PMA_10GBT_SNR_BIAS   0x8000

Definition at line 216 of file mdio.h.

#define MDIO_PMA_10GBT_SNR_MAX   127

Definition at line 217 of file mdio.h.

#define MDIO_PMA_10GBT_SWAPPOL   130 /* 10GBASE-T pair swap & polarity */

Definition at line 52 of file mdio.h.

#define MDIO_PMA_10GBT_SWAPPOL_ABNX   0x0001 /* Pair A/B uncrossed */

Definition at line 204 of file mdio.h.

#define MDIO_PMA_10GBT_SWAPPOL_AREV   0x0100 /* Pair A polarity reversed */

Definition at line 206 of file mdio.h.

#define MDIO_PMA_10GBT_SWAPPOL_BREV   0x0200 /* Pair B polarity reversed */

Definition at line 207 of file mdio.h.

#define MDIO_PMA_10GBT_SWAPPOL_CDNX   0x0002 /* Pair C/D uncrossed */

Definition at line 205 of file mdio.h.

#define MDIO_PMA_10GBT_SWAPPOL_CREV   0x0400 /* Pair C polarity reversed */

Definition at line 208 of file mdio.h.

#define MDIO_PMA_10GBT_SWAPPOL_DREV   0x0800 /* Pair D polarity reversed */

Definition at line 209 of file mdio.h.

#define MDIO_PMA_10GBT_TXPWR   131 /* 10GBASE-T TX power control */

Definition at line 53 of file mdio.h.

#define MDIO_PMA_10GBT_TXPWR_SHORT   0x0001 /* Short-reach mode */

Definition at line 212 of file mdio.h.

#define MDIO_PMA_CTRL1_LOOPBACK   0x0001

Definition at line 78 of file mdio.h.

#define MDIO_PMA_CTRL1_SPEED100   BMCR_SPEED100

Definition at line 80 of file mdio.h.

#define MDIO_PMA_CTRL1_SPEED1000   BMCR_SPEED1000

Definition at line 79 of file mdio.h.

#define MDIO_PMA_CTRL2_1000BKX   0x000d /* 1000BASE-KX type */

Definition at line 139 of file mdio.h.

#define MDIO_PMA_CTRL2_1000BT   0x000c /* 1000BASE-T type */

Definition at line 138 of file mdio.h.

#define MDIO_PMA_CTRL2_100BTX   0x000e /* 100BASE-TX type */

Definition at line 140 of file mdio.h.

#define MDIO_PMA_CTRL2_10BT   0x000f /* 10BASE-T type */

Definition at line 141 of file mdio.h.

#define MDIO_PMA_CTRL2_10GBCX4   0x0000 /* 10GBASE-CX4 type */

Definition at line 126 of file mdio.h.

#define MDIO_PMA_CTRL2_10GBER   0x0005 /* 10GBASE-ER type */

Definition at line 131 of file mdio.h.

#define MDIO_PMA_CTRL2_10GBEW   0x0001 /* 10GBASE-EW type */

Definition at line 127 of file mdio.h.

#define MDIO_PMA_CTRL2_10GBKR   0x000b /* 10GBASE-KR type */

Definition at line 137 of file mdio.h.

#define MDIO_PMA_CTRL2_10GBKX4   0x000a /* 10GBASE-KX4 type */

Definition at line 136 of file mdio.h.

#define MDIO_PMA_CTRL2_10GBLR   0x0006 /* 10GBASE-LR type */

Definition at line 132 of file mdio.h.

#define MDIO_PMA_CTRL2_10GBLRM   0x0008 /* 10GBASE-LRM type */

Definition at line 134 of file mdio.h.

#define MDIO_PMA_CTRL2_10GBLW   0x0002 /* 10GBASE-LW type */

Definition at line 128 of file mdio.h.

#define MDIO_PMA_CTRL2_10GBLX4   0x0004 /* 10GBASE-LX4 type */

Definition at line 130 of file mdio.h.

#define MDIO_PMA_CTRL2_10GBSR   0x0007 /* 10GBASE-SR type */

Definition at line 133 of file mdio.h.

#define MDIO_PMA_CTRL2_10GBSW   0x0003 /* 10GBASE-SW type */

Definition at line 129 of file mdio.h.

#define MDIO_PMA_CTRL2_10GBT   0x0009 /* 10GBASE-T type */

Definition at line 135 of file mdio.h.

#define MDIO_PMA_CTRL2_TYPE   0x000f /* PMA/PMD type selection */

Definition at line 125 of file mdio.h.

#define MDIO_PMA_EXTABLE   11 /* 10G PMA/PMD extended ability */

Definition at line 40 of file mdio.h.

#define MDIO_PMA_EXTABLE_1000BKX   0x0040 /* 1000BASE-KX ability */

Definition at line 192 of file mdio.h.

#define MDIO_PMA_EXTABLE_1000BT   0x0020 /* 1000BASE-T ability */

Definition at line 191 of file mdio.h.

#define MDIO_PMA_EXTABLE_100BTX   0x0080 /* 100BASE-TX ability */

Definition at line 193 of file mdio.h.

#define MDIO_PMA_EXTABLE_10BT   0x0100 /* 10BASE-T ability */

Definition at line 194 of file mdio.h.

#define MDIO_PMA_EXTABLE_10GBKR   0x0010 /* 10GBASE-KR ability */

Definition at line 190 of file mdio.h.

#define MDIO_PMA_EXTABLE_10GBKX4   0x0008 /* 10GBASE-KX4 ability */

Definition at line 189 of file mdio.h.

#define MDIO_PMA_EXTABLE_10GBLRM   0x0002 /* 10GBASE-LRM ability */

Definition at line 187 of file mdio.h.

#define MDIO_PMA_EXTABLE_10GBT   0x0004 /* 10GBASE-T ability */

Definition at line 188 of file mdio.h.

#define MDIO_PMA_EXTABLE_10GCX4   0x0001 /* 10GBASE-CX4 ability */

Definition at line 186 of file mdio.h.

#define MDIO_PMA_LASI_CTRL   0x9002 /* LASI control */

Definition at line 65 of file mdio.h.

#define MDIO_PMA_LASI_LSALARM   0x0001 /* LS_ALARM enable/status */

Definition at line 278 of file mdio.h.

#define MDIO_PMA_LASI_RX_OPTICPOWERFLT   0x0020 /* RX optical power fault */

Definition at line 266 of file mdio.h.

#define MDIO_PMA_LASI_RX_PCSLFLT   0x0008 /* PCS RX local fault */

Definition at line 264 of file mdio.h.

#define MDIO_PMA_LASI_RX_PHYXSLFLT   0x0001 /* PHY XS RX local fault */

Definition at line 263 of file mdio.h.

#define MDIO_PMA_LASI_RX_PMALFLT   0x0010 /* PMA/PMD RX local fault */

Definition at line 265 of file mdio.h.

#define MDIO_PMA_LASI_RX_WISLFLT   0x0200 /* WIS local fault */

Definition at line 267 of file mdio.h.

#define MDIO_PMA_LASI_RXALARM   0x0004 /* RX_ALARM enable/status */

Definition at line 280 of file mdio.h.

#define MDIO_PMA_LASI_RXCTRL   0x9000 /* RX_ALARM control */

Definition at line 63 of file mdio.h.

#define MDIO_PMA_LASI_RXSTAT   0x9003 /* RX_ALARM status */

Definition at line 66 of file mdio.h.

#define MDIO_PMA_LASI_STAT   0x9005 /* LASI status */

Definition at line 68 of file mdio.h.

#define MDIO_PMA_LASI_TX_LASERBICURRFLT   0x0200 /* Laser bias current fault */

Definition at line 275 of file mdio.h.

#define MDIO_PMA_LASI_TX_LASERPOWERFLT   0x0080 /* Laser output power fault */

Definition at line 273 of file mdio.h.

#define MDIO_PMA_LASI_TX_LASERTEMPFLT   0x0100 /* Laser temperature fault */

Definition at line 274 of file mdio.h.

#define MDIO_PMA_LASI_TX_PCSLFLT   0x0008 /* PCS TX local fault */

Definition at line 271 of file mdio.h.

#define MDIO_PMA_LASI_TX_PHYXSLFLT   0x0001 /* PHY XS TX local fault */

Definition at line 270 of file mdio.h.

#define MDIO_PMA_LASI_TX_PMALFLT   0x0010 /* PMA/PMD TX local fault */

Definition at line 272 of file mdio.h.

#define MDIO_PMA_LASI_TXALARM   0x0002 /* TX_ALARM enable/status */

Definition at line 279 of file mdio.h.

#define MDIO_PMA_LASI_TXCTRL   0x9001 /* TX_ALARM control */

Definition at line 64 of file mdio.h.

#define MDIO_PMA_LASI_TXSTAT   0x9004 /* TX_ALARM status */

Definition at line 67 of file mdio.h.

#define MDIO_PMA_RXDET   10 /* 10G PMA/PMD receive signal detect */

Definition at line 39 of file mdio.h.

#define MDIO_PMA_SPEED_10   0x0040 /* 10M capable */

Definition at line 110 of file mdio.h.

#define MDIO_PMA_SPEED_100   0x0020 /* 100M capable */

Definition at line 109 of file mdio.h.

#define MDIO_PMA_SPEED_1000   0x0010 /* 1000M capable */

Definition at line 108 of file mdio.h.

#define MDIO_PMA_SPEED_10P   0x0004 /* 10PASS-TS capable */

Definition at line 107 of file mdio.h.

#define MDIO_PMA_SPEED_2B   0x0002 /* 2BASE-TL capable */

Definition at line 106 of file mdio.h.

#define MDIO_PMA_STAT2_10GBER   0x0020 /* 10GBASE-ER ability */

Definition at line 158 of file mdio.h.

#define MDIO_PMA_STAT2_10GBEW   0x0002 /* 10GBASE-EW ability */

Definition at line 154 of file mdio.h.

#define MDIO_PMA_STAT2_10GBLR   0x0040 /* 10GBASE-LR ability */

Definition at line 159 of file mdio.h.

#define MDIO_PMA_STAT2_10GBLW   0x0004 /* 10GBASE-LW ability */

Definition at line 155 of file mdio.h.

#define MDIO_PMA_STAT2_10GBLX4   0x0010 /* 10GBASE-LX4 ability */

Definition at line 157 of file mdio.h.

#define MDIO_PMA_STAT2_10GBSR   0x0080 /* 10GBASE-SR ability */

Definition at line 160 of file mdio.h.

#define MDIO_PMA_STAT2_10GBSW   0x0008 /* 10GBASE-SW ability */

Definition at line 156 of file mdio.h.

#define MDIO_PMA_STAT2_EXTABLE   0x0200 /* Extended abilities */

Definition at line 162 of file mdio.h.

#define MDIO_PMA_STAT2_LBABLE   0x0001 /* PMA loopback ability */

Definition at line 153 of file mdio.h.

#define MDIO_PMA_STAT2_RXFLTABLE   0x1000 /* Receive fault ability */

Definition at line 163 of file mdio.h.

#define MDIO_PMA_STAT2_TXFLTABLE   0x2000 /* Transmit fault ability */

Definition at line 164 of file mdio.h.

#define MDIO_PMA_TXDIS   9 /* 10G PMA/PMD transmit disable */

Definition at line 38 of file mdio.h.

#define MDIO_PMD_RXDET_0   0x0002 /* PMD RX signal detect 0 */

Definition at line 180 of file mdio.h.

#define MDIO_PMD_RXDET_1   0x0004 /* PMD RX signal detect 1 */

Definition at line 181 of file mdio.h.

#define MDIO_PMD_RXDET_2   0x0008 /* PMD RX signal detect 2 */

Definition at line 182 of file mdio.h.

#define MDIO_PMD_RXDET_3   0x0010 /* PMD RX signal detect 3 */

Definition at line 183 of file mdio.h.

#define MDIO_PMD_RXDET_GLOBAL   0x0001 /* Global PMD RX signal detect */

Definition at line 179 of file mdio.h.

#define MDIO_PMD_STAT2_TXDISAB   0x0100 /* PMD TX disable ability */

Definition at line 161 of file mdio.h.

#define MDIO_PMD_TXDIS_0   0x0002 /* PMD TX disable 0 */

Definition at line 173 of file mdio.h.

#define MDIO_PMD_TXDIS_1   0x0004 /* PMD TX disable 1 */

Definition at line 174 of file mdio.h.

#define MDIO_PMD_TXDIS_2   0x0008 /* PMD TX disable 2 */

Definition at line 175 of file mdio.h.

#define MDIO_PMD_TXDIS_3   0x0010 /* PMD TX disable 3 */

Definition at line 176 of file mdio.h.

#define MDIO_PMD_TXDIS_GLOBAL   0x0001 /* Global PMD TX disable */

Definition at line 172 of file mdio.h.

#define MDIO_SPEED   4 /* Speed ability */

Definition at line 33 of file mdio.h.

#define MDIO_SPEED_10G   0x0001 /* 10G capable */

Definition at line 105 of file mdio.h.

#define MDIO_STAT1   MII_BMSR

Definition at line 30 of file mdio.h.

#define MDIO_STAT1_FAULT   0x0080 /* Fault */

Definition at line 96 of file mdio.h.

#define MDIO_STAT1_LPOWERABLE   0x0002 /* Low-power ability */

Definition at line 94 of file mdio.h.

#define MDIO_STAT1_LSTATUS   BMSR_LSTATUS

Definition at line 95 of file mdio.h.

#define MDIO_STAT2   8 /* 10G status 2 */

Definition at line 37 of file mdio.h.

#define MDIO_STAT2_DEVPRST   0xc000 /* Device present */

Definition at line 151 of file mdio.h.

#define MDIO_STAT2_DEVPRST_VAL   0x8000 /* Device present value */

Definition at line 152 of file mdio.h.

#define MDIO_STAT2_RXFAULT   0x0400 /* Receive fault */

Definition at line 149 of file mdio.h.

#define MDIO_STAT2_TXFAULT   0x0800 /* Transmit fault */

Definition at line 150 of file mdio.h.