Lines Matching +full:0 +full:x00580000
10 #define PIO 0x000000UL
11 #define FZC_PIO 0x080000UL
12 #define FZC_MAC 0x180000UL
13 #define FZC_IPP 0x280000UL
14 #define FFLP 0x300000UL
15 #define FZC_FFLP 0x380000UL
16 #define PIO_VADDR 0x400000UL
17 #define ZCP 0x500000UL
18 #define FZC_ZCP 0x580000UL
19 #define DMC 0x600000UL
20 #define FZC_DMC 0x680000UL
21 #define TXC 0x700000UL
22 #define FZC_TXC 0x780000UL
23 #define PIO_LDSV 0x800000UL
24 #define PIO_PIO_LDGIM 0x900000UL
25 #define PIO_IMASK0 0xa00000UL
26 #define PIO_IMASK1 0xb00000UL
27 #define FZC_PROM 0xc80000UL
28 #define FZC_PIM 0xd80000UL
30 #define LDSV0(LDG) (PIO_LDSV + 0x00000UL + (LDG) * 0x2000UL)
31 #define LDSV1(LDG) (PIO_LDSV + 0x00008UL + (LDG) * 0x2000UL)
32 #define LDSV2(LDG) (PIO_LDSV + 0x00010UL + (LDG) * 0x2000UL)
34 #define LDG_IMGMT(LDG) (PIO_LDSV + 0x00018UL + (LDG) * 0x2000UL)
35 #define LDG_IMGMT_ARM 0x0000000080000000ULL
36 #define LDG_IMGMT_TIMER 0x000000000000003fULL
38 #define LD_IM0(IDX) (PIO_IMASK0 + 0x00000UL + (IDX) * 0x2000UL)
39 #define LD_IM0_MASK 0x0000000000000003ULL
41 #define LD_IM1(IDX) (PIO_IMASK1 + 0x00000UL + (IDX) * 0x2000UL)
42 #define LD_IM1_MASK 0x0000000000000003ULL
44 #define LDG_TIMER_RES (FZC_PIO + 0x00008UL)
45 #define LDG_TIMER_RES_VAL 0x00000000000fffffULL
47 #define DIRTY_TID_CTL (FZC_PIO + 0x00010UL)
48 #define DIRTY_TID_CTL_NPTHRED 0x00000000003f0000ULL
49 #define DIRTY_TID_CTL_RDTHRED 0x00000000000003f0ULL
50 #define DIRTY_TID_CTL_DTIDCLR 0x0000000000000002ULL
51 #define DIRTY_TID_CTL_DTIDENAB 0x0000000000000001ULL
53 #define DIRTY_TID_STAT (FZC_PIO + 0x00018UL)
54 #define DIRTY_TID_STAT_NPWSTAT 0x0000000000003f00ULL
55 #define DIRTY_TID_STAT_RDSTAT 0x000000000000003fULL
57 #define RST_CTL (FZC_PIO + 0x00038UL)
58 #define RST_CTL_MAC_RST3 0x0000000000400000ULL
59 #define RST_CTL_MAC_RST2 0x0000000000200000ULL
60 #define RST_CTL_MAC_RST1 0x0000000000100000ULL
61 #define RST_CTL_MAC_RST0 0x0000000000080000ULL
62 #define RST_CTL_ACK_TO_EN 0x0000000000000800ULL
63 #define RST_CTL_ACK_TO_VAL 0x00000000000007feULL
65 #define SMX_CFIG_DAT (FZC_PIO + 0x00040UL)
66 #define SMX_CFIG_DAT_RAS_DET 0x0000000080000000ULL
67 #define SMX_CFIG_DAT_RAS_INJ 0x0000000040000000ULL
68 #define SMX_CFIG_DAT_XACT_TO 0x000000000fffffffULL
70 #define SMX_INT_STAT (FZC_PIO + 0x00048UL)
71 #define SMX_INT_STAT_STAT 0x00000000ffffffffULL
73 #define SMX_CTL (FZC_PIO + 0x00050UL)
74 #define SMX_CTL_CTL 0x00000000ffffffffULL
76 #define SMX_DBG_VEC (FZC_PIO + 0x00058UL)
77 #define SMX_DBG_VEC_VEC 0x00000000ffffffffULL
79 #define PIO_DBG_SEL (FZC_PIO + 0x00060UL)
80 #define PIO_DBG_SEL_SEL 0x000000000000003fULL
82 #define PIO_TRAIN_VEC (FZC_PIO + 0x00068UL)
83 #define PIO_TRAIN_VEC_VEC 0x00000000ffffffffULL
85 #define PIO_ARB_CTL (FZC_PIO + 0x00070UL)
86 #define PIO_ARB_CTL_CTL 0x00000000ffffffffULL
88 #define PIO_ARB_DBG_VEC (FZC_PIO + 0x00078UL)
89 #define PIO_ARB_DBG_VEC_VEC 0x00000000ffffffffULL
91 #define SYS_ERR_MASK (FZC_PIO + 0x00090UL)
92 #define SYS_ERR_MASK_META2 0x0000000000000400ULL
93 #define SYS_ERR_MASK_META1 0x0000000000000200ULL
94 #define SYS_ERR_MASK_PEU 0x0000000000000100ULL
95 #define SYS_ERR_MASK_TXC 0x0000000000000080ULL
96 #define SYS_ERR_MASK_RDMC 0x0000000000000040ULL
97 #define SYS_ERR_MASK_TDMC 0x0000000000000020ULL
98 #define SYS_ERR_MASK_ZCP 0x0000000000000010ULL
99 #define SYS_ERR_MASK_FFLP 0x0000000000000008ULL
100 #define SYS_ERR_MASK_IPP 0x0000000000000004ULL
101 #define SYS_ERR_MASK_MAC 0x0000000000000002ULL
102 #define SYS_ERR_MASK_SMX 0x0000000000000001ULL
104 #define SYS_ERR_STAT (FZC_PIO + 0x00098UL)
105 #define SYS_ERR_STAT_META2 0x0000000000000400ULL
106 #define SYS_ERR_STAT_META1 0x0000000000000200ULL
107 #define SYS_ERR_STAT_PEU 0x0000000000000100ULL
108 #define SYS_ERR_STAT_TXC 0x0000000000000080ULL
109 #define SYS_ERR_STAT_RDMC 0x0000000000000040ULL
110 #define SYS_ERR_STAT_TDMC 0x0000000000000020ULL
111 #define SYS_ERR_STAT_ZCP 0x0000000000000010ULL
112 #define SYS_ERR_STAT_FFLP 0x0000000000000008ULL
113 #define SYS_ERR_STAT_IPP 0x0000000000000004ULL
114 #define SYS_ERR_STAT_MAC 0x0000000000000002ULL
115 #define SYS_ERR_STAT_SMX 0x0000000000000001ULL
117 #define SID(LDG) (FZC_PIO + 0x10200UL + (LDG) * 8UL)
118 #define SID_FUNC 0x0000000000000060ULL
120 #define SID_VECTOR 0x000000000000001fULL
121 #define SID_VECTOR_SHIFT 0
123 #define LDG_NUM(LDN) (FZC_PIO + 0x20000UL + (LDN) * 8UL)
125 #define XMAC_PORT0_OFF (FZC_MAC + 0x000000)
126 #define XMAC_PORT1_OFF (FZC_MAC + 0x006000)
127 #define BMAC_PORT2_OFF (FZC_MAC + 0x00c000)
128 #define BMAC_PORT3_OFF (FZC_MAC + 0x010000)
132 #define XTXMAC_SW_RST 0x00000UL
133 #define XTXMAC_SW_RST_REG_RS 0x0000000000000002ULL
134 #define XTXMAC_SW_RST_SOFT_RST 0x0000000000000001ULL
136 #define XRXMAC_SW_RST 0x00008UL
137 #define XRXMAC_SW_RST_REG_RS 0x0000000000000002ULL
138 #define XRXMAC_SW_RST_SOFT_RST 0x0000000000000001ULL
140 #define XTXMAC_STATUS 0x00020UL
141 #define XTXMAC_STATUS_FRAME_CNT_EXP 0x0000000000000800ULL
142 #define XTXMAC_STATUS_BYTE_CNT_EXP 0x0000000000000400ULL
143 #define XTXMAC_STATUS_TXFIFO_XFR_ERR 0x0000000000000010ULL
144 #define XTXMAC_STATUS_TXMAC_OFLOW 0x0000000000000008ULL
145 #define XTXMAC_STATUS_MAX_PSIZE_ERR 0x0000000000000004ULL
146 #define XTXMAC_STATUS_TXMAC_UFLOW 0x0000000000000002ULL
147 #define XTXMAC_STATUS_FRAME_XMITED 0x0000000000000001ULL
149 #define XRXMAC_STATUS 0x00028UL
150 #define XRXMAC_STATUS_RXHIST7_CNT_EXP 0x0000000000100000ULL
151 #define XRXMAC_STATUS_LCL_FLT_STATUS 0x0000000000080000ULL
152 #define XRXMAC_STATUS_RFLT_DET 0x0000000000040000ULL
153 #define XRXMAC_STATUS_LFLT_CNT_EXP 0x0000000000020000ULL
154 #define XRXMAC_STATUS_PHY_MDINT 0x0000000000010000ULL
155 #define XRXMAC_STATUS_ALIGNERR_CNT_EXP 0x0000000000010000ULL
156 #define XRXMAC_STATUS_RXFRAG_CNT_EXP 0x0000000000008000ULL
157 #define XRXMAC_STATUS_RXMULTF_CNT_EXP 0x0000000000004000ULL
158 #define XRXMAC_STATUS_RXBCAST_CNT_EXP 0x0000000000002000ULL
159 #define XRXMAC_STATUS_RXHIST6_CNT_EXP 0x0000000000001000ULL
160 #define XRXMAC_STATUS_RXHIST5_CNT_EXP 0x0000000000000800ULL
161 #define XRXMAC_STATUS_RXHIST4_CNT_EXP 0x0000000000000400ULL
162 #define XRXMAC_STATUS_RXHIST3_CNT_EXP 0x0000000000000200ULL
163 #define XRXMAC_STATUS_RXHIST2_CNT_EXP 0x0000000000000100ULL
164 #define XRXMAC_STATUS_RXHIST1_CNT_EXP 0x0000000000000080ULL
165 #define XRXMAC_STATUS_RXOCTET_CNT_EXP 0x0000000000000040ULL
166 #define XRXMAC_STATUS_CVIOLERR_CNT_EXP 0x0000000000000020ULL
167 #define XRXMAC_STATUS_LENERR_CNT_EXP 0x0000000000000010ULL
168 #define XRXMAC_STATUS_CRCERR_CNT_EXP 0x0000000000000008ULL
169 #define XRXMAC_STATUS_RXUFLOW 0x0000000000000004ULL
170 #define XRXMAC_STATUS_RXOFLOW 0x0000000000000002ULL
171 #define XRXMAC_STATUS_FRAME_RCVD 0x0000000000000001ULL
173 #define XMAC_FC_STAT 0x00030UL
174 #define XMAC_FC_STAT_RX_RCV_PAUSE_TIME 0x00000000ffff0000ULL
175 #define XMAC_FC_STAT_TX_MAC_NPAUSE 0x0000000000000004ULL
176 #define XMAC_FC_STAT_TX_MAC_PAUSE 0x0000000000000002ULL
177 #define XMAC_FC_STAT_RX_MAC_RPAUSE 0x0000000000000001ULL
179 #define XTXMAC_STAT_MSK 0x00040UL
180 #define XTXMAC_STAT_MSK_FRAME_CNT_EXP 0x0000000000000800ULL
181 #define XTXMAC_STAT_MSK_BYTE_CNT_EXP 0x0000000000000400ULL
182 #define XTXMAC_STAT_MSK_TXFIFO_XFR_ERR 0x0000000000000010ULL
183 #define XTXMAC_STAT_MSK_TXMAC_OFLOW 0x0000000000000008ULL
184 #define XTXMAC_STAT_MSK_MAX_PSIZE_ERR 0x0000000000000004ULL
185 #define XTXMAC_STAT_MSK_TXMAC_UFLOW 0x0000000000000002ULL
186 #define XTXMAC_STAT_MSK_FRAME_XMITED 0x0000000000000001ULL
188 #define XRXMAC_STAT_MSK 0x00048UL
189 #define XRXMAC_STAT_MSK_LCL_FLT_STAT_MSK 0x0000000000080000ULL
190 #define XRXMAC_STAT_MSK_RFLT_DET 0x0000000000040000ULL
191 #define XRXMAC_STAT_MSK_LFLT_CNT_EXP 0x0000000000020000ULL
192 #define XRXMAC_STAT_MSK_PHY_MDINT 0x0000000000010000ULL
193 #define XRXMAC_STAT_MSK_RXFRAG_CNT_EXP 0x0000000000008000ULL
194 #define XRXMAC_STAT_MSK_RXMULTF_CNT_EXP 0x0000000000004000ULL
195 #define XRXMAC_STAT_MSK_RXBCAST_CNT_EXP 0x0000000000002000ULL
196 #define XRXMAC_STAT_MSK_RXHIST6_CNT_EXP 0x0000000000001000ULL
197 #define XRXMAC_STAT_MSK_RXHIST5_CNT_EXP 0x0000000000000800ULL
198 #define XRXMAC_STAT_MSK_RXHIST4_CNT_EXP 0x0000000000000400ULL
199 #define XRXMAC_STAT_MSK_RXHIST3_CNT_EXP 0x0000000000000200ULL
200 #define XRXMAC_STAT_MSK_RXHIST2_CNT_EXP 0x0000000000000100ULL
201 #define XRXMAC_STAT_MSK_RXHIST1_CNT_EXP 0x0000000000000080ULL
202 #define XRXMAC_STAT_MSK_RXOCTET_CNT_EXP 0x0000000000000040ULL
203 #define XRXMAC_STAT_MSK_CVIOLERR_CNT_EXP 0x0000000000000020ULL
204 #define XRXMAC_STAT_MSK_LENERR_CNT_EXP 0x0000000000000010ULL
205 #define XRXMAC_STAT_MSK_CRCERR_CNT_EXP 0x0000000000000008ULL
206 #define XRXMAC_STAT_MSK_RXUFLOW_CNT_EXP 0x0000000000000004ULL
207 #define XRXMAC_STAT_MSK_RXOFLOW_CNT_EXP 0x0000000000000002ULL
208 #define XRXMAC_STAT_MSK_FRAME_RCVD 0x0000000000000001ULL
210 #define XMAC_FC_MSK 0x00050UL
211 #define XMAC_FC_MSK_TX_MAC_NPAUSE 0x0000000000000004ULL
212 #define XMAC_FC_MSK_TX_MAC_PAUSE 0x0000000000000002ULL
213 #define XMAC_FC_MSK_RX_MAC_RPAUSE 0x0000000000000001ULL
215 #define XMAC_CONFIG 0x00060UL
216 #define XMAC_CONFIG_SEL_CLK_25MHZ 0x0000000080000000ULL
217 #define XMAC_CONFIG_1G_PCS_BYPASS 0x0000000040000000ULL
218 #define XMAC_CONFIG_10G_XPCS_BYPASS 0x0000000020000000ULL
219 #define XMAC_CONFIG_MODE_MASK 0x0000000018000000ULL
220 #define XMAC_CONFIG_MODE_XGMII 0x0000000000000000ULL
221 #define XMAC_CONFIG_MODE_GMII 0x0000000008000000ULL
222 #define XMAC_CONFIG_MODE_MII 0x0000000010000000ULL
223 #define XMAC_CONFIG_LFS_DISABLE 0x0000000004000000ULL
224 #define XMAC_CONFIG_LOOPBACK 0x0000000002000000ULL
225 #define XMAC_CONFIG_TX_OUTPUT_EN 0x0000000001000000ULL
226 #define XMAC_CONFIG_SEL_POR_CLK_SRC 0x0000000000800000ULL
227 #define XMAC_CONFIG_LED_POLARITY 0x0000000000400000ULL
228 #define XMAC_CONFIG_FORCE_LED_ON 0x0000000000200000ULL
229 #define XMAC_CONFIG_PASS_FLOW_CTRL 0x0000000000100000ULL
230 #define XMAC_CONFIG_RCV_PAUSE_ENABLE 0x0000000000080000ULL
231 #define XMAC_CONFIG_MAC2IPP_PKT_CNT_EN 0x0000000000040000ULL
232 #define XMAC_CONFIG_STRIP_CRC 0x0000000000020000ULL
233 #define XMAC_CONFIG_ADDR_FILTER_EN 0x0000000000010000ULL
234 #define XMAC_CONFIG_HASH_FILTER_EN 0x0000000000008000ULL
235 #define XMAC_CONFIG_RX_CODEV_CHK_DIS 0x0000000000004000ULL
236 #define XMAC_CONFIG_RESERVED_MULTICAST 0x0000000000002000ULL
237 #define XMAC_CONFIG_RX_CRC_CHK_DIS 0x0000000000001000ULL
238 #define XMAC_CONFIG_ERR_CHK_DIS 0x0000000000000800ULL
239 #define XMAC_CONFIG_PROMISC_GROUP 0x0000000000000400ULL
240 #define XMAC_CONFIG_PROMISCUOUS 0x0000000000000200ULL
241 #define XMAC_CONFIG_RX_MAC_ENABLE 0x0000000000000100ULL
242 #define XMAC_CONFIG_WARNING_MSG_EN 0x0000000000000080ULL
243 #define XMAC_CONFIG_ALWAYS_NO_CRC 0x0000000000000008ULL
244 #define XMAC_CONFIG_VAR_MIN_IPG_EN 0x0000000000000004ULL
245 #define XMAC_CONFIG_STRETCH_MODE 0x0000000000000002ULL
246 #define XMAC_CONFIG_TX_ENABLE 0x0000000000000001ULL
248 #define XMAC_IPG 0x00080UL
249 #define XMAC_IPG_STRETCH_CONST 0x0000000000e00000ULL
251 #define XMAC_IPG_STRETCH_RATIO 0x00000000001f0000ULL
253 #define XMAC_IPG_IPG_MII_GMII 0x000000000000ff00ULL
255 #define XMAC_IPG_IPG_XGMII 0x0000000000000007ULL
256 #define XMAC_IPG_IPG_XGMII_SHIFT 0
267 #define XMAC_MIN 0x00088UL
268 #define XMAC_MIN_RX_MIN_PKT_SIZE 0x000000003ff00000ULL
270 #define XMAC_MIN_SLOT_TIME 0x000000000003fc00ULL
272 #define XMAC_MIN_TX_MIN_PKT_SIZE 0x00000000000003ffULL
273 #define XMAC_MIN_TX_MIN_PKT_SIZE_SHFT 0
275 #define XMAC_MAX 0x00090UL
276 #define XMAC_MAX_FRAME_SIZE 0x0000000000003fffULL
277 #define XMAC_MAX_FRAME_SIZE_SHFT 0
279 #define XMAC_ADDR0 0x000a0UL
280 #define XMAC_ADDR0_ADDR0 0x000000000000ffffULL
282 #define XMAC_ADDR1 0x000a8UL
283 #define XMAC_ADDR1_ADDR1 0x000000000000ffffULL
285 #define XMAC_ADDR2 0x000b0UL
286 #define XMAC_ADDR2_ADDR2 0x000000000000ffffULL
288 #define XMAC_ADDR_CMPEN 0x00208UL
289 #define XMAC_ADDR_CMPEN_EN15 0x0000000000008000ULL
290 #define XMAC_ADDR_CMPEN_EN14 0x0000000000004000ULL
291 #define XMAC_ADDR_CMPEN_EN13 0x0000000000002000ULL
292 #define XMAC_ADDR_CMPEN_EN12 0x0000000000001000ULL
293 #define XMAC_ADDR_CMPEN_EN11 0x0000000000000800ULL
294 #define XMAC_ADDR_CMPEN_EN10 0x0000000000000400ULL
295 #define XMAC_ADDR_CMPEN_EN9 0x0000000000000200ULL
296 #define XMAC_ADDR_CMPEN_EN8 0x0000000000000100ULL
297 #define XMAC_ADDR_CMPEN_EN7 0x0000000000000080ULL
298 #define XMAC_ADDR_CMPEN_EN6 0x0000000000000040ULL
299 #define XMAC_ADDR_CMPEN_EN5 0x0000000000000020ULL
300 #define XMAC_ADDR_CMPEN_EN4 0x0000000000000010ULL
301 #define XMAC_ADDR_CMPEN_EN3 0x0000000000000008ULL
302 #define XMAC_ADDR_CMPEN_EN2 0x0000000000000004ULL
303 #define XMAC_ADDR_CMPEN_EN1 0x0000000000000002ULL
304 #define XMAC_ADDR_CMPEN_EN0 0x0000000000000001ULL
308 #define XMAC_ALT_ADDR0(NUM) (0x00218UL + (NUM)*0x18UL)
309 #define XMAC_ALT_ADDR0_ADDR0 0x000000000000ffffULL
311 #define XMAC_ALT_ADDR1(NUM) (0x00220UL + (NUM)*0x18UL)
312 #define XMAC_ALT_ADDR1_ADDR1 0x000000000000ffffULL
314 #define XMAC_ALT_ADDR2(NUM) (0x00228UL + (NUM)*0x18UL)
315 #define XMAC_ALT_ADDR2_ADDR2 0x000000000000ffffULL
317 #define XMAC_ADD_FILT0 0x00818UL
318 #define XMAC_ADD_FILT0_FILT0 0x000000000000ffffULL
320 #define XMAC_ADD_FILT1 0x00820UL
321 #define XMAC_ADD_FILT1_FILT1 0x000000000000ffffULL
323 #define XMAC_ADD_FILT2 0x00828UL
324 #define XMAC_ADD_FILT2_FILT2 0x000000000000ffffULL
326 #define XMAC_ADD_FILT12_MASK 0x00830UL
327 #define XMAC_ADD_FILT12_MASK_VAL 0x00000000000000ffULL
329 #define XMAC_ADD_FILT00_MASK 0x00838UL
330 #define XMAC_ADD_FILT00_MASK_VAL 0x000000000000ffffULL
332 #define XMAC_HASH_TBL(NUM) (0x00840UL + (NUM) * 0x8UL)
333 #define XMAC_HASH_TBL_VAL 0x000000000000ffffULL
337 #define XMAC_HOST_INFO(NUM) (0x00900UL + (NUM) * 0x8UL)
339 #define XMAC_PA_DATA0 0x00b80UL
340 #define XMAC_PA_DATA0_VAL 0x00000000ffffffffULL
342 #define XMAC_PA_DATA1 0x00b88UL
343 #define XMAC_PA_DATA1_VAL 0x00000000ffffffffULL
345 #define XMAC_DEBUG_SEL 0x00b90UL
346 #define XMAC_DEBUG_SEL_XMAC 0x0000000000000078ULL
347 #define XMAC_DEBUG_SEL_MAC 0x0000000000000007ULL
349 #define XMAC_TRAIN_VEC 0x00b98UL
350 #define XMAC_TRAIN_VEC_VAL 0x00000000ffffffffULL
352 #define RXMAC_BT_CNT 0x00100UL
353 #define RXMAC_BT_CNT_COUNT 0x00000000ffffffffULL
355 #define RXMAC_BC_FRM_CNT 0x00108UL
356 #define RXMAC_BC_FRM_CNT_COUNT 0x00000000001fffffULL
358 #define RXMAC_MC_FRM_CNT 0x00110UL
359 #define RXMAC_MC_FRM_CNT_COUNT 0x00000000001fffffULL
361 #define RXMAC_FRAG_CNT 0x00118UL
362 #define RXMAC_FRAG_CNT_COUNT 0x00000000001fffffULL
364 #define RXMAC_HIST_CNT1 0x00120UL
365 #define RXMAC_HIST_CNT1_COUNT 0x00000000001fffffULL
367 #define RXMAC_HIST_CNT2 0x00128UL
368 #define RXMAC_HIST_CNT2_COUNT 0x00000000001fffffULL
370 #define RXMAC_HIST_CNT3 0x00130UL
371 #define RXMAC_HIST_CNT3_COUNT 0x00000000000fffffULL
373 #define RXMAC_HIST_CNT4 0x00138UL
374 #define RXMAC_HIST_CNT4_COUNT 0x000000000007ffffULL
376 #define RXMAC_HIST_CNT5 0x00140UL
377 #define RXMAC_HIST_CNT5_COUNT 0x000000000003ffffULL
379 #define RXMAC_HIST_CNT6 0x00148UL
380 #define RXMAC_HIST_CNT6_COUNT 0x000000000000ffffULL
382 #define RXMAC_MPSZER_CNT 0x00150UL
383 #define RXMAC_MPSZER_CNT_COUNT 0x00000000000000ffULL
385 #define RXMAC_CRC_ER_CNT 0x00158UL
386 #define RXMAC_CRC_ER_CNT_COUNT 0x00000000000000ffULL
388 #define RXMAC_CD_VIO_CNT 0x00160UL
389 #define RXMAC_CD_VIO_CNT_COUNT 0x00000000000000ffULL
391 #define RXMAC_ALIGN_ERR_CNT 0x00168UL
392 #define RXMAC_ALIGN_ERR_CNT_COUNT 0x00000000000000ffULL
394 #define TXMAC_FRM_CNT 0x00170UL
395 #define TXMAC_FRM_CNT_COUNT 0x00000000ffffffffULL
397 #define TXMAC_BYTE_CNT 0x00178UL
398 #define TXMAC_BYTE_CNT_COUNT 0x00000000ffffffffULL
400 #define LINK_FAULT_CNT 0x00180UL
401 #define LINK_FAULT_CNT_COUNT 0x00000000000000ffULL
403 #define RXMAC_HIST_CNT7 0x00188UL
404 #define RXMAC_HIST_CNT7_COUNT 0x0000000007ffffffULL
406 #define XMAC_SM_REG 0x001a8UL
407 #define XMAC_SM_REG_STATE 0x00000000ffffffffULL
409 #define XMAC_INTER1 0x001b0UL
410 #define XMAC_INTERN1_SIGNALS1 0x00000000ffffffffULL
412 #define XMAC_INTER2 0x001b8UL
413 #define XMAC_INTERN2_SIGNALS2 0x00000000ffffffffULL
417 #define BTXMAC_SW_RST 0x00000UL
418 #define BTXMAC_SW_RST_RESET 0x0000000000000001ULL
420 #define BRXMAC_SW_RST 0x00008UL
421 #define BRXMAC_SW_RST_RESET 0x0000000000000001ULL
423 #define BMAC_SEND_PAUSE 0x00010UL
424 #define BMAC_SEND_PAUSE_SEND 0x0000000000010000ULL
425 #define BMAC_SEND_PAUSE_TIME 0x000000000000ffffULL
427 #define BTXMAC_STATUS 0x00020UL
428 #define BTXMAC_STATUS_XMIT 0x0000000000000001ULL
429 #define BTXMAC_STATUS_UNDERRUN 0x0000000000000002ULL
430 #define BTXMAC_STATUS_MAX_PKT_ERR 0x0000000000000004ULL
431 #define BTXMAC_STATUS_BYTE_CNT_EXP 0x0000000000000400ULL
432 #define BTXMAC_STATUS_FRAME_CNT_EXP 0x0000000000000800ULL
434 #define BRXMAC_STATUS 0x00028UL
435 #define BRXMAC_STATUS_RX_PKT 0x0000000000000001ULL
436 #define BRXMAC_STATUS_OVERFLOW 0x0000000000000002ULL
437 #define BRXMAC_STATUS_FRAME_CNT_EXP 0x0000000000000004ULL
438 #define BRXMAC_STATUS_ALIGN_ERR_EXP 0x0000000000000008ULL
439 #define BRXMAC_STATUS_CRC_ERR_EXP 0x0000000000000010ULL
440 #define BRXMAC_STATUS_LEN_ERR_EXP 0x0000000000000020ULL
442 #define BMAC_CTRL_STATUS 0x00030UL
443 #define BMAC_CTRL_STATUS_PAUSE_RECV 0x0000000000000001ULL
444 #define BMAC_CTRL_STATUS_PAUSE 0x0000000000000002ULL
445 #define BMAC_CTRL_STATUS_NOPAUSE 0x0000000000000004ULL
446 #define BMAC_CTRL_STATUS_TIME 0x00000000ffff0000ULL
449 #define BTXMAC_STATUS_MASK 0x00040UL
450 #define BRXMAC_STATUS_MASK 0x00048UL
451 #define BMAC_CTRL_STATUS_MASK 0x00050UL
453 #define BTXMAC_CONFIG 0x00060UL
454 #define BTXMAC_CONFIG_ENABLE 0x0000000000000001ULL
455 #define BTXMAC_CONFIG_FCS_DISABLE 0x0000000000000002ULL
457 #define BRXMAC_CONFIG 0x00068UL
458 #define BRXMAC_CONFIG_DISCARD_DIS 0x0000000000000080ULL
459 #define BRXMAC_CONFIG_ADDR_FILT_EN 0x0000000000000040ULL
460 #define BRXMAC_CONFIG_HASH_FILT_EN 0x0000000000000020ULL
461 #define BRXMAC_CONFIG_PROMISC_GRP 0x0000000000000010ULL
462 #define BRXMAC_CONFIG_PROMISC 0x0000000000000008ULL
463 #define BRXMAC_CONFIG_STRIP_FCS 0x0000000000000004ULL
464 #define BRXMAC_CONFIG_STRIP_PAD 0x0000000000000002ULL
465 #define BRXMAC_CONFIG_ENABLE 0x0000000000000001ULL
467 #define BMAC_CTRL_CONFIG 0x00070UL
468 #define BMAC_CTRL_CONFIG_TX_PAUSE_EN 0x0000000000000001ULL
469 #define BMAC_CTRL_CONFIG_RX_PAUSE_EN 0x0000000000000002ULL
470 #define BMAC_CTRL_CONFIG_PASS_CTRL 0x0000000000000004ULL
472 #define BMAC_XIF_CONFIG 0x00078UL
473 #define BMAC_XIF_CONFIG_TX_OUTPUT_EN 0x0000000000000001ULL
474 #define BMAC_XIF_CONFIG_MII_LOOPBACK 0x0000000000000002ULL
475 #define BMAC_XIF_CONFIG_GMII_MODE 0x0000000000000008ULL
476 #define BMAC_XIF_CONFIG_LINK_LED 0x0000000000000020ULL
477 #define BMAC_XIF_CONFIG_LED_POLARITY 0x0000000000000040ULL
478 #define BMAC_XIF_CONFIG_25MHZ_CLOCK 0x0000000000000080ULL
480 #define BMAC_MIN_FRAME 0x000a0UL
481 #define BMAC_MIN_FRAME_VAL 0x00000000000003ffULL
483 #define BMAC_MAX_FRAME 0x000a8UL
484 #define BMAC_MAX_FRAME_MAX_BURST 0x000000003fff0000ULL
486 #define BMAC_MAX_FRAME_MAX_FRAME 0x0000000000003fffULL
487 #define BMAC_MAX_FRAME_MAX_FRAME_SHIFT 0
489 #define BMAC_PREAMBLE_SIZE 0x000b0UL
490 #define BMAC_PREAMBLE_SIZE_VAL 0x00000000000003ffULL
492 #define BMAC_CTRL_TYPE 0x000c8UL
494 #define BMAC_ADDR0 0x00100UL
495 #define BMAC_ADDR0_ADDR0 0x000000000000ffffULL
497 #define BMAC_ADDR1 0x00108UL
498 #define BMAC_ADDR1_ADDR1 0x000000000000ffffULL
500 #define BMAC_ADDR2 0x00110UL
501 #define BMAC_ADDR2_ADDR2 0x000000000000ffffULL
505 #define BMAC_ALT_ADDR0(NUM) (0x00118UL + (NUM)*0x18UL)
506 #define BMAC_ALT_ADDR0_ADDR0 0x000000000000ffffULL
508 #define BMAC_ALT_ADDR1(NUM) (0x00120UL + (NUM)*0x18UL)
509 #define BMAC_ALT_ADDR1_ADDR1 0x000000000000ffffULL
511 #define BMAC_ALT_ADDR2(NUM) (0x00128UL + (NUM)*0x18UL)
512 #define BMAC_ALT_ADDR2_ADDR2 0x000000000000ffffULL
514 #define BMAC_FC_ADDR0 0x00268UL
515 #define BMAC_FC_ADDR0_ADDR0 0x000000000000ffffULL
517 #define BMAC_FC_ADDR1 0x00270UL
518 #define BMAC_FC_ADDR1_ADDR1 0x000000000000ffffULL
520 #define BMAC_FC_ADDR2 0x00278UL
521 #define BMAC_FC_ADDR2_ADDR2 0x000000000000ffffULL
523 #define BMAC_ADD_FILT0 0x00298UL
524 #define BMAC_ADD_FILT0_FILT0 0x000000000000ffffULL
526 #define BMAC_ADD_FILT1 0x002a0UL
527 #define BMAC_ADD_FILT1_FILT1 0x000000000000ffffULL
529 #define BMAC_ADD_FILT2 0x002a8UL
530 #define BMAC_ADD_FILT2_FILT2 0x000000000000ffffULL
532 #define BMAC_ADD_FILT12_MASK 0x002b0UL
533 #define BMAC_ADD_FILT12_MASK_VAL 0x00000000000000ffULL
535 #define BMAC_ADD_FILT00_MASK 0x002b8UL
536 #define BMAC_ADD_FILT00_MASK_VAL 0x000000000000ffffULL
538 #define BMAC_HASH_TBL(NUM) (0x002c0UL + (NUM) * 0x8UL)
539 #define BMAC_HASH_TBL_VAL 0x000000000000ffffULL
541 #define BRXMAC_FRAME_CNT 0x00370
542 #define BRXMAC_FRAME_CNT_COUNT 0x000000000000ffffULL
544 #define BRXMAC_MAX_LEN_ERR_CNT 0x00378
546 #define BRXMAC_ALIGN_ERR_CNT 0x00380
547 #define BRXMAC_ALIGN_ERR_CNT_COUNT 0x000000000000ffffULL
549 #define BRXMAC_CRC_ERR_CNT 0x00388
550 #define BRXMAC_ALIGN_ERR_CNT_COUNT 0x000000000000ffffULL
552 #define BRXMAC_CODE_VIOL_ERR_CNT 0x00390
553 #define BRXMAC_CODE_VIOL_ERR_CNT_COUNT 0x000000000000ffffULL
555 #define BMAC_STATE_MACHINE 0x003a0
557 #define BMAC_ADDR_CMPEN 0x003f8UL
558 #define BMAC_ADDR_CMPEN_EN15 0x0000000000008000ULL
559 #define BMAC_ADDR_CMPEN_EN14 0x0000000000004000ULL
560 #define BMAC_ADDR_CMPEN_EN13 0x0000000000002000ULL
561 #define BMAC_ADDR_CMPEN_EN12 0x0000000000001000ULL
562 #define BMAC_ADDR_CMPEN_EN11 0x0000000000000800ULL
563 #define BMAC_ADDR_CMPEN_EN10 0x0000000000000400ULL
564 #define BMAC_ADDR_CMPEN_EN9 0x0000000000000200ULL
565 #define BMAC_ADDR_CMPEN_EN8 0x0000000000000100ULL
566 #define BMAC_ADDR_CMPEN_EN7 0x0000000000000080ULL
567 #define BMAC_ADDR_CMPEN_EN6 0x0000000000000040ULL
568 #define BMAC_ADDR_CMPEN_EN5 0x0000000000000020ULL
569 #define BMAC_ADDR_CMPEN_EN4 0x0000000000000010ULL
570 #define BMAC_ADDR_CMPEN_EN3 0x0000000000000008ULL
571 #define BMAC_ADDR_CMPEN_EN2 0x0000000000000004ULL
572 #define BMAC_ADDR_CMPEN_EN1 0x0000000000000002ULL
573 #define BMAC_ADDR_CMPEN_EN0 0x0000000000000001ULL
577 #define BMAC_HOST_INFO(NUM) (0x00400UL + (NUM) * 0x8UL)
579 #define BTXMAC_BYTE_CNT 0x00448UL
580 #define BTXMAC_BYTE_CNT_COUNT 0x00000000ffffffffULL
582 #define BTXMAC_FRM_CNT 0x00450UL
583 #define BTXMAC_FRM_CNT_COUNT 0x00000000ffffffffULL
585 #define BRXMAC_BYTE_CNT 0x00458UL
586 #define BRXMAC_BYTE_CNT_COUNT 0x00000000ffffffffULL
588 #define HOST_INFO_MPR 0x0000000000000100ULL
589 #define HOST_INFO_MACRDCTBLN 0x0000000000000007ULL
593 #define XPCS_CONTROL1 (FZC_MAC + 0x00000UL)
594 #define XPCS_CONTROL1_RESET 0x0000000000008000ULL
595 #define XPCS_CONTROL1_LOOPBACK 0x0000000000004000ULL
596 #define XPCS_CONTROL1_SPEED_SELECT3 0x0000000000002000ULL
597 #define XPCS_CONTROL1_CSR_LOW_PWR 0x0000000000000800ULL
598 #define XPCS_CONTROL1_CSR_SPEED1 0x0000000000000040ULL
599 #define XPCS_CONTROL1_CSR_SPEED0 0x000000000000003cULL
601 #define XPCS_STATUS1 (FZC_MAC + 0x00008UL)
602 #define XPCS_STATUS1_CSR_FAULT 0x0000000000000080ULL
603 #define XPCS_STATUS1_CSR_RXLNK_STAT 0x0000000000000004ULL
604 #define XPCS_STATUS1_CSR_LPWR_ABLE 0x0000000000000002ULL
606 #define XPCS_DEVICE_IDENTIFIER (FZC_MAC + 0x00010UL)
607 #define XPCS_DEVICE_IDENTIFIER_VAL 0x00000000ffffffffULL
609 #define XPCS_SPEED_ABILITY (FZC_MAC + 0x00018UL)
610 #define XPCS_SPEED_ABILITY_10GIG 0x0000000000000001ULL
612 #define XPCS_DEV_IN_PKG (FZC_MAC + 0x00020UL)
613 #define XPCS_DEV_IN_PKG_CSR_VEND2 0x0000000080000000ULL
614 #define XPCS_DEV_IN_PKG_CSR_VEND1 0x0000000040000000ULL
615 #define XPCS_DEV_IN_PKG_DTE_XS 0x0000000000000020ULL
616 #define XPCS_DEV_IN_PKG_PHY_XS 0x0000000000000010ULL
617 #define XPCS_DEV_IN_PKG_PCS 0x0000000000000008ULL
618 #define XPCS_DEV_IN_PKG_WIS 0x0000000000000004ULL
619 #define XPCS_DEV_IN_PKG_PMD_PMA 0x0000000000000002ULL
620 #define XPCS_DEV_IN_PKG_CLS22 0x0000000000000001ULL
622 #define XPCS_CONTROL2 (FZC_MAC + 0x00028UL)
623 #define XPCS_CONTROL2_CSR_PSC_SEL 0x0000000000000003ULL
625 #define XPCS_STATUS2 (FZC_MAC + 0x00030UL)
626 #define XPCS_STATUS2_CSR_DEV_PRES 0x000000000000c000ULL
627 #define XPCS_STATUS2_CSR_TX_FAULT 0x0000000000000800ULL
628 #define XPCS_STATUS2_CSR_RCV_FAULT 0x0000000000000400ULL
629 #define XPCS_STATUS2_TEN_GBASE_W 0x0000000000000004ULL
630 #define XPCS_STATUS2_TEN_GBASE_X 0x0000000000000002ULL
631 #define XPCS_STATUS2_TEN_GBASE_R 0x0000000000000001ULL
633 #define XPCS_PKG_ID (FZC_MAC + 0x00038UL)
634 #define XPCS_PKG_ID_VAL 0x00000000ffffffffULL
636 #define XPCS_STATUS(IDX) (FZC_MAC + 0x00040UL)
637 #define XPCS_STATUS_CSR_LANE_ALIGN 0x0000000000001000ULL
638 #define XPCS_STATUS_CSR_PATTEST_CAP 0x0000000000000800ULL
639 #define XPCS_STATUS_CSR_LANE3_SYNC 0x0000000000000008ULL
640 #define XPCS_STATUS_CSR_LANE2_SYNC 0x0000000000000004ULL
641 #define XPCS_STATUS_CSR_LANE1_SYNC 0x0000000000000002ULL
642 #define XPCS_STATUS_CSR_LANE0_SYNC 0x0000000000000001ULL
644 #define XPCS_TEST_CONTROL (FZC_MAC + 0x00048UL)
645 #define XPCS_TEST_CONTROL_TXTST_EN 0x0000000000000004ULL
646 #define XPCS_TEST_CONTROL_TPAT_SEL 0x0000000000000003ULL
648 #define XPCS_CFG_VENDOR1 (FZC_MAC + 0x00050UL)
649 #define XPCS_CFG_VENDOR1_DBG_IOTST 0x0000000000000080ULL
650 #define XPCS_CFG_VENDOR1_DBG_SEL 0x0000000000000078ULL
651 #define XPCS_CFG_VENDOR1_BYPASS_DET 0x0000000000000004ULL
652 #define XPCS_CFG_VENDOR1_TXBUF_EN 0x0000000000000002ULL
653 #define XPCS_CFG_VENDOR1_XPCS_EN 0x0000000000000001ULL
655 #define XPCS_DIAG_VENDOR2 (FZC_MAC + 0x00058UL)
656 #define XPCS_DIAG_VENDOR2_SSM_LANE3 0x0000000001e00000ULL
657 #define XPCS_DIAG_VENDOR2_SSM_LANE2 0x00000000001e0000ULL
658 #define XPCS_DIAG_VENDOR2_SSM_LANE1 0x000000000001e000ULL
659 #define XPCS_DIAG_VENDOR2_SSM_LANE0 0x0000000000001e00ULL
660 #define XPCS_DIAG_VENDOR2_EBUF_SM 0x00000000000001feULL
661 #define XPCS_DIAG_VENDOR2_RCV_SM 0x0000000000000001ULL
663 #define XPCS_MASK1 (FZC_MAC + 0x00060UL)
664 #define XPCS_MASK1_FAULT_MASK 0x0000000000000080ULL
665 #define XPCS_MASK1_RXALIGN_STAT_MSK 0x0000000000000004ULL
667 #define XPCS_PKT_COUNT (FZC_MAC + 0x00068UL)
668 #define XPCS_PKT_COUNT_TX 0x00000000ffff0000ULL
669 #define XPCS_PKT_COUNT_RX 0x000000000000ffffULL
671 #define XPCS_TX_SM (FZC_MAC + 0x00070UL)
672 #define XPCS_TX_SM_VAL 0x000000000000000fULL
674 #define XPCS_DESKEW_ERR_CNT (FZC_MAC + 0x00078UL)
675 #define XPCS_DESKEW_ERR_CNT_VAL 0x00000000000000ffULL
677 #define XPCS_SYMERR_CNT01 (FZC_MAC + 0x00080UL)
678 #define XPCS_SYMERR_CNT01_LANE1 0x00000000ffff0000ULL
679 #define XPCS_SYMERR_CNT01_LANE0 0x000000000000ffffULL
681 #define XPCS_SYMERR_CNT23 (FZC_MAC + 0x00088UL)
682 #define XPCS_SYMERR_CNT23_LANE3 0x00000000ffff0000ULL
683 #define XPCS_SYMERR_CNT23_LANE2 0x000000000000ffffULL
685 #define XPCS_TRAINING_VECTOR (FZC_MAC + 0x00090UL)
686 #define XPCS_TRAINING_VECTOR_VAL 0x00000000ffffffffULL
690 #define PCS_MII_CTL (FZC_MAC + 0x00000UL)
691 #define PCS_MII_CTL_RST 0x0000000000008000ULL
692 #define PCS_MII_CTL_10_100_SPEED 0x0000000000002000ULL
693 #define PCS_MII_AUTONEG_EN 0x0000000000001000ULL
694 #define PCS_MII_PWR_DOWN 0x0000000000000800ULL
695 #define PCS_MII_ISOLATE 0x0000000000000400ULL
696 #define PCS_MII_AUTONEG_RESTART 0x0000000000000200ULL
697 #define PCS_MII_DUPLEX 0x0000000000000100ULL
698 #define PCS_MII_COLL_TEST 0x0000000000000080ULL
699 #define PCS_MII_1000MB_SPEED 0x0000000000000040ULL
701 #define PCS_MII_STAT (FZC_MAC + 0x00008UL)
702 #define PCS_MII_STAT_EXT_STATUS 0x0000000000000100ULL
703 #define PCS_MII_STAT_AUTONEG_DONE 0x0000000000000020ULL
704 #define PCS_MII_STAT_REMOTE_FAULT 0x0000000000000010ULL
705 #define PCS_MII_STAT_AUTONEG_ABLE 0x0000000000000008ULL
706 #define PCS_MII_STAT_LINK_STATUS 0x0000000000000004ULL
707 #define PCS_MII_STAT_JABBER_DET 0x0000000000000002ULL
708 #define PCS_MII_STAT_EXT_CAP 0x0000000000000001ULL
710 #define PCS_MII_ADV (FZC_MAC + 0x00010UL)
711 #define PCS_MII_ADV_NEXT_PAGE 0x0000000000008000ULL
712 #define PCS_MII_ADV_ACK 0x0000000000004000ULL
713 #define PCS_MII_ADV_REMOTE_FAULT 0x0000000000003000ULL
714 #define PCS_MII_ADV_ASM_DIR 0x0000000000000100ULL
715 #define PCS_MII_ADV_PAUSE 0x0000000000000080ULL
716 #define PCS_MII_ADV_HALF_DUPLEX 0x0000000000000040ULL
717 #define PCS_MII_ADV_FULL_DUPLEX 0x0000000000000020ULL
719 #define PCS_MII_PARTNER (FZC_MAC + 0x00018UL)
720 #define PCS_MII_PARTNER_NEXT_PAGE 0x0000000000008000ULL
721 #define PCS_MII_PARTNER_ACK 0x0000000000004000ULL
722 #define PCS_MII_PARTNER_REMOTE_FAULT 0x0000000000002000ULL
723 #define PCS_MII_PARTNER_PAUSE 0x0000000000000180ULL
724 #define PCS_MII_PARTNER_HALF_DUPLEX 0x0000000000000040ULL
725 #define PCS_MII_PARTNER_FULL_DUPLEX 0x0000000000000020ULL
727 #define PCS_CONF (FZC_MAC + 0x00020UL)
728 #define PCS_CONF_MASK 0x0000000000000040ULL
729 #define PCS_CONF_10MS_TMR_OVERRIDE 0x0000000000000020ULL
730 #define PCS_CONF_JITTER_STUDY 0x0000000000000018ULL
731 #define PCS_CONF_SIGDET_ACTIVE_LOW 0x0000000000000004ULL
732 #define PCS_CONF_SIGDET_OVERRIDE 0x0000000000000002ULL
733 #define PCS_CONF_ENABLE 0x0000000000000001ULL
735 #define PCS_STATE (FZC_MAC + 0x00028UL)
736 #define PCS_STATE_D_PARTNER_FAIL 0x0000000020000000ULL
737 #define PCS_STATE_D_WAIT_C_CODES_ACK 0x0000000010000000ULL
738 #define PCS_STATE_D_SYNC_LOSS 0x0000000008000000ULL
739 #define PCS_STATE_D_NO_GOOD_C_CODES 0x0000000004000000ULL
740 #define PCS_STATE_D_SERDES 0x0000000002000000ULL
741 #define PCS_STATE_D_BREAKLINK_C_CODES 0x0000000001000000ULL
742 #define PCS_STATE_L_SIGDET 0x0000000000400000ULL
743 #define PCS_STATE_L_SYNC_LOSS 0x0000000000200000ULL
744 #define PCS_STATE_L_C_CODES 0x0000000000100000ULL
745 #define PCS_STATE_LINK_CFG_STATE 0x000000000001e000ULL
746 #define PCS_STATE_SEQ_DET_STATE 0x0000000000001800ULL
747 #define PCS_STATE_WORD_SYNC_STATE 0x0000000000000700ULL
748 #define PCS_STATE_NO_IDLE 0x000000000000000fULL
750 #define PCS_INTERRUPT (FZC_MAC + 0x00030UL)
751 #define PCS_INTERRUPT_LSTATUS 0x0000000000000004ULL
753 #define PCS_DPATH_MODE (FZC_MAC + 0x000a0UL)
754 #define PCS_DPATH_MODE_PCS 0x0000000000000000ULL
755 #define PCS_DPATH_MODE_MII 0x0000000000000002ULL
756 #define PCS_DPATH_MODE_LINKUP_F_ENAB 0x0000000000000001ULL
758 #define PCS_PKT_CNT (FZC_MAC + 0x000c0UL)
759 #define PCS_PKT_CNT_RX 0x0000000007ff0000ULL
760 #define PCS_PKT_CNT_TX 0x00000000000007ffULL
762 #define MIF_BB_MDC (FZC_MAC + 0x16000UL)
763 #define MIF_BB_MDC_CLK 0x0000000000000001ULL
765 #define MIF_BB_MDO (FZC_MAC + 0x16008UL)
766 #define MIF_BB_MDO_DAT 0x0000000000000001ULL
768 #define MIF_BB_MDO_EN (FZC_MAC + 0x16010UL)
769 #define MIF_BB_MDO_EN_VAL 0x0000000000000001ULL
771 #define MIF_FRAME_OUTPUT (FZC_MAC + 0x16018UL)
772 #define MIF_FRAME_OUTPUT_ST 0x00000000c0000000ULL
774 #define MIF_FRAME_OUTPUT_OP_ADDR 0x0000000000000000ULL
775 #define MIF_FRAME_OUTPUT_OP_WRITE 0x0000000010000000ULL
776 #define MIF_FRAME_OUTPUT_OP_READ_INC 0x0000000020000000ULL
777 #define MIF_FRAME_OUTPUT_OP_READ 0x0000000030000000ULL
779 #define MIF_FRAME_OUTPUT_PORT 0x000000000f800000ULL
781 #define MIF_FRAME_OUTPUT_REG 0x00000000007c0000ULL
783 #define MIF_FRAME_OUTPUT_TA 0x0000000000030000ULL
785 #define MIF_FRAME_OUTPUT_DATA 0x000000000000ffffULL
786 #define MIF_FRAME_OUTPUT_DATA_SHIFT 0
789 ((0 << MIF_FRAME_OUTPUT_ST_SHIFT) | \
793 (0x2 << MIF_FRAME_OUTPUT_TA_SHIFT) | \
797 ((0 << MIF_FRAME_OUTPUT_ST_SHIFT) | \
801 (0x2 << MIF_FRAME_OUTPUT_TA_SHIFT))
804 ((0 << MIF_FRAME_OUTPUT_ST_SHIFT) | \
808 (0x2 << MIF_FRAME_OUTPUT_TA_SHIFT) | \
816 (0x2 << MIF_FRAME_OUTPUT_TA_SHIFT))
823 (0x2 << MIF_FRAME_OUTPUT_TA_SHIFT) | \
826 #define MIF_CONFIG (FZC_MAC + 0x16020UL)
827 #define MIF_CONFIG_ATCA_GE 0x0000000000010000ULL
828 #define MIF_CONFIG_INDIRECT_MODE 0x0000000000008000ULL
829 #define MIF_CONFIG_POLL_PRT_PHYADDR 0x0000000000003c00ULL
830 #define MIF_CONFIG_POLL_DEV_REG_ADDR 0x00000000000003e0ULL
831 #define MIF_CONFIG_BB_MODE 0x0000000000000010ULL
832 #define MIF_CONFIG_POLL_EN 0x0000000000000008ULL
833 #define MIF_CONFIG_BB_SER_SEL 0x0000000000000006ULL
834 #define MIF_CONFIG_MANUAL_MODE 0x0000000000000001ULL
836 #define MIF_POLL_STATUS (FZC_MAC + 0x16028UL)
837 #define MIF_POLL_STATUS_DATA 0x00000000ffff0000ULL
838 #define MIF_POLL_STATUS_STAT 0x000000000000ffffULL
840 #define MIF_POLL_MASK (FZC_MAC + 0x16030UL)
841 #define MIF_POLL_MASK_VAL 0x000000000000ffffULL
843 #define MIF_SM (FZC_MAC + 0x16038UL)
844 #define MIF_SM_PORT_ADDR 0x00000000001f0000ULL
845 #define MIF_SM_MDI_1 0x0000000000004000ULL
846 #define MIF_SM_MDI_0 0x0000000000002400ULL
847 #define MIF_SM_MDCLK 0x0000000000001000ULL
848 #define MIF_SM_MDO_EN 0x0000000000000800ULL
849 #define MIF_SM_MDO 0x0000000000000400ULL
850 #define MIF_SM_MDI 0x0000000000000200ULL
851 #define MIF_SM_CTL 0x00000000000001c0ULL
852 #define MIF_SM_EX 0x000000000000003fULL
854 #define MIF_STATUS (FZC_MAC + 0x16040UL)
855 #define MIF_STATUS_MDINT1 0x0000000000000020ULL
856 #define MIF_STATUS_MDINT0 0x0000000000000010ULL
858 #define MIF_MASK (FZC_MAC + 0x16048UL)
859 #define MIF_MASK_MDINT1 0x0000000000000020ULL
860 #define MIF_MASK_MDINT0 0x0000000000000010ULL
861 #define MIF_MASK_PEU_ERR 0x0000000000000008ULL
862 #define MIF_MASK_YC 0x0000000000000004ULL
863 #define MIF_MASK_XGE_ERR0 0x0000000000000002ULL
864 #define MIF_MASK_MIF_INIT_DONE 0x0000000000000001ULL
866 #define ENET_SERDES_RESET (FZC_MAC + 0x14000UL)
867 #define ENET_SERDES_RESET_1 0x0000000000000002ULL
868 #define ENET_SERDES_RESET_0 0x0000000000000001ULL
870 #define ENET_SERDES_CFG (FZC_MAC + 0x14008UL)
871 #define ENET_SERDES_BE_LOOPBACK 0x0000000000000002ULL
872 #define ENET_SERDES_CFG_FORCE_RDY 0x0000000000000001ULL
874 #define ENET_SERDES_0_PLL_CFG (FZC_MAC + 0x14010UL)
875 #define ENET_SERDES_PLL_FBDIV0 0x0000000000000001ULL
876 #define ENET_SERDES_PLL_FBDIV1 0x0000000000000002ULL
877 #define ENET_SERDES_PLL_FBDIV2 0x0000000000000004ULL
878 #define ENET_SERDES_PLL_HRATE0 0x0000000000000008ULL
879 #define ENET_SERDES_PLL_HRATE1 0x0000000000000010ULL
880 #define ENET_SERDES_PLL_HRATE2 0x0000000000000020ULL
881 #define ENET_SERDES_PLL_HRATE3 0x0000000000000040ULL
883 #define ENET_SERDES_0_CTRL_CFG (FZC_MAC + 0x14018UL)
884 #define ENET_SERDES_CTRL_SDET_0 0x0000000000000001ULL
885 #define ENET_SERDES_CTRL_SDET_1 0x0000000000000002ULL
886 #define ENET_SERDES_CTRL_SDET_2 0x0000000000000004ULL
887 #define ENET_SERDES_CTRL_SDET_3 0x0000000000000008ULL
888 #define ENET_SERDES_CTRL_EMPH_0 0x0000000000000070ULL
890 #define ENET_SERDES_CTRL_EMPH_1 0x0000000000000380ULL
892 #define ENET_SERDES_CTRL_EMPH_2 0x0000000000001c00ULL
894 #define ENET_SERDES_CTRL_EMPH_3 0x000000000000e000ULL
896 #define ENET_SERDES_CTRL_LADJ_0 0x0000000000070000ULL
898 #define ENET_SERDES_CTRL_LADJ_1 0x0000000000380000ULL
900 #define ENET_SERDES_CTRL_LADJ_2 0x0000000001c00000ULL
902 #define ENET_SERDES_CTRL_LADJ_3 0x000000000e000000ULL
904 #define ENET_SERDES_CTRL_RXITERM_0 0x0000000010000000ULL
905 #define ENET_SERDES_CTRL_RXITERM_1 0x0000000020000000ULL
906 #define ENET_SERDES_CTRL_RXITERM_2 0x0000000040000000ULL
907 #define ENET_SERDES_CTRL_RXITERM_3 0x0000000080000000ULL
909 #define ENET_SERDES_0_TEST_CFG (FZC_MAC + 0x14020UL)
910 #define ENET_SERDES_TEST_MD_0 0x0000000000000003ULL
911 #define ENET_SERDES_TEST_MD_0_SHIFT 0
912 #define ENET_SERDES_TEST_MD_1 0x000000000000000cULL
914 #define ENET_SERDES_TEST_MD_2 0x0000000000000030ULL
916 #define ENET_SERDES_TEST_MD_3 0x00000000000000c0ULL
919 #define ENET_TEST_MD_NO_LOOPBACK 0x0
920 #define ENET_TEST_MD_EWRAP 0x1
921 #define ENET_TEST_MD_PAD_LOOPBACK 0x2
922 #define ENET_TEST_MD_REV_LOOPBACK 0x3
924 #define ENET_SERDES_1_PLL_CFG (FZC_MAC + 0x14028UL)
925 #define ENET_SERDES_1_CTRL_CFG (FZC_MAC + 0x14030UL)
926 #define ENET_SERDES_1_TEST_CFG (FZC_MAC + 0x14038UL)
928 #define ENET_RGMII_CFG_REG (FZC_MAC + 0x14040UL)
930 #define ESR_INT_SIGNALS (FZC_MAC + 0x14800UL)
931 #define ESR_INT_SIGNALS_ALL 0x00000000ffffffffULL
932 #define ESR_INT_SIGNALS_P0_BITS 0x0000000033e0000fULL
933 #define ESR_INT_SIGNALS_P1_BITS 0x000000000c1f00f0ULL
934 #define ESR_INT_SRDY0_P0 0x0000000020000000ULL
935 #define ESR_INT_DET0_P0 0x0000000010000000ULL
936 #define ESR_INT_SRDY0_P1 0x0000000008000000ULL
937 #define ESR_INT_DET0_P1 0x0000000004000000ULL
938 #define ESR_INT_XSRDY_P0 0x0000000002000000ULL
939 #define ESR_INT_XDP_P0_CH3 0x0000000001000000ULL
940 #define ESR_INT_XDP_P0_CH2 0x0000000000800000ULL
941 #define ESR_INT_XDP_P0_CH1 0x0000000000400000ULL
942 #define ESR_INT_XDP_P0_CH0 0x0000000000200000ULL
943 #define ESR_INT_XSRDY_P1 0x0000000000100000ULL
944 #define ESR_INT_XDP_P1_CH3 0x0000000000080000ULL
945 #define ESR_INT_XDP_P1_CH2 0x0000000000040000ULL
946 #define ESR_INT_XDP_P1_CH1 0x0000000000020000ULL
947 #define ESR_INT_XDP_P1_CH0 0x0000000000010000ULL
948 #define ESR_INT_SLOSS_P1_CH3 0x0000000000000080ULL
949 #define ESR_INT_SLOSS_P1_CH2 0x0000000000000040ULL
950 #define ESR_INT_SLOSS_P1_CH1 0x0000000000000020ULL
951 #define ESR_INT_SLOSS_P1_CH0 0x0000000000000010ULL
952 #define ESR_INT_SLOSS_P0_CH3 0x0000000000000008ULL
953 #define ESR_INT_SLOSS_P0_CH2 0x0000000000000004ULL
954 #define ESR_INT_SLOSS_P0_CH1 0x0000000000000002ULL
955 #define ESR_INT_SLOSS_P0_CH0 0x0000000000000001ULL
957 #define ESR_DEBUG_SEL (FZC_MAC + 0x14808UL)
958 #define ESR_DEBUG_SEL_VAL 0x000000000000003fULL
961 #define NIU_ESR_DEV_ADDR 0x1e
962 #define ESR_BASE 0x0000
964 #define ESR_RXTX_COMM_CTRL_L (ESR_BASE + 0x0000)
965 #define ESR_RXTX_COMM_CTRL_H (ESR_BASE + 0x0001)
967 #define ESR_RXTX_RESET_CTRL_L (ESR_BASE + 0x0002)
968 #define ESR_RXTX_RESET_CTRL_H (ESR_BASE + 0x0003)
970 #define ESR_RX_POWER_CTRL_L (ESR_BASE + 0x0004)
971 #define ESR_RX_POWER_CTRL_H (ESR_BASE + 0x0005)
973 #define ESR_TX_POWER_CTRL_L (ESR_BASE + 0x0006)
974 #define ESR_TX_POWER_CTRL_H (ESR_BASE + 0x0007)
976 #define ESR_MISC_POWER_CTRL_L (ESR_BASE + 0x0008)
977 #define ESR_MISC_POWER_CTRL_H (ESR_BASE + 0x0009)
979 #define ESR_RXTX_CTRL_L(CHAN) (ESR_BASE + 0x0080 + (CHAN) * 0x10)
980 #define ESR_RXTX_CTRL_H(CHAN) (ESR_BASE + 0x0081 + (CHAN) * 0x10)
981 #define ESR_RXTX_CTRL_BIASCNTL 0x80000000
982 #define ESR_RXTX_CTRL_RESV1 0x7c000000
983 #define ESR_RXTX_CTRL_TDENFIFO 0x02000000
984 #define ESR_RXTX_CTRL_TDWS20 0x01000000
985 #define ESR_RXTX_CTRL_VMUXLO 0x00c00000
987 #define ESR_RXTX_CTRL_VPULSELO 0x00300000
989 #define ESR_RXTX_CTRL_RESV2 0x000f0000
990 #define ESR_RXTX_CTRL_RESV3 0x0000c000
991 #define ESR_RXTX_CTRL_RXPRESWIN 0x00003000
993 #define ESR_RXTX_CTRL_RESV4 0x00000800
994 #define ESR_RXTX_CTRL_RISEFALL 0x00000700
996 #define ESR_RXTX_CTRL_RESV5 0x000000fe
997 #define ESR_RXTX_CTRL_ENSTRETCH 0x00000001
999 #define ESR_RXTX_TUNING_L(CHAN) (ESR_BASE + 0x0082 + (CHAN) * 0x10)
1000 #define ESR_RXTX_TUNING_H(CHAN) (ESR_BASE + 0x0083 + (CHAN) * 0x10)
1002 #define ESR_RX_SYNCCHAR_L(CHAN) (ESR_BASE + 0x0084 + (CHAN) * 0x10)
1003 #define ESR_RX_SYNCCHAR_H(CHAN) (ESR_BASE + 0x0085 + (CHAN) * 0x10)
1005 #define ESR_RXTX_TEST_L(CHAN) (ESR_BASE + 0x0086 + (CHAN) * 0x10)
1006 #define ESR_RXTX_TEST_H(CHAN) (ESR_BASE + 0x0087 + (CHAN) * 0x10)
1008 #define ESR_GLUE_CTRL0_L(CHAN) (ESR_BASE + 0x0088 + (CHAN) * 0x10)
1009 #define ESR_GLUE_CTRL0_H(CHAN) (ESR_BASE + 0x0089 + (CHAN) * 0x10)
1010 #define ESR_GLUE_CTRL0_RESV1 0xf8000000
1011 #define ESR_GLUE_CTRL0_BLTIME 0x07000000
1013 #define ESR_GLUE_CTRL0_RESV2 0x00ff0000
1014 #define ESR_GLUE_CTRL0_RXLOS_TEST 0x00008000
1015 #define ESR_GLUE_CTRL0_RESV3 0x00004000
1016 #define ESR_GLUE_CTRL0_RXLOSENAB 0x00002000
1017 #define ESR_GLUE_CTRL0_FASTRESYNC 0x00001000
1018 #define ESR_GLUE_CTRL0_SRATE 0x00000f00
1020 #define ESR_GLUE_CTRL0_THCNT 0x000000ff
1021 #define ESR_GLUE_CTRL0_THCNT_SHIFT 0
1023 #define BLTIME_64_CYCLES 0
1032 #define ESR_GLUE_CTRL1_L(CHAN) (ESR_BASE + 0x008a + (CHAN) * 0x10)
1033 #define ESR_GLUE_CTRL1_H(CHAN) (ESR_BASE + 0x008b + (CHAN) * 0x10)
1034 #define ESR_RXTX_TUNING1_L(CHAN) (ESR_BASE + 0x00c2 + (CHAN) * 0x10)
1035 #define ESR_RXTX_TUNING1_H(CHAN) (ESR_BASE + 0x00c2 + (CHAN) * 0x10)
1036 #define ESR_RXTX_TUNING2_L(CHAN) (ESR_BASE + 0x0102 + (CHAN) * 0x10)
1037 #define ESR_RXTX_TUNING2_H(CHAN) (ESR_BASE + 0x0102 + (CHAN) * 0x10)
1038 #define ESR_RXTX_TUNING3_L(CHAN) (ESR_BASE + 0x0142 + (CHAN) * 0x10)
1039 #define ESR_RXTX_TUNING3_H(CHAN) (ESR_BASE + 0x0142 + (CHAN) * 0x10)
1041 #define NIU_ESR2_DEV_ADDR 0x1e
1042 #define ESR2_BASE 0x8000
1044 #define ESR2_TI_PLL_CFG_L (ESR2_BASE + 0x000)
1045 #define ESR2_TI_PLL_CFG_H (ESR2_BASE + 0x001)
1046 #define PLL_CFG_STD 0x00000c00
1048 #define PLL_CFG_LD 0x00000300
1050 #define PLL_CFG_MPY 0x0000001e
1052 #define PLL_CFG_MPY_4X 0x0
1053 #define PLL_CFG_MPY_5X 0x00000002
1054 #define PLL_CFG_MPY_6X 0x00000004
1055 #define PLL_CFG_MPY_8X 0x00000008
1056 #define PLL_CFG_MPY_10X 0x0000000a
1057 #define PLL_CFG_MPY_12X 0x0000000c
1058 #define PLL_CFG_MPY_12P5X 0x0000000e
1059 #define PLL_CFG_ENPLL 0x00000001
1061 #define ESR2_TI_PLL_STS_L (ESR2_BASE + 0x002)
1062 #define ESR2_TI_PLL_STS_H (ESR2_BASE + 0x003)
1063 #define PLL_STS_LOCK 0x00000001
1065 #define ESR2_TI_PLL_TEST_CFG_L (ESR2_BASE + 0x004)
1066 #define ESR2_TI_PLL_TEST_CFG_H (ESR2_BASE + 0x005)
1067 #define PLL_TEST_INVPATT 0x00004000
1068 #define PLL_TEST_RATE 0x00003000
1070 #define PLL_TEST_CFG_ENBSAC 0x00000400
1071 #define PLL_TEST_CFG_ENBSRX 0x00000200
1072 #define PLL_TEST_CFG_ENBSTX 0x00000100
1073 #define PLL_TEST_CFG_LOOPBACK_PAD 0x00000040
1074 #define PLL_TEST_CFG_LOOPBACK_CML_DIS 0x00000080
1075 #define PLL_TEST_CFG_LOOPBACK_CML_EN 0x000000c0
1076 #define PLL_TEST_CFG_CLKBYP 0x00000030
1078 #define PLL_TEST_CFG_EN_RXPATT 0x00000008
1079 #define PLL_TEST_CFG_EN_TXPATT 0x00000004
1080 #define PLL_TEST_CFG_TPATT 0x00000003
1081 #define PLL_TEST_CFG_TPATT_SHIFT 0
1083 #define ESR2_TI_PLL_TX_CFG_L(CHAN) (ESR2_BASE + 0x100 + (CHAN) * 4)
1084 #define ESR2_TI_PLL_TX_CFG_H(CHAN) (ESR2_BASE + 0x101 + (CHAN) * 4)
1085 #define PLL_TX_CFG_RDTCT 0x00600000
1087 #define PLL_TX_CFG_ENIDL 0x00100000
1088 #define PLL_TX_CFG_BSTX 0x00020000
1089 #define PLL_TX_CFG_ENFTP 0x00010000
1090 #define PLL_TX_CFG_DE 0x0000f000
1092 #define PLL_TX_CFG_SWING_125MV 0x00000000
1093 #define PLL_TX_CFG_SWING_250MV 0x00000200
1094 #define PLL_TX_CFG_SWING_500MV 0x00000400
1095 #define PLL_TX_CFG_SWING_625MV 0x00000600
1096 #define PLL_TX_CFG_SWING_750MV 0x00000800
1097 #define PLL_TX_CFG_SWING_1000MV 0x00000a00
1098 #define PLL_TX_CFG_SWING_1250MV 0x00000c00
1099 #define PLL_TX_CFG_SWING_1375MV 0x00000e00
1100 #define PLL_TX_CFG_CM 0x00000100
1101 #define PLL_TX_CFG_INVPAIR 0x00000080
1102 #define PLL_TX_CFG_RATE 0x00000060
1104 #define PLL_TX_CFG_RATE_FULL 0x0
1105 #define PLL_TX_CFG_RATE_HALF 0x20
1106 #define PLL_TX_CFG_RATE_QUAD 0x40
1107 #define PLL_TX_CFG_BUSWIDTH 0x0000001c
1109 #define PLL_TX_CFG_ENTEST 0x00000002
1110 #define PLL_TX_CFG_ENTX 0x00000001
1112 #define ESR2_TI_PLL_TX_STS_L(CHAN) (ESR2_BASE + 0x102 + (CHAN) * 4)
1113 #define ESR2_TI_PLL_TX_STS_H(CHAN) (ESR2_BASE + 0x103 + (CHAN) * 4)
1114 #define PLL_TX_STS_RDTCTIP 0x00000002
1115 #define PLL_TX_STS_TESTFAIL 0x00000001
1117 #define ESR2_TI_PLL_RX_CFG_L(CHAN) (ESR2_BASE + 0x120 + (CHAN) * 4)
1118 #define ESR2_TI_PLL_RX_CFG_H(CHAN) (ESR2_BASE + 0x121 + (CHAN) * 4)
1119 #define PLL_RX_CFG_BSINRXN 0x02000000
1120 #define PLL_RX_CFG_BSINRXP 0x01000000
1121 #define PLL_RX_CFG_EQ_MAX_LF 0x00000000
1122 #define PLL_RX_CFG_EQ_LP_ADAPTIVE 0x00080000
1123 #define PLL_RX_CFG_EQ_LP_1084MHZ 0x00400000
1124 #define PLL_RX_CFG_EQ_LP_805MHZ 0x00480000
1125 #define PLL_RX_CFG_EQ_LP_573MHZ 0x00500000
1126 #define PLL_RX_CFG_EQ_LP_402MHZ 0x00580000
1127 #define PLL_RX_CFG_EQ_LP_304MHZ 0x00600000
1128 #define PLL_RX_CFG_EQ_LP_216MHZ 0x00680000
1129 #define PLL_RX_CFG_EQ_LP_156MHZ 0x00700000
1130 #define PLL_RX_CFG_EQ_LP_135MHZ 0x00780000
1132 #define PLL_RX_CFG_CDR 0x00070000
1134 #define PLL_RX_CFG_LOS_DIS 0x00000000
1135 #define PLL_RX_CFG_LOS_HTHRESH 0x00004000
1136 #define PLL_RX_CFG_LOS_LTHRESH 0x00008000
1137 #define PLL_RX_CFG_ALIGN_DIS 0x00000000
1138 #define PLL_RX_CFG_ALIGN_ENA 0x00001000
1139 #define PLL_RX_CFG_ALIGN_JOG 0x00002000
1140 #define PLL_RX_CFG_TERM_VDDT 0x00000000
1141 #define PLL_RX_CFG_TERM_0P8VDDT 0x00000100
1142 #define PLL_RX_CFG_TERM_FLOAT 0x00000300
1143 #define PLL_RX_CFG_INVPAIR 0x00000080
1144 #define PLL_RX_CFG_RATE 0x00000060
1146 #define PLL_RX_CFG_RATE_FULL 0x0
1147 #define PLL_RX_CFG_RATE_HALF 0x20
1148 #define PLL_RX_CFG_RATE_QUAD 0x40
1149 #define PLL_RX_CFG_BUSWIDTH 0x0000001c
1151 #define PLL_RX_CFG_ENTEST 0x00000002
1152 #define PLL_RX_CFG_ENRX 0x00000001
1154 #define ESR2_TI_PLL_RX_STS_L(CHAN) (ESR2_BASE + 0x122 + (CHAN) * 4)
1155 #define ESR2_TI_PLL_RX_STS_H(CHAN) (ESR2_BASE + 0x123 + (CHAN) * 4)
1156 #define PLL_RX_STS_CRCIDTCT 0x00000200
1157 #define PLL_RX_STS_CWDTCT 0x00000100
1158 #define PLL_RX_STS_BSRXN 0x00000020
1159 #define PLL_RX_STS_BSRXP 0x00000010
1160 #define PLL_RX_STS_LOSDTCT 0x00000008
1161 #define PLL_RX_STS_ODDCG 0x00000004
1162 #define PLL_RX_STS_SYNC 0x00000002
1163 #define PLL_RX_STS_TESTFAIL 0x00000001
1165 #define ENET_VLAN_TBL(IDX) (FZC_FFLP + 0x00000UL + (IDX) * 8UL)
1166 #define ENET_VLAN_TBL_PARITY1 0x0000000000020000ULL
1167 #define ENET_VLAN_TBL_PARITY0 0x0000000000010000ULL
1168 #define ENET_VLAN_TBL_VPR 0x0000000000000008ULL
1169 #define ENET_VLAN_TBL_VLANRDCTBLN 0x0000000000000007ULL
1174 #define FFLP_VLAN_PAR_ERR (FZC_FFLP + 0x0800UL)
1175 #define FFLP_VLAN_PAR_ERR_ERR 0x0000000080000000ULL
1176 #define FFLP_VLAN_PAR_ERR_M_ERR 0x0000000040000000ULL
1177 #define FFLP_VLAN_PAR_ERR_ADDR 0x000000003ffc0000ULL
1178 #define FFLP_VLAN_PAR_ERR_DATA 0x000000000003ffffULL
1180 #define L2_CLS(IDX) (FZC_FFLP + 0x20000UL + (IDX) * 8UL)
1181 #define L2_CLS_VLD 0x0000000000010000ULL
1182 #define L2_CLS_ETYPE 0x000000000000ffffULL
1183 #define L2_CLS_ETYPE_SHIFT 0
1185 #define L3_CLS(IDX) (FZC_FFLP + 0x20010UL + (IDX) * 8UL)
1186 #define L3_CLS_VALID 0x0000000002000000ULL
1187 #define L3_CLS_IPVER 0x0000000001000000ULL
1188 #define L3_CLS_PID 0x0000000000ff0000ULL
1190 #define L3_CLS_TOSMASK 0x000000000000ff00ULL
1192 #define L3_CLS_TOS 0x00000000000000ffULL
1193 #define L3_CLS_TOS_SHIFT 0
1195 #define TCAM_KEY(IDX) (FZC_FFLP + 0x20030UL + (IDX) * 8UL)
1196 #define TCAM_KEY_DISC 0x0000000000000008ULL
1197 #define TCAM_KEY_TSEL 0x0000000000000004ULL
1198 #define TCAM_KEY_IPADDR 0x0000000000000001ULL
1200 #define TCAM_KEY_0 (FZC_FFLP + 0x20090UL)
1201 #define TCAM_KEY_0_KEY 0x00000000000000ffULL /* bits 192-199 */
1203 #define TCAM_KEY_1 (FZC_FFLP + 0x20098UL)
1204 #define TCAM_KEY_1_KEY 0xffffffffffffffffULL /* bits 128-191 */
1206 #define TCAM_KEY_2 (FZC_FFLP + 0x200a0UL)
1207 #define TCAM_KEY_2_KEY 0xffffffffffffffffULL /* bits 64-127 */
1209 #define TCAM_KEY_3 (FZC_FFLP + 0x200a8UL)
1210 #define TCAM_KEY_3_KEY 0xffffffffffffffffULL /* bits 0-63 */
1212 #define TCAM_KEY_MASK_0 (FZC_FFLP + 0x200b0UL)
1213 #define TCAM_KEY_MASK_0_KEY_SEL 0x00000000000000ffULL /* bits 192-199 */
1215 #define TCAM_KEY_MASK_1 (FZC_FFLP + 0x200b8UL)
1216 #define TCAM_KEY_MASK_1_KEY_SEL 0xffffffffffffffffULL /* bits 128-191 */
1218 #define TCAM_KEY_MASK_2 (FZC_FFLP + 0x200c0UL)
1219 #define TCAM_KEY_MASK_2_KEY_SEL 0xffffffffffffffffULL /* bits 64-127 */
1221 #define TCAM_KEY_MASK_3 (FZC_FFLP + 0x200c8UL)
1222 #define TCAM_KEY_MASK_3_KEY_SEL 0xffffffffffffffffULL /* bits 0-63 */
1224 #define TCAM_CTL (FZC_FFLP + 0x200d0UL)
1225 #define TCAM_CTL_RWC 0x00000000001c0000ULL
1226 #define TCAM_CTL_RWC_TCAM_WRITE 0x0000000000000000ULL
1227 #define TCAM_CTL_RWC_TCAM_READ 0x0000000000040000ULL
1228 #define TCAM_CTL_RWC_TCAM_COMPARE 0x0000000000080000ULL
1229 #define TCAM_CTL_RWC_RAM_WRITE 0x0000000000100000ULL
1230 #define TCAM_CTL_RWC_RAM_READ 0x0000000000140000ULL
1231 #define TCAM_CTL_STAT 0x0000000000020000ULL
1232 #define TCAM_CTL_MATCH 0x0000000000010000ULL
1233 #define TCAM_CTL_LOC 0x00000000000003ffULL
1235 #define TCAM_ERR (FZC_FFLP + 0x200d8UL)
1236 #define TCAM_ERR_ERR 0x0000000080000000ULL
1237 #define TCAM_ERR_P_ECC 0x0000000040000000ULL
1238 #define TCAM_ERR_MULT 0x0000000020000000ULL
1239 #define TCAM_ERR_ADDR 0x0000000000ff0000ULL
1240 #define TCAM_ERR_SYNDROME 0x000000000000ffffULL
1242 #define HASH_LOOKUP_ERR_LOG1 (FZC_FFLP + 0x200e0UL)
1243 #define HASH_LOOKUP_ERR_LOG1_ERR 0x0000000000000008ULL
1244 #define HASH_LOOKUP_ERR_LOG1_MULT_LK 0x0000000000000004ULL
1245 #define HASH_LOOKUP_ERR_LOG1_CU 0x0000000000000002ULL
1246 #define HASH_LOOKUP_ERR_LOG1_MULT_BIT 0x0000000000000001ULL
1248 #define HASH_LOOKUP_ERR_LOG2 (FZC_FFLP + 0x200e8UL)
1249 #define HASH_LOOKUP_ERR_LOG2_H1 0x000000007ffff800ULL
1250 #define HASH_LOOKUP_ERR_LOG2_SUBAREA 0x0000000000000700ULL
1251 #define HASH_LOOKUP_ERR_LOG2_SYNDROME 0x00000000000000ffULL
1253 #define FFLP_CFG_1 (FZC_FFLP + 0x20100UL)
1254 #define FFLP_CFG_1_TCAM_DIS 0x0000000004000000ULL
1255 #define FFLP_CFG_1_PIO_DBG_SEL 0x0000000003800000ULL
1256 #define FFLP_CFG_1_PIO_FIO_RST 0x0000000000400000ULL
1257 #define FFLP_CFG_1_PIO_FIO_LAT 0x0000000000300000ULL
1258 #define FFLP_CFG_1_CAMLAT 0x00000000000f0000ULL
1260 #define FFLP_CFG_1_CAMRATIO 0x000000000000f000ULL
1262 #define FFLP_CFG_1_FCRAMRATIO 0x0000000000000f00ULL
1264 #define FFLP_CFG_1_FCRAMOUTDR_MASK 0x00000000000000f0ULL
1265 #define FFLP_CFG_1_FCRAMOUTDR_NORMAL 0x0000000000000000ULL
1266 #define FFLP_CFG_1_FCRAMOUTDR_STRONG 0x0000000000000050ULL
1267 #define FFLP_CFG_1_FCRAMOUTDR_WEAK 0x00000000000000a0ULL
1268 #define FFLP_CFG_1_FCRAMQS 0x0000000000000008ULL
1269 #define FFLP_CFG_1_ERRORDIS 0x0000000000000004ULL
1270 #define FFLP_CFG_1_FFLPINITDONE 0x0000000000000002ULL
1271 #define FFLP_CFG_1_LLCSNAP 0x0000000000000001ULL
1278 #define TCP_CFLAG_MSK (FZC_FFLP + 0x20108UL)
1279 #define TCP_CFLAG_MSK_MASK 0x0000000000000fffULL
1281 #define FCRAM_REF_TMR (FZC_FFLP + 0x20110UL)
1282 #define FCRAM_REF_TMR_MAX 0x00000000ffff0000ULL
1284 #define FCRAM_REF_TMR_MIN 0x000000000000ffffULL
1285 #define FCRAM_REF_TMR_MIN_SHIFT 0
1290 #define FCRAM_FIO_ADDR (FZC_FFLP + 0x20118UL)
1291 #define FCRAM_FIO_ADDR_ADDR 0x00000000000000ffULL
1293 #define FCRAM_FIO_DAT (FZC_FFLP + 0x20120UL)
1294 #define FCRAM_FIO_DAT_DATA 0x000000000000ffffULL
1296 #define FCRAM_ERR_TST0 (FZC_FFLP + 0x20128UL)
1297 #define FCRAM_ERR_TST0_SYND 0x00000000000000ffULL
1299 #define FCRAM_ERR_TST1 (FZC_FFLP + 0x20130UL)
1300 #define FCRAM_ERR_TST1_DAT 0x00000000ffffffffULL
1302 #define FCRAM_ERR_TST2 (FZC_FFLP + 0x20138UL)
1303 #define FCRAM_ERR_TST2_DAT 0x00000000ffffffffULL
1305 #define FFLP_ERR_MASK (FZC_FFLP + 0x20140UL)
1306 #define FFLP_ERR_MASK_HSH_TBL_DAT 0x00000000000007f8ULL
1307 #define FFLP_ERR_MASK_HSH_TBL_LKUP 0x0000000000000004ULL
1308 #define FFLP_ERR_MASK_TCAM 0x0000000000000002ULL
1309 #define FFLP_ERR_MASK_VLAN 0x0000000000000001ULL
1311 #define FFLP_DBG_TRAIN_VCT (FZC_FFLP + 0x20148UL)
1312 #define FFLP_DBG_TRAIN_VCT_VECTOR 0x00000000ffffffffULL
1314 #define FCRAM_PHY_RD_LAT (FZC_FFLP + 0x20150UL)
1315 #define FCRAM_PHY_RD_LAT_LAT 0x00000000000000ffULL
1318 #define TCAM_ETHKEY0_RESV1 0xffffffffffffff00ULL
1319 #define TCAM_ETHKEY0_CLASS_CODE 0x00000000000000f8ULL
1321 #define TCAM_ETHKEY0_RESV2 0x0000000000000007ULL
1322 #define TCAM_ETHKEY1_FRAME_BYTE0_7(NUM) (0xff << ((7 - NUM) * 8))
1323 #define TCAM_ETHKEY2_FRAME_BYTE8 0xff00000000000000ULL
1325 #define TCAM_ETHKEY2_FRAME_BYTE9 0x00ff000000000000ULL
1327 #define TCAM_ETHKEY2_FRAME_BYTE10 0x0000ff0000000000ULL
1329 #define TCAM_ETHKEY2_FRAME_RESV 0x000000ffffffffffULL
1330 #define TCAM_ETHKEY3_FRAME_RESV 0xffffffffffffffffULL
1333 #define TCAM_V4KEY0_RESV1 0xffffffffffffff00ULL
1334 #define TCAM_V4KEY0_CLASS_CODE 0x00000000000000f8ULL
1336 #define TCAM_V4KEY0_RESV2 0x0000000000000007ULL
1337 #define TCAM_V4KEY1_L2RDCNUM 0xf800000000000000ULL
1339 #define TCAM_V4KEY1_NOPORT 0x0400000000000000ULL
1340 #define TCAM_V4KEY1_RESV 0x03ffffffffffffffULL
1341 #define TCAM_V4KEY2_RESV 0xffff000000000000ULL
1342 #define TCAM_V4KEY2_TOS 0x0000ff0000000000ULL
1344 #define TCAM_V4KEY2_PROTO 0x000000ff00000000ULL
1346 #define TCAM_V4KEY2_PORT_SPI 0x00000000ffffffffULL
1347 #define TCAM_V4KEY2_PORT_SPI_SHIFT 0
1348 #define TCAM_V4KEY3_SADDR 0xffffffff00000000ULL
1350 #define TCAM_V4KEY3_DADDR 0x00000000ffffffffULL
1351 #define TCAM_V4KEY3_DADDR_SHIFT 0
1354 #define TCAM_V6KEY0_RESV1 0xffffffffffffff00ULL
1355 #define TCAM_V6KEY0_CLASS_CODE 0x00000000000000f8ULL
1357 #define TCAM_V6KEY0_RESV2 0x0000000000000007ULL
1358 #define TCAM_V6KEY1_L2RDCNUM 0xf800000000000000ULL
1360 #define TCAM_V6KEY1_NOPORT 0x0400000000000000ULL
1361 #define TCAM_V6KEY1_RESV 0x03ff000000000000ULL
1362 #define TCAM_V6KEY1_TOS 0x0000ff0000000000ULL
1364 #define TCAM_V6KEY1_NEXT_HDR 0x000000ff00000000ULL
1366 #define TCAM_V6KEY1_PORT_SPI 0x00000000ffffffffULL
1367 #define TCAM_V6KEY1_PORT_SPI_SHIFT 0
1368 #define TCAM_V6KEY2_ADDR_HIGH 0xffffffffffffffffULL
1369 #define TCAM_V6KEY3_ADDR_LOW 0xffffffffffffffffULL
1371 #define TCAM_ASSOCDATA_SYNDROME 0x000003fffc000000ULL
1373 #define TCAM_ASSOCDATA_ZFID 0x0000000003ffc000ULL
1375 #define TCAM_ASSOCDATA_V4_ECC_OK 0x0000000000002000ULL
1376 #define TCAM_ASSOCDATA_DISC 0x0000000000001000ULL
1377 #define TCAM_ASSOCDATA_TRES_MASK 0x0000000000000c00ULL
1378 #define TCAM_ASSOCDATA_TRES_USE_L2RDC 0x0000000000000000ULL
1379 #define TCAM_ASSOCDATA_TRES_USE_OFFSET 0x0000000000000400ULL
1380 #define TCAM_ASSOCDATA_TRES_OVR_RDC 0x0000000000000800ULL
1381 #define TCAM_ASSOCDATA_TRES_OVR_RDC_OFF 0x0000000000000c00ULL
1382 #define TCAM_ASSOCDATA_RDCTBL 0x0000000000000380ULL
1384 #define TCAM_ASSOCDATA_OFFSET 0x000000000000007cULL
1386 #define TCAM_ASSOCDATA_ZFVLD 0x0000000000000002ULL
1387 #define TCAM_ASSOCDATA_AGE 0x0000000000000001ULL
1389 #define FLOW_KEY(IDX) (FZC_FFLP + 0x40000UL + (IDX) * 8UL)
1390 #define FLOW_KEY_PORT 0x0000000000000200ULL
1391 #define FLOW_KEY_L2DA 0x0000000000000100ULL
1392 #define FLOW_KEY_VLAN 0x0000000000000080ULL
1393 #define FLOW_KEY_IPSA 0x0000000000000040ULL
1394 #define FLOW_KEY_IPDA 0x0000000000000020ULL
1395 #define FLOW_KEY_PROTO 0x0000000000000010ULL
1396 #define FLOW_KEY_L4_0 0x000000000000000cULL
1398 #define FLOW_KEY_L4_1 0x0000000000000003ULL
1399 #define FLOW_KEY_L4_1_SHIFT 0
1401 #define FLOW_KEY_L4_NONE 0x0
1402 #define FLOW_KEY_L4_RESV 0x1
1403 #define FLOW_KEY_L4_BYTE12 0x2
1404 #define FLOW_KEY_L4_BYTE56 0x3
1406 #define H1POLY (FZC_FFLP + 0x40060UL)
1407 #define H1POLY_INITVAL 0x00000000ffffffffULL
1409 #define H2POLY (FZC_FFLP + 0x40068UL)
1410 #define H2POLY_INITVAL 0x000000000000ffffULL
1412 #define FLW_PRT_SEL(IDX) (FZC_FFLP + 0x40070UL + (IDX) * 8UL)
1413 #define FLW_PRT_SEL_EXT 0x0000000000010000ULL
1414 #define FLW_PRT_SEL_MASK 0x0000000000001f00ULL
1416 #define FLW_PRT_SEL_BASE 0x000000000000001fULL
1417 #define FLW_PRT_SEL_BASE_SHIFT 0
1419 #define HASH_TBL_ADDR(IDX) (FFLP + 0x00000UL + (IDX) * 8192UL)
1420 #define HASH_TBL_ADDR_AUTOINC 0x0000000000800000ULL
1421 #define HASH_TBL_ADDR_ADDR 0x00000000007fffffULL
1423 #define HASH_TBL_DATA(IDX) (FFLP + 0x00008UL + (IDX) * 8192UL)
1424 #define HASH_TBL_DATA_DATA 0xffffffffffffffffULL
1434 #define FCRAM_SIZE 0x800000
1438 #define HASH_HEADER_FMT 0x8000000000000000ULL
1439 #define HASH_HEADER_EXT 0x4000000000000000ULL
1440 #define HASH_HEADER_VALID 0x2000000000000000ULL
1441 #define HASH_HEADER_RESVD 0x1000000000000000ULL
1442 #define HASH_HEADER_L2_DADDR 0x0ffffffffffff000ULL
1444 #define HASH_HEADER_VLAN 0x0000000000000fffULL
1445 #define HASH_HEADER_VLAN_SHIFT 0
1450 #define HASH_OPT_HEADER_FMT 0x8000000000000000ULL
1451 #define HASH_OPT_HEADER_EXT 0x4000000000000000ULL
1452 #define HASH_OPT_HEADER_VALID 0x2000000000000000ULL
1453 #define HASH_OPT_HEADER_RDCOFF 0x1f00000000000000ULL
1455 #define HASH_OPT_HEADER_HASH2 0x00ffff0000000000ULL
1457 #define HASH_OPT_HEADER_RESVD 0x000000ff00000000ULL
1458 #define HASH_OPT_HEADER_USERINFO 0x00000000ffffffffULL
1459 #define HASH_OPT_HEADER_USERINFO_SHIFT 0
1462 #define HASH_PORT_DPORT 0xffff000000000000ULL
1464 #define HASH_PORT_SPORT 0x0000ffff00000000ULL
1466 #define HASH_PORT_PROTO 0x00000000ff000000ULL
1468 #define HASH_PORT_PORT_OFF 0x0000000000c00000ULL
1470 #define HASH_PORT_PORT_RESV 0x00000000003fffffULL
1473 #define HASH_ACTION_RESV1 0xe000000000000000ULL
1474 #define HASH_ACTION_RDCOFF 0x1f00000000000000ULL
1476 #define HASH_ACTION_ZFVALID 0x0080000000000000ULL
1477 #define HASH_ACTION_RESV2 0x0070000000000000ULL
1478 #define HASH_ACTION_ZFID 0x000fff0000000000ULL
1480 #define HASH_ACTION_RESV3 0x000000ff00000000ULL
1481 #define HASH_ACTION_USERINFO 0x00000000ffffffffULL
1482 #define HASH_ACTION_USERINFO_SHIFT 0
1485 #define HASH_IP4ADDR_SADDR 0xffffffff00000000ULL
1487 #define HASH_IP4ADDR_DADDR 0x00000000ffffffffULL
1488 #define HASH_IP4ADDR_DADDR_SHIFT 0
1498 /* EXT=1, FMT=0 */
1514 #define HASH_TBL_DATA_LOG(IDX) (FFLP + 0x00010UL + (IDX) * 8192UL)
1515 #define HASH_TBL_DATA_LOG_ERR 0x0000000080000000ULL
1516 #define HASH_TBL_DATA_LOG_ADDR 0x000000007fffff00ULL
1517 #define HASH_TBL_DATA_LOG_SYNDROME 0x00000000000000ffULL
1519 #define RX_DMA_CK_DIV (FZC_DMC + 0x00000UL)
1520 #define RX_DMA_CK_DIV_CNT 0x000000000000ffffULL
1522 #define DEF_RDC(IDX) (FZC_DMC + 0x00008UL + (IDX) * 0x8UL)
1523 #define DEF_RDC_VAL 0x000000000000001fULL
1525 #define PT_DRR_WT(IDX) (FZC_DMC + 0x00028UL + (IDX) * 0x8UL)
1526 #define PT_DRR_WT_VAL 0x000000000000ffffULL
1528 #define PT_DRR_WEIGHT_DEFAULT_10G 0x0400
1529 #define PT_DRR_WEIGHT_DEFAULT_1G 0x0066
1531 #define PT_USE(IDX) (FZC_DMC + 0x00048UL + (IDX) * 0x8UL)
1532 #define PT_USE_CNT 0x00000000000fffffULL
1534 #define RED_RAN_INIT (FZC_DMC + 0x00068UL)
1535 #define RED_RAN_INIT_OPMODE 0x0000000000010000ULL
1536 #define RED_RAN_INIT_VAL 0x000000000000ffffULL
1538 #define RX_ADDR_MD (FZC_DMC + 0x00070UL)
1539 #define RX_ADDR_MD_DBG_PT_MUX_SEL 0x000000000000000cULL
1540 #define RX_ADDR_MD_RAM_ACC 0x0000000000000002ULL
1541 #define RX_ADDR_MD_MODE32 0x0000000000000001ULL
1543 #define RDMC_PRE_PAR_ERR (FZC_DMC + 0x00078UL)
1544 #define RDMC_PRE_PAR_ERR_ERR 0x0000000000008000ULL
1545 #define RDMC_PRE_PAR_ERR_MERR 0x0000000000004000ULL
1546 #define RDMC_PRE_PAR_ERR_ADDR 0x00000000000000ffULL
1548 #define RDMC_SHA_PAR_ERR (FZC_DMC + 0x00080UL)
1549 #define RDMC_SHA_PAR_ERR_ERR 0x0000000000008000ULL
1550 #define RDMC_SHA_PAR_ERR_MERR 0x0000000000004000ULL
1551 #define RDMC_SHA_PAR_ERR_ADDR 0x00000000000000ffULL
1553 #define RDMC_MEM_ADDR (FZC_DMC + 0x00088UL)
1554 #define RDMC_MEM_ADDR_PRE_SHAD 0x0000000000000100ULL
1555 #define RDMC_MEM_ADDR_ADDR 0x00000000000000ffULL
1557 #define RDMC_MEM_DAT0 (FZC_DMC + 0x00090UL)
1558 #define RDMC_MEM_DAT0_DATA 0x00000000ffffffffULL /* bits 31:0 */
1560 #define RDMC_MEM_DAT1 (FZC_DMC + 0x00098UL)
1561 #define RDMC_MEM_DAT1_DATA 0x00000000ffffffffULL /* bits 63:32 */
1563 #define RDMC_MEM_DAT2 (FZC_DMC + 0x000a0UL)
1564 #define RDMC_MEM_DAT2_DATA 0x00000000ffffffffULL /* bits 95:64 */
1566 #define RDMC_MEM_DAT3 (FZC_DMC + 0x000a8UL)
1567 #define RDMC_MEM_DAT3_DATA 0x00000000ffffffffULL /* bits 127:96 */
1569 #define RDMC_MEM_DAT4 (FZC_DMC + 0x000b0UL)
1570 #define RDMC_MEM_DAT4_DATA 0x00000000000fffffULL /* bits 147:128 */
1572 #define RX_CTL_DAT_FIFO_STAT (FZC_DMC + 0x000b8UL)
1573 #define RX_CTL_DAT_FIFO_STAT_ID_MISMATCH 0x0000000000000100ULL
1574 #define RX_CTL_DAT_FIFO_STAT_ZCP_EOP_ERR 0x00000000000000f0ULL
1575 #define RX_CTL_DAT_FIFO_STAT_IPP_EOP_ERR 0x000000000000000fULL
1577 #define RX_CTL_DAT_FIFO_MASK (FZC_DMC + 0x000c0UL)
1578 #define RX_CTL_DAT_FIFO_MASK_ID_MISMATCH 0x0000000000000100ULL
1579 #define RX_CTL_DAT_FIFO_MASK_ZCP_EOP_ERR 0x00000000000000f0ULL
1580 #define RX_CTL_DAT_FIFO_MASK_IPP_EOP_ERR 0x000000000000000fULL
1582 #define RDMC_TRAINING_VECTOR (FZC_DMC + 0x000c8UL)
1583 #define RDMC_TRAINING_VECTOR_TRAINING_VECTOR 0x00000000ffffffffULL
1585 #define RX_CTL_DAT_FIFO_STAT_DBG (FZC_DMC + 0x000d0UL)
1586 #define RX_CTL_DAT_FIFO_STAT_DBG_ID_MISMATCH 0x0000000000000100ULL
1587 #define RX_CTL_DAT_FIFO_STAT_DBG_ZCP_EOP_ERR 0x00000000000000f0ULL
1588 #define RX_CTL_DAT_FIFO_STAT_DBG_IPP_EOP_ERR 0x000000000000000fULL
1590 #define RDC_TBL(TBL,SLOT) (FZC_ZCP + 0x10000UL + \
1593 #define RDC_TBL_RDC 0x000000000000000fULL
1595 #define RX_LOG_PAGE_VLD(IDX) (FZC_DMC + 0x20000UL + (IDX) * 0x40UL)
1596 #define RX_LOG_PAGE_VLD_FUNC 0x000000000000000cULL
1598 #define RX_LOG_PAGE_VLD_PAGE1 0x0000000000000002ULL
1599 #define RX_LOG_PAGE_VLD_PAGE0 0x0000000000000001ULL
1601 #define RX_LOG_MASK1(IDX) (FZC_DMC + 0x20008UL + (IDX) * 0x40UL)
1602 #define RX_LOG_MASK1_MASK 0x00000000ffffffffULL
1604 #define RX_LOG_VAL1(IDX) (FZC_DMC + 0x20010UL + (IDX) * 0x40UL)
1605 #define RX_LOG_VAL1_VALUE 0x00000000ffffffffULL
1607 #define RX_LOG_MASK2(IDX) (FZC_DMC + 0x20018UL + (IDX) * 0x40UL)
1608 #define RX_LOG_MASK2_MASK 0x00000000ffffffffULL
1610 #define RX_LOG_VAL2(IDX) (FZC_DMC + 0x20020UL + (IDX) * 0x40UL)
1611 #define RX_LOG_VAL2_VALUE 0x00000000ffffffffULL
1613 #define RX_LOG_PAGE_RELO1(IDX) (FZC_DMC + 0x20028UL + (IDX) * 0x40UL)
1614 #define RX_LOG_PAGE_RELO1_RELO 0x00000000ffffffffULL
1616 #define RX_LOG_PAGE_RELO2(IDX) (FZC_DMC + 0x20030UL + (IDX) * 0x40UL)
1617 #define RX_LOG_PAGE_RELO2_RELO 0x00000000ffffffffULL
1619 #define RX_LOG_PAGE_HDL(IDX) (FZC_DMC + 0x20038UL + (IDX) * 0x40UL)
1620 #define RX_LOG_PAGE_HDL_HANDLE 0x00000000000fffffULL
1622 #define TX_LOG_PAGE_VLD(IDX) (FZC_DMC + 0x40000UL + (IDX) * 0x200UL)
1623 #define TX_LOG_PAGE_VLD_FUNC 0x000000000000000cULL
1625 #define TX_LOG_PAGE_VLD_PAGE1 0x0000000000000002ULL
1626 #define TX_LOG_PAGE_VLD_PAGE0 0x0000000000000001ULL
1628 #define TX_LOG_MASK1(IDX) (FZC_DMC + 0x40008UL + (IDX) * 0x200UL)
1629 #define TX_LOG_MASK1_MASK 0x00000000ffffffffULL
1631 #define TX_LOG_VAL1(IDX) (FZC_DMC + 0x40010UL + (IDX) * 0x200UL)
1632 #define TX_LOG_VAL1_VALUE 0x00000000ffffffffULL
1634 #define TX_LOG_MASK2(IDX) (FZC_DMC + 0x40018UL + (IDX) * 0x200UL)
1635 #define TX_LOG_MASK2_MASK 0x00000000ffffffffULL
1637 #define TX_LOG_VAL2(IDX) (FZC_DMC + 0x40020UL + (IDX) * 0x200UL)
1638 #define TX_LOG_VAL2_VALUE 0x00000000ffffffffULL
1640 #define TX_LOG_PAGE_RELO1(IDX) (FZC_DMC + 0x40028UL + (IDX) * 0x200UL)
1641 #define TX_LOG_PAGE_RELO1_RELO 0x00000000ffffffffULL
1643 #define TX_LOG_PAGE_RELO2(IDX) (FZC_DMC + 0x40030UL + (IDX) * 0x200UL)
1644 #define TX_LOG_PAGE_RELO2_RELO 0x00000000ffffffffULL
1646 #define TX_LOG_PAGE_HDL(IDX) (FZC_DMC + 0x40038UL + (IDX) * 0x200UL)
1647 #define TX_LOG_PAGE_HDL_HANDLE 0x00000000000fffffULL
1649 #define TX_ADDR_MD (FZC_DMC + 0x45000UL)
1650 #define TX_ADDR_MD_MODE32 0x0000000000000001ULL
1652 #define RDC_RED_PARA(IDX) (FZC_DMC + 0x30000UL + (IDX) * 0x40UL)
1653 #define RDC_RED_PARA_THRE_SYN 0x00000000fff00000ULL
1655 #define RDC_RED_PARA_WIN_SYN 0x00000000000f0000ULL
1657 #define RDC_RED_PARA_THRE 0x000000000000fff0ULL
1659 #define RDC_RED_PARA_WIN 0x000000000000000fULL
1660 #define RDC_RED_PARA_WIN_SHIFT 0
1662 #define RED_DIS_CNT(IDX) (FZC_DMC + 0x30008UL + (IDX) * 0x40UL)
1663 #define RED_DIS_CNT_OFLOW 0x0000000000010000ULL
1664 #define RED_DIS_CNT_COUNT 0x000000000000ffffULL
1666 #define IPP_CFIG (FZC_IPP + 0x00000UL)
1667 #define IPP_CFIG_SOFT_RST 0x0000000080000000ULL
1668 #define IPP_CFIG_IP_MAX_PKT 0x0000000001ffff00ULL
1670 #define IPP_CFIG_FFLP_CS_PIO_W 0x0000000000000080ULL
1671 #define IPP_CFIG_PFIFO_PIO_W 0x0000000000000040ULL
1672 #define IPP_CFIG_DFIFO_PIO_W 0x0000000000000020ULL
1673 #define IPP_CFIG_CKSUM_EN 0x0000000000000010ULL
1674 #define IPP_CFIG_DROP_BAD_CRC 0x0000000000000008ULL
1675 #define IPP_CFIG_DFIFO_ECC_EN 0x0000000000000004ULL
1676 #define IPP_CFIG_DEBUG_BUS_OUT_EN 0x0000000000000002ULL
1677 #define IPP_CFIG_IPP_ENABLE 0x0000000000000001ULL
1679 #define IPP_PKT_DIS (FZC_IPP + 0x00020UL)
1680 #define IPP_PKT_DIS_COUNT 0x0000000000003fffULL
1682 #define IPP_BAD_CS_CNT (FZC_IPP + 0x00028UL)
1683 #define IPP_BAD_CS_CNT_COUNT 0x0000000000003fffULL
1685 #define IPP_ECC (FZC_IPP + 0x00030UL)
1686 #define IPP_ECC_COUNT 0x00000000000000ffULL
1688 #define IPP_INT_STAT (FZC_IPP + 0x00040UL)
1689 #define IPP_INT_STAT_SOP_MISS 0x0000000080000000ULL
1690 #define IPP_INT_STAT_EOP_MISS 0x0000000040000000ULL
1691 #define IPP_INT_STAT_DFIFO_UE 0x0000000030000000ULL
1692 #define IPP_INT_STAT_DFIFO_CE 0x000000000c000000ULL
1693 #define IPP_INT_STAT_DFIFO_ECC 0x0000000003000000ULL
1694 #define IPP_INT_STAT_DFIFO_ECC_IDX 0x00000000007ff000ULL
1695 #define IPP_INT_STAT_PFIFO_PERR 0x0000000000000800ULL
1696 #define IPP_INT_STAT_ECC_ERR_MAX 0x0000000000000400ULL
1697 #define IPP_INT_STAT_PFIFO_ERR_IDX 0x00000000000003f0ULL
1698 #define IPP_INT_STAT_PFIFO_OVER 0x0000000000000008ULL
1699 #define IPP_INT_STAT_PFIFO_UND 0x0000000000000004ULL
1700 #define IPP_INT_STAT_BAD_CS_MX 0x0000000000000002ULL
1701 #define IPP_INT_STAT_PKT_DIS_MX 0x0000000000000001ULL
1702 #define IPP_INT_STAT_ALL 0x00000000ff7fffffULL
1704 #define IPP_MSK (FZC_IPP + 0x00048UL)
1705 #define IPP_MSK_ECC_ERR_MX 0x0000000000000080ULL
1706 #define IPP_MSK_DFIFO_EOP_SOP 0x0000000000000040ULL
1707 #define IPP_MSK_DFIFO_UC 0x0000000000000020ULL
1708 #define IPP_MSK_PFIFO_PAR 0x0000000000000010ULL
1709 #define IPP_MSK_PFIFO_OVER 0x0000000000000008ULL
1710 #define IPP_MSK_PFIFO_UND 0x0000000000000004ULL
1711 #define IPP_MSK_BAD_CS 0x0000000000000002ULL
1712 #define IPP_MSK_PKT_DIS_CNT 0x0000000000000001ULL
1713 #define IPP_MSK_ALL 0x00000000000000ffULL
1715 #define IPP_PFIFO_RD0 (FZC_IPP + 0x00060UL)
1716 #define IPP_PFIFO_RD0_DATA 0x00000000ffffffffULL /* bits 31:0 */
1718 #define IPP_PFIFO_RD1 (FZC_IPP + 0x00068UL)
1719 #define IPP_PFIFO_RD1_DATA 0x00000000ffffffffULL /* bits 63:32 */
1721 #define IPP_PFIFO_RD2 (FZC_IPP + 0x00070UL)
1722 #define IPP_PFIFO_RD2_DATA 0x00000000ffffffffULL /* bits 95:64 */
1724 #define IPP_PFIFO_RD3 (FZC_IPP + 0x00078UL)
1725 #define IPP_PFIFO_RD3_DATA 0x00000000ffffffffULL /* bits 127:96 */
1727 #define IPP_PFIFO_RD4 (FZC_IPP + 0x00080UL)
1728 #define IPP_PFIFO_RD4_DATA 0x00000000ffffffffULL /* bits 145:128 */
1730 #define IPP_PFIFO_WR0 (FZC_IPP + 0x00088UL)
1731 #define IPP_PFIFO_WR0_DATA 0x00000000ffffffffULL /* bits 31:0 */
1733 #define IPP_PFIFO_WR1 (FZC_IPP + 0x00090UL)
1734 #define IPP_PFIFO_WR1_DATA 0x00000000ffffffffULL /* bits 63:32 */
1736 #define IPP_PFIFO_WR2 (FZC_IPP + 0x00098UL)
1737 #define IPP_PFIFO_WR2_DATA 0x00000000ffffffffULL /* bits 95:64 */
1739 #define IPP_PFIFO_WR3 (FZC_IPP + 0x000a0UL)
1740 #define IPP_PFIFO_WR3_DATA 0x00000000ffffffffULL /* bits 127:96 */
1742 #define IPP_PFIFO_WR4 (FZC_IPP + 0x000a8UL)
1743 #define IPP_PFIFO_WR4_DATA 0x00000000ffffffffULL /* bits 145:128 */
1745 #define IPP_PFIFO_RD_PTR (FZC_IPP + 0x000b0UL)
1746 #define IPP_PFIFO_RD_PTR_PTR 0x000000000000003fULL
1748 #define IPP_PFIFO_WR_PTR (FZC_IPP + 0x000b8UL)
1749 #define IPP_PFIFO_WR_PTR_PTR 0x000000000000007fULL
1751 #define IPP_DFIFO_RD0 (FZC_IPP + 0x000c0UL)
1752 #define IPP_DFIFO_RD0_DATA 0x00000000ffffffffULL /* bits 31:0 */
1754 #define IPP_DFIFO_RD1 (FZC_IPP + 0x000c8UL)
1755 #define IPP_DFIFO_RD1_DATA 0x00000000ffffffffULL /* bits 63:32 */
1757 #define IPP_DFIFO_RD2 (FZC_IPP + 0x000d0UL)
1758 #define IPP_DFIFO_RD2_DATA 0x00000000ffffffffULL /* bits 95:64 */
1760 #define IPP_DFIFO_RD3 (FZC_IPP + 0x000d8UL)
1761 #define IPP_DFIFO_RD3_DATA 0x00000000ffffffffULL /* bits 127:96 */
1763 #define IPP_DFIFO_RD4 (FZC_IPP + 0x000e0UL)
1764 #define IPP_DFIFO_RD4_DATA 0x00000000ffffffffULL /* bits 145:128 */
1766 #define IPP_DFIFO_WR0 (FZC_IPP + 0x000e8UL)
1767 #define IPP_DFIFO_WR0_DATA 0x00000000ffffffffULL /* bits 31:0 */
1769 #define IPP_DFIFO_WR1 (FZC_IPP + 0x000f0UL)
1770 #define IPP_DFIFO_WR1_DATA 0x00000000ffffffffULL /* bits 63:32 */
1772 #define IPP_DFIFO_WR2 (FZC_IPP + 0x000f8UL)
1773 #define IPP_DFIFO_WR2_DATA 0x00000000ffffffffULL /* bits 95:64 */
1775 #define IPP_DFIFO_WR3 (FZC_IPP + 0x00100UL)
1776 #define IPP_DFIFO_WR3_DATA 0x00000000ffffffffULL /* bits 127:96 */
1778 #define IPP_DFIFO_WR4 (FZC_IPP + 0x00108UL)
1779 #define IPP_DFIFO_WR4_DATA 0x00000000ffffffffULL /* bits 145:128 */
1781 #define IPP_DFIFO_RD_PTR (FZC_IPP + 0x00110UL)
1782 #define IPP_DFIFO_RD_PTR_PTR 0x0000000000000fffULL
1784 #define IPP_DFIFO_WR_PTR (FZC_IPP + 0x00118UL)
1785 #define IPP_DFIFO_WR_PTR_PTR 0x0000000000000fffULL
1787 #define IPP_SM (FZC_IPP + 0x00120UL)
1788 #define IPP_SM_SM 0x00000000ffffffffULL
1790 #define IPP_CS_STAT (FZC_IPP + 0x00128UL)
1791 #define IPP_CS_STAT_BCYC_CNT 0x00000000ff000000ULL
1792 #define IPP_CS_STAT_IP_LEN 0x0000000000fff000ULL
1793 #define IPP_CS_STAT_CS_FAIL 0x0000000000000800ULL
1794 #define IPP_CS_STAT_TERM 0x0000000000000400ULL
1795 #define IPP_CS_STAT_BAD_NUM 0x0000000000000200ULL
1796 #define IPP_CS_STAT_CS_STATE 0x00000000000001ffULL
1798 #define IPP_FFLP_CS_INFO (FZC_IPP + 0x00130UL)
1799 #define IPP_FFLP_CS_INFO_PKT_ID 0x0000000000003c00ULL
1800 #define IPP_FFLP_CS_INFO_L4_PROTO 0x0000000000000300ULL
1801 #define IPP_FFLP_CS_INFO_V4_HD_LEN 0x00000000000000f0ULL
1802 #define IPP_FFLP_CS_INFO_L3_VER 0x000000000000000cULL
1803 #define IPP_FFLP_CS_INFO_L2_OP 0x0000000000000003ULL
1805 #define IPP_DBG_SEL (FZC_IPP + 0x00138UL)
1806 #define IPP_DBG_SEL_SEL 0x000000000000000fULL
1808 #define IPP_DFIFO_ECC_SYND (FZC_IPP + 0x00140UL)
1809 #define IPP_DFIFO_ECC_SYND_SYND 0x000000000000ffffULL
1811 #define IPP_DFIFO_EOP_RD_PTR (FZC_IPP + 0x00148UL)
1812 #define IPP_DFIFO_EOP_RD_PTR_PTR 0x0000000000000fffULL
1814 #define IPP_ECC_CTL (FZC_IPP + 0x00150UL)
1815 #define IPP_ECC_CTL_DIS_DBL 0x0000000080000000ULL
1816 #define IPP_ECC_CTL_COR_DBL 0x0000000000020000ULL
1817 #define IPP_ECC_CTL_COR_SNG 0x0000000000010000ULL
1818 #define IPP_ECC_CTL_COR_ALL 0x0000000000000400ULL
1819 #define IPP_ECC_CTL_COR_1 0x0000000000000100ULL
1820 #define IPP_ECC_CTL_COR_LST 0x0000000000000004ULL
1821 #define IPP_ECC_CTL_COR_SND 0x0000000000000002ULL
1822 #define IPP_ECC_CTL_COR_FSR 0x0000000000000001ULL
1828 #define ZCP_CFIG (FZC_ZCP + 0x00000UL)
1829 #define ZCP_CFIG_ZCP_32BIT_MODE 0x0000000001000000ULL
1830 #define ZCP_CFIG_ZCP_DEBUG_SEL 0x0000000000ff0000ULL
1831 #define ZCP_CFIG_DMA_TH 0x000000000000ffe0ULL
1832 #define ZCP_CFIG_ECC_CHK_DIS 0x0000000000000010ULL
1833 #define ZCP_CFIG_PAR_CHK_DIS 0x0000000000000008ULL
1834 #define ZCP_CFIG_DIS_BUFF_RSP_IF 0x0000000000000004ULL
1835 #define ZCP_CFIG_DIS_BUFF_REQ_IF 0x0000000000000002ULL
1836 #define ZCP_CFIG_ZC_ENABLE 0x0000000000000001ULL
1838 #define ZCP_INT_STAT (FZC_ZCP + 0x00008UL)
1839 #define ZCP_INT_STAT_RRFIFO_UNDERRUN 0x0000000000008000ULL
1840 #define ZCP_INT_STAT_RRFIFO_OVERRUN 0x0000000000004000ULL
1841 #define ZCP_INT_STAT_RSPFIFO_UNCOR_ERR 0x0000000000001000ULL
1842 #define ZCP_INT_STAT_BUFFER_OVERFLOW 0x0000000000000800ULL
1843 #define ZCP_INT_STAT_STAT_TBL_PERR 0x0000000000000400ULL
1844 #define ZCP_INT_STAT_DYN_TBL_PERR 0x0000000000000200ULL
1845 #define ZCP_INT_STAT_BUF_TBL_PERR 0x0000000000000100ULL
1846 #define ZCP_INT_STAT_TT_PROGRAM_ERR 0x0000000000000080ULL
1847 #define ZCP_INT_STAT_RSP_TT_INDEX_ERR 0x0000000000000040ULL
1848 #define ZCP_INT_STAT_SLV_TT_INDEX_ERR 0x0000000000000020ULL
1849 #define ZCP_INT_STAT_ZCP_TT_INDEX_ERR 0x0000000000000010ULL
1850 #define ZCP_INT_STAT_CFIFO_ECC3 0x0000000000000008ULL
1851 #define ZCP_INT_STAT_CFIFO_ECC2 0x0000000000000004ULL
1852 #define ZCP_INT_STAT_CFIFO_ECC1 0x0000000000000002ULL
1853 #define ZCP_INT_STAT_CFIFO_ECC0 0x0000000000000001ULL
1854 #define ZCP_INT_STAT_ALL 0x000000000000ffffULL
1856 #define ZCP_INT_MASK (FZC_ZCP + 0x00010UL)
1857 #define ZCP_INT_MASK_RRFIFO_UNDERRUN 0x0000000000008000ULL
1858 #define ZCP_INT_MASK_RRFIFO_OVERRUN 0x0000000000004000ULL
1859 #define ZCP_INT_MASK_LOJ 0x0000000000002000ULL
1860 #define ZCP_INT_MASK_RSPFIFO_UNCOR_ERR 0x0000000000001000ULL
1861 #define ZCP_INT_MASK_BUFFER_OVERFLOW 0x0000000000000800ULL
1862 #define ZCP_INT_MASK_STAT_TBL_PERR 0x0000000000000400ULL
1863 #define ZCP_INT_MASK_DYN_TBL_PERR 0x0000000000000200ULL
1864 #define ZCP_INT_MASK_BUF_TBL_PERR 0x0000000000000100ULL
1865 #define ZCP_INT_MASK_TT_PROGRAM_ERR 0x0000000000000080ULL
1866 #define ZCP_INT_MASK_RSP_TT_INDEX_ERR 0x0000000000000040ULL
1867 #define ZCP_INT_MASK_SLV_TT_INDEX_ERR 0x0000000000000020ULL
1868 #define ZCP_INT_MASK_ZCP_TT_INDEX_ERR 0x0000000000000010ULL
1869 #define ZCP_INT_MASK_CFIFO_ECC3 0x0000000000000008ULL
1870 #define ZCP_INT_MASK_CFIFO_ECC2 0x0000000000000004ULL
1871 #define ZCP_INT_MASK_CFIFO_ECC1 0x0000000000000002ULL
1872 #define ZCP_INT_MASK_CFIFO_ECC0 0x0000000000000001ULL
1873 #define ZCP_INT_MASK_ALL 0x000000000000ffffULL
1875 #define BAM4BUF (FZC_ZCP + 0x00018UL)
1876 #define BAM4BUF_LOJ 0x0000000080000000ULL
1877 #define BAM4BUF_EN_CK 0x0000000040000000ULL
1878 #define BAM4BUF_IDX_END0 0x000000003ff00000ULL
1879 #define BAM4BUF_IDX_ST0 0x00000000000ffc00ULL
1880 #define BAM4BUF_OFFSET0 0x00000000000003ffULL
1882 #define BAM8BUF (FZC_ZCP + 0x00020UL)
1883 #define BAM8BUF_LOJ 0x0000000080000000ULL
1884 #define BAM8BUF_EN_CK 0x0000000040000000ULL
1885 #define BAM8BUF_IDX_END1 0x000000003ff00000ULL
1886 #define BAM8BUF_IDX_ST1 0x00000000000ffc00ULL
1887 #define BAM8BUF_OFFSET1 0x00000000000003ffULL
1889 #define BAM16BUF (FZC_ZCP + 0x00028UL)
1890 #define BAM16BUF_LOJ 0x0000000080000000ULL
1891 #define BAM16BUF_EN_CK 0x0000000040000000ULL
1892 #define BAM16BUF_IDX_END2 0x000000003ff00000ULL
1893 #define BAM16BUF_IDX_ST2 0x00000000000ffc00ULL
1894 #define BAM16BUF_OFFSET2 0x00000000000003ffULL
1896 #define BAM32BUF (FZC_ZCP + 0x00030UL)
1897 #define BAM32BUF_LOJ 0x0000000080000000ULL
1898 #define BAM32BUF_EN_CK 0x0000000040000000ULL
1899 #define BAM32BUF_IDX_END3 0x000000003ff00000ULL
1900 #define BAM32BUF_IDX_ST3 0x00000000000ffc00ULL
1901 #define BAM32BUF_OFFSET3 0x00000000000003ffULL
1903 #define DST4BUF (FZC_ZCP + 0x00038UL)
1904 #define DST4BUF_DS_OFFSET0 0x00000000000003ffULL
1906 #define DST8BUF (FZC_ZCP + 0x00040UL)
1907 #define DST8BUF_DS_OFFSET1 0x00000000000003ffULL
1909 #define DST16BUF (FZC_ZCP + 0x00048UL)
1910 #define DST16BUF_DS_OFFSET2 0x00000000000003ffULL
1912 #define DST32BUF (FZC_ZCP + 0x00050UL)
1913 #define DST32BUF_DS_OFFSET3 0x00000000000003ffULL
1915 #define ZCP_RAM_DATA0 (FZC_ZCP + 0x00058UL)
1916 #define ZCP_RAM_DATA0_DAT0 0x00000000ffffffffULL
1918 #define ZCP_RAM_DATA1 (FZC_ZCP + 0x00060UL)
1919 #define ZCP_RAM_DAT10_DAT1 0x00000000ffffffffULL
1921 #define ZCP_RAM_DATA2 (FZC_ZCP + 0x00068UL)
1922 #define ZCP_RAM_DATA2_DAT2 0x00000000ffffffffULL
1924 #define ZCP_RAM_DATA3 (FZC_ZCP + 0x00070UL)
1925 #define ZCP_RAM_DATA3_DAT3 0x00000000ffffffffULL
1927 #define ZCP_RAM_DATA4 (FZC_ZCP + 0x00078UL)
1928 #define ZCP_RAM_DATA4_DAT4 0x00000000000000ffULL
1930 #define ZCP_RAM_BE (FZC_ZCP + 0x00080UL)
1931 #define ZCP_RAM_BE_VAL 0x000000000001ffffULL
1933 #define ZCP_RAM_ACC (FZC_ZCP + 0x00088UL)
1934 #define ZCP_RAM_ACC_BUSY 0x0000000080000000ULL
1935 #define ZCP_RAM_ACC_READ 0x0000000040000000ULL
1936 #define ZCP_RAM_ACC_WRITE 0x0000000000000000ULL
1937 #define ZCP_RAM_ACC_LOJ 0x0000000020000000ULL
1938 #define ZCP_RAM_ACC_ZFCID 0x000000001ffe0000ULL
1940 #define ZCP_RAM_ACC_RAM_SEL 0x000000000001f000ULL
1942 #define ZCP_RAM_ACC_CFIFOADDR 0x0000000000000fffULL
1943 #define ZCP_RAM_ACC_CFIFOADDR_SHIFT 0
1945 #define ZCP_RAM_SEL_BAM(INDEX) (0x00 + (INDEX))
1946 #define ZCP_RAM_SEL_TT_STATIC 0x08
1947 #define ZCP_RAM_SEL_TT_DYNAMIC 0x09
1948 #define ZCP_RAM_SEL_CFIFO(PORT) (0x10 + (PORT))
1954 #define CHK_BIT_DATA (FZC_ZCP + 0x00090UL)
1955 #define CHK_BIT_DATA_DATA 0x000000000000ffffULL
1957 #define RESET_CFIFO (FZC_ZCP + 0x00098UL)
1958 #define RESET_CFIFO_RST(PORT) (0x1 << (PORT))
1960 #define CFIFO_ECC(PORT) (FZC_ZCP + 0x000a0UL + (PORT) * 8UL)
1961 #define CFIFO_ECC_DIS_DBLBIT_ERR 0x0000000080000000ULL
1962 #define CFIFO_ECC_DBLBIT_ERR 0x0000000000020000ULL
1963 #define CFIFO_ECC_SINGLEBIT_ERR 0x0000000000010000ULL
1964 #define CFIFO_ECC_ALL_PKT 0x0000000000000400ULL
1965 #define CFIFO_ECC_LAST_LINE 0x0000000000000004ULL
1966 #define CFIFO_ECC_2ND_LINE 0x0000000000000002ULL
1967 #define CFIFO_ECC_1ST_LINE 0x0000000000000001ULL
1969 #define ZCP_TRAINING_VECTOR (FZC_ZCP + 0x000c0UL)
1970 #define ZCP_TRAINING_VECTOR_VECTOR 0x00000000ffffffffULL
1972 #define ZCP_STATE_MACHINE (FZC_ZCP + 0x000c8UL)
1973 #define ZCP_STATE_MACHINE_SM 0x00000000ffffffffULL
1976 #define ZCP_INT_STAT_TEST (FZC_ZCP + 0x00108UL)
1978 #define RXDMA_CFIG1(IDX) (DMC + 0x00000UL + (IDX) * 0x200UL)
1979 #define RXDMA_CFIG1_EN 0x0000000080000000ULL
1980 #define RXDMA_CFIG1_RST 0x0000000040000000ULL
1981 #define RXDMA_CFIG1_QST 0x0000000020000000ULL
1982 #define RXDMA_CFIG1_MBADDR_H 0x0000000000000fffULL /* mboxaddr 43:32 */
1984 #define RXDMA_CFIG2(IDX) (DMC + 0x00008UL + (IDX) * 0x200UL)
1985 #define RXDMA_CFIG2_MBADDR_L 0x00000000ffffffc0ULL /* mboxaddr 31:6 */
1986 #define RXDMA_CFIG2_OFFSET 0x0000000000000006ULL
1988 #define RXDMA_CFIG2_FULL_HDR 0x0000000000000001ULL
1990 #define RBR_CFIG_A(IDX) (DMC + 0x00010UL + (IDX) * 0x200UL)
1991 #define RBR_CFIG_A_LEN 0xffff000000000000ULL
1993 #define RBR_CFIG_A_STADDR_BASE 0x00000ffffffc0000ULL
1994 #define RBR_CFIG_A_STADDR 0x000000000003ffc0ULL
1996 #define RBR_CFIG_B(IDX) (DMC + 0x00018UL + (IDX) * 0x200UL)
1997 #define RBR_CFIG_B_BLKSIZE 0x0000000003000000ULL
1999 #define RBR_CFIG_B_VLD2 0x0000000000800000ULL
2000 #define RBR_CFIG_B_BUFSZ2 0x0000000000030000ULL
2002 #define RBR_CFIG_B_VLD1 0x0000000000008000ULL
2003 #define RBR_CFIG_B_BUFSZ1 0x0000000000000300ULL
2005 #define RBR_CFIG_B_VLD0 0x0000000000000080ULL
2006 #define RBR_CFIG_B_BUFSZ0 0x0000000000000003ULL
2007 #define RBR_CFIG_B_BUFSZ0_SHIFT 0
2009 #define RBR_BLKSIZE_4K 0x0
2010 #define RBR_BLKSIZE_8K 0x1
2011 #define RBR_BLKSIZE_16K 0x2
2012 #define RBR_BLKSIZE_32K 0x3
2013 #define RBR_BUFSZ2_2K 0x0
2014 #define RBR_BUFSZ2_4K 0x1
2015 #define RBR_BUFSZ2_8K 0x2
2016 #define RBR_BUFSZ2_16K 0x3
2017 #define RBR_BUFSZ1_1K 0x0
2018 #define RBR_BUFSZ1_2K 0x1
2019 #define RBR_BUFSZ1_4K 0x2
2020 #define RBR_BUFSZ1_8K 0x3
2021 #define RBR_BUFSZ0_256 0x0
2022 #define RBR_BUFSZ0_512 0x1
2023 #define RBR_BUFSZ0_1K 0x2
2024 #define RBR_BUFSZ0_2K 0x3
2026 #define RBR_KICK(IDX) (DMC + 0x00020UL + (IDX) * 0x200UL)
2027 #define RBR_KICK_BKADD 0x000000000000ffffULL
2029 #define RBR_STAT(IDX) (DMC + 0x00028UL + (IDX) * 0x200UL)
2030 #define RBR_STAT_QLEN 0x000000000000ffffULL
2032 #define RBR_HDH(IDX) (DMC + 0x00030UL + (IDX) * 0x200UL)
2033 #define RBR_HDH_HEAD_H 0x0000000000000fffULL
2035 #define RBR_HDL(IDX) (DMC + 0x00038UL + (IDX) * 0x200UL)
2036 #define RBR_HDL_HEAD_L 0x00000000fffffffcULL
2038 #define RCRCFIG_A(IDX) (DMC + 0x00040UL + (IDX) * 0x200UL)
2039 #define RCRCFIG_A_LEN 0xffff000000000000ULL
2041 #define RCRCFIG_A_STADDR_BASE 0x00000ffffff80000ULL
2042 #define RCRCFIG_A_STADDR 0x000000000007ffc0ULL
2044 #define RCRCFIG_B(IDX) (DMC + 0x00048UL + (IDX) * 0x200UL)
2045 #define RCRCFIG_B_PTHRES 0x00000000ffff0000ULL
2047 #define RCRCFIG_B_ENTOUT 0x0000000000008000ULL
2048 #define RCRCFIG_B_TIMEOUT 0x000000000000003fULL
2049 #define RCRCFIG_B_TIMEOUT_SHIFT 0
2051 #define RCRSTAT_A(IDX) (DMC + 0x00050UL + (IDX) * 0x200UL)
2052 #define RCRSTAT_A_QLEN 0x000000000000ffffULL
2054 #define RCRSTAT_B(IDX) (DMC + 0x00058UL + (IDX) * 0x200UL)
2055 #define RCRSTAT_B_TIPTR_H 0x0000000000000fffULL
2057 #define RCRSTAT_C(IDX) (DMC + 0x00060UL + (IDX) * 0x200UL)
2058 #define RCRSTAT_C_TIPTR_L 0x00000000fffffff8ULL
2060 #define RX_DMA_CTL_STAT(IDX) (DMC + 0x00070UL + (IDX) * 0x200UL)
2061 #define RX_DMA_CTL_STAT_RBR_TMOUT 0x0020000000000000ULL
2062 #define RX_DMA_CTL_STAT_RSP_CNT_ERR 0x0010000000000000ULL
2063 #define RX_DMA_CTL_STAT_BYTE_EN_BUS 0x0008000000000000ULL
2064 #define RX_DMA_CTL_STAT_RSP_DAT_ERR 0x0004000000000000ULL
2065 #define RX_DMA_CTL_STAT_RCR_ACK_ERR 0x0002000000000000ULL
2066 #define RX_DMA_CTL_STAT_DC_FIFO_ERR 0x0001000000000000ULL
2067 #define RX_DMA_CTL_STAT_MEX 0x0000800000000000ULL
2068 #define RX_DMA_CTL_STAT_RCRTHRES 0x0000400000000000ULL
2069 #define RX_DMA_CTL_STAT_RCRTO 0x0000200000000000ULL
2070 #define RX_DMA_CTL_STAT_RCR_SHA_PAR 0x0000100000000000ULL
2071 #define RX_DMA_CTL_STAT_RBR_PRE_PAR 0x0000080000000000ULL
2072 #define RX_DMA_CTL_STAT_PORT_DROP_PKT 0x0000040000000000ULL
2073 #define RX_DMA_CTL_STAT_WRED_DROP 0x0000020000000000ULL
2074 #define RX_DMA_CTL_STAT_RBR_PRE_EMTY 0x0000010000000000ULL
2075 #define RX_DMA_CTL_STAT_RCRSHADOW_FULL 0x0000008000000000ULL
2076 #define RX_DMA_CTL_STAT_CONFIG_ERR 0x0000004000000000ULL
2077 #define RX_DMA_CTL_STAT_RCRINCON 0x0000002000000000ULL
2078 #define RX_DMA_CTL_STAT_RCRFULL 0x0000001000000000ULL
2079 #define RX_DMA_CTL_STAT_RBR_EMPTY 0x0000000800000000ULL
2080 #define RX_DMA_CTL_STAT_RBRFULL 0x0000000400000000ULL
2081 #define RX_DMA_CTL_STAT_RBRLOGPAGE 0x0000000200000000ULL
2082 #define RX_DMA_CTL_STAT_CFIGLOGPAGE 0x0000000100000000ULL
2083 #define RX_DMA_CTL_STAT_PTRREAD 0x00000000ffff0000ULL
2085 #define RX_DMA_CTL_STAT_PKTREAD 0x000000000000ffffULL
2086 #define RX_DMA_CTL_STAT_PKTREAD_SHIFT 0
2113 #define RCR_FLSH(IDX) (DMC + 0x00078UL + (IDX) * 0x200UL)
2114 #define RCR_FLSH_FLSH 0x0000000000000001ULL
2116 #define RXMISC(IDX) (DMC + 0x00090UL + (IDX) * 0x200UL)
2117 #define RXMISC_OFLOW 0x0000000000010000ULL
2118 #define RXMISC_COUNT 0x000000000000ffffULL
2120 #define RX_DMA_CTL_STAT_DBG(IDX) (DMC + 0x00098UL + (IDX) * 0x200UL)
2121 #define RX_DMA_CTL_STAT_DBG_RBR_TMOUT 0x0020000000000000ULL
2122 #define RX_DMA_CTL_STAT_DBG_RSP_CNT_ERR 0x0010000000000000ULL
2123 #define RX_DMA_CTL_STAT_DBG_BYTE_EN_BUS 0x0008000000000000ULL
2124 #define RX_DMA_CTL_STAT_DBG_RSP_DAT_ERR 0x0004000000000000ULL
2125 #define RX_DMA_CTL_STAT_DBG_RCR_ACK_ERR 0x0002000000000000ULL
2126 #define RX_DMA_CTL_STAT_DBG_DC_FIFO_ERR 0x0001000000000000ULL
2127 #define RX_DMA_CTL_STAT_DBG_MEX 0x0000800000000000ULL
2128 #define RX_DMA_CTL_STAT_DBG_RCRTHRES 0x0000400000000000ULL
2129 #define RX_DMA_CTL_STAT_DBG_RCRTO 0x0000200000000000ULL
2130 #define RX_DMA_CTL_STAT_DBG_RCR_SHA_PAR 0x0000100000000000ULL
2131 #define RX_DMA_CTL_STAT_DBG_RBR_PRE_PAR 0x0000080000000000ULL
2132 #define RX_DMA_CTL_STAT_DBG_PORT_DROP_PKT 0x0000040000000000ULL
2133 #define RX_DMA_CTL_STAT_DBG_WRED_DROP 0x0000020000000000ULL
2134 #define RX_DMA_CTL_STAT_DBG_RBR_PRE_EMTY 0x0000010000000000ULL
2135 #define RX_DMA_CTL_STAT_DBG_RCRSHADOW_FULL 0x0000008000000000ULL
2136 #define RX_DMA_CTL_STAT_DBG_CONFIG_ERR 0x0000004000000000ULL
2137 #define RX_DMA_CTL_STAT_DBG_RCRINCON 0x0000002000000000ULL
2138 #define RX_DMA_CTL_STAT_DBG_RCRFULL 0x0000001000000000ULL
2139 #define RX_DMA_CTL_STAT_DBG_RBR_EMPTY 0x0000000800000000ULL
2140 #define RX_DMA_CTL_STAT_DBG_RBRFULL 0x0000000400000000ULL
2141 #define RX_DMA_CTL_STAT_DBG_RBRLOGPAGE 0x0000000200000000ULL
2142 #define RX_DMA_CTL_STAT_DBG_CFIGLOGPAGE 0x0000000100000000ULL
2143 #define RX_DMA_CTL_STAT_DBG_PTRREAD 0x00000000ffff0000ULL
2144 #define RX_DMA_CTL_STAT_DBG_PKTREAD 0x000000000000ffffULL
2146 #define RX_DMA_ENT_MSK(IDX) (DMC + 0x00068UL + (IDX) * 0x200UL)
2147 #define RX_DMA_ENT_MSK_RBR_TMOUT 0x0000000000200000ULL
2148 #define RX_DMA_ENT_MSK_RSP_CNT_ERR 0x0000000000100000ULL
2149 #define RX_DMA_ENT_MSK_BYTE_EN_BUS 0x0000000000080000ULL
2150 #define RX_DMA_ENT_MSK_RSP_DAT_ERR 0x0000000000040000ULL
2151 #define RX_DMA_ENT_MSK_RCR_ACK_ERR 0x0000000000020000ULL
2152 #define RX_DMA_ENT_MSK_DC_FIFO_ERR 0x0000000000010000ULL
2153 #define RX_DMA_ENT_MSK_RCRTHRES 0x0000000000004000ULL
2154 #define RX_DMA_ENT_MSK_RCRTO 0x0000000000002000ULL
2155 #define RX_DMA_ENT_MSK_RCR_SHA_PAR 0x0000000000001000ULL
2156 #define RX_DMA_ENT_MSK_RBR_PRE_PAR 0x0000000000000800ULL
2157 #define RX_DMA_ENT_MSK_PORT_DROP_PKT 0x0000000000000400ULL
2158 #define RX_DMA_ENT_MSK_WRED_DROP 0x0000000000000200ULL
2159 #define RX_DMA_ENT_MSK_RBR_PRE_EMTY 0x0000000000000100ULL
2160 #define RX_DMA_ENT_MSK_RCR_SHADOW_FULL 0x0000000000000080ULL
2161 #define RX_DMA_ENT_MSK_CONFIG_ERR 0x0000000000000040ULL
2162 #define RX_DMA_ENT_MSK_RCRINCON 0x0000000000000020ULL
2163 #define RX_DMA_ENT_MSK_RCRFULL 0x0000000000000010ULL
2164 #define RX_DMA_ENT_MSK_RBR_EMPTY 0x0000000000000008ULL
2165 #define RX_DMA_ENT_MSK_RBRFULL 0x0000000000000004ULL
2166 #define RX_DMA_ENT_MSK_RBRLOGPAGE 0x0000000000000002ULL
2167 #define RX_DMA_ENT_MSK_CFIGLOGPAGE 0x0000000000000001ULL
2168 #define RX_DMA_ENT_MSK_ALL 0x00000000003f7fffULL
2170 #define TX_RNG_CFIG(IDX) (DMC + 0x40000UL + (IDX) * 0x200UL)
2171 #define TX_RNG_CFIG_LEN 0x1fff000000000000ULL
2173 #define TX_RNG_CFIG_STADDR_BASE 0x00000ffffff80000ULL
2174 #define TX_RNG_CFIG_STADDR 0x000000000007ffc0ULL
2176 #define TX_RING_HDL(IDX) (DMC + 0x40010UL + (IDX) * 0x200UL)
2177 #define TX_RING_HDL_WRAP 0x0000000000080000ULL
2178 #define TX_RING_HDL_HEAD 0x000000000007fff8ULL
2181 #define TX_RING_KICK(IDX) (DMC + 0x40018UL + (IDX) * 0x200UL)
2182 #define TX_RING_KICK_WRAP 0x0000000000080000ULL
2183 #define TX_RING_KICK_TAIL 0x000000000007fff8ULL
2185 #define TX_ENT_MSK(IDX) (DMC + 0x40020UL + (IDX) * 0x200UL)
2186 #define TX_ENT_MSK_MK 0x0000000000008000ULL
2187 #define TX_ENT_MSK_MBOX_ERR 0x0000000000000080ULL
2188 #define TX_ENT_MSK_PKT_SIZE_ERR 0x0000000000000040ULL
2189 #define TX_ENT_MSK_TX_RING_OFLOW 0x0000000000000020ULL
2190 #define TX_ENT_MSK_PREF_BUF_ECC_ERR 0x0000000000000010ULL
2191 #define TX_ENT_MSK_NACK_PREF 0x0000000000000008ULL
2192 #define TX_ENT_MSK_NACK_PKT_RD 0x0000000000000004ULL
2193 #define TX_ENT_MSK_CONF_PART_ERR 0x0000000000000002ULL
2194 #define TX_ENT_MSK_PKT_PRT_ERR 0x0000000000000001ULL
2196 #define TX_CS(IDX) (DMC + 0x40028UL + (IDX)*0x200UL)
2197 #define TX_CS_PKT_CNT 0x0fff000000000000ULL
2199 #define TX_CS_LASTMARK 0x00000fff00000000ULL
2201 #define TX_CS_RST 0x0000000080000000ULL
2202 #define TX_CS_RST_STATE 0x0000000040000000ULL
2203 #define TX_CS_MB 0x0000000020000000ULL
2204 #define TX_CS_STOP_N_GO 0x0000000010000000ULL
2205 #define TX_CS_SNG_STATE 0x0000000008000000ULL
2206 #define TX_CS_MK 0x0000000000008000ULL
2207 #define TX_CS_MMK 0x0000000000004000ULL
2208 #define TX_CS_MBOX_ERR 0x0000000000000080ULL
2209 #define TX_CS_PKT_SIZE_ERR 0x0000000000000040ULL
2210 #define TX_CS_TX_RING_OFLOW 0x0000000000000020ULL
2211 #define TX_CS_PREF_BUF_PAR_ERR 0x0000000000000010ULL
2212 #define TX_CS_NACK_PREF 0x0000000000000008ULL
2213 #define TX_CS_NACK_PKT_RD 0x0000000000000004ULL
2214 #define TX_CS_CONF_PART_ERR 0x0000000000000002ULL
2215 #define TX_CS_PKT_PRT_ERR 0x0000000000000001ULL
2217 #define TXDMA_MBH(IDX) (DMC + 0x40030UL + (IDX) * 0x200UL)
2218 #define TXDMA_MBH_MBADDR 0x0000000000000fffULL
2220 #define TXDMA_MBL(IDX) (DMC + 0x40038UL + (IDX) * 0x200UL)
2221 #define TXDMA_MBL_MBADDR 0x00000000ffffffc0ULL
2223 #define TX_DMA_PRE_ST(IDX) (DMC + 0x40040UL + (IDX) * 0x200UL)
2224 #define TX_DMA_PRE_ST_SHADOW_HD 0x000000000007ffffULL
2226 #define TX_RNG_ERR_LOGH(IDX) (DMC + 0x40048UL + (IDX) * 0x200UL)
2227 #define TX_RNG_ERR_LOGH_ERR 0x0000000080000000ULL
2228 #define TX_RNG_ERR_LOGH_MERR 0x0000000040000000ULL
2229 #define TX_RNG_ERR_LOGH_ERRCODE 0x0000000038000000ULL
2230 #define TX_RNG_ERR_LOGH_ERRADDR 0x0000000000000fffULL
2232 #define TX_RNG_ERR_LOGL(IDX) (DMC + 0x40050UL + (IDX) * 0x200UL)
2233 #define TX_RNG_ERR_LOGL_ERRADDR 0x00000000ffffffffULL
2235 #define TDMC_INTR_DBG(IDX) (DMC + 0x40060UL + (IDX) * 0x200UL)
2236 #define TDMC_INTR_DBG_MK 0x0000000000008000ULL
2237 #define TDMC_INTR_DBG_MBOX_ERR 0x0000000000000080ULL
2238 #define TDMC_INTR_DBG_PKT_SIZE_ERR 0x0000000000000040ULL
2239 #define TDMC_INTR_DBG_TX_RING_OFLOW 0x0000000000000020ULL
2240 #define TDMC_INTR_DBG_PREF_BUF_PAR_ERR 0x0000000000000010ULL
2241 #define TDMC_INTR_DBG_NACK_PREF 0x0000000000000008ULL
2242 #define TDMC_INTR_DBG_NACK_PKT_RD 0x0000000000000004ULL
2243 #define TDMC_INTR_DBG_CONF_PART_ERR 0x0000000000000002ULL
2244 #define TDMC_INTR_DBG_PKT_PART_ERR 0x0000000000000001ULL
2246 #define TX_CS_DBG(IDX) (DMC + 0x40068UL + (IDX) * 0x200UL)
2247 #define TX_CS_DBG_PKT_CNT 0x0fff000000000000ULL
2249 #define TDMC_INJ_PAR_ERR(IDX) (DMC + 0x45040UL + (IDX) * 0x200UL)
2250 #define TDMC_INJ_PAR_ERR_VAL 0x000000000000ffffULL
2252 #define TDMC_DBG_SEL(IDX) (DMC + 0x45080UL + (IDX) * 0x200UL)
2253 #define TDMC_DBG_SEL_DBG_SEL 0x000000000000003fULL
2255 #define TDMC_TRAINING_VECTOR(IDX) (DMC + 0x45088UL + (IDX) * 0x200UL)
2256 #define TDMC_TRAINING_VECTOR_VEC 0x00000000ffffffffULL
2258 #define TXC_DMA_MAX(CHAN) (FZC_TXC + 0x00000UL + (CHAN)*0x1000UL)
2259 #define TXC_DMA_MAX_LEN(CHAN) (FZC_TXC + 0x00008UL + (CHAN)*0x1000UL)
2261 #define TXC_CONTROL (FZC_TXC + 0x20000UL)
2262 #define TXC_CONTROL_ENABLE 0x0000000000000010ULL
2265 #define TXC_TRAINING_VEC (FZC_TXC + 0x20008UL)
2266 #define TXC_TRAINING_VEC_MASK 0x00000000ffffffffULL
2268 #define TXC_DEBUG (FZC_TXC + 0x20010UL)
2269 #define TXC_DEBUG_SELECT 0x000000000000003fULL
2271 #define TXC_MAX_REORDER (FZC_TXC + 0x20018UL)
2272 #define TXC_MAX_REORDER_PORT3 0x000000000f000000ULL
2273 #define TXC_MAX_REORDER_PORT2 0x00000000000f0000ULL
2274 #define TXC_MAX_REORDER_PORT1 0x0000000000000f00ULL
2275 #define TXC_MAX_REORDER_PORT0 0x000000000000000fULL
2277 #define TXC_PORT_CTL(PORT) (FZC_TXC + 0x20020UL + (PORT)*0x100UL)
2278 #define TXC_PORT_CTL_CLR_ALL_STAT 0x0000000000000001ULL
2280 #define TXC_PKT_STUFFED(PORT) (FZC_TXC + 0x20030UL + (PORT)*0x100UL)
2281 #define TXC_PKT_STUFFED_PP_REORDER 0x00000000ffff0000ULL
2282 #define TXC_PKT_STUFFED_PP_PACKETASSY 0x000000000000ffffULL
2284 #define TXC_PKT_XMIT(PORT) (FZC_TXC + 0x20038UL + (PORT)*0x100UL)
2285 #define TXC_PKT_XMIT_BYTES 0x00000000ffff0000ULL
2286 #define TXC_PKT_XMIT_PKTS 0x000000000000ffffULL
2288 #define TXC_ROECC_CTL(PORT) (FZC_TXC + 0x20040UL + (PORT)*0x100UL)
2289 #define TXC_ROECC_CTL_DISABLE_UE 0x0000000080000000ULL
2290 #define TXC_ROECC_CTL_DBL_BIT_ERR 0x0000000000020000ULL
2291 #define TXC_ROECC_CTL_SNGL_BIT_ERR 0x0000000000010000ULL
2292 #define TXC_ROECC_CTL_ALL_PKTS 0x0000000000000400ULL
2293 #define TXC_ROECC_CTL_ALT_PKTS 0x0000000000000200ULL
2294 #define TXC_ROECC_CTL_ONE_PKT_ONLY 0x0000000000000100ULL
2295 #define TXC_ROECC_CTL_LST_PKT_LINE 0x0000000000000004ULL
2296 #define TXC_ROECC_CTL_2ND_PKT_LINE 0x0000000000000002ULL
2297 #define TXC_ROECC_CTL_1ST_PKT_LINE 0x0000000000000001ULL
2299 #define TXC_ROECC_ST(PORT) (FZC_TXC + 0x20048UL + (PORT)*0x100UL)
2300 #define TXC_ROECC_CLR_ST 0x0000000080000000ULL
2301 #define TXC_ROECC_CE 0x0000000000020000ULL
2302 #define TXC_ROECC_UE 0x0000000000010000ULL
2303 #define TXC_ROECC_ST_ECC_ADDR 0x00000000000003ffULL
2305 #define TXC_RO_DATA0(PORT) (FZC_TXC + 0x20050UL + (PORT)*0x100UL)
2306 #define TXC_RO_DATA0_DATA0 0x00000000ffffffffULL /* bits 31:0 */
2308 #define TXC_RO_DATA1(PORT) (FZC_TXC + 0x20058UL + (PORT)*0x100UL)
2309 #define TXC_RO_DATA1_DATA1 0x00000000ffffffffULL /* bits 63:32 */
2311 #define TXC_RO_DATA2(PORT) (FZC_TXC + 0x20060UL + (PORT)*0x100UL)
2312 #define TXC_RO_DATA2_DATA2 0x00000000ffffffffULL /* bits 95:64 */
2314 #define TXC_RO_DATA3(PORT) (FZC_TXC + 0x20068UL + (PORT)*0x100UL)
2315 #define TXC_RO_DATA3_DATA3 0x00000000ffffffffULL /* bits 127:96 */
2317 #define TXC_RO_DATA4(PORT) (FZC_TXC + 0x20070UL + (PORT)*0x100UL)
2318 #define TXC_RO_DATA4_DATA4 0x0000000000ffffffULL /* bits 151:128 */
2320 #define TXC_SFECC_CTL(PORT) (FZC_TXC + 0x20078UL + (PORT)*0x100UL)
2321 #define TXC_SFECC_CTL_DISABLE_UE 0x0000000080000000ULL
2322 #define TXC_SFECC_CTL_DBL_BIT_ERR 0x0000000000020000ULL
2323 #define TXC_SFECC_CTL_SNGL_BIT_ERR 0x0000000000010000ULL
2324 #define TXC_SFECC_CTL_ALL_PKTS 0x0000000000000400ULL
2325 #define TXC_SFECC_CTL_ALT_PKTS 0x0000000000000200ULL
2326 #define TXC_SFECC_CTL_ONE_PKT_ONLY 0x0000000000000100ULL
2327 #define TXC_SFECC_CTL_LST_PKT_LINE 0x0000000000000004ULL
2328 #define TXC_SFECC_CTL_2ND_PKT_LINE 0x0000000000000002ULL
2329 #define TXC_SFECC_CTL_1ST_PKT_LINE 0x0000000000000001ULL
2331 #define TXC_SFECC_ST(PORT) (FZC_TXC + 0x20080UL + (PORT)*0x100UL)
2332 #define TXC_SFECC_ST_CLR_ST 0x0000000080000000ULL
2333 #define TXC_SFECC_ST_CE 0x0000000000020000ULL
2334 #define TXC_SFECC_ST_UE 0x0000000000010000ULL
2335 #define TXC_SFECC_ST_ECC_ADDR 0x00000000000003ffULL
2337 #define TXC_SF_DATA0(PORT) (FZC_TXC + 0x20088UL + (PORT)*0x100UL)
2338 #define TXC_SF_DATA0_DATA0 0x00000000ffffffffULL /* bits 31:0 */
2340 #define TXC_SF_DATA1(PORT) (FZC_TXC + 0x20090UL + (PORT)*0x100UL)
2341 #define TXC_SF_DATA1_DATA1 0x00000000ffffffffULL /* bits 63:32 */
2343 #define TXC_SF_DATA2(PORT) (FZC_TXC + 0x20098UL + (PORT)*0x100UL)
2344 #define TXC_SF_DATA2_DATA2 0x00000000ffffffffULL /* bits 95:64 */
2346 #define TXC_SF_DATA3(PORT) (FZC_TXC + 0x200a0UL + (PORT)*0x100UL)
2347 #define TXC_SF_DATA3_DATA3 0x00000000ffffffffULL /* bits 127:96 */
2349 #define TXC_SF_DATA4(PORT) (FZC_TXC + 0x200a8UL + (PORT)*0x100UL)
2350 #define TXC_SF_DATA4_DATA4 0x0000000000ffffffULL /* bits 151:128 */
2352 #define TXC_RO_TIDS(PORT) (FZC_TXC + 0x200b0UL + (PORT)*0x100UL)
2353 #define TXC_RO_TIDS_IN_USE 0x00000000ffffffffULL
2355 #define TXC_RO_STATE0(PORT) (FZC_TXC + 0x200b8UL + (PORT)*0x100UL)
2356 #define TXC_RO_STATE0_DUPLICATE_TID 0x00000000ffffffffULL
2358 #define TXC_RO_STATE1(PORT) (FZC_TXC + 0x200c0UL + (PORT)*0x100UL)
2359 #define TXC_RO_STATE1_UNUSED_TID 0x00000000ffffffffULL
2361 #define TXC_RO_STATE2(PORT) (FZC_TXC + 0x200c8UL + (PORT)*0x100UL)
2362 #define TXC_RO_STATE2_TRANS_TIMEOUT 0x00000000ffffffffULL
2364 #define TXC_RO_STATE3(PORT) (FZC_TXC + 0x200d0UL + (PORT)*0x100UL)
2365 #define TXC_RO_STATE3_ENAB_SPC_WMARK 0x0000000080000000ULL
2366 #define TXC_RO_STATE3_RO_SPC_WMARK 0x000000007fe00000ULL
2367 #define TXC_RO_STATE3_ROFIFO_SPC_AVAIL 0x00000000001ff800ULL
2368 #define TXC_RO_STATE3_ENAB_RO_WMARK 0x0000000000000100ULL
2369 #define TXC_RO_STATE3_HIGH_RO_USED 0x00000000000000f0ULL
2370 #define TXC_RO_STATE3_NUM_RO_USED 0x000000000000000fULL
2372 #define TXC_RO_CTL(PORT) (FZC_TXC + 0x200d8UL + (PORT)*0x100UL)
2373 #define TXC_RO_CTL_CLR_FAIL_STATE 0x0000000080000000ULL
2374 #define TXC_RO_CTL_RO_ADDR 0x000000000f000000ULL
2375 #define TXC_RO_CTL_ADDR_FAILED 0x0000000000400000ULL
2376 #define TXC_RO_CTL_DMA_FAILED 0x0000000000200000ULL
2377 #define TXC_RO_CTL_LEN_FAILED 0x0000000000100000ULL
2378 #define TXC_RO_CTL_CAPT_ADDR_FAILED 0x0000000000040000ULL
2379 #define TXC_RO_CTL_CAPT_DMA_FAILED 0x0000000000020000ULL
2380 #define TXC_RO_CTL_CAPT_LEN_FAILED 0x0000000000010000ULL
2381 #define TXC_RO_CTL_RO_STATE_RD_DONE 0x0000000000000080ULL
2382 #define TXC_RO_CTL_RO_STATE_WR_DONE 0x0000000000000040ULL
2383 #define TXC_RO_CTL_RO_STATE_RD 0x0000000000000020ULL
2384 #define TXC_RO_CTL_RO_STATE_WR 0x0000000000000010ULL
2385 #define TXC_RO_CTL_RO_STATE_ADDR 0x000000000000000fULL
2387 #define TXC_RO_ST_DATA0(PORT) (FZC_TXC + 0x200e0UL + (PORT)*0x100UL)
2388 #define TXC_RO_ST_DATA0_DATA0 0x00000000ffffffffULL
2390 #define TXC_RO_ST_DATA1(PORT) (FZC_TXC + 0x200e8UL + (PORT)*0x100UL)
2391 #define TXC_RO_ST_DATA1_DATA1 0x00000000ffffffffULL
2393 #define TXC_RO_ST_DATA2(PORT) (FZC_TXC + 0x200f0UL + (PORT)*0x100UL)
2394 #define TXC_RO_ST_DATA2_DATA2 0x00000000ffffffffULL
2396 #define TXC_RO_ST_DATA3(PORT) (FZC_TXC + 0x200f8UL + (PORT)*0x100UL)
2397 #define TXC_RO_ST_DATA3_DATA3 0x00000000ffffffffULL
2399 #define TXC_PORT_PACKET_REQ(PORT) (FZC_TXC + 0x20100UL + (PORT)*0x100UL)
2400 #define TXC_PORT_PACKET_REQ_GATHER_REQ 0x00000000f0000000ULL
2401 #define TXC_PORT_PACKET_REQ_PKT_REQ 0x000000000fff0000ULL
2402 #define TXC_PORT_PACKET_REQ_PERR_ABRT 0x000000000000ffffULL
2405 #define TXC_INT_STAT_DBG (FZC_TXC + 0x20420UL)
2407 #define TXC_INT_STAT (FZC_TXC + 0x20428UL)
2409 #define TXC_INT_STAT_VAL(PORT) (0x3f << TXC_INT_STAT_VAL_SHIFT(PORT))
2410 #define TXC_INT_STAT_SF_CE(PORT) (0x01 << TXC_INT_STAT_VAL_SHIFT(PORT))
2411 #define TXC_INT_STAT_SF_UE(PORT) (0x02 << TXC_INT_STAT_VAL_SHIFT(PORT))
2412 #define TXC_INT_STAT_RO_CE(PORT) (0x04 << TXC_INT_STAT_VAL_SHIFT(PORT))
2413 #define TXC_INT_STAT_RO_UE(PORT) (0x08 << TXC_INT_STAT_VAL_SHIFT(PORT))
2414 #define TXC_INT_STAT_REORDER_ERR(PORT) (0x10 << TXC_INT_STAT_VAL_SHIFT(PORT))
2415 #define TXC_INT_STAT_PKTASM_DEAD(PORT) (0x20 << TXC_INT_STAT_VAL_SHIFT(PORT))
2417 #define TXC_INT_MASK (FZC_TXC + 0x20430UL)
2419 #define TXC_INT_MASK_VAL(PORT) (0x3f << TXC_INT_STAT_VAL_SHIFT(PORT))
2421 #define TXC_INT_MASK_SF_CE 0x01
2422 #define TXC_INT_MASK_SF_UE 0x02
2423 #define TXC_INT_MASK_RO_CE 0x04
2424 #define TXC_INT_MASK_RO_UE 0x08
2425 #define TXC_INT_MASK_REORDER_ERR 0x10
2426 #define TXC_INT_MASK_PKTASM_DEAD 0x20
2427 #define TXC_INT_MASK_ALL 0x3f
2429 #define TXC_PORT_DMA(IDX) (FZC_TXC + 0x20028UL + (IDX)*0x100UL)
2431 #define ESPC_PIO_EN (FZC_PROM + 0x40000UL)
2432 #define ESPC_PIO_EN_ENABLE 0x0000000000000001ULL
2434 #define ESPC_PIO_STAT (FZC_PROM + 0x40008UL)
2435 #define ESPC_PIO_STAT_READ_START 0x0000000080000000ULL
2436 #define ESPC_PIO_STAT_READ_END 0x0000000040000000ULL
2437 #define ESPC_PIO_STAT_WRITE_INIT 0x0000000020000000ULL
2438 #define ESPC_PIO_STAT_WRITE_END 0x0000000010000000ULL
2439 #define ESPC_PIO_STAT_ADDR 0x0000000003ffff00ULL
2441 #define ESPC_PIO_STAT_DATA 0x00000000000000ffULL
2442 #define ESPC_PIO_STAT_DATA_SHIFT 0
2444 #define ESPC_NCR(IDX) (FZC_PROM + 0x40020UL + (IDX)*0x8UL)
2445 #define ESPC_NCR_VAL 0x00000000ffffffffULL
2447 #define ESPC_MAC_ADDR0 ESPC_NCR(0)
2450 #define ESPC_NUM_PORTS_MACS_VAL 0x00000000000000ffULL
2467 #define ESPC_PHY_TYPE_PORT0 0x00000000ff000000ULL
2469 #define ESPC_PHY_TYPE_PORT1 0x0000000000ff0000ULL
2471 #define ESPC_PHY_TYPE_PORT2 0x000000000000ff00ULL
2473 #define ESPC_PHY_TYPE_PORT3 0x00000000000000ffULL
2474 #define ESPC_PHY_TYPE_PORT3_SHIFT 0
2479 #define ESPC_PHY_TYPE_10G_FIBER 0
2484 #define ESPC_INTR_NUM_PORT0 0x00000000ff000000ULL
2485 #define ESPC_INTR_NUM_PORT1 0x0000000000ff0000ULL
2486 #define ESPC_INTR_NUM_PORT2 0x000000000000ff00ULL
2487 #define ESPC_INTR_NUM_PORT3 0x00000000000000ffULL
2490 #define ESPC_VER_IMGSZ_IMGSZ 0x00000000ffff0000ULL
2492 #define ESPC_VER_IMGSZ_VER 0x000000000000ffffULL
2493 #define ESPC_VER_IMGSZ_VER_SHIFT 0
2496 #define ESPC_CHKSUM_SUM 0x00000000000000ffULL
2498 #define ESPC_EEPROM_SIZE 0x100000
2500 #define CLASS_CODE_UNRECOG 0x00
2501 #define CLASS_CODE_DUMMY1 0x01
2502 #define CLASS_CODE_ETHERTYPE1 0x02
2503 #define CLASS_CODE_ETHERTYPE2 0x03
2504 #define CLASS_CODE_USER_PROG1 0x04
2505 #define CLASS_CODE_USER_PROG2 0x05
2506 #define CLASS_CODE_USER_PROG3 0x06
2507 #define CLASS_CODE_USER_PROG4 0x07
2508 #define CLASS_CODE_TCP_IPV4 0x08
2509 #define CLASS_CODE_UDP_IPV4 0x09
2510 #define CLASS_CODE_AH_ESP_IPV4 0x0a
2511 #define CLASS_CODE_SCTP_IPV4 0x0b
2512 #define CLASS_CODE_TCP_IPV6 0x0c
2513 #define CLASS_CODE_UDP_IPV6 0x0d
2514 #define CLASS_CODE_AH_ESP_IPV6 0x0e
2515 #define CLASS_CODE_SCTP_IPV6 0x0f
2516 #define CLASS_CODE_ARP 0x10
2517 #define CLASS_CODE_RARP 0x11
2518 #define CLASS_CODE_DUMMY2 0x12
2519 #define CLASS_CODE_DUMMY3 0x13
2520 #define CLASS_CODE_DUMMY4 0x14
2521 #define CLASS_CODE_DUMMY5 0x15
2522 #define CLASS_CODE_DUMMY6 0x16
2523 #define CLASS_CODE_DUMMY7 0x17
2524 #define CLASS_CODE_DUMMY8 0x18
2525 #define CLASS_CODE_DUMMY9 0x19
2526 #define CLASS_CODE_DUMMY10 0x1a
2527 #define CLASS_CODE_DUMMY11 0x1b
2528 #define CLASS_CODE_DUMMY12 0x1c
2529 #define CLASS_CODE_DUMMY13 0x1d
2530 #define CLASS_CODE_DUMMY14 0x1e
2531 #define CLASS_CODE_DUMMY15 0x1f
2534 #define LDN_RXDMA(CHAN) (0 + (CHAN))
2543 #define NIU_LDG_MIN 0
2546 #define LDG_INVALID 0xff
2552 #define NIU_PHY_ID_MASK 0xfffff0f0
2553 #define NIU_PHY_ID_BCM8704 0x00206030
2554 #define NIU_PHY_ID_BCM8706 0x00206035
2555 #define NIU_PHY_ID_BCM5464R 0x002060b0
2556 #define NIU_PHY_ID_MRVL88X2011 0x01410020
2563 #define MRVL88X2011_PMA_PMD_CTL_1 0x0000
2564 #define MRVL88X2011_PMA_PMD_STATUS_1 0x0001
2565 #define MRVL88X2011_10G_PMD_STATUS_2 0x0008
2566 #define MRVL88X2011_10G_PMD_TX_DIS 0x0009
2567 #define MRVL88X2011_10G_XGXS_LANE_STAT 0x0018
2568 #define MRVL88X2011_GENERAL_CTL 0x8300
2569 #define MRVL88X2011_LED_BLINK_CTL 0x8303
2570 #define MRVL88X2011_LED_8_TO_11_CTL 0x8306
2573 #define MRVL88X2011_ENA_XFPREFCLK 0x0001
2574 #define MRVL88X2011_ENA_PMDTX 0x0000
2575 #define MRVL88X2011_LOOPBACK 0x1
2576 #define MRVL88X2011_LED_ACT 0x1
2577 #define MRVL88X2011_LNK_STATUS_OK 0x4
2578 #define MRVL88X2011_LED_BLKRATE_MASK 0x70
2579 #define MRVL88X2011_LED_BLKRATE_034MS 0x0
2580 #define MRVL88X2011_LED_BLKRATE_067MS 0x1
2581 #define MRVL88X2011_LED_BLKRATE_134MS 0x2
2582 #define MRVL88X2011_LED_BLKRATE_269MS 0x3
2583 #define MRVL88X2011_LED_BLKRATE_538MS 0x4
2584 #define MRVL88X2011_LED_CTL_OFF 0x0
2585 #define MRVL88X2011_LED_CTL_PCS_ACT 0x5
2586 #define MRVL88X2011_LED_CTL_MASK 0x7
2596 #define BCM8704_PMD_RCV_SIGDET 0x000a
2597 #define PMD_RCV_SIGDET_LANE3 0x0010
2598 #define PMD_RCV_SIGDET_LANE2 0x0008
2599 #define PMD_RCV_SIGDET_LANE1 0x0004
2600 #define PMD_RCV_SIGDET_LANE0 0x0002
2601 #define PMD_RCV_SIGDET_GLOBAL 0x0001
2603 #define BCM8704_PCS_10G_R_STATUS 0x0020
2604 #define PCS_10G_R_STATUS_LINKSTAT 0x1000
2605 #define PCS_10G_R_STATUS_PRBS31_ABLE 0x0004
2606 #define PCS_10G_R_STATUS_HI_BER 0x0002
2607 #define PCS_10G_R_STATUS_BLK_LOCK 0x0001
2609 #define BCM8704_USER_CONTROL 0xc800
2610 #define USER_CONTROL_OPTXENB_LVL 0x8000
2611 #define USER_CONTROL_OPTXRST_LVL 0x4000
2612 #define USER_CONTROL_OPBIASFLT_LVL 0x2000
2613 #define USER_CONTROL_OBTMPFLT_LVL 0x1000
2614 #define USER_CONTROL_OPPRFLT_LVL 0x0800
2615 #define USER_CONTROL_OPTXFLT_LVL 0x0400
2616 #define USER_CONTROL_OPRXLOS_LVL 0x0200
2617 #define USER_CONTROL_OPRXFLT_LVL 0x0100
2618 #define USER_CONTROL_OPTXON_LVL 0x0080
2619 #define USER_CONTROL_RES1 0x007f
2620 #define USER_CONTROL_RES1_SHIFT 0
2622 #define BCM8704_USER_ANALOG_CLK 0xc801
2623 #define BCM8704_USER_PMD_RX_CONTROL 0xc802
2625 #define BCM8704_USER_PMD_TX_CONTROL 0xc803
2626 #define USER_PMD_TX_CTL_RES1 0xfe00
2627 #define USER_PMD_TX_CTL_XFP_CLKEN 0x0100
2628 #define USER_PMD_TX_CTL_TX_DAC_TXD 0x00c0
2630 #define USER_PMD_TX_CTL_TX_DAC_TXCK 0x0030
2632 #define USER_PMD_TX_CTL_TSD_LPWREN 0x0008
2633 #define USER_PMD_TX_CTL_TSCK_LPWREN 0x0004
2634 #define USER_PMD_TX_CTL_CMU_LPWREN 0x0002
2635 #define USER_PMD_TX_CTL_SFIFORST 0x0001
2637 #define BCM8704_USER_ANALOG_STATUS0 0xc804
2638 #define BCM8704_USER_OPT_DIGITAL_CTRL 0xc808
2639 #define BCM8704_USER_TX_ALARM_STATUS 0x9004
2641 #define USER_ODIG_CTRL_FMODE 0x8000
2642 #define USER_ODIG_CTRL_TX_PDOWN 0x4000
2643 #define USER_ODIG_CTRL_RX_PDOWN 0x2000
2644 #define USER_ODIG_CTRL_EFILT_EN 0x1000
2645 #define USER_ODIG_CTRL_OPT_RST 0x0800
2646 #define USER_ODIG_CTRL_PCS_TIB 0x0400
2647 #define USER_ODIG_CTRL_PCS_RI 0x0200
2648 #define USER_ODIG_CTRL_RESV1 0x0180
2649 #define USER_ODIG_CTRL_GPIOS 0x0060
2651 #define USER_ODIG_CTRL_RESV2 0x0010
2652 #define USER_ODIG_CTRL_LB_ERR_DIS 0x0008
2653 #define USER_ODIG_CTRL_RESV3 0x0006
2654 #define USER_ODIG_CTRL_TXONOFF_PD_DIS 0x0001
2656 #define BCM8704_PHYXS_XGXS_LANE_STAT 0x0018
2657 #define PHYXS_XGXS_LANE_STAT_ALINGED 0x1000
2658 #define PHYXS_XGXS_LANE_STAT_PATTEST 0x0800
2659 #define PHYXS_XGXS_LANE_STAT_MAGIC 0x0400
2660 #define PHYXS_XGXS_LANE_STAT_LANE3 0x0008
2661 #define PHYXS_XGXS_LANE_STAT_LANE2 0x0004
2662 #define PHYXS_XGXS_LANE_STAT_LANE1 0x0002
2663 #define PHYXS_XGXS_LANE_STAT_LANE0 0x0001
2666 #define BCM5464R_AUX_CTL_EXT_LB 0x8000
2667 #define BCM5464R_AUX_CTL_EXT_PLEN 0x4000
2668 #define BCM5464R_AUX_CTL_ER1000 0x3000
2670 #define BCM5464R_AUX_CTL_RESV1 0x0800
2671 #define BCM5464R_AUX_CTL_WRITE_1 0x0400
2672 #define BCM5464R_AUX_CTL_RESV2 0x0300
2673 #define BCM5464R_AUX_CTL_PRESP_DIS 0x0080
2674 #define BCM5464R_AUX_CTL_RESV3 0x0040
2675 #define BCM5464R_AUX_CTL_ER100 0x0030
2677 #define BCM5464R_AUX_CTL_DIAG_MODE 0x0008
2678 #define BCM5464R_AUX_CTL_SR_SEL 0x0007
2679 #define BCM5464R_AUX_CTL_SR_SEL_SHIFT 0
2681 #define BCM5464R_CTRL1000_AS_MASTER 0x0800
2682 #define BCM5464R_CTRL1000_ENABLE_AS_MASTER 0x1000
2684 #define RCR_ENTRY_MULTI 0x8000000000000000ULL
2685 #define RCR_ENTRY_PKT_TYPE 0x6000000000000000ULL
2687 #define RCR_ENTRY_ZERO_COPY 0x1000000000000000ULL
2688 #define RCR_ENTRY_NOPORT 0x0800000000000000ULL
2689 #define RCR_ENTRY_PROMISC 0x0400000000000000ULL
2690 #define RCR_ENTRY_ERROR 0x0380000000000000ULL
2691 #define RCR_ENTRY_DCF_ERR 0x0040000000000000ULL
2692 #define RCR_ENTRY_L2_LEN 0x003fff0000000000ULL
2694 #define RCR_ENTRY_PKTBUFSZ 0x000000c000000000ULL
2696 #define RCR_ENTRY_PKT_BUF_ADDR 0x0000003fffffffffULL /* bits 43:6 */
2699 #define RCR_PKT_TYPE_OTHER 0x0
2700 #define RCR_PKT_TYPE_TCP 0x1
2701 #define RCR_PKT_TYPE_UDP 0x2
2702 #define RCR_PKT_TYPE_SCTP 0x3
2757 /* Bits 7:0 of zero copy flow ID. */
2763 /* Bits 7:0 of hash value, H2. */
2776 /* Bits 7:0 of hash value, H1. */
2786 u8 usrdata_4; /* Bits 7:0 of user data. */
2803 #define TXHDR_PAD 0x0000000000000007ULL
2804 #define TXHDR_PAD_SHIFT 0
2805 #define TXHDR_LEN 0x000000003fff0000ULL
2807 #define TXHDR_L4STUFF 0x0000003f00000000ULL
2809 #define TXHDR_L4START 0x00003f0000000000ULL
2811 #define TXHDR_L3START 0x000f000000000000ULL
2813 #define TXHDR_IHL 0x00f0000000000000ULL
2815 #define TXHDR_VLAN 0x0100000000000000ULL
2816 #define TXHDR_LLC 0x0200000000000000ULL
2817 #define TXHDR_IP_VER 0x2000000000000000ULL
2818 #define TXHDR_CSUM_NONE 0x0000000000000000ULL
2819 #define TXHDR_CSUM_TCP 0x4000000000000000ULL
2820 #define TXHDR_CSUM_UDP 0x8000000000000000ULL
2821 #define TXHDR_CSUM_SCTP 0xc000000000000000ULL
2825 #define TX_DESC_SOP 0x8000000000000000ULL
2826 #define TX_DESC_MARK 0x4000000000000000ULL
2827 #define TX_DESC_NUM_PTR 0x3c00000000000000ULL
2829 #define TX_DESC_TR_LEN 0x01fff00000000000ULL
2831 #define TX_DESC_SAD 0x00000fffffffffffULL
2832 #define TX_DESC_SAD_SHIFT 0
2880 (((index) + 1) < (tp)->pending ? ((index) + 1) : 0)
2947 (((index) + 1) < (rp)->rcr_table_size ? ((index) + 1) : 0)
2949 (((index) + 1) < (rp)->rbr_table_size ? ((index) + 1) : 0)
3033 #define PHY_TYPE_PMA_PMD 0
3080 #define PARENT_FLGS_CLS_HWINIT 0x00000001
3083 #define PORT_PHY_UNKNOWN 0x00000000
3084 #define PORT_PHY_INVALID 0xffffffff
3085 #define PORT_TYPE_10G 0x01
3086 #define PORT_TYPE_1G 0x02
3087 #define PORT_TYPE_MASK 0x03
3098 #define PLAT_TYPE_INVALID 0x00
3099 #define PLAT_TYPE_ATLAS 0x01
3100 #define PLAT_TYPE_NIU 0x02
3101 #define PLAT_TYPE_VF_P0 0x03
3102 #define PLAT_TYPE_VF_P1 0x04
3103 #define PLAT_TYPE_ATCA_CP3220 0x08
3159 #define SPEED_INVALID 0xffff
3160 #define DUPLEX_INVALID 0xff
3161 #define AUTONEG_INVALID 0xff
3164 #define LOOPBACK_DISABLED 0x00
3165 #define LOOPBACK_PHY 0x01
3166 #define LOOPBACK_MAC 0x02
3249 #define NIU_FLAGS_HOTPLUG_PHY_PRESENT 0x02000000 /* Removeable PHY detected*/
3250 #define NIU_FLAGS_HOTPLUG_PHY 0x01000000 /* Removeable PHY */
3251 #define NIU_FLAGS_VPD_VALID 0x00800000 /* VPD has valid version */
3252 #define NIU_FLAGS_MSIX 0x00400000 /* MSI-X in use */
3253 #define NIU_FLAGS_MCAST 0x00200000 /* multicast filter enabled */
3254 #define NIU_FLAGS_PROMISC 0x00100000 /* PROMISC enabled */
3255 #define NIU_FLAGS_XCVR_SERDES 0x00080000 /* 0=PHY 1=SERDES */
3256 #define NIU_FLAGS_10G 0x00040000 /* 0=1G 1=10G */
3257 #define NIU_FLAGS_FIBER 0x00020000 /* 0=COPPER 1=FIBER */
3258 #define NIU_FLAGS_XMAC 0x00010000 /* 0=BMAC 1=XMAC */