12#ifndef ZEPHYR_INCLUDE_NET_MDIO_H_
13#define ZEPHYR_INCLUDE_NET_MDIO_H_
49#define MDIO_MMD_PMAPMD 0x01U
51#define MDIO_MMD_WIS 0x02U
53#define MDIO_MMD_PCS 0x03U
55#define MDIO_MMD_PHYXS 0x04U
57#define MDIO_MMD_DTEXS 0x05U
59#define MDIO_MMD_TC 0x06U
61#define MDIO_MMD_AN 0x07U
63#define MDIO_MMD_SEPARATED_PMA1 0x08U
65#define MDIO_MMD_SEPARATED_PMA2 0x09U
67#define MDIO_MMD_SEPARATED_PMA3 0x0AU
69#define MDIO_MMD_SEPARATED_PMA4 0x0BU
71#define MDIO_MMD_C22EXT 0x1DU
73#define MDIO_MMD_VENDOR_SPECIFIC1 0x1EU
75#define MDIO_MMD_VENDOR_SPECIFIC2 0x1FU
79#define MDIO_CTRL1 0x0000U
81#define MDIO_STAT1 0x0001U
83#define MDIO_DEVID1 0x0002U
85#define MDIO_DEVID2 0x0003U
87#define MDIO_SPEED 0x0004U
89#define MDIO_DEVS1 0x0005U
91#define MDIO_DEVS2 0x0006U
93#define MDIO_CTRL2 0x0007U
95#define MDIO_STAT2 0x0008U
97#define MDIO_PKGID1 0x000EU
99#define MDIO_PKGID2 0x000FU
104#define MDIO_AN_T1_CTRL 0x0200U
106#define MDIO_AN_T1_STAT 0x0201U
108#define MDIO_AN_T1_ADV_L 0x0202U
110#define MDIO_AN_T1_ADV_M 0x0203U
112#define MDIO_AN_T1_ADV_H 0x0204U
114#define MDIO_PMA_PMD_BT1_CTRL 0x0834U
118#define MDIO_AN_T1_CTRL_RESTART BIT(9)
120#define MDIO_AN_T1_CTRL_EN BIT(12)
124#define MDIO_AN_T1_STAT_LINK_STATUS BIT(2)
126#define MDIO_AN_T1_STAT_ABLE BIT(3)
128#define MDIO_AN_T1_STAT_REMOTE_FAULT BIT(4)
130#define MDIO_AN_T1_STAT_COMPLETE BIT(5)
132#define MDIO_AN_T1_STAT_PAGE_RX BIT(6)
136#define MDIO_AN_T1_ADV_L_PAUSE_CAP BIT(10)
138#define MDIO_AN_T1_ADV_L_PAUSE_ASYM BIT(11)
140#define MDIO_AN_T1_ADV_L_FORCE_MS BIT(12)
142#define MDIO_AN_T1_ADV_L_REMOTE_FAULT BIT(13)
144#define MDIO_AN_T1_ADV_L_ACK BIT(14)
146#define MDIO_AN_T1_ADV_L_NEXT_PAGE_REQ BIT(15)
150#define MDIO_AN_T1_ADV_M_B10L BIT(14)
152#define MDIO_AN_T1_ADV_M_MST BIT(4)
156#define MDIO_AN_T1_ADV_H_10L_TX_HI_REQ BIT(12)
158#define MDIO_AN_T1_ADV_H_10L_TX_HI BIT(13)
162#define MDIO_PMA_PMD_BT1_CTRL_CFG_MST BIT(14)
167#define MDIO_PMA_B10L_CTRL 0x08F6U
169#define MDIO_PMA_B10L_STAT 0x08F7U
171#define MDIO_PMA_B10L_LINK_STAT 0x8302U
173#define MDIO_PCS_B10L_CTRL 0x08E6U
175#define MDIO_PCS_B10L_STAT 0x08E7U
179#define MDIO_PMA_B10L_CTRL_TX_DIS_MODE_EN BIT(14)
181#define MDIO_PMA_B10L_CTRL_TX_LVL_HI BIT(12)
183#define MDIO_PMA_B10L_CTRL_EEE BIT(10)
185#define MDIO_PMA_B10L_CTRL_LB_PMA_LOC_EN BIT(0)
189#define MDIO_PMA_B10L_STAT_LINK BIT(0)
191#define MDIO_PMA_B10L_STAT_FAULT BIT(1)
193#define MDIO_PMA_B10L_STAT_POLARITY BIT(2)
195#define MDIO_PMA_B10L_STAT_RECV_FAULT BIT(9)
197#define MDIO_PMA_B10L_STAT_EEE BIT(10)
199#define MDIO_PMA_B10L_STAT_LOW_POWER BIT(11)
201#define MDIO_PMA_B10L_STAT_2V4_ABLE BIT(12)
203#define MDIO_PMA_B10L_STAT_LB_ABLE BIT(13)
207#define MDIO_PMA_B10L_LINK_STAT_REM_RCVR_STAT_OK_LL BIT(9)
209#define MDIO_PMA_B10L_LINK_STAT_REM_RCVR_STAT_OK BIT(8)
211#define MDIO_PMA_B10L_LINK_STAT_LOC_RCVR_STAT_OK_LL BIT(7)
213#define MDIO_PMA_B10L_LINK_STAT_LOC_RCVR_STAT_OK BIT(6)
215#define MDIO_PMA_B10L_LINK_STAT_DSCR_STAT_OK_LL BIT(5)
217#define MDIO_PMA_B10L_LINK_STAT_DSCR_STAT_OK BIT(4)
219#define MDIO_PMA_B10L_LINK_STAT_LINK_STAT_OK_LL BIT(1)
221#define MDIO_PMA_B10L_LINK_STAT_LINK_STAT_OK BIT(0)
225#define MDIO_PCS_B10L_CTRL_LB_PCS_EN BIT(14)
229#define MDIO_PCS_B10L_STAT_DSCR_STAT_OK_LL BIT(2)
mdio_opcode
MDIO transaction operation code.
Definition: mdio.h:27
@ MDIO_OP_C45_READ
IEEE 802.3 45.3.4 read operation.
Definition: mdio.h:44
@ MDIO_OP_C22_WRITE
IEEE 802.3 22.2.4.5.4 write operation.
Definition: mdio.h:29
@ MDIO_OP_C22_READ
IEEE 802.3 22.2.4.5.4 read operation.
Definition: mdio.h:32
@ MDIO_OP_C45_READ_INC
IEEE 802.3 45.3.4 post-read-increment-address operation.
Definition: mdio.h:41
@ MDIO_OP_C45_ADDRESS
IEEE 802.3 45.3.4 address operation.
Definition: mdio.h:35
@ MDIO_OP_C45_WRITE
IEEE 802.3 45.3.4 write operation.
Definition: mdio.h:38