adin1110_driver.h
Go to the documentation of this file.
1 /**
2  * @file adin1110_driver.h
3  * @brief ADIN1110 10Base-T1L Ethernet controller
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
10  *
11  * This file is part of CycloneTCP Open.
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software Foundation,
25  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26  *
27  * @author Oryx Embedded SARL (www.oryx-embedded.com)
28  * @version 2.4.4
29  **/
30 
31 #ifndef _ADIN1110_DRIVER_H
32 #define _ADIN1110_DRIVER_H
33 
34 //Dependencies
35 #include "core/nic.h"
36 
37 //Open Alliance SPI protocol
38 #ifndef ADIN1110_OA_SPI_SUPPORT
39  #define ADIN1110_OA_SPI_SUPPORT DISABLED
40 #elif (ADIN1110_OA_SPI_SUPPORT != ENABLED && ADIN1110_OA_SPI_SUPPORT != DISABLED)
41  #error ADIN1110_OA_SPI_SUPPORT parameter is not valid
42 #endif
43 
44 //Control data protection
45 #ifndef ADIN1110_PROTECTION_SUPPORT
46  #define ADIN1110_PROTECTION_SUPPORT DISABLED
47 #elif (ADIN1110_PROTECTION_SUPPORT != ENABLED && ADIN1110_PROTECTION_SUPPORT != DISABLED)
48  #error ADIN1110_PROTECTION_SUPPORT parameter is not valid
49 #endif
50 
51 //TX buffer size
52 #ifndef ADIN1110_ETH_TX_BUFFER_SIZE
53  #define ADIN1110_ETH_TX_BUFFER_SIZE 1536
54 #elif (ADIN1110_ETH_TX_BUFFER_SIZE != 1536)
55  #error ADIN1110_ETH_TX_BUFFER_SIZE parameter is not valid
56 #endif
57 
58 //RX buffer size
59 #ifndef ADIN1110_ETH_RX_BUFFER_SIZE
60  #define ADIN1110_ETH_RX_BUFFER_SIZE 1536
61 #elif (ADIN1110_ETH_RX_BUFFER_SIZE != 1536)
62  #error ADIN1110_ETH_RX_BUFFER_SIZE parameter is not valid
63 #endif
64 
65 //Size of the MAC address filtering table
66 #define ADIN1110_ADDR_TABLE_SIZE 16
67 //Frame header size
68 #define ADIN1110_FRAME_HEADER_SIZE 2
69 //TX frame overhead
70 #define ADIN1110_TX_FRAME_OVERHEAD 4
71 //Chunk payload size
72 #define ADIN1110_CHUNK_PAYLOAD_SIZE 64
73 
74 //SPI commands
75 #define ADIN1110_SPI_CMD_READ 0x80
76 #define ADIN1110_SPI_CMD_WRITE 0xA0
77 
78 //Frame header
79 #define ADIN1110_FRAME_HEADER_PRIORITY 0x4000
80 #define ADIN1110_FRAME_HEADER_EG_CAPTURE 0x00C0
81 #define ADIN1110_FRAME_HEADER_EG_CAPTURE_A 0x0040
82 #define ADIN1110_FRAME_HEADER_EG_CAPTURE_B 0x0080
83 #define ADIN1110_FRAME_HEADER_EG_CAPTURE_C 0x00C0
84 #define ADIN1110_FRAME_HEADER_TS_PARITY 0x0008
85 #define ADIN1110_FRAME_HEADER_TS_PRESENT 0x0004
86 
87 //Transmit data header
88 #define ADIN1110_TX_HEADER_DNC 0x80000000
89 #define ADIN1110_TX_HEADER_SEQ 0x40000000
90 #define ADIN1110_TX_HEADER_NORX 0x20000000
91 #define ADIN1110_TX_HEADER_VS 0x00C00000
92 #define ADIN1110_TX_HEADER_DV 0x00200000
93 #define ADIN1110_TX_HEADER_SV 0x00100000
94 #define ADIN1110_TX_HEADER_SWO 0x000F0000
95 #define ADIN1110_TX_HEADER_EV 0x00004000
96 #define ADIN1110_TX_HEADER_EBO 0x00003F00
97 #define ADIN1110_TX_HEADER_TSC 0x000000C0
98 #define ADIN1110_TX_HEADER_P 0x00000001
99 
100 //Receive data footer
101 #define ADIN1110_RX_FOOTER_EXST 0x80000000
102 #define ADIN1110_RX_FOOTER_HDRB 0x40000000
103 #define ADIN1110_RX_FOOTER_SYNC 0x20000000
104 #define ADIN1110_RX_FOOTER_RCA 0x1F000000
105 #define ADIN1110_RX_FOOTER_VS 0x00C00000
106 #define ADIN1110_RX_FOOTER_DV 0x00200000
107 #define ADIN1110_RX_FOOTER_SV 0x00100000
108 #define ADIN1110_RX_FOOTER_SWO 0x000F0000
109 #define ADIN1110_RX_FOOTER_FD 0x00008000
110 #define ADIN1110_RX_FOOTER_EV 0x00004000
111 #define ADIN1110_RX_FOOTER_EBO 0x00003F00
112 #define ADIN1110_RX_FOOTER_RTSA 0x00000080
113 #define ADIN1110_RX_FOOTER_RTSP 0x00000040
114 #define ADIN1110_RX_FOOTER_TXC 0x0000003E
115 #define ADIN1110_RX_FOOTER_P 0x00000001
116 
117 //Control command header
118 #define ADIN1110_CTRL_HEADER_DNC 0x80000000
119 #define ADIN1110_CTRL_HEADER_HDRB 0x40000000
120 #define ADIN1110_CTRL_HEADER_WNR 0x20000000
121 #define ADIN1110_CTRL_HEADER_AID 0x10000000
122 #define ADIN1110_CTRL_HEADER_MMS 0x0F000000
123 #define ADIN1110_CTRL_HEADER_ADDR 0x00FFFF00
124 #define ADIN1110_CTRL_HEADER_LEN 0x000000FE
125 #define ADIN1110_CTRL_HEADER_P 0x00000001
126 
127 //Memory map selectors
128 #define ADIN1110_MMS_STD 0x00
129 #define ADIN1110_MMS_MAC 0x01
130 
131 //ADIN1110 SPI registers
132 #define ADIN1110_IDVER 0x00
133 #define ADIN1110_PHYID 0x01
134 #define ADIN1110_CAPABILITY 0x02
135 #define ADIN1110_RESET 0x03
136 #define ADIN1110_CONFIG0 0x04
137 #define ADIN1110_CONFIG2 0x06
138 #define ADIN1110_STATUS0 0x08
139 #define ADIN1110_STATUS1 0x09
140 #define ADIN1110_BUFSTS 0x0B
141 #define ADIN1110_IMASK0 0x0C
142 #define ADIN1110_IMASK1 0x0D
143 #define ADIN1110_TTSCAH 0x10
144 #define ADIN1110_TTSCAL 0x11
145 #define ADIN1110_TTSCBH 0x12
146 #define ADIN1110_TTSCBL 0x13
147 #define ADIN1110_TTSCCH 0x14
148 #define ADIN1110_TTSCCL 0x15
149 #define ADIN1110_MDIOACC0 0x20
150 #define ADIN1110_MDIOACC1 0x21
151 #define ADIN1110_MDIOACC2 0x22
152 #define ADIN1110_MDIOACC3 0x23
153 #define ADIN1110_MDIOACC4 0x24
154 #define ADIN1110_MDIOACC5 0x25
155 #define ADIN1110_MDIOACC6 0x26
156 #define ADIN1110_MDIOACC7 0x27
157 #define ADIN1110_TX_FSIZE 0x30
158 #define ADIN1110_TX 0x31
159 #define ADIN1110_TX_SPACE 0x32
160 #define ADIN1110_TX_THRESH 0x34
161 #define ADIN1110_FIFO_CLR 0x36
162 #define ADIN1110_SCRATCH0 0x37
163 #define ADIN1110_SCRATCH1 0x38
164 #define ADIN1110_SCRATCH2 0x39
165 #define ADIN1110_SCRATCH3 0x3A
166 #define ADIN1110_MAC_RST_STATUS 0x3B
167 #define ADIN1110_SOFT_RST 0x3C
168 #define ADIN1110_SPI_INJ_ERR 0x3D
169 #define ADIN1110_FIFO_SIZE 0x3E
170 #define ADIN1110_TFC 0x3F
171 #define ADIN1110_TXSIZE 0x40
172 #define ADIN1110_HTX_OVF_FRM_CNT 0x41
173 #define ADIN1110_MECC_ERR_ADDR 0x42
174 #define ADIN1110_CECC_ERR0 0x43
175 #define ADIN1110_CECC_ERR1 0x44
176 #define ADIN1110_CECC_ERR2 0x45
177 #define ADIN1110_CECC_ERR3 0x46
178 #define ADIN1110_CECC_ERR4 0x47
179 #define ADIN1110_CECC_ERR5 0x48
180 #define ADIN1110_CECC_ERR6 0x49
181 #define ADIN1110_ADDR_FILT_UPR0 0x50
182 #define ADIN1110_ADDR_FILT_LWR0 0x51
183 #define ADIN1110_ADDR_FILT_UPR1 0x52
184 #define ADIN1110_ADDR_FILT_LWR1 0x53
185 #define ADIN1110_ADDR_FILT_UPR2 0x54
186 #define ADIN1110_ADDR_FILT_LWR2 0x55
187 #define ADIN1110_ADDR_FILT_UPR3 0x56
188 #define ADIN1110_ADDR_FILT_LWR3 0x57
189 #define ADIN1110_ADDR_FILT_UPR4 0x58
190 #define ADIN1110_ADDR_FILT_LWR4 0x59
191 #define ADIN1110_ADDR_FILT_UPR5 0x5A
192 #define ADIN1110_ADDR_FILT_LWR5 0x5B
193 #define ADIN1110_ADDR_FILT_UPR6 0x5C
194 #define ADIN1110_ADDR_FILT_LWR6 0x5D
195 #define ADIN1110_ADDR_FILT_UPR7 0x5E
196 #define ADIN1110_ADDR_FILT_LWR7 0x5F
197 #define ADIN1110_ADDR_FILT_UPR8 0x60
198 #define ADIN1110_ADDR_FILT_LWR8 0x61
199 #define ADIN1110_ADDR_FILT_UPR9 0x62
200 #define ADIN1110_ADDR_FILT_LWR9 0x63
201 #define ADIN1110_ADDR_FILT_UPR10 0x64
202 #define ADIN1110_ADDR_FILT_LWR10 0x65
203 #define ADIN1110_ADDR_FILT_UPR11 0x66
204 #define ADIN1110_ADDR_FILT_LWR11 0x67
205 #define ADIN1110_ADDR_FILT_UPR12 0x68
206 #define ADIN1110_ADDR_FILT_LWR12 0x69
207 #define ADIN1110_ADDR_FILT_UPR13 0x6A
208 #define ADIN1110_ADDR_FILT_LWR13 0x6B
209 #define ADIN1110_ADDR_FILT_UPR14 0x6C
210 #define ADIN1110_ADDR_FILT_LWR14 0x6D
211 #define ADIN1110_ADDR_FILT_UPR15 0x6E
212 #define ADIN1110_ADDR_FILT_LWR15 0x6F
213 #define ADIN1110_ADDR_MSK_UPR0 0x70
214 #define ADIN1110_ADDR_MSK_LWR0 0x71
215 #define ADIN1110_ADDR_MSK_UPR1 0x72
216 #define ADIN1110_ADDR_MSK_LWR1 0x73
217 #define ADIN1110_TS_ADDEND 0x80
218 #define ADIN1110_TS_1SEC_CMP 0x81
219 #define ADIN1110_TS_SEC_CNT 0x82
220 #define ADIN1110_TS_NS_CNT 0x83
221 #define ADIN1110_TS_CFG 0x84
222 #define ADIN1110_TS_TIMER_HI 0x85
223 #define ADIN1110_TS_TIMER_LO 0x86
224 #define ADIN1110_TS_TIMER_QE_CORR 0x87
225 #define ADIN1110_TS_TIMER_START 0x88
226 #define ADIN1110_TS_EXT_CAPT0 0x89
227 #define ADIN1110_TS_EXT_CAPT1 0x8A
228 #define ADIN1110_TS_FREECNT_CAPT 0x8B
229 #define ADIN1110_P1_RX_FSIZE 0x90
230 #define ADIN1110_P1_RX 0x91
231 #define ADIN1110_P1_RX_FRM_CNT 0xA0
232 #define ADIN1110_P1_RX_BCAST_CNT 0xA1
233 #define ADIN1110_P1_RX_MCAST_CNT 0xA2
234 #define ADIN1110_P1_RX_UCAST_CNT 0xA3
235 #define ADIN1110_P1_RX_CRC_ERR_CNT 0xA4
236 #define ADIN1110_P1_RX_ALGN_ERR_CNT 0xA5
237 #define ADIN1110_P1_RX_LS_ERR_CNT 0xA6
238 #define ADIN1110_P1_RX_PHY_ERR_CNT 0xA7
239 #define ADIN1110_P1_TX_FRM_CNT 0xA8
240 #define ADIN1110_P1_TX_BCAST_CNT 0xA9
241 #define ADIN1110_P1_TX_MCAST_CNT 0xAA
242 #define ADIN1110_P1_TX_UCAST_CNT 0xAB
243 #define ADIN1110_P1_RX_DROP_FULL_CNT 0xAC
244 #define ADIN1110_P1_RX_DROP_FILT_CNT 0xAD
245 #define ADIN1110_P1_RX_IFG_ERR_CNT 0xAE
246 #define ADIN1110_P1_TX_IFG 0xB0
247 #define ADIN1110_P1_LOOP 0xB3
248 #define ADIN1110_P1_RX_CRC_EN 0xB4
249 #define ADIN1110_P1_RX_IFG 0xB5
250 #define ADIN1110_P1_RX_MAX_LEN 0xB6
251 #define ADIN1110_P1_RX_MIN_LEN 0xB7
252 #define ADIN1110_P1_LO_RFC 0xB8
253 #define ADIN1110_P1_HI_RFC 0xB9
254 #define ADIN1110_P1_LO_RXSIZE 0xBA
255 #define ADIN1110_P1_HI_RXSIZE 0xBB
256 
257 //ADIN1110 PHY registers
258 #define ADIN1110_MI_CONTROL 0x00
259 #define ADIN1110_MI_STATUS 0x01
260 #define ADIN1110_MI_PHY_ID1 0x02
261 #define ADIN1110_MI_PHY_ID2 0x03
262 #define ADIN1110_MMD_ACCESS_CNTRL 0x0D
263 #define ADIN1110_MMD_ACCESS 0x0E
264 
265 //ADIN1110 MMD registers
266 #define ADIN1110_PMA_PMD_CNTRL1 0x01, 0x0000
267 #define ADIN1110_PMA_PMD_STAT1 0x01, 0x0001
268 #define ADIN1110_PMA_PMD_DEVS_IN_PKG1 0x01, 0x0005
269 #define ADIN1110_PMA_PMD_DEVS_IN_PKG2 0x01, 0x0006
270 #define ADIN1110_PMA_PMD_CNTRL2 0x01, 0x0007
271 #define ADIN1110_PMA_PMD_STAT2 0x01, 0x0008
272 #define ADIN1110_PMA_PMD_TX_DIS 0x01, 0x0009
273 #define ADIN1110_PMA_PMD_EXT_ABILITY 0x01, 0x000B
274 #define ADIN1110_PMA_PMD_BT1_ABILITY 0x01, 0x0012
275 #define ADIN1110_PMA_PMD_BT1_CONTROL 0x01, 0x0834
276 #define ADIN1110_B10L_PMA_CNTRL 0x01, 0x08F6
277 #define ADIN1110_B10L_PMA_STAT 0x01, 0x08F7
278 #define ADIN1110_B10L_TEST_MODE_CNTRL 0x01, 0x08F8
279 #define ADIN1110_CR_STBL_CHK_FOFFS_SAT_THR 0x01, 0x8015
280 #define ADIN1110_SLV_FLTR_ECHO_ACQ_CR_KP 0x01, 0x81E7
281 #define ADIN1110_B10L_PMA_LINK_STAT 0x01, 0x8302
282 #define ADIN1110_MSE_VAL 0x01, 0x830B
283 #define ADIN1110_PCS_CNTRL1 0x03, 0x0000
284 #define ADIN1110_PCS_STAT1 0x03, 0x0001
285 #define ADIN1110_PCS_DEVS_IN_PKG1 0x03, 0x0005
286 #define ADIN1110_PCS_DEVS_IN_PKG2 0x03, 0x0006
287 #define ADIN1110_PCS_STAT2 0x03, 0x0008
288 #define ADIN1110_B10L_PCS_CNTRL 0x03, 0x08E6
289 #define ADIN1110_B10L_PCS_STAT 0x03, 0x08E7
290 #define ADIN1110_AN_DEVS_IN_PKG1 0x07, 0x0005
291 #define ADIN1110_AN_DEVS_IN_PKG2 0x07, 0x0006
292 #define ADIN1110_AN_CONTROL 0x07, 0x0200
293 #define ADIN1110_AN_STATUS 0x07, 0x0201
294 #define ADIN1110_AN_ADV_ABILITY_L 0x07, 0x0202
295 #define ADIN1110_AN_ADV_ABILITY_M 0x07, 0x0203
296 #define ADIN1110_AN_ADV_ABILITY_H 0x07, 0x0204
297 #define ADIN1110_AN_LP_ADV_ABILITY_L 0x07, 0x0205
298 #define ADIN1110_AN_LP_ADV_ABILITY_M 0x07, 0x0206
299 #define ADIN1110_AN_LP_ADV_ABILITY_H 0x07, 0x0207
300 #define ADIN1110_AN_NEXT_PAGE_L 0x07, 0x0208
301 #define ADIN1110_AN_NEXT_PAGE_M 0x07, 0x0209
302 #define ADIN1110_AN_NEXT_PAGE_H 0x07, 0x020A
303 #define ADIN1110_AN_LP_NEXT_PAGE_L 0x07, 0x020B
304 #define ADIN1110_AN_LP_NEXT_PAGE_M 0x07, 0x020C
305 #define ADIN1110_AN_LP_NEXT_PAGE_H 0x07, 0x020D
306 #define ADIN1110_AN_B10_ADV_ABILITY 0x07, 0x020E
307 #define ADIN1110_AN_B10_LP_ADV_ABILITY 0x07, 0x020F
308 #define ADIN1110_AN_FRC_MODE_EN 0x07, 0x8000
309 #define ADIN1110_AN_STATUS_EXTRA 0x07, 0x8001
310 #define ADIN1110_AN_PHY_INST_STATUS 0x07, 0x8030
311 #define ADIN1110_MMD1_DEV_ID1 0x1E, 0x0002
312 #define ADIN1110_MMD1_DEV_ID2 0x1E, 0x0003
313 #define ADIN1110_MMD1_DEVS_IN_PKG1 0x1E, 0x0005
314 #define ADIN1110_MMD1_DEVS_IN_PKG2 0x1E, 0x0006
315 #define ADIN1110_MMD1_STATUS 0x1E, 0x0008
316 #define ADIN1110_CRSM_IRQ_STATUS 0x1E, 0x0010
317 #define ADIN1110_CRSM_IRQ_MASK 0x1E, 0x0020
318 #define ADIN1110_CRSM_SFT_RST 0x1E, 0x8810
319 #define ADIN1110_CRSM_SFT_PD_CNTRL 0x1E, 0x8812
320 #define ADIN1110_CRSM_PHY_SUBSYS_RST 0x1E, 0x8814
321 #define ADIN1110_CRSM_MAC_IF_RST 0x1E, 0x8815
322 #define ADIN1110_CRSM_STAT 0x1E, 0x8818
323 #define ADIN1110_CRSM_PMG_CNTRL 0x1E, 0x8819
324 #define ADIN1110_CRSM_DIAG_CLK_CTRL 0x1E, 0x882C
325 #define ADIN1110_MGMT_PRT_PKG 0x1E, 0x8C22
326 #define ADIN1110_MGMT_MDIO_CNTRL 0x1E, 0x8C30
327 #define ADIN1110_DIGIO_PINMUX 0x1E, 0x8C56
328 #define ADIN1110_LED0_BLINK_TIME_CNTRL 0x1E, 0x8C80
329 #define ADIN1110_LED1_BLINK_TIME_CNTRL 0x1E, 0x8C81
330 #define ADIN1110_LED_CNTRL 0x1E, 0x8C82
331 #define ADIN1110_LED_POLARITY 0x1E, 0x8C83
332 #define ADIN1110_MMD2_DEV_ID1 0x1F, 0x0002
333 #define ADIN1110_MMD2_DEV_ID2 0x1F, 0x0003
334 #define ADIN1110_MMD2_DEVS_IN_PKG1 0x1F, 0x0005
335 #define ADIN1110_MMD2_DEVS_IN_PKG2 0x1F, 0x0006
336 #define ADIN1110_MMD2_STATUS 0x1F, 0x0008
337 #define ADIN1110_PHY_SUBSYS_IRQ_STATUS 0x1F, 0x0011
338 #define ADIN1110_PHY_SUBSYS_IRQ_MASK 0x1F, 0x0021
339 #define ADIN1110_FC_EN 0x1F, 0x8001
340 #define ADIN1110_FC_IRQ_EN 0x1F, 0x8004
341 #define ADIN1110_FC_TX_SEL 0x1F, 0x8005
342 #define ADIN1110_RX_ERR_CNT 0x1F, 0x8008
343 #define ADIN1110_FC_FRM_CNT_H 0x1F, 0x8009
344 #define ADIN1110_FC_FRM_CNT_L 0x1F, 0x800A
345 #define ADIN1110_FC_LEN_ERR_CNT 0x1F, 0x800B
346 #define ADIN1110_FC_ALGN_ERR_CNT 0x1F, 0x800C
347 #define ADIN1110_FC_SYMB_ERR_CNT 0x1F, 0x800D
348 #define ADIN1110_FC_OSZ_CNT 0x1F, 0x800E
349 #define ADIN1110_FC_USZ_CNT 0x1F, 0x800F
350 #define ADIN1110_FC_ODD_CNT 0x1F, 0x8010
351 #define ADIN1110_FC_ODD_PRE_CNT 0x1F, 0x8011
352 #define ADIN1110_FC_FALSE_CARRIER_CNT 0x1F, 0x8013
353 #define ADIN1110_FG_EN 0x1F, 0x8020
354 #define ADIN1110_FG_CNTRL_RSTRT 0x1F, 0x8021
355 #define ADIN1110_FG_CONT_MODE_EN 0x1F, 0x8022
356 #define ADIN1110_FG_IRQ_EN 0x1F, 0x8023
357 #define ADIN1110_FG_FRM_LEN 0x1F, 0x8025
358 #define ADIN1110_FG_IFG_LEN 0x1F, 0x8026
359 #define ADIN1110_FG_NFRM_H 0x1F, 0x8027
360 #define ADIN1110_FG_NFRM_L 0x1F, 0x8028
361 #define ADIN1110_FG_DONE 0x1F, 0x8029
362 #define ADIN1110_MAC_IF_LOOPBACK 0x1F, 0x8055
363 #define ADIN1110_MAC_IF_SOP_CNTRL 0x1F, 0x805A
364 
365 //Identification Version register
366 #define ADIN1110_IDVER_MINVER 0x0000000F
367 
368 //PHY Identification register
369 #define ADIN1110_PHYID_OUI 0xFFFFFC00
370 #define ADIN1110_PHYID_OUI_DEFAULT 0x0283BC00
371 #define ADIN1110_PHYID_MODEL 0x000003F0
372 #define ADIN1110_PHYID_MODEL_DEFAULT 0x00000090
373 #define ADIN1110_PHYID_REVISION 0x0000000F
374 #define ADIN1110_PHYID_REVISION_DEFAULT 0x00000001
375 
376 //Supported Capabilities register
377 #define ADIN1110_CAPABILITY_TXFCSVC 0x00000400
378 #define ADIN1110_CAPABILITY_IPRAC 0x00000200
379 #define ADIN1110_CAPABILITY_DPRAC 0x00000100
380 #define ADIN1110_CAPABILITY_CTC 0x00000080
381 #define ADIN1110_CAPABILITY_FTSC 0x00000040
382 #define ADIN1110_CAPABILITY_AIDC 0x00000020
383 #define ADIN1110_CAPABILITY_SEQC 0x00000010
384 #define ADIN1110_CAPABILITY_MINCPS 0x00000007
385 #define ADIN1110_CAPABILITY_MINCPS_8B 0x00000003
386 #define ADIN1110_CAPABILITY_MINCPS_16B 0x00000004
387 #define ADIN1110_CAPABILITY_MINCPS_32B 0x00000005
388 #define ADIN1110_CAPABILITY_MINCPS_64B 0x00000006
389 
390 //Reset Control and Status register
391 #define ADIN1110_RESET_SWRESET 0x00000001
392 
393 //Configuration 0 register
394 #define ADIN1110_CONFIG0_SYNC 0x00008000
395 #define ADIN1110_CONFIG0_TXFCSVE 0x00004000
396 #define ADIN1110_CONFIG0_CSARFE 0x00002000
397 #define ADIN1110_CONFIG0_ZARFE 0x00001000
398 #define ADIN1110_CONFIG0_TXCTHRESH 0x00000C00
399 #define ADIN1110_CONFIG0_TXCTHRESH_1_CREDIT 0x00000000
400 #define ADIN1110_CONFIG0_TXCTHRESH_4_CREDITS 0x00000400
401 #define ADIN1110_CONFIG0_TXCTHRESH_8_CREDITS 0x00000800
402 #define ADIN1110_CONFIG0_TXCTHRESH_16_CREDITS 0x00000C00
403 #define ADIN1110_CONFIG0_TXCTE 0x00000200
404 #define ADIN1110_CONFIG0_RXCTE 0x00000100
405 #define ADIN1110_CONFIG0_FTSE 0x00000080
406 #define ADIN1110_CONFIG0_FTSS 0x00000040
407 #define ADIN1110_CONFIG0_PROTE 0x00000020
408 #define ADIN1110_CONFIG0_SEQE 0x00000010
409 #define ADIN1110_CONFIG0_CPS 0x00000007
410 #define ADIN1110_CONFIG0_CPS_8B 0x00000003
411 #define ADIN1110_CONFIG0_CPS_16B 0x00000004
412 #define ADIN1110_CONFIG0_CPS_32B 0x00000005
413 #define ADIN1110_CONFIG0_CPS_64B 0x00000006
414 
415 //Configuration 2 register
416 #define ADIN1110_CONFIG2_TX_RDY_ON_EMPTY 0x00000100
417 #define ADIN1110_CONFIG2_SFD_DETECT_SRC 0x00000080
418 #define ADIN1110_CONFIG2_STATS_CLR_ON_RD 0x00000040
419 #define ADIN1110_CONFIG2_CRC_APPEND 0x00000020
420 #define ADIN1110_CONFIG2_P1_RCV_IFG_ERR_FRM 0x00000010
421 #define ADIN1110_CONFIG2_P1_FWD_UNK2HOST 0x00000004
422 #define ADIN1110_CONFIG2_MSPEED 0x00000003
423 #define ADIN1110_CONFIG2_MSPEED_2_5_MHZ 0x00000000
424 #define ADIN1110_CONFIG2_MSPEED_4_166_MHZ 0x00000001
425 
426 //Status 0 register
427 #define ADIN1110_STATUS0_CDPE 0x00001000
428 #define ADIN1110_STATUS0_TXFCSE 0x00000800
429 #define ADIN1110_STATUS0_TTSCAC 0x00000400
430 #define ADIN1110_STATUS0_TTSCAB 0x00000200
431 #define ADIN1110_STATUS0_TTSCAA 0x00000100
432 #define ADIN1110_STATUS0_PHYINT 0x00000080
433 #define ADIN1110_STATUS0_RESETC 0x00000040
434 #define ADIN1110_STATUS0_HDRE 0x00000020
435 #define ADIN1110_STATUS0_LOFE 0x00000010
436 #define ADIN1110_STATUS0_RXBOE 0x00000008
437 #define ADIN1110_STATUS0_TXBUE 0x00000004
438 #define ADIN1110_STATUS0_TXBOE 0x00000002
439 #define ADIN1110_STATUS0_TXPE 0x00000001
440 
441 //Status 1 register
442 #define ADIN1110_STATUS1_TX_ECC_ERR 0x00001000
443 #define ADIN1110_STATUS1_RX_ECC_ERR 0x00000800
444 #define ADIN1110_STATUS1_SPI_ERR 0x00000400
445 #define ADIN1110_STATUS1_P1_RX_IFG_ERR 0x00000100
446 #define ADIN1110_STATUS1_P1_RX_RDY_HI 0x00000020
447 #define ADIN1110_STATUS1_P1_RX_RDY 0x00000010
448 #define ADIN1110_STATUS1_TX_RDY 0x00000008
449 #define ADIN1110_STATUS1_LINK_CHANGE 0x00000002
450 #define ADIN1110_STATUS1_P1_LINK_STATUS 0x00000001
451 
452 //Buffer Status register
453 #define ADIN1110_BUFSTS_TXC 0x0000FF00
454 #define ADIN1110_BUFSTS_RCA 0x000000FF
455 
456 //Interrupt Mask 0 register
457 #define ADIN1110_IMASK0_CDPEM 0x00001000
458 #define ADIN1110_IMASK0_TXFCSEM 0x00000800
459 #define ADIN1110_IMASK0_TTSCACM 0x00000400
460 #define ADIN1110_IMASK0_TTSCABM 0x00000200
461 #define ADIN1110_IMASK0_TTSCAAM 0x00000100
462 #define ADIN1110_IMASK0_PHYINTM 0x00000080
463 #define ADIN1110_IMASK0_RESETCM 0x00000040
464 #define ADIN1110_IMASK0_HDREM 0x00000020
465 #define ADIN1110_IMASK0_LOFEM 0x00000010
466 #define ADIN1110_IMASK0_RXBOEM 0x00000008
467 #define ADIN1110_IMASK0_TXBUEM 0x00000004
468 #define ADIN1110_IMASK0_TXBOEM 0x00000002
469 #define ADIN1110_IMASK0_TXPEM 0x00000001
470 
471 //Mask Bits for Driving the Interrupt Pin register
472 #define ADIN1110_IMASK1_TX_ECC_ERR_MASK 0x00001000
473 #define ADIN1110_IMASK1_RX_ECC_ERR_MASK 0x00000800
474 #define ADIN1110_IMASK1_SPI_ERR_MASK 0x00000400
475 #define ADIN1110_IMASK1_P1_RX_IFG_ERR_MASK 0x00000100
476 #define ADIN1110_IMASK1_P1_RX_RDY_MASK 0x00000010
477 #define ADIN1110_IMASK1_TX_RDY_MASK 0x00000008
478 #define ADIN1110_IMASK1_LINK_CHANGE_MASK 0x00000002
479 
480 //MDIO Access register
481 #define ADIN1110_MDIOACC_MDIO_TRDONE 0x80000000
482 #define ADIN1110_MDIOACC_MDIO_TAERR 0x40000000
483 #define ADIN1110_MDIOACC_MDIO_ST 0x30000000
484 #define ADIN1110_MDIOACC_MDIO_ST_CLAUSE_45 0x00000000
485 #define ADIN1110_MDIOACC_MDIO_ST_CLAUSE_22 0x10000000
486 #define ADIN1110_MDIOACC_MDIO_OP 0x0C000000
487 #define ADIN1110_MDIOACC_MDIO_OP_ADDR 0x00000000
488 #define ADIN1110_MDIOACC_MDIO_OP_WRITE 0x04000000
489 #define ADIN1110_MDIOACC_MDIO_OP_INC_READ 0x08000000
490 #define ADIN1110_MDIOACC_MDIO_OP_READ 0x0C000000
491 #define ADIN1110_MDIOACC_MDIO_PRTAD 0x03E00000
492 #define ADIN1110_MDIOACC_MDIO_PRTAD_DEFAULT 0x00200000
493 #define ADIN1110_MDIOACC_MDIO_DEVAD 0x001F0000
494 #define ADIN1110_MDIOACC_MDIO_DATA 0x0000FFFF
495 
496 //MAC Tx Frame Size register
497 #define ADIN1110_TX_FSIZE_TX_FRM_SIZE 0x000007FF
498 
499 //MAC Transmit register
500 #define ADIN1110_TX_TDR 0xFFFFFFFF
501 
502 //Tx FIFO Space register
503 #define ADIN1110_TX_SPACE_TX_SPACE 0x00003FFF
504 
505 //Transmit Threshold register
506 #define ADIN1110_TX_THRESH_HOST_TX_THRESH 0x0000003F
507 
508 //MAC FIFO Clear register
509 #define ADIN1110_FIFO_CLR_MAC_TXF_CLR 0x00000002
510 #define ADIN1110_FIFO_CLR_MAC_RXF_CLR 0x00000001
511 
512 //Scratch register
513 #define ADIN1110_SCRATCH_SCRATCH_DATA 0xFFFFFFFF
514 
515 //MAC Reset Status register
516 #define ADIN1110_MAC_RST_STATUS_MAC_CRYSL_CLK_RDY 0x00000002
517 #define ADIN1110_MAC_RST_STATUS_MAC_OSC_CLK_RDY 0x00000001
518 
519 //Software Reset register
520 #define ADIN1110_SOFT_RST_RST_KEY 0x0000FFFF
521 #define ADIN1110_SOFT_RST_RST_KEY_1_RESET 0x00004F1C
522 #define ADIN1110_SOFT_RST_RST_KEY_2_RESET 0x0000C1F4
523 #define ADIN1110_SOFT_RST_RST_KEY_1_RELEASE 0x00006F1A
524 #define ADIN1110_SOFT_RST_RST_KEY_2_RELEASE 0x0000A1F6
525 
526 //Inject an Error on MISO from the DUT register
527 #define ADIN1110_SPI_INJ_ERR_TEST_SPI_INJ_ERR 0x00000001
528 
529 //FIFO Sizes register
530 #define ADIN1110_FIFO_SIZE_P1_RX_HI_SIZE 0x00000F00
531 #define ADIN1110_FIFO_SIZE_P1_RX_HI_SIZE_0KB 0x00000000
532 #define ADIN1110_FIFO_SIZE_P1_RX_HI_SIZE_2KB 0x00000100
533 #define ADIN1110_FIFO_SIZE_P1_RX_HI_SIZE_4KB 0x00000200
534 #define ADIN1110_FIFO_SIZE_P1_RX_HI_SIZE_6KB 0x00000300
535 #define ADIN1110_FIFO_SIZE_P1_RX_HI_SIZE_8KB 0x00000400
536 #define ADIN1110_FIFO_SIZE_P1_RX_HI_SIZE_10KB 0x00000500
537 #define ADIN1110_FIFO_SIZE_P1_RX_HI_SIZE_12KB 0x00000600
538 #define ADIN1110_FIFO_SIZE_P1_RX_HI_SIZE_14KB 0x00000700
539 #define ADIN1110_FIFO_SIZE_P1_RX_HI_SIZE_16KB 0x00000800
540 #define ADIN1110_FIFO_SIZE_P1_RX_LO_SIZE 0x000000F0
541 #define ADIN1110_FIFO_SIZE_P1_RX_LO_SIZE_0KB 0x00000000
542 #define ADIN1110_FIFO_SIZE_P1_RX_LO_SIZE_2KB 0x00000010
543 #define ADIN1110_FIFO_SIZE_P1_RX_LO_SIZE_4KB 0x00000020
544 #define ADIN1110_FIFO_SIZE_P1_RX_LO_SIZE_6KB 0x00000030
545 #define ADIN1110_FIFO_SIZE_P1_RX_LO_SIZE_8KB 0x00000040
546 #define ADIN1110_FIFO_SIZE_P1_RX_LO_SIZE_10KB 0x00000050
547 #define ADIN1110_FIFO_SIZE_P1_RX_LO_SIZE_12KB 0x00000060
548 #define ADIN1110_FIFO_SIZE_P1_RX_LO_SIZE_14KB 0x00000070
549 #define ADIN1110_FIFO_SIZE_P1_RX_LO_SIZE_16KB 0x00000080
550 #define ADIN1110_FIFO_SIZE_HTX_SIZE 0x0000000F
551 #define ADIN1110_FIFO_SIZE_HTX_SIZE_0KB 0x00000000
552 #define ADIN1110_FIFO_SIZE_HTX_SIZE_2KB 0x00000001
553 #define ADIN1110_FIFO_SIZE_HTX_SIZE_4KB 0x00000002
554 #define ADIN1110_FIFO_SIZE_HTX_SIZE_6KB 0x00000003
555 #define ADIN1110_FIFO_SIZE_HTX_SIZE_8KB 0x00000004
556 #define ADIN1110_FIFO_SIZE_HTX_SIZE_10KB 0x00000005
557 #define ADIN1110_FIFO_SIZE_HTX_SIZE_12KB 0x00000006
558 #define ADIN1110_FIFO_SIZE_HTX_SIZE_14KB 0x00000007
559 #define ADIN1110_FIFO_SIZE_HTX_SIZE_16KB 0x00000008
560 
561 //Tx FIFO Frame Count register
562 #define ADIN1110_TFC_TFC 0x000001FF
563 
564 //Tx FIFO Valid Half Words register
565 #define ADIN1110_TXSIZE_TX_SIZE 0x00003FFF
566 
567 //Address of a Detected ECC Error in Memory register
568 #define ADIN1110_MECC_ERR_ADDR_MECC_ERR_ADDR 0x00003FFF
569 
570 //Corrected ECC Error Counter register
571 #define ADIN1110_CECC_ERR_CECC_ERR_CNT 0x000003FF
572 
573 //MAC Address Rule and DA Filter Upper 16 Bits register
574 #define ADIN1110_ADDR_FILT_UPR_APPLY2PORT1 0x40000000
575 #define ADIN1110_ADDR_FILT_UPR_HOST_PRI 0x00080000
576 #define ADIN1110_ADDR_FILT_UPR_TO_HOST 0x00010000
577 #define ADIN1110_ADDR_FILT_UPR_MAC_ADDR_47_32 0x0000FFFF
578 
579 //MAC Address DA Filter Lower 32 Bits register
580 #define ADIN1110_ADDR_FILT_LWR_MAC_ADDR_31_0 0xFFFFFFFF
581 
582 //Upper 16 Bits of the MAC Address Mask register
583 #define ADIN1110_ADDR_MSK_UPR_MAC_ADDR_MASK_47_32 0x0000FFFF
584 
585 //Lower 32 Bits of the MAC Address Mask register
586 #define ADIN1110_ADDR_MSK_LWR_MAC_ADDR_MASK_31_0 0xFFFFFFFF
587 
588 //Timer Configuration register
589 #define ADIN1110_TS_CFG_TS_CAPT_FREE_CNT 0x00000010
590 #define ADIN1110_TS_CFG_TS_TIMER_STOP 0x00000008
591 #define ADIN1110_TS_CFG_TS_TIMER_DEF 0x00000004
592 #define ADIN1110_TS_CFG_TS_CLR 0x00000002
593 #define ADIN1110_TS_CFG_TS_EN 0x00000001
594 
595 //Quantization Error Correction register
596 #define ADIN1110_TS_TIMER_QE_CORR_TS_TIMER_QE_CORR 0x000000FF
597 
598 //P1 MAC Rx Frame Size register
599 #define ADIN1110_P1_RX_FSIZE_P1_RX_FRM_SIZE 0x000007FF
600 
601 //P1 MAC Receive register
602 #define ADIN1110_P1_RX_P1_RDR 0xFFFFFFFF
603 
604 //P1 Transmit Inter Frame Gap register
605 #define ADIN1110_P1_TX_IFG_P1_TX_IFG 0x000000FF
606 
607 //P1 MAC Loopback Enable register
608 #define ADIN1110_P1_LOOP_P1_LOOPBACK_EN 0x00000001
609 
610 //P1 CRC Check Enable on Receive register
611 #define ADIN1110_P1_RX_CRC_EN_P1_CRC_CHK_EN 0x00000001
612 
613 //P1 Receive Inter Frame Gap register
614 #define ADIN1110_P1_RX_IFG_P1_RX_IFG 0x0000003F
615 
616 //P1 Max Receive Frame Length register
617 #define ADIN1110_P1_RX_MAX_LEN_P1_MAX_FRM_LEN 0x0000FFFF
618 
619 //P1 Min Receive Frame Length register
620 #define ADIN1110_P1_RX_MIN_LEN_P1_MIN_FRM_LEN 0x0000FFFF
621 
622 //P1 Rx Low Priority FIFO Frame Count register
623 #define ADIN1110_P1_LO_RFC_P1_LO_RFC 0x000001FF
624 
625 //P1 Rx High Priority FIFO Frame Count register
626 #define ADIN1110_P1_HI_RFC_P1_HI_RFC 0x000001FF
627 
628 //P1 Low Priority Rx FIFO Valid Half Words register
629 #define ADIN1110_P1_LO_RXSIZE_P1_LO_RXSIZE 0x00003FFF
630 
631 //P1 High Priority Rx FIFO Valid Half Words register
632 #define ADIN1110_P1_HI_RXSIZE_P1_HI_RXSIZE 0x00003FFF
633 
634 //MII Control register
635 #define ADIN1110_MI_CONTROL_MI_SFT_RST 0x8000
636 #define ADIN1110_MI_CONTROL_MI_LOOPBACK 0x4000
637 #define ADIN1110_MI_CONTROL_MI_SPEED_SEL_LSB 0x2000
638 #define ADIN1110_MI_CONTROL_MI_AN_EN 0x1000
639 #define ADIN1110_MI_CONTROL_MI_SFT_PD 0x0800
640 #define ADIN1110_MI_CONTROL_MI_ISOLATE 0x0400
641 #define ADIN1110_MI_CONTROL_MI_FULL_DUPLEX 0x0100
642 #define ADIN1110_MI_CONTROL_MI_COLTEST 0x0080
643 #define ADIN1110_MI_CONTROL_MI_SPEED_SEL_MSB 0x0040
644 #define ADIN1110_MI_CONTROL_MI_UNIDIR_EN 0x0020
645 
646 //MII Status register
647 #define ADIN1110_MI_STATUS_MI_T4_SPRT 0x8000
648 #define ADIN1110_MI_STATUS_MI_FD100_SPRT 0x4000
649 #define ADIN1110_MI_STATUS_MI_HD100_SPRT 0x2000
650 #define ADIN1110_MI_STATUS_MI_FD10_SPRT 0x1000
651 #define ADIN1110_MI_STATUS_MI_HD10_SPRT 0x0800
652 #define ADIN1110_MI_STATUS_MI_FD_T2_SPRT 0x0400
653 #define ADIN1110_MI_STATUS_MI_HD_T2_SPRT 0x0200
654 #define ADIN1110_MI_STATUS_MI_EXT_STAT_SPRT 0x0100
655 #define ADIN1110_MI_STATUS_MI_UNIDIR_ABLE 0x0080
656 #define ADIN1110_MI_STATUS_MI_MF_PREAM_SUP_ABLE 0x0040
657 #define ADIN1110_MI_STATUS_MI_AN_COMPLETE 0x0020
658 #define ADIN1110_MI_STATUS_MI_REM_FLT 0x0010
659 #define ADIN1110_MI_STATUS_MI_AN_ABLE 0x0008
660 #define ADIN1110_MI_STATUS_MI_LINK_STAT_LAT 0x0004
661 #define ADIN1110_MI_STATUS_MI_JABBER_DET 0x0002
662 #define ADIN1110_MI_STATUS_MI_EXT_CAPABLE 0x0001
663 
664 //PHY Identifier 1 register
665 #define ADIN1110_MI_PHY_ID1_MI_PHY_ID1 0xFFFF
666 #define ADIN1110_MI_PHY_ID1_MI_PHY_ID1_DEFAULT 0x0283
667 
668 //PHY Identifier 2 register
669 #define ADIN1110_MI_PHY_ID2_MI_PHY_ID2_OUI 0xFC00
670 #define ADIN1110_MI_PHY_ID2_MI_PHY_ID2_OUI_DEFAULT 0xBC00
671 #define ADIN1110_MI_PHY_ID2_MI_MODEL_NUM 0x03F0
672 #define ADIN1110_MI_PHY_ID2_MI_MODEL_NUM_DEFAULT 0x0090
673 #define ADIN1110_MI_PHY_ID2_MI_REV_NUM 0x000F
674 #define ADIN1110_MI_PHY_ID2_MI_REV_NUM_DEFAULT 0x0001
675 
676 //MMD Access Control register
677 #define ADIN1110_MMD_ACCESS_CNTRL_MMD_ACR_FUNCTION 0xC000
678 #define ADIN1110_MMD_ACCESS_CNTRL_MMD_ACR_FUNCTION_ADDR 0x0000
679 #define ADIN1110_MMD_ACCESS_CNTRL_MMD_ACR_FUNCTION_DATA_NO_POST_INC 0x4000
680 #define ADIN1110_MMD_ACCESS_CNTRL_MMD_ACR_FUNCTION_DATA_POST_INC_RW 0x8000
681 #define ADIN1110_MMD_ACCESS_CNTRL_MMD_ACR_FUNCTION_DATA_POST_INC_W 0xC000
682 #define ADIN1110_MMD_ACCESS_CNTRL_MMD_ACR_DEVAD 0x001F
683 
684 //PMA/PMD Control 1 register
685 #define ADIN1110_PMA_PMD_CNTRL1_PMA_SFT_RST 0x8000
686 #define ADIN1110_PMA_PMD_CNTRL1_PMA_SFT_PD 0x0800
687 #define ADIN1110_PMA_PMD_CNTRL1_LB_PMA_LOC_EN 0x0001
688 
689 //PMA/PMD Status 1 register
690 #define ADIN1110_PMA_PMD_STAT1_PMA_LINK_STAT_OK_LL 0x0004
691 #define ADIN1110_PMA_PMD_STAT1_PMA_SFT_PD_ABLE 0x0002
692 
693 //PMA/PMD Control 2 register
694 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL 0x007F
695 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_CX4 0x0000
696 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_EW 0x0001
697 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_LW 0x0002
698 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_SW 0x0003
699 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_LX4 0x0004
700 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_ER 0x0005
701 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_LR 0x0006
702 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_SR 0x0007
703 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_LRM 0x0008
704 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_T 0x0009
705 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_KX4 0x000A
706 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_KR 0x000B
707 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_1000BASE_T 0x000C
708 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_1000BASE_KX 0x000D
709 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_100BASE_TX 0x000E
710 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10BASE_T 0x000F
711 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10_1GBASE_PRX_D1 0x0010
712 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10_1GBASE_PRX_D2 0x0011
713 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10_1GBASE_PRX_D3 0x0012
714 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_PR_D1 0x0013
715 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_PR_D2 0x0014
716 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_PR_D3 0x0015
717 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10_1GBASE_PRX_U1 0x0016
718 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10_1GBASE_PRX_U2 0x0017
719 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10_1GBASE_PRX_U3 0x0018
720 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_PR_U1 0x0019
721 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_PR_U3 0x001A
722 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_RESERVED 0x001B
723 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_PR_D4 0x001C
724 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10_1GBASE_PRX_D4 0x001D
725 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GBASE_PR_U4 0x001E
726 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10_1GBASE_PRX_U4 0x001F
727 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_40GBASE_KR4 0x0020
728 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_40GBASE_CR4 0x0021
729 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_40GBASE_SR4 0x0022
730 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_40GBASE_LR4 0x0023
731 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_40GBASE_FR 0x0024
732 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_40GBASE_ER4 0x0025
733 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_40GBASE_T 0x0026
734 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_100GBASE_CR10 0x0028
735 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_100GBASE_SR10 0x0029
736 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_100GBASE_LR4 0x002A
737 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_100GBASE_ER4 0x002B
738 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_100GBASE_KP4 0x002C
739 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_100GBASE_KR4 0x002D
740 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_100GBASE_CR4 0x002E
741 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_100GBASE_SR4 0x002F
742 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_2_5GBASE_T 0x0030
743 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_5GBASE_T 0x0031
744 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GPASS_XR_D 0x0032
745 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_10GPASS_XR_U 0x0033
746 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_BASE_H 0x0034
747 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_25GBASE_LR 0x0035
748 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_25GBASE_ER 0x0036
749 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_25GBASE_T 0x0037
750 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_25GBASE_CR 0x0038
751 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_25GBASE_KR 0x0039
752 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_25GBASE_SR 0x003A
753 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_BASE_T1 0x003D
754 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_200GBASE_DR4 0x0053
755 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_200GBASE_FR4 0x0054
756 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_200GBASE_LR4 0x0055
757 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_400GBASE_SR16 0x0059
758 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_400GBASE_DR4 0x005A
759 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_400GBASE_FR8 0x005B
760 #define ADIN1110_PMA_PMD_CNTRL2_PMA_PMD_TYPE_SEL_400GBASE_LR8 0x005C
761 
762 //PMA/PMD Status 2 register
763 #define ADIN1110_PMA_PMD_STAT2_PMA_PMD_PRESENT 0xC000
764 #define ADIN1110_PMA_PMD_STAT2_PMA_PMD_EXT_ABLE 0x0200
765 #define ADIN1110_PMA_PMD_STAT2_PMA_PMD_TX_DIS_ABLE 0x0100
766 #define ADIN1110_PMA_PMD_STAT2_LB_PMA_LOC_ABLE 0x0001
767 
768 //PMA/PMD Transmit Disable register
769 #define ADIN1110_PMA_PMD_TX_DIS_PMA_TX_DIS 0x0001
770 
771 //PMA/PMD Extended Abilities register
772 #define ADIN1110_PMA_PMD_EXT_ABILITY_PMA_PMD_BT1_ABLE 0x0800
773 
774 //BASE-T1 PMA/PMD Extended Ability register
775 #define ADIN1110_PMA_PMD_BT1_ABILITY_B10S_ABILITY 0x0008
776 #define ADIN1110_PMA_PMD_BT1_ABILITY_B10L_ABILITY 0x0004
777 #define ADIN1110_PMA_PMD_BT1_ABILITY_B1000_ABILITY 0x0002
778 #define ADIN1110_PMA_PMD_BT1_ABILITY_B100_ABILITY 0x0001
779 
780 //BASE-T1 PMA/PMD Control register
781 #define ADIN1110_PMA_PMD_BT1_CONTROL_CFG_MST 0x4000
782 #define ADIN1110_PMA_PMD_BT1_CONTROL_BT1_TYPE_SEL 0x000F
783 #define ADIN1110_PMA_PMD_BT1_CONTROL_BT1_TYPE_SEL_100BASE_T 0x0000
784 #define ADIN1110_PMA_PMD_BT1_CONTROL_BT1_TYPE_SEL_1000BASE_T 0x0001
785 #define ADIN1110_PMA_PMD_BT1_CONTROL_BT1_TYPE_SEL_10BASE_T1L 0x0002
786 #define ADIN1110_PMA_PMD_BT1_CONTROL_BT1_TYPE_SEL_10BASE_T1S 0x0003
787 
788 //10BASE-T1L PMA Control register
789 #define ADIN1110_B10L_PMA_CNTRL_B10L_TX_DIS_MODE_EN 0x4000
790 #define ADIN1110_B10L_PMA_CNTRL_B10L_TX_LVL_HI 0x1000
791 #define ADIN1110_B10L_PMA_CNTRL_B10L_EEE 0x0400
792 #define ADIN1110_B10L_PMA_CNTRL_B10L_LB_PMA_LOC_EN 0x0001
793 
794 //10BASE-T1L PMA Status register
795 #define ADIN1110_B10L_PMA_STAT_B10L_LB_PMA_LOC_ABLE 0x2000
796 #define ADIN1110_B10L_PMA_STAT_B10L_TX_LVL_HI_ABLE 0x1000
797 #define ADIN1110_B10L_PMA_STAT_B10L_PMA_SFT_PD_ABLE 0x0800
798 #define ADIN1110_B10L_PMA_STAT_B10L_EEE_ABLE 0x0400
799 
800 //10BASE-T1L Test Mode Control register
801 #define ADIN1110_B10L_TEST_MODE_CNTRL_B10L_TX_TEST_MODE 0xE000
802 
803 //Frequency Offset Saturation Threshold for CR Stability Check register
804 #define ADIN1110_CR_STBL_CHK_FOFFS_SAT_THR_CR_STBL_CHK_FOFFS_SAT_THR 0x0400
805 
806 //10BASE-T1L PMA Link Status register
807 #define ADIN1110_B10L_PMA_LINK_STAT_B10L_REM_RCVR_STAT_OK_LL 0x0200
808 #define ADIN1110_B10L_PMA_LINK_STAT_B10L_REM_RCVR_STAT_OK 0x0100
809 #define ADIN1110_B10L_PMA_LINK_STAT_B10L_LOC_RCVR_STAT_OK_LL 0x0080
810 #define ADIN1110_B10L_PMA_LINK_STAT_B10L_LOC_RCVR_STAT_OK 0x0040
811 #define ADIN1110_B10L_PMA_LINK_STAT_B10L_DSCR_STAT_OK_LL 0x0020
812 #define ADIN1110_B10L_PMA_LINK_STAT_B10L_DSCR_STAT_OK 0x0010
813 #define ADIN1110_B10L_PMA_LINK_STAT_B10L_LINK_STAT_OK_LL 0x0002
814 #define ADIN1110_B10L_PMA_LINK_STAT_B10L_LINK_STAT_OK 0x0001
815 
816 //PCS Control 1 register
817 #define ADIN1110_PCS_CNTRL1_PCS_SFT_RST 0x8000
818 #define ADIN1110_PCS_CNTRL1_LB_PCS_EN 0x4000
819 #define ADIN1110_PCS_CNTRL1_PCS_SFT_PD 0x0800
820 
821 //PCS Status 1 register
822 #define ADIN1110_PCS_STAT1_PCS_SFT_PD_ABLE 0x0002
823 
824 //PCS Status 2 register
825 #define ADIN1110_PCS_STAT2_PCS_PRESENT 0xC000
826 
827 //10BASE-T1L PCS Control register
828 #define ADIN1110_B10L_PCS_CNTRL_B10L_LB_PCS_EN 0x4000
829 
830 //10BASE-T1L PCS Status register
831 #define ADIN1110_B10L_PCS_STAT_B10L_PCS_DSCR_STAT_OK_LL 0x0004
832 
833 //BASE-T1 Autonegotiation Control register
834 #define ADIN1110_AN_CONTROL_AN_EN 0x1000
835 #define ADIN1110_AN_CONTROL_AN_RESTART 0x0200
836 
837 //BASE-T1 Autonegotiation Status register
838 #define ADIN1110_AN_STATUS_AN_PAGE_RX 0x0040
839 #define ADIN1110_AN_STATUS_AN_COMPLETE 0x0020
840 #define ADIN1110_AN_STATUS_AN_REMOTE_FAULT 0x0010
841 #define ADIN1110_AN_STATUS_AN_ABLE 0x0008
842 #define ADIN1110_AN_STATUS_AN_LINK_STATUS 0x0004
843 
844 //BASE-T1 Autonegotiation Advertisement L register
845 #define ADIN1110_AN_ADV_ABILITY_L_AN_ADV_NEXT_PAGE_REQ 0x8000
846 #define ADIN1110_AN_ADV_ABILITY_L_AN_ADV_ACK 0x4000
847 #define ADIN1110_AN_ADV_ABILITY_L_AN_ADV_REMOTE_FAULT 0x2000
848 #define ADIN1110_AN_ADV_ABILITY_L_AN_ADV_FORCE_MS 0x1000
849 #define ADIN1110_AN_ADV_ABILITY_L_AN_ADV_PAUSE 0x0C00
850 #define ADIN1110_AN_ADV_ABILITY_L_AN_ADV_SELECTOR 0x001F
851 #define ADIN1110_AN_ADV_ABILITY_L_AN_ADV_SELECTOR_DEFAULT 0x0001
852 
853 //BASE-T1 Autonegotiation Advertisement M register
854 #define ADIN1110_AN_ADV_ABILITY_M_AN_ADV_B10L 0x4000
855 #define ADIN1110_AN_ADV_ABILITY_M_AN_ADV_MST 0x0010
856 
857 //BASE-T1 Autonegotiation Advertisement H register
858 #define ADIN1110_AN_ADV_ABILITY_H_AN_ADV_B10L_TX_LVL_HI_ABL 0x2000
859 #define ADIN1110_AN_ADV_ABILITY_H_AN_ADV_B10L_TX_LVL_HI_REQ 0x1000
860 
861 //BASE-T1 Autonegotiation Link Partner Base Page Ability L register
862 #define ADIN1110_AN_LP_ADV_ABILITY_L_AN_LP_ADV_NEXT_PAGE_REQ 0x8000
863 #define ADIN1110_AN_LP_ADV_ABILITY_L_AN_LP_ADV_ACK 0x4000
864 #define ADIN1110_AN_LP_ADV_ABILITY_L_AN_LP_ADV_REMOTE_FAULT 0x2000
865 #define ADIN1110_AN_LP_ADV_ABILITY_L_AN_LP_ADV_FORCE_MS 0x1000
866 #define ADIN1110_AN_LP_ADV_ABILITY_L_AN_LP_ADV_PAUSE 0x0C00
867 #define ADIN1110_AN_LP_ADV_ABILITY_L_AN_LP_ADV_SELECTOR 0x001F
868 
869 //BASE-T1 Autonegotiation Link Partner Base Page Ability M register
870 #define ADIN1110_AN_LP_ADV_ABILITY_M_AN_LP_ADV_B10L 0x4000
871 #define ADIN1110_AN_LP_ADV_ABILITY_M_AN_LP_ADV_B1000 0x0080
872 #define ADIN1110_AN_LP_ADV_ABILITY_M_AN_LP_ADV_B10S_FD 0x0040
873 #define ADIN1110_AN_LP_ADV_ABILITY_M_AN_LP_ADV_B100 0x0020
874 #define ADIN1110_AN_LP_ADV_ABILITY_M_AN_LP_ADV_MST 0x0010
875 
876 //BASE-T1 Autonegotiation Link Partner Base Page Ability H register
877 #define ADIN1110_AN_LP_ADV_ABILITY_H_AN_LP_ADV_B10L_EEE 0x4000
878 #define ADIN1110_AN_LP_ADV_ABILITY_H_AN_LP_ADV_B10L_TX_LVL_HI_ABL 0x2000
879 #define ADIN1110_AN_LP_ADV_ABILITY_H_AN_LP_ADV_B10L_TX_LVL_HI_REQ 0x1000
880 #define ADIN1110_AN_LP_ADV_ABILITY_H_AN_LP_ADV_B10S_HD 0x0800
881 
882 //BASE-T1 Autonegotiation Next Page Transmit L register
883 #define ADIN1110_AN_NEXT_PAGE_L_AN_NP_NEXT_PAGE_REQ 0x8000
884 #define ADIN1110_AN_NEXT_PAGE_L_AN_NP_ACK 0x4000
885 #define ADIN1110_AN_NEXT_PAGE_L_AN_NP_MESSAGE_PAGE 0x2000
886 #define ADIN1110_AN_NEXT_PAGE_L_AN_NP_ACK2 0x1000
887 #define ADIN1110_AN_NEXT_PAGE_L_AN_NP_TOGGLE 0x0800
888 #define ADIN1110_AN_NEXT_PAGE_L_AN_NP_MESSAGE_CODE 0x07FF
889 #define ADIN1110_AN_NEXT_PAGE_L_AN_NP_MESSAGE_CODE_NULL 0x0001
890 #define ADIN1110_AN_NEXT_PAGE_L_AN_NP_MESSAGE_CODE_OUI_TAGGED 0x0005
891 #define ADIN1110_AN_NEXT_PAGE_L_AN_NP_MESSAGE_CODE_AN_DEV_ID_TAG 0x0006
892 
893 //BASE-T1 Autonegotiation Next Page Transmit M register
894 #define ADIN1110_AN_NEXT_PAGE_M_AN_NP_UNFORMATTED1 0xFFFF
895 
896 //BASE-T1 Autonegotiation Next Page Transmit H register
897 #define ADIN1110_AN_NEXT_PAGE_H_AN_NP_UNFORMATTED2 0xFFFF
898 
899 //BASE-T1 Autonegotiation Link Partner Next Page Ability L register
900 #define ADIN1110_AN_LP_NEXT_PAGE_L_AN_LP_NP_NEXT_PAGE_REQ 0x8000
901 #define ADIN1110_AN_LP_NEXT_PAGE_L_AN_LP_NP_ACK 0x4000
902 #define ADIN1110_AN_LP_NEXT_PAGE_L_AN_LP_NP_MESSAGE_PAGE 0x2000
903 #define ADIN1110_AN_LP_NEXT_PAGE_L_AN_LP_NP_ACK2 0x1000
904 #define ADIN1110_AN_LP_NEXT_PAGE_L_AN_LP_NP_TOGGLE 0x0800
905 #define ADIN1110_AN_LP_NEXT_PAGE_L_AN_LP_NP_MESSAGE_CODE 0x07FF
906 #define ADIN1110_AN_LP_NEXT_PAGE_L_AN_LP_NP_MESSAGE_CODE_NULL 0x0001
907 #define ADIN1110_AN_LP_NEXT_PAGE_L_AN_LP_NP_MESSAGE_CODE_OUI_TAGGED 0x0005
908 #define ADIN1110_AN_LP_NEXT_PAGE_L_AN_LP_NP_MESSAGE_CODE_AN_DEV_ID_TAG 0x0006
909 
910 //BASE-T1 Autonegotiation Link Partner Next Page Ability M register
911 #define ADIN1110_AN_LP_NEXT_PAGE_M_AN_LP_NP_UNFORMATTED1 0xFFFF
912 
913 //BASE-T1 Autonegotiation Link Partner Next Page Ability H register
914 #define ADIN1110_AN_LP_NEXT_PAGE_H_AN_LP_NP_UNFORMATTED2 0xFFFF
915 
916 //10BASE-T1 Autonegotiation Control register
917 #define ADIN1110_AN_B10_ADV_ABILITY_AN_B10_ADV_B10L 0x8000
918 #define ADIN1110_AN_B10_ADV_ABILITY_AN_B10_ADV_B10L_EEE 0x4000
919 #define ADIN1110_AN_B10_ADV_ABILITY_AN_B10_ADV_B10L_TX_LVL_HI_ABL 0x2000
920 #define ADIN1110_AN_B10_ADV_ABILITY_AN_B10_ADV_B10L_TX_LVL_HI_REQ 0x1000
921 
922 //10BASE-T1 Autonegotiation Status register
923 #define ADIN1110_AN_B10_LP_ADV_ABILITY_AN_B10_LP_ADV_B10L 0x8000
924 #define ADIN1110_AN_B10_LP_ADV_ABILITY_AN_B10_LP_ADV_B10L_EEE 0x4000
925 #define ADIN1110_AN_B10_LP_ADV_ABILITY_AN_B10_LP_ADV_B10L_TX_LVL_HI_ABL 0x2000
926 #define ADIN1110_AN_B10_LP_ADV_ABILITY_AN_B10_LP_ADV_B10L_TX_LVL_HI_REQ 0x1000
927 #define ADIN1110_AN_B10_LP_ADV_ABILITY_AN_B10_LP_ADV_B10S_FD 0x0080
928 #define ADIN1110_AN_B10_LP_ADV_ABILITY_AN_B10_LP_ADV_B10S_HD 0x0040
929 
930 //Autonegotiation Force Mode Enable register
931 #define ADIN1110_AN_FRC_MODE_EN_AN_FRC_MODE_EN 0x0001
932 
933 //Extra Autonegotiation Status register
934 #define ADIN1110_AN_STATUS_EXTRA_AN_LP_NP_RX 0x0400
935 #define ADIN1110_AN_STATUS_EXTRA_AN_INC_LINK 0x0200
936 #define ADIN1110_AN_STATUS_EXTRA_AN_TX_LVL_RSLTN 0x0180
937 #define ADIN1110_AN_STATUS_EXTRA_AN_TX_LVL_RSLTN_NOT_RUN 0x0000
938 #define ADIN1110_AN_STATUS_EXTRA_AN_TX_LVL_RSLTN_SUCCESS_1_0V 0x0100
939 #define ADIN1110_AN_STATUS_EXTRA_AN_TX_LVL_RSLTN_SUCCESS_2_4V 0x0180
940 #define ADIN1110_AN_STATUS_EXTRA_AN_MS_CONFIG_RSLTN 0x0060
941 #define ADIN1110_AN_STATUS_EXTRA_AN_MS_CONFIG_RSLTN_NOT_RUN 0x0000
942 #define ADIN1110_AN_STATUS_EXTRA_AN_MS_CONFIG_RSLTN_CONFIG_FAULT 0x0020
943 #define ADIN1110_AN_STATUS_EXTRA_AN_MS_CONFIG_RSLTN_SUCCESS_SLAVE 0x0040
944 #define ADIN1110_AN_STATUS_EXTRA_AN_MS_CONFIG_RSLTN_SUCCESS_MASTER 0x0060
945 #define ADIN1110_AN_STATUS_EXTRA_AN_HCD_TECH 0x001E
946 #define ADIN1110_AN_STATUS_EXTRA_AN_HCD_TECH_NULL 0x0000
947 #define ADIN1110_AN_STATUS_EXTRA_AN_HCD_TECH_10BASE_T1L 0x0002
948 #define ADIN1110_AN_STATUS_EXTRA_AN_LINK_GOOD 0x0001
949 
950 //PHY Instantaneous Status register
951 #define ADIN1110_AN_PHY_INST_STATUS_IS_AN_TX_EN 0x0010
952 #define ADIN1110_AN_PHY_INST_STATUS_IS_CFG_MST 0x0008
953 #define ADIN1110_AN_PHY_INST_STATUS_IS_CFG_SLV 0x0004
954 #define ADIN1110_AN_PHY_INST_STATUS_IS_TX_LVL_HI 0x0002
955 #define ADIN1110_AN_PHY_INST_STATUS_IS_TX_LVL_LO 0x0001
956 
957 //Vendor Specific MMD 1 Device Identifier High register
958 #define ADIN1110_MMD1_DEV_ID1_MMD1_DEV_ID1 0xFFFF
959 #define ADIN1110_MMD1_DEV_ID1_MMD1_DEV_ID1_DEFAULT 0x0283
960 
961 //Vendor Specific MMD 1 Device Identifier Low register
962 #define ADIN1110_MMD1_DEV_ID2_MMD1_DEV_ID2_OUI 0xFC00
963 #define ADIN1110_MMD1_DEV_ID2_MMD1_DEV_ID2_OUI_DEFAULT 0xBC00
964 #define ADIN1110_MMD1_DEV_ID2_MMD1_MODEL_NUM 0x03F0
965 #define ADIN1110_MMD1_DEV_ID2_MMD1_MODEL_NUM_DEFAULT 0x0090
966 #define ADIN1110_MMD1_DEV_ID2_MMD1_REV_NUM 0x000F
967 #define ADIN1110_MMD1_DEV_ID2_MMD1_REV_NUM_DEFAULT 0x0001
968 
969 //Vendor Specific MMD 1 Status register
970 #define ADIN1110_MMD1_STATUS_MMD1_STATUS 0xC000
971 #define ADIN1110_MMD1_STATUS_MMD1_STATUS_DEV_RESP 0x8000
972 
973 //System Interrupt Status register
974 #define ADIN1110_CRSM_IRQ_STATUS_CRSM_SW_IRQ_LH 0x8000
975 #define ADIN1110_CRSM_IRQ_STATUS_CRSM_HRD_RST_IRQ_LH 0x1000
976 
977 //System Interrupt Mask register
978 #define ADIN1110_CRSM_IRQ_MASK_CRSM_SW_IRQ_REQ 0x8000
979 #define ADIN1110_CRSM_IRQ_MASK_CRSM_HRD_RST_IRQ_EN 0x1000
980 
981 //Software Reset register
982 #define ADIN1110_CRSM_SFT_RST_CRSM_SFT_RST 0x0001
983 
984 //Software Power-Down Control register
985 #define ADIN1110_CRSM_SFT_PD_CNTRL_CRSM_SFT_PD 0x0001
986 
987 //PHY Subsystem Reset register
988 #define ADIN1110_CRSM_PHY_SUBSYS_RST_CRSM_PHY_SUBSYS_RST 0x0001
989 
990 //PHY MAC Interface Reset register
991 #define ADIN1110_CRSM_MAC_IF_RST_CRSM_MAC_IF_RST 0x0001
992 
993 //System Status register
994 #define ADIN1110_CRSM_STAT_CRSM_SFT_PD_RDY 0x0002
995 #define ADIN1110_CRSM_STAT_CRSM_SYS_RDY 0x0001
996 
997 //CRSM Power Management Control register
998 #define ADIN1110_CRSM_PMG_CNTRL_CRSM_FRC_OSC_EN 0x0001
999 
1000 //CRSM Diagnostics Clock Control register
1001 #define ADIN1110_CRSM_DIAG_CLK_CTRL_CRSM_DIAG_CLK_EN 0x0001
1002 
1003 //Package Configuration Values register
1004 #define ADIN1110_MGMT_PRT_PKG_MGMT_PRT_PKG_VAL 0x003F
1005 
1006 //MDIO Control register
1007 #define ADIN1110_MGMT_MDIO_CNTRL_MGMT_GRP_MDIO_EN 0x0001
1008 
1009 //Pin Mux Configuration 1 register
1010 #define ADIN1110_DIGIO_PINMUX_DIGIO_TSTIMER_PINMUX 0x00C0
1011 #define ADIN1110_DIGIO_PINMUX_DIGIO_TSTIMER_PINMUX_RXD_1 0x0000
1012 #define ADIN1110_DIGIO_PINMUX_DIGIO_TSTIMER_PINMUX_LED_0 0x0040
1013 #define ADIN1110_DIGIO_PINMUX_DIGIO_TSTIMER_PINMUX_INT 0x0080
1014 #define ADIN1110_DIGIO_PINMUX_DIGIO_TSTIMER_PINMUX_NONE 0x00C0
1015 #define ADIN1110_DIGIO_PINMUX_DIGIO_TSCAPT_PINMUX 0x0030
1016 #define ADIN1110_DIGIO_PINMUX_DIGIO_TSCAPT_PINMUX_TXD_1 0x0000
1017 #define ADIN1110_DIGIO_PINMUX_DIGIO_TSCAPT_PINMUX_LED_1 0x0010
1018 #define ADIN1110_DIGIO_PINMUX_DIGIO_TSCAPT_PINMUX_MDIO 0x0020
1019 #define ADIN1110_DIGIO_PINMUX_DIGIO_TSCAPT_PINMUX_NONE 0x0030
1020 #define ADIN1110_DIGIO_PINMUX_DIGIO_LED1_PINMUX 0x000E
1021 #define ADIN1110_DIGIO_PINMUX_DIGIO_LED1_PINMUX_LED_1 0x0000
1022 #define ADIN1110_DIGIO_PINMUX_DIGIO_LED1_PINMUX_TX_ER 0x0002
1023 #define ADIN1110_DIGIO_PINMUX_DIGIO_LED1_PINMUX_TX_EN 0x0004
1024 #define ADIN1110_DIGIO_PINMUX_DIGIO_LED1_PINMUX_TX_CLK 0x0006
1025 #define ADIN1110_DIGIO_PINMUX_DIGIO_LED1_PINMUX_TXD_0 0x0008
1026 #define ADIN1110_DIGIO_PINMUX_DIGIO_LED1_PINMUX_TXD_2 0x000A
1027 #define ADIN1110_DIGIO_PINMUX_DIGIO_LED1_PINMUX_LINK_ST 0x000C
1028 #define ADIN1110_DIGIO_PINMUX_DIGIO_LED1_PINMUX_NONE 0x000E
1029 #define ADIN1110_DIGIO_PINMUX_DIGIO_LINK_ST_POLARITY 0x0001
1030 #define ADIN1110_DIGIO_PINMUX_DIGIO_LINK_ST_POLARITY_ASSERT_HIGH 0x0000
1031 #define ADIN1110_DIGIO_PINMUX_DIGIO_LINK_ST_POLARITY_ASSERT_LOW 0x0001
1032 
1033 //LED 0 On/Off Blink Time register
1034 #define ADIN1110_LED0_BLINK_TIME_CNTRL_LED0_ON_N4MS 0xFF00
1035 #define ADIN1110_LED0_BLINK_TIME_CNTRL_LED0_OFF_N4MS 0x00FF
1036 
1037 //LED 1 On/Off Blink Time register
1038 #define ADIN1110_LED1_BLINK_TIME_CNTRL_LED1_ON_N4MS 0xFF00
1039 #define ADIN1110_LED1_BLINK_TIME_CNTRL_LED1_OFF_N4MS 0x00FF
1040 
1041 //LED Control register
1042 #define ADIN1110_LED_CNTRL_LED1_EN 0x8000
1043 #define ADIN1110_LED_CNTRL_LED1_LINK_ST_QUALIFY 0x4000
1044 #define ADIN1110_LED_CNTRL_LED1_MODE 0x2000
1045 #define ADIN1110_LED_CNTRL_LED1_FUNCTION 0x1F00
1046 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_LINKUP_TXRX_ACTIVITY 0x0000
1047 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_LINKUP_TX_ACTIVITY 0x0100
1048 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_LINKUP_RX_ACTIVITY 0x0200
1049 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_LINKUP_ONLY 0x0300
1050 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_TXRX_ACTIVITY 0x0400
1051 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_TX_ACTIVITY 0x0500
1052 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_RX_ACTIVITY 0x0600
1053 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_LINKUP_RX_ER 0x0700
1054 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_LINKUP_RX_TX_ER 0x0800
1055 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_RX_ER 0x0900
1056 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_RX_TX_ER 0x0A00
1057 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_TX_SOP 0x0B00
1058 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_RX_SOP 0x0C00
1059 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_ON 0x0D00
1060 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_OFF 0x0E00
1061 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_BLINK 0x0F00
1062 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_TX_LEVEL_2P4 0x1000
1063 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_TX_LEVEL_1P0 0x1100
1064 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_MASTER 0x1200
1065 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_SLAVE 0x1300
1066 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_INCOMPATIBLE_LINK_CFG 0x1400
1067 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_AN_LINK_GOOD 0x1500
1068 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_AN_COMPLETE 0x1600
1069 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_TS_TIMER 0x1700
1070 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_LOC_RCVR_STATUS 0x1800
1071 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_REM_RCVR_STATUS 0x1900
1072 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_CLK25_REF 0x1A00
1073 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_TX_TCLK 0x1B00
1074 #define ADIN1110_LED_CNTRL_LED1_FUNCTION_CLK_120MHZ 0x1C00
1075 #define ADIN1110_LED_CNTRL_LED0_EN 0x0080
1076 #define ADIN1110_LED_CNTRL_LED0_LINK_ST_QUALIFY 0x0040
1077 #define ADIN1110_LED_CNTRL_LED0_MODE 0x0020
1078 #define ADIN1110_LED_CNTRL_LED0_FUNCTION 0x001F
1079 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_LINKUP_TXRX_ACTIVITY 0x0000
1080 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_LINKUP_TX_ACTIVITY 0x0001
1081 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_LINKUP_RX_ACTIVITY 0x0002
1082 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_LINKUP_ONLY 0x0003
1083 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_TXRX_ACTIVITY 0x0004
1084 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_TX_ACTIVITY 0x0005
1085 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_RX_ACTIVITY 0x0006
1086 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_LINKUP_RX_ER 0x0007
1087 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_LINKUP_RX_TX_ER 0x0008
1088 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_RX_ER 0x0009
1089 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_RX_TX_ER 0x000A
1090 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_TX_SOP 0x000B
1091 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_RX_SOP 0x000C
1092 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_ON 0x000D
1093 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_OFF 0x000E
1094 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_BLINK 0x000F
1095 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_TX_LEVEL_2P4 0x0010
1096 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_TX_LEVEL_1P0 0x0011
1097 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_MASTER 0x0012
1098 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_SLAVE 0x0013
1099 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_INCOMPATIBLE_LINK_CFG 0x0014
1100 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_AN_LINK_GOOD 0x0015
1101 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_AN_COMPLETE 0x0016
1102 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_TS_TIMER 0x0017
1103 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_LOC_RCVR_STATUS 0x0018
1104 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_REM_RCVR_STATUS 0x0019
1105 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_CLK25_REF 0x001A
1106 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_TX_TCLK 0x001B
1107 #define ADIN1110_LED_CNTRL_LED0_FUNCTION_CLK_120MHZ 0x001C
1108 
1109 //LED Polarity register
1110 #define ADIN1110_LED_POLARITY_LED1_POLARITY 0x000C
1111 #define ADIN1110_LED_POLARITY_LED1_POLARITY_AUTOSENSE 0x0000
1112 #define ADIN1110_LED_POLARITY_LED1_POLARITY_ACTIVE_HIGH 0x0004
1113 #define ADIN1110_LED_POLARITY_LED1_POLARITY_ACTIVE_LOW 0x0008
1114 #define ADIN1110_LED_POLARITY_LED0_POLARITY 0x0003
1115 #define ADIN1110_LED_POLARITY_LED0_POLARITY_AUTOSENSE 0x0000
1116 #define ADIN1110_LED_POLARITY_LED0_POLARITY_ACTIVE_HIGH 0x0001
1117 #define ADIN1110_LED_POLARITY_LED0_POLARITY_ACTIVE_LOW 0x0002
1118 
1119 //Vendor Specific MMD 2 Device Identifier High register
1120 #define ADIN1110_MMD2_DEV_ID1_MMD2_DEV_ID1 0xFFFF
1121 #define ADIN1110_MMD2_DEV_ID1_MMD2_DEV_ID1_DEFAULT 0x0283
1122 
1123 //Vendor Specific MMD 2 Device Identifier Low register
1124 #define ADIN1110_MMD2_DEV_ID2_MMD2_DEV_ID2_OUI 0xFC00
1125 #define ADIN1110_MMD2_DEV_ID2_MMD2_DEV_ID2_OUI_DEFAULT 0xBC00
1126 #define ADIN1110_MMD2_DEV_ID2_MMD2_MODEL_NUM 0x03F0
1127 #define ADIN1110_MMD2_DEV_ID2_MMD2_MODEL_NUM_DEFAULT 0x0090
1128 #define ADIN1110_MMD2_DEV_ID2_MMD2_REV_NUM 0x000F
1129 #define ADIN1110_MMD2_DEV_ID2_MMD2_REV_NUM_DEFAULT 0x0001
1130 
1131 //Vendor Specific MMD 2 Status register
1132 #define ADIN1110_MMD2_STATUS_MMD2_STATUS 0xC000
1133 #define ADIN1110_MMD2_STATUS_MMD2_STATUS_DEV_RESP 0x8000
1134 
1135 //PHY Subsystem Interrupt Status register
1136 #define ADIN1110_PHY_SUBSYS_IRQ_STATUS_MAC_IF_FC_FG_IRQ_LH 0x4000
1137 #define ADIN1110_PHY_SUBSYS_IRQ_STATUS_MAC_IF_EBUF_ERR_IRQ_LH 0x2000
1138 #define ADIN1110_PHY_SUBSYS_IRQ_STATUS_AN_STAT_CHNG_IRQ_LH 0x0800
1139 #define ADIN1110_PHY_SUBSYS_IRQ_STATUS_LINK_STAT_CHNG_LH 0x0002
1140 
1141 //PHY Subsystem Interrupt Mask register
1142 #define ADIN1110_PHY_SUBSYS_IRQ_MASK_MAC_IF_FC_FG_IRQ_EN 0x4000
1143 #define ADIN1110_PHY_SUBSYS_IRQ_MASK_MAC_IF_EBUF_ERR_IRQ_EN 0x2000
1144 #define ADIN1110_PHY_SUBSYS_IRQ_MASK_AN_STAT_CHNG_IRQ_EN 0x0800
1145 #define ADIN1110_PHY_SUBSYS_IRQ_MASK_LINK_STAT_CHNG_IRQ_EN 0x0002
1146 
1147 //Frame Checker Enable register
1148 #define ADIN1110_FC_EN_FC_EN 0x0001
1149 
1150 //Frame Checker Interrupt Enable register
1151 #define ADIN1110_FC_IRQ_EN_FC_IRQ_EN 0x0001
1152 
1153 //Frame Checker Transmit Select register
1154 #define ADIN1110_FC_TX_SEL_FC_TX_SEL 0x0001
1155 
1156 //Frame Generator Enable register
1157 #define ADIN1110_FG_EN_FG_EN 0x0001
1158 
1159 //Frame Generator Control/Restart register
1160 #define ADIN1110_FG_CNTRL_RSTRT_FG_RSTRT 0x0008
1161 #define ADIN1110_FG_CNTRL_RSTRT_FG_CNTRL 0x0007
1162 #define ADIN1110_FG_CNTRL_RSTRT_FG_CNTRL_NO_FRAMES 0x0000
1163 #define ADIN1110_FG_CNTRL_RSTRT_FG_CNTRL_RANDOM 0x0001
1164 #define ADIN1110_FG_CNTRL_RSTRT_FG_CNTRL_ALL_ZEROS 0x0002
1165 #define ADIN1110_FG_CNTRL_RSTRT_FG_CNTRL_ALL_ONES 0x0003
1166 #define ADIN1110_FG_CNTRL_RSTRT_FG_CNTRL_ALT 0x0004
1167 #define ADIN1110_FG_CNTRL_RSTRT_FG_CNTRL_DEC 0x0005
1168 
1169 //Frame Generator Continuous Mode Enable register
1170 #define ADIN1110_FG_CONT_MODE_EN_FG_CONT_MODE_EN 0x0001
1171 
1172 //Frame Generator Interrupt Enable register
1173 #define ADIN1110_FG_IRQ_EN_FG_IRQ_EN 0x0001
1174 
1175 //Frame Generator Done register
1176 #define ADIN1110_FG_DONE_FG_DONE 0x0001
1177 
1178 //MAC Interface Loopbacks Configuration register
1179 #define ADIN1110_MAC_IF_LOOPBACK_MAC_IF_REM_LB_RX_SUP_EN 0x0008
1180 #define ADIN1110_MAC_IF_LOOPBACK_MAC_IF_REM_LB_EN 0x0004
1181 #define ADIN1110_MAC_IF_LOOPBACK_MAC_IF_LB_TX_SUP_EN 0x0002
1182 #define ADIN1110_MAC_IF_LOOPBACK_MAC_IF_LB_EN 0x0001
1183 
1184 //MAC Start Of Packet (SOP) Generation Control register
1185 #define ADIN1110_MAC_IF_SOP_CNTRL_MAC_IF_TX_SOP_LEN_CHK_EN 0x0020
1186 #define ADIN1110_MAC_IF_SOP_CNTRL_MAC_IF_TX_SOP_SFD_EN 0x0010
1187 #define ADIN1110_MAC_IF_SOP_CNTRL_MAC_IF_TX_SOP_DET_EN 0x0008
1188 #define ADIN1110_MAC_IF_SOP_CNTRL_MAC_IF_RX_SOP_LEN_CHK_EN 0x0004
1189 #define ADIN1110_MAC_IF_SOP_CNTRL_MAC_IF_RX_SOP_SFD_EN 0x0002
1190 #define ADIN1110_MAC_IF_SOP_CNTRL_MAC_IF_RX_SOP_DET_EN 0x0001
1191 
1192 //MAC address filtering table
1193 #define ADIN1110_ADDR_FILT_UPRn(index) (ADIN1110_ADDR_FILT_UPR0 + ((index) * 2))
1194 #define ADIN1110_ADDR_FILT_LWRn(index) (ADIN1110_ADDR_FILT_LWR0 + ((index) * 2))
1195 #define ADIN1110_ADDR_MSK_UPRn(index) (ADIN1110_ADDR_MSK_UPR0 + ((index) * 2))
1196 #define ADIN1110_ADDR_MSK_LWRn(index) (ADIN1110_ADDR_MSK_LWR0 + ((index) * 2))
1197 
1198 //C++ guard
1199 #ifdef __cplusplus
1200 extern "C" {
1201 #endif
1202 
1203 //ADIN1110 driver
1204 extern const NicDriver adin1110Driver;
1205 
1206 //ADIN1110 related functions
1207 error_t adin1110Init(NetInterface *interface);
1208 void adin1110InitHook(NetInterface *interface);
1209 
1210 void adin1110Tick(NetInterface *interface);
1211 
1212 void adin1110EnableIrq(NetInterface *interface);
1213 void adin1110DisableIrq(NetInterface *interface);
1215 void adin1110EventHandler(NetInterface *interface);
1216 
1218  const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary);
1219 
1221 
1223 
1224 void adin1110WriteReg(NetInterface *interface, uint16_t address,
1225  uint32_t data);
1226 
1227 uint32_t adin1110ReadReg(NetInterface *interface, uint16_t address);
1228 void adin1110DumpReg(NetInterface *interface);
1229 
1230 void adin1110WritePhyReg(NetInterface *interface, uint8_t address,
1231  uint16_t data);
1232 
1233 uint16_t adin1110ReadPhyReg(NetInterface *interface, uint8_t address);
1234 void adin1110DumpPhyReg(NetInterface *interface);
1235 
1236 void adin1110WriteMmdReg(NetInterface *interface, uint8_t devAddr,
1237  uint16_t regAddr, uint16_t data);
1238 
1239 uint16_t adin1110ReadMmdReg(NetInterface *interface, uint8_t devAddr,
1240  uint16_t regAddr);
1241 
1242 void adin1110WriteFifo(NetInterface *interface, uint16_t header,
1243  const uint8_t *data, size_t length);
1244 
1245 void adin1110ReadFifo(NetInterface *interface, uint16_t *header,
1246  uint8_t *data, size_t length);
1247 
1248 uint32_t adin1110CalcParity(uint32_t data);
1249 
1250 //C++ guard
1251 #ifdef __cplusplus
1252 }
1253 #endif
1254 
1255 #endif
const NicDriver adin1110Driver
ADIN1110 driver.
int bool_t
Definition: compiler_port.h:53
void adin1110DisableIrq(NetInterface *interface)
Disable interrupts.
Structure describing a buffer that spans multiple chunks.
Definition: net_mem.h:89
uint8_t data[]
Definition: ethernet.h:222
error_t adin1110SendPacket(NetInterface *interface, const NetBuffer *buffer, size_t offset, NetTxAncillary *ancillary)
Send a packet.
void adin1110DumpReg(NetInterface *interface)
Dump SPI registers for debugging purpose.
uint16_t adin1110ReadPhyReg(NetInterface *interface, uint8_t address)
Read PHY register.
void adin1110WriteFifo(NetInterface *interface, uint16_t header, const uint8_t *data, size_t length)
Write TX FIFO.
uint32_t adin1110ReadReg(NetInterface *interface, uint16_t address)
Read SPI register.
error_t
Error codes.
Definition: error.h:43
void adin1110Tick(NetInterface *interface)
ADIN1110 timer handler.
void adin1110InitHook(NetInterface *interface)
ADIN1110 custom configuration.
#define NetInterface
Definition: net.h:36
void adin1110WriteReg(NetInterface *interface, uint16_t address, uint32_t data)
Write SPI register.
bool_t adin1110IrqHandler(NetInterface *interface)
ADIN1110 interrupt service routine.
#define NetTxAncillary
Definition: net_misc.h:36
uint8_t length
Definition: tcp.h:368
uint16_t regAddr
Ipv6Addr address[]
Definition: ipv6.h:325
void adin1110WriteMmdReg(NetInterface *interface, uint8_t devAddr, uint16_t regAddr, uint16_t data)
Write MMD register.
Network interface controller abstraction layer.
void adin1110WritePhyReg(NetInterface *interface, uint8_t address, uint16_t data)
Write PHY register.
uint32_t adin1110CalcParity(uint32_t data)
Calculate parity bit over a 32-bit data.
void adin1110EnableIrq(NetInterface *interface)
Enable interrupts.
void adin1110EventHandler(NetInterface *interface)
ADIN1110 event handler.
error_t adin1110ReceivePacket(NetInterface *interface)
Receive a packet.
error_t adin1110UpdateMacAddrFilter(NetInterface *interface)
Configure MAC address filtering.
error_t adin1110Init(NetInterface *interface)
ADIN1110 controller initialization.
uint16_t adin1110ReadMmdReg(NetInterface *interface, uint8_t devAddr, uint16_t regAddr)
Read MMD register.
NIC driver.
Definition: nic.h:286
void adin1110ReadFifo(NetInterface *interface, uint16_t *header, uint8_t *data, size_t length)
Read RX FIFO.
void adin1110DumpPhyReg(NetInterface *interface)
Dump PHY registers for debugging purpose.