component/gmac.h
Go to the documentation of this file.
1 
31 /*
32  * Support and FAQ: visit <a href="https://www.microchip.com/support/">Microchip Support</a>
33  */
34 
35 #ifndef _SAME70_GMAC_COMPONENT_
36 #define _SAME70_GMAC_COMPONENT_
37 
38 /* ============================================================================= */
40 /* ============================================================================= */
43 
44 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
45 
46 typedef struct {
47  __IO uint32_t GMAC_SAB;
48  __IO uint32_t GMAC_SAT;
49 } GmacSa;
51 #define GMACSA_NUMBER 4
52 typedef struct {
53  __IO uint32_t GMAC_NCR;
54  __IO uint32_t GMAC_NCFGR;
55  __I uint32_t GMAC_NSR;
56  __IO uint32_t GMAC_UR;
57  __IO uint32_t GMAC_DCFGR;
58  __IO uint32_t GMAC_TSR;
59  __IO uint32_t GMAC_RBQB;
60  __IO uint32_t GMAC_TBQB;
61  __IO uint32_t GMAC_RSR;
62  __I uint32_t GMAC_ISR;
63  __O uint32_t GMAC_IER;
64  __O uint32_t GMAC_IDR;
65  __IO uint32_t GMAC_IMR;
66  __IO uint32_t GMAC_MAN;
67  __I uint32_t GMAC_RPQ;
68  __IO uint32_t GMAC_TPQ;
69  __IO uint32_t GMAC_TPSF;
70  __IO uint32_t GMAC_RPSF;
71  __IO uint32_t GMAC_RJFML;
72  __I uint32_t Reserved1[13];
73  __IO uint32_t GMAC_HRB;
74  __IO uint32_t GMAC_HRT;
75  GmacSa GMAC_SA[GMACSA_NUMBER];
76  __IO uint32_t GMAC_TIDM1;
77  __IO uint32_t GMAC_TIDM2;
78  __IO uint32_t GMAC_TIDM3;
79  __IO uint32_t GMAC_TIDM4;
80  __IO uint32_t GMAC_WOL;
81  __IO uint32_t GMAC_IPGS;
82  __IO uint32_t GMAC_SVLAN;
83  __IO uint32_t GMAC_TPFCP;
84  __IO uint32_t GMAC_SAMB1;
85  __IO uint32_t GMAC_SAMT1;
86  __I uint32_t Reserved2[3];
87  __IO uint32_t GMAC_NSC;
88  __IO uint32_t GMAC_SCL;
89  __IO uint32_t GMAC_SCH;
90  __I uint32_t GMAC_EFTSH;
91  __I uint32_t GMAC_EFRSH;
92  __I uint32_t GMAC_PEFTSH;
93  __I uint32_t GMAC_PEFRSH;
94  __I uint32_t Reserved3[1];
95  __I uint32_t GMAC_MID;
96  __I uint32_t GMAC_OTLO;
97  __I uint32_t GMAC_OTHI;
98  __I uint32_t GMAC_FT;
99  __I uint32_t GMAC_BCFT;
100  __I uint32_t GMAC_MFT;
101  __I uint32_t GMAC_PFT;
102  __I uint32_t GMAC_BFT64;
103  __I uint32_t GMAC_TBFT127;
104  __I uint32_t GMAC_TBFT255;
105  __I uint32_t GMAC_TBFT511;
106  __I uint32_t GMAC_TBFT1023;
107  __I uint32_t GMAC_TBFT1518;
108  __I uint32_t GMAC_GTBFT1518;
109  __I uint32_t GMAC_TUR;
110  __I uint32_t GMAC_SCF;
111  __I uint32_t GMAC_MCF;
112  __I uint32_t GMAC_EC;
113  __I uint32_t GMAC_LC;
114  __I uint32_t GMAC_DTF;
115  __I uint32_t GMAC_CSE;
116  __I uint32_t GMAC_ORLO;
117  __I uint32_t GMAC_ORHI;
118  __I uint32_t GMAC_FR;
119  __I uint32_t GMAC_BCFR;
120  __I uint32_t GMAC_MFR;
121  __I uint32_t GMAC_PFR;
122  __I uint32_t GMAC_BFR64;
123  __I uint32_t GMAC_TBFR127;
124  __I uint32_t GMAC_TBFR255;
125  __I uint32_t GMAC_TBFR511;
126  __I uint32_t GMAC_TBFR1023;
127  __I uint32_t GMAC_TBFR1518;
128  __I uint32_t GMAC_TMXBFR;
129  __I uint32_t GMAC_UFR;
130  __I uint32_t GMAC_OFR;
131  __I uint32_t GMAC_JR;
132  __I uint32_t GMAC_FCSE;
133  __I uint32_t GMAC_LFFE;
134  __I uint32_t GMAC_RSE;
135  __I uint32_t GMAC_AE;
136  __I uint32_t GMAC_RRE;
137  __I uint32_t GMAC_ROE;
138  __I uint32_t GMAC_IHCE;
139  __I uint32_t GMAC_TCE;
140  __I uint32_t GMAC_UCE;
141  __I uint32_t Reserved4[2];
142  __IO uint32_t GMAC_TISUBN;
143  __IO uint32_t GMAC_TSH;
144  __I uint32_t Reserved5[3];
145  __IO uint32_t GMAC_TSL;
146  __IO uint32_t GMAC_TN;
147  __O uint32_t GMAC_TA;
148  __IO uint32_t GMAC_TI;
149  __I uint32_t GMAC_EFTSL;
150  __I uint32_t GMAC_EFTN;
151  __I uint32_t GMAC_EFRSL;
152  __I uint32_t GMAC_EFRN;
153  __I uint32_t GMAC_PEFTSL;
154  __I uint32_t GMAC_PEFTN;
155  __I uint32_t GMAC_PEFRSL;
156  __I uint32_t GMAC_PEFRN;
157  __I uint32_t Reserved6[28];
158  __I uint32_t GMAC_RXLPI;
159  __I uint32_t GMAC_RXLPITIME;
160  __I uint32_t GMAC_TXLPI;
161  __I uint32_t GMAC_TXLPITIME;
162  __I uint32_t Reserved7[96];
163  __I uint32_t GMAC_ISRPQ[5];
164  __I uint32_t Reserved8[11];
165  __IO uint32_t GMAC_TBQBAPQ[5];
166  __I uint32_t Reserved9[11];
167  __IO uint32_t GMAC_RBQBAPQ[5];
168  __I uint32_t Reserved10[3];
169  __IO uint32_t GMAC_RBSRPQ[5];
170  __I uint32_t Reserved11[2];
171  __IO uint32_t GMAC_CBSCR;
172  __IO uint32_t GMAC_CBSISQA;
173  __IO uint32_t GMAC_CBSISQB;
174  __I uint32_t Reserved12[14];
175  __IO uint32_t GMAC_ST1RPQ[4];
176  __I uint32_t Reserved13[12];
177  __IO uint32_t GMAC_ST2RPQ[8];
178  __I uint32_t Reserved14[39];
179  __O uint32_t GMAC_IERPQ[5];
180  __I uint32_t Reserved15[3];
181  __O uint32_t GMAC_IDRPQ[5];
182  __I uint32_t Reserved16[3];
183  __IO uint32_t GMAC_IMRPQ[5];
184  __I uint32_t Reserved17[36];
185  __IO uint32_t GMAC_ST2ER[4];
186  __I uint32_t Reserved18[4];
187  __IO uint32_t GMAC_ST2CW00;
188  __IO uint32_t GMAC_ST2CW10;
189  __IO uint32_t GMAC_ST2CW01;
190  __IO uint32_t GMAC_ST2CW11;
191  __IO uint32_t GMAC_ST2CW02;
192  __IO uint32_t GMAC_ST2CW12;
193  __IO uint32_t GMAC_ST2CW03;
194  __IO uint32_t GMAC_ST2CW13;
195  __IO uint32_t GMAC_ST2CW04;
196  __IO uint32_t GMAC_ST2CW14;
197  __IO uint32_t GMAC_ST2CW05;
198  __IO uint32_t GMAC_ST2CW15;
199  __IO uint32_t GMAC_ST2CW06;
200  __IO uint32_t GMAC_ST2CW16;
201  __IO uint32_t GMAC_ST2CW07;
202  __IO uint32_t GMAC_ST2CW17;
203  __IO uint32_t GMAC_ST2CW08;
204  __IO uint32_t GMAC_ST2CW18;
205  __IO uint32_t GMAC_ST2CW09;
206  __IO uint32_t GMAC_ST2CW19;
207  __IO uint32_t GMAC_ST2CW010;
208  __IO uint32_t GMAC_ST2CW110;
209  __IO uint32_t GMAC_ST2CW011;
210  __IO uint32_t GMAC_ST2CW111;
211  __IO uint32_t GMAC_ST2CW012;
212  __IO uint32_t GMAC_ST2CW112;
213  __IO uint32_t GMAC_ST2CW013;
214  __IO uint32_t GMAC_ST2CW113;
215  __IO uint32_t GMAC_ST2CW014;
216  __IO uint32_t GMAC_ST2CW114;
217  __IO uint32_t GMAC_ST2CW015;
218  __IO uint32_t GMAC_ST2CW115;
219  __IO uint32_t GMAC_ST2CW016;
220  __IO uint32_t GMAC_ST2CW116;
221  __IO uint32_t GMAC_ST2CW017;
222  __IO uint32_t GMAC_ST2CW117;
223  __IO uint32_t GMAC_ST2CW018;
224  __IO uint32_t GMAC_ST2CW118;
225  __IO uint32_t GMAC_ST2CW019;
226  __IO uint32_t GMAC_ST2CW119;
227  __IO uint32_t GMAC_ST2CW020;
228  __IO uint32_t GMAC_ST2CW120;
229  __IO uint32_t GMAC_ST2CW021;
230  __IO uint32_t GMAC_ST2CW121;
231  __IO uint32_t GMAC_ST2CW022;
232  __IO uint32_t GMAC_ST2CW122;
233  __IO uint32_t GMAC_ST2CW023;
234  __IO uint32_t GMAC_ST2CW123;
235 } Gmac;
236 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
237 /* -------- GMAC_NCR : (GMAC Offset: 0x000) Network Control Register -------- */
238 #define GMAC_NCR_LBL (0x1u << 1)
239 #define GMAC_NCR_RXEN (0x1u << 2)
240 #define GMAC_NCR_TXEN (0x1u << 3)
241 #define GMAC_NCR_MPE (0x1u << 4)
242 #define GMAC_NCR_CLRSTAT (0x1u << 5)
243 #define GMAC_NCR_INCSTAT (0x1u << 6)
244 #define GMAC_NCR_WESTAT (0x1u << 7)
245 #define GMAC_NCR_BP (0x1u << 8)
246 #define GMAC_NCR_TSTART (0x1u << 9)
247 #define GMAC_NCR_THALT (0x1u << 10)
248 #define GMAC_NCR_TXPF (0x1u << 11)
249 #define GMAC_NCR_TXZQPF (0x1u << 12)
250 #define GMAC_NCR_SRTSM (0x1u << 15)
251 #define GMAC_NCR_ENPBPR (0x1u << 16)
252 #define GMAC_NCR_TXPBPF (0x1u << 17)
253 #define GMAC_NCR_FNP (0x1u << 18)
254 /* -------- GMAC_NCFGR : (GMAC Offset: 0x004) Network Configuration Register -------- */
255 #define GMAC_NCFGR_SPD (0x1u << 0)
256 #define GMAC_NCFGR_FD (0x1u << 1)
257 #define GMAC_NCFGR_DNVLAN (0x1u << 2)
258 #define GMAC_NCFGR_JFRAME (0x1u << 3)
259 #define GMAC_NCFGR_CAF (0x1u << 4)
260 #define GMAC_NCFGR_NBC (0x1u << 5)
261 #define GMAC_NCFGR_MTIHEN (0x1u << 6)
262 #define GMAC_NCFGR_UNIHEN (0x1u << 7)
263 #define GMAC_NCFGR_MAXFS (0x1u << 8)
264 #define GMAC_NCFGR_RTY (0x1u << 12)
265 #define GMAC_NCFGR_PEN (0x1u << 13)
266 #define GMAC_NCFGR_RXBUFO_Pos 14
267 #define GMAC_NCFGR_RXBUFO_Msk (0x3u << GMAC_NCFGR_RXBUFO_Pos)
268 #define GMAC_NCFGR_RXBUFO(value) ((GMAC_NCFGR_RXBUFO_Msk & ((value) << GMAC_NCFGR_RXBUFO_Pos)))
269 #define GMAC_NCFGR_LFERD (0x1u << 16)
270 #define GMAC_NCFGR_RFCS (0x1u << 17)
271 #define GMAC_NCFGR_CLK_Pos 18
272 #define GMAC_NCFGR_CLK_Msk (0x7u << GMAC_NCFGR_CLK_Pos)
273 #define GMAC_NCFGR_CLK(value) ((GMAC_NCFGR_CLK_Msk & ((value) << GMAC_NCFGR_CLK_Pos)))
274 #define GMAC_NCFGR_CLK_MCK_8 (0x0u << 18)
275 #define GMAC_NCFGR_CLK_MCK_16 (0x1u << 18)
276 #define GMAC_NCFGR_CLK_MCK_32 (0x2u << 18)
277 #define GMAC_NCFGR_CLK_MCK_48 (0x3u << 18)
278 #define GMAC_NCFGR_CLK_MCK_64 (0x4u << 18)
279 #define GMAC_NCFGR_CLK_MCK_96 (0x5u << 18)
280 #define GMAC_NCFGR_DBW_Pos 21
281 #define GMAC_NCFGR_DBW_Msk (0x3u << GMAC_NCFGR_DBW_Pos)
282 #define GMAC_NCFGR_DBW(value) ((GMAC_NCFGR_DBW_Msk & ((value) << GMAC_NCFGR_DBW_Pos)))
283 #define GMAC_NCFGR_DCPF (0x1u << 23)
284 #define GMAC_NCFGR_RXCOEN (0x1u << 24)
285 #define GMAC_NCFGR_EFRHD (0x1u << 25)
286 #define GMAC_NCFGR_IRXFCS (0x1u << 26)
287 #define GMAC_NCFGR_IPGSEN (0x1u << 28)
288 #define GMAC_NCFGR_RXBP (0x1u << 29)
289 #define GMAC_NCFGR_IRXER (0x1u << 30)
290 /* -------- GMAC_NSR : (GMAC Offset: 0x008) Network Status Register -------- */
291 #define GMAC_NSR_MDIO (0x1u << 1)
292 #define GMAC_NSR_IDLE (0x1u << 2)
293 /* -------- GMAC_UR : (GMAC Offset: 0x00C) User Register -------- */
294 #define GMAC_UR_RMII (0x1u << 0)
295 /* -------- GMAC_DCFGR : (GMAC Offset: 0x010) DMA Configuration Register -------- */
296 #define GMAC_DCFGR_FBLDO_Pos 0
297 #define GMAC_DCFGR_FBLDO_Msk (0x1fu << GMAC_DCFGR_FBLDO_Pos)
298 #define GMAC_DCFGR_FBLDO(value) ((GMAC_DCFGR_FBLDO_Msk & ((value) << GMAC_DCFGR_FBLDO_Pos)))
299 #define GMAC_DCFGR_FBLDO_SINGLE (0x1u << 0)
300 #define GMAC_DCFGR_FBLDO_INCR4 (0x4u << 0)
301 #define GMAC_DCFGR_FBLDO_INCR8 (0x8u << 0)
302 #define GMAC_DCFGR_FBLDO_INCR16 (0x10u << 0)
303 #define GMAC_DCFGR_ESMA (0x1u << 6)
304 #define GMAC_DCFGR_ESPA (0x1u << 7)
305 #define GMAC_DCFGR_RXBMS_Pos 8
306 #define GMAC_DCFGR_RXBMS_Msk (0x3u << GMAC_DCFGR_RXBMS_Pos)
307 #define GMAC_DCFGR_RXBMS(value) ((GMAC_DCFGR_RXBMS_Msk & ((value) << GMAC_DCFGR_RXBMS_Pos)))
308 #define GMAC_DCFGR_RXBMS_EIGHTH (0x0u << 8)
309 #define GMAC_DCFGR_RXBMS_QUARTER (0x1u << 8)
310 #define GMAC_DCFGR_RXBMS_HALF (0x2u << 8)
311 #define GMAC_DCFGR_RXBMS_FULL (0x3u << 8)
312 #define GMAC_DCFGR_TXPBMS (0x1u << 10)
313 #define GMAC_DCFGR_TXCOEN (0x1u << 11)
314 #define GMAC_DCFGR_DRBS_Pos 16
315 #define GMAC_DCFGR_DRBS_Msk (0xffu << GMAC_DCFGR_DRBS_Pos)
316 #define GMAC_DCFGR_DRBS(value) ((GMAC_DCFGR_DRBS_Msk & ((value) << GMAC_DCFGR_DRBS_Pos)))
317 #define GMAC_DCFGR_DDRP (0x1u << 24)
318 /* -------- GMAC_TSR : (GMAC Offset: 0x014) Transmit Status Register -------- */
319 #define GMAC_TSR_UBR (0x1u << 0)
320 #define GMAC_TSR_COL (0x1u << 1)
321 #define GMAC_TSR_RLE (0x1u << 2)
322 #define GMAC_TSR_TXGO (0x1u << 3)
323 #define GMAC_TSR_TFC (0x1u << 4)
324 #define GMAC_TSR_TXCOMP (0x1u << 5)
325 #define GMAC_TSR_HRESP (0x1u << 8)
326 /* -------- GMAC_RBQB : (GMAC Offset: 0x018) Receive Buffer Queue Base Address Register -------- */
327 #define GMAC_RBQB_ADDR_Pos 2
328 #define GMAC_RBQB_ADDR_Msk (0x3fffffffu << GMAC_RBQB_ADDR_Pos)
329 #define GMAC_RBQB_ADDR(value) ((GMAC_RBQB_ADDR_Msk & ((value) << GMAC_RBQB_ADDR_Pos)))
330 /* -------- GMAC_TBQB : (GMAC Offset: 0x01C) Transmit Buffer Queue Base Address Register -------- */
331 #define GMAC_TBQB_ADDR_Pos 2
332 #define GMAC_TBQB_ADDR_Msk (0x3fffffffu << GMAC_TBQB_ADDR_Pos)
333 #define GMAC_TBQB_ADDR(value) ((GMAC_TBQB_ADDR_Msk & ((value) << GMAC_TBQB_ADDR_Pos)))
334 /* -------- GMAC_RSR : (GMAC Offset: 0x020) Receive Status Register -------- */
335 #define GMAC_RSR_BNA (0x1u << 0)
336 #define GMAC_RSR_REC (0x1u << 1)
337 #define GMAC_RSR_RXOVR (0x1u << 2)
338 #define GMAC_RSR_HNO (0x1u << 3)
339 /* -------- GMAC_ISR : (GMAC Offset: 0x024) Interrupt Status Register -------- */
340 #define GMAC_ISR_MFS (0x1u << 0)
341 #define GMAC_ISR_RCOMP (0x1u << 1)
342 #define GMAC_ISR_RXUBR (0x1u << 2)
343 #define GMAC_ISR_TXUBR (0x1u << 3)
344 #define GMAC_ISR_TUR (0x1u << 4)
345 #define GMAC_ISR_RLEX (0x1u << 5)
346 #define GMAC_ISR_TFC (0x1u << 6)
347 #define GMAC_ISR_TCOMP (0x1u << 7)
348 #define GMAC_ISR_ROVR (0x1u << 10)
349 #define GMAC_ISR_HRESP (0x1u << 11)
350 #define GMAC_ISR_PFNZ (0x1u << 12)
351 #define GMAC_ISR_PTZ (0x1u << 13)
352 #define GMAC_ISR_PFTR (0x1u << 14)
353 #define GMAC_ISR_DRQFR (0x1u << 18)
354 #define GMAC_ISR_SFR (0x1u << 19)
355 #define GMAC_ISR_DRQFT (0x1u << 20)
356 #define GMAC_ISR_SFT (0x1u << 21)
357 #define GMAC_ISR_PDRQFR (0x1u << 22)
358 #define GMAC_ISR_PDRSFR (0x1u << 23)
359 #define GMAC_ISR_PDRQFT (0x1u << 24)
360 #define GMAC_ISR_PDRSFT (0x1u << 25)
361 #define GMAC_ISR_SRI (0x1u << 26)
362 #define GMAC_ISR_WOL (0x1u << 28)
363 /* -------- GMAC_IER : (GMAC Offset: 0x028) Interrupt Enable Register -------- */
364 #define GMAC_IER_MFS (0x1u << 0)
365 #define GMAC_IER_RCOMP (0x1u << 1)
366 #define GMAC_IER_RXUBR (0x1u << 2)
367 #define GMAC_IER_TXUBR (0x1u << 3)
368 #define GMAC_IER_TUR (0x1u << 4)
369 #define GMAC_IER_RLEX (0x1u << 5)
370 #define GMAC_IER_TFC (0x1u << 6)
371 #define GMAC_IER_TCOMP (0x1u << 7)
372 #define GMAC_IER_ROVR (0x1u << 10)
373 #define GMAC_IER_HRESP (0x1u << 11)
374 #define GMAC_IER_PFNZ (0x1u << 12)
375 #define GMAC_IER_PTZ (0x1u << 13)
376 #define GMAC_IER_PFTR (0x1u << 14)
377 #define GMAC_IER_EXINT (0x1u << 15)
378 #define GMAC_IER_DRQFR (0x1u << 18)
379 #define GMAC_IER_SFR (0x1u << 19)
380 #define GMAC_IER_DRQFT (0x1u << 20)
381 #define GMAC_IER_SFT (0x1u << 21)
382 #define GMAC_IER_PDRQFR (0x1u << 22)
383 #define GMAC_IER_PDRSFR (0x1u << 23)
384 #define GMAC_IER_PDRQFT (0x1u << 24)
385 #define GMAC_IER_PDRSFT (0x1u << 25)
386 #define GMAC_IER_SRI (0x1u << 26)
387 #define GMAC_IER_WOL (0x1u << 28)
388 /* -------- GMAC_IDR : (GMAC Offset: 0x02C) Interrupt Disable Register -------- */
389 #define GMAC_IDR_MFS (0x1u << 0)
390 #define GMAC_IDR_RCOMP (0x1u << 1)
391 #define GMAC_IDR_RXUBR (0x1u << 2)
392 #define GMAC_IDR_TXUBR (0x1u << 3)
393 #define GMAC_IDR_TUR (0x1u << 4)
394 #define GMAC_IDR_RLEX (0x1u << 5)
395 #define GMAC_IDR_TFC (0x1u << 6)
396 #define GMAC_IDR_TCOMP (0x1u << 7)
397 #define GMAC_IDR_ROVR (0x1u << 10)
398 #define GMAC_IDR_HRESP (0x1u << 11)
399 #define GMAC_IDR_PFNZ (0x1u << 12)
400 #define GMAC_IDR_PTZ (0x1u << 13)
401 #define GMAC_IDR_PFTR (0x1u << 14)
402 #define GMAC_IDR_EXINT (0x1u << 15)
403 #define GMAC_IDR_DRQFR (0x1u << 18)
404 #define GMAC_IDR_SFR (0x1u << 19)
405 #define GMAC_IDR_DRQFT (0x1u << 20)
406 #define GMAC_IDR_SFT (0x1u << 21)
407 #define GMAC_IDR_PDRQFR (0x1u << 22)
408 #define GMAC_IDR_PDRSFR (0x1u << 23)
409 #define GMAC_IDR_PDRQFT (0x1u << 24)
410 #define GMAC_IDR_PDRSFT (0x1u << 25)
411 #define GMAC_IDR_SRI (0x1u << 26)
412 #define GMAC_IDR_WOL (0x1u << 28)
413 /* -------- GMAC_IMR : (GMAC Offset: 0x030) Interrupt Mask Register -------- */
414 #define GMAC_IMR_MFS (0x1u << 0)
415 #define GMAC_IMR_RCOMP (0x1u << 1)
416 #define GMAC_IMR_RXUBR (0x1u << 2)
417 #define GMAC_IMR_TXUBR (0x1u << 3)
418 #define GMAC_IMR_TUR (0x1u << 4)
419 #define GMAC_IMR_RLEX (0x1u << 5)
420 #define GMAC_IMR_TFC (0x1u << 6)
421 #define GMAC_IMR_TCOMP (0x1u << 7)
422 #define GMAC_IMR_ROVR (0x1u << 10)
423 #define GMAC_IMR_HRESP (0x1u << 11)
424 #define GMAC_IMR_PFNZ (0x1u << 12)
425 #define GMAC_IMR_PTZ (0x1u << 13)
426 #define GMAC_IMR_PFTR (0x1u << 14)
427 #define GMAC_IMR_EXINT (0x1u << 15)
428 #define GMAC_IMR_DRQFR (0x1u << 18)
429 #define GMAC_IMR_SFR (0x1u << 19)
430 #define GMAC_IMR_DRQFT (0x1u << 20)
431 #define GMAC_IMR_SFT (0x1u << 21)
432 #define GMAC_IMR_PDRQFR (0x1u << 22)
433 #define GMAC_IMR_PDRSFR (0x1u << 23)
434 #define GMAC_IMR_PDRQFT (0x1u << 24)
435 #define GMAC_IMR_PDRSFT (0x1u << 25)
436 #define GMAC_IMR_SRI (0x1u << 26)
437 #define GMAC_IMR_WOL (0x1u << 28)
438 /* -------- GMAC_MAN : (GMAC Offset: 0x034) PHY Maintenance Register -------- */
439 #define GMAC_MAN_DATA_Pos 0
440 #define GMAC_MAN_DATA_Msk (0xffffu << GMAC_MAN_DATA_Pos)
441 #define GMAC_MAN_DATA(value) ((GMAC_MAN_DATA_Msk & ((value) << GMAC_MAN_DATA_Pos)))
442 #define GMAC_MAN_WTN_Pos 16
443 #define GMAC_MAN_WTN_Msk (0x3u << GMAC_MAN_WTN_Pos)
444 #define GMAC_MAN_WTN(value) ((GMAC_MAN_WTN_Msk & ((value) << GMAC_MAN_WTN_Pos)))
445 #define GMAC_MAN_REGA_Pos 18
446 #define GMAC_MAN_REGA_Msk (0x1fu << GMAC_MAN_REGA_Pos)
447 #define GMAC_MAN_REGA(value) ((GMAC_MAN_REGA_Msk & ((value) << GMAC_MAN_REGA_Pos)))
448 #define GMAC_MAN_PHYA_Pos 23
449 #define GMAC_MAN_PHYA_Msk (0x1fu << GMAC_MAN_PHYA_Pos)
450 #define GMAC_MAN_PHYA(value) ((GMAC_MAN_PHYA_Msk & ((value) << GMAC_MAN_PHYA_Pos)))
451 #define GMAC_MAN_OP_Pos 28
452 #define GMAC_MAN_OP_Msk (0x3u << GMAC_MAN_OP_Pos)
453 #define GMAC_MAN_OP(value) ((GMAC_MAN_OP_Msk & ((value) << GMAC_MAN_OP_Pos)))
454 #define GMAC_MAN_CLTTO (0x1u << 30)
455 #define GMAC_MAN_WZO (0x1u << 31)
456 /* -------- GMAC_RPQ : (GMAC Offset: 0x038) Received Pause Quantum Register -------- */
457 #define GMAC_RPQ_RPQ_Pos 0
458 #define GMAC_RPQ_RPQ_Msk (0xffffu << GMAC_RPQ_RPQ_Pos)
459 /* -------- GMAC_TPQ : (GMAC Offset: 0x03C) Transmit Pause Quantum Register -------- */
460 #define GMAC_TPQ_TPQ_Pos 0
461 #define GMAC_TPQ_TPQ_Msk (0xffffu << GMAC_TPQ_TPQ_Pos)
462 #define GMAC_TPQ_TPQ(value) ((GMAC_TPQ_TPQ_Msk & ((value) << GMAC_TPQ_TPQ_Pos)))
463 /* -------- GMAC_TPSF : (GMAC Offset: 0x040) TX Partial Store and Forward Register -------- */
464 #define GMAC_TPSF_TPB1ADR_Pos 0
465 #define GMAC_TPSF_TPB1ADR_Msk (0xfffu << GMAC_TPSF_TPB1ADR_Pos)
466 #define GMAC_TPSF_TPB1ADR(value) ((GMAC_TPSF_TPB1ADR_Msk & ((value) << GMAC_TPSF_TPB1ADR_Pos)))
467 #define GMAC_TPSF_ENTXP (0x1u << 31)
468 /* -------- GMAC_RPSF : (GMAC Offset: 0x044) RX Partial Store and Forward Register -------- */
469 #define GMAC_RPSF_RPB1ADR_Pos 0
470 #define GMAC_RPSF_RPB1ADR_Msk (0xfffu << GMAC_RPSF_RPB1ADR_Pos)
471 #define GMAC_RPSF_RPB1ADR(value) ((GMAC_RPSF_RPB1ADR_Msk & ((value) << GMAC_RPSF_RPB1ADR_Pos)))
472 #define GMAC_RPSF_ENRXP (0x1u << 31)
473 /* -------- GMAC_RJFML : (GMAC Offset: 0x048) RX Jumbo Frame Max Length Register -------- */
474 #define GMAC_RJFML_FML_Pos 0
475 #define GMAC_RJFML_FML_Msk (0x3fffu << GMAC_RJFML_FML_Pos)
476 #define GMAC_RJFML_FML(value) ((GMAC_RJFML_FML_Msk & ((value) << GMAC_RJFML_FML_Pos)))
477 /* -------- GMAC_HRB : (GMAC Offset: 0x080) Hash Register Bottom -------- */
478 #define GMAC_HRB_ADDR_Pos 0
479 #define GMAC_HRB_ADDR_Msk (0xffffffffu << GMAC_HRB_ADDR_Pos)
480 #define GMAC_HRB_ADDR(value) ((GMAC_HRB_ADDR_Msk & ((value) << GMAC_HRB_ADDR_Pos)))
481 /* -------- GMAC_HRT : (GMAC Offset: 0x084) Hash Register Top -------- */
482 #define GMAC_HRT_ADDR_Pos 0
483 #define GMAC_HRT_ADDR_Msk (0xffffffffu << GMAC_HRT_ADDR_Pos)
484 #define GMAC_HRT_ADDR(value) ((GMAC_HRT_ADDR_Msk & ((value) << GMAC_HRT_ADDR_Pos)))
485 /* -------- GMAC_SAB : (GMAC Offset: N/A) Specific Address 1 Bottom Register -------- */
486 #define GMAC_SAB_ADDR_Pos 0
487 #define GMAC_SAB_ADDR_Msk (0xffffffffu << GMAC_SAB_ADDR_Pos)
488 #define GMAC_SAB_ADDR(value) ((GMAC_SAB_ADDR_Msk & ((value) << GMAC_SAB_ADDR_Pos)))
489 /* -------- GMAC_SAT : (GMAC Offset: N/A) Specific Address 1 Top Register -------- */
490 #define GMAC_SAT_ADDR_Pos 0
491 #define GMAC_SAT_ADDR_Msk (0xffffu << GMAC_SAT_ADDR_Pos)
492 #define GMAC_SAT_ADDR(value) ((GMAC_SAT_ADDR_Msk & ((value) << GMAC_SAT_ADDR_Pos)))
493 /* -------- GMAC_TIDM1 : (GMAC Offset: 0x0A8) Type ID Match 1 Register -------- */
494 #define GMAC_TIDM1_TID_Pos 0
495 #define GMAC_TIDM1_TID_Msk (0xffffu << GMAC_TIDM1_TID_Pos)
496 #define GMAC_TIDM1_TID(value) ((GMAC_TIDM1_TID_Msk & ((value) << GMAC_TIDM1_TID_Pos)))
497 #define GMAC_TIDM1_ENID1 (0x1u << 31)
498 /* -------- GMAC_TIDM2 : (GMAC Offset: 0x0AC) Type ID Match 2 Register -------- */
499 #define GMAC_TIDM2_TID_Pos 0
500 #define GMAC_TIDM2_TID_Msk (0xffffu << GMAC_TIDM2_TID_Pos)
501 #define GMAC_TIDM2_TID(value) ((GMAC_TIDM2_TID_Msk & ((value) << GMAC_TIDM2_TID_Pos)))
502 #define GMAC_TIDM2_ENID2 (0x1u << 31)
503 /* -------- GMAC_TIDM3 : (GMAC Offset: 0x0B0) Type ID Match 3 Register -------- */
504 #define GMAC_TIDM3_TID_Pos 0
505 #define GMAC_TIDM3_TID_Msk (0xffffu << GMAC_TIDM3_TID_Pos)
506 #define GMAC_TIDM3_TID(value) ((GMAC_TIDM3_TID_Msk & ((value) << GMAC_TIDM3_TID_Pos)))
507 #define GMAC_TIDM3_ENID3 (0x1u << 31)
508 /* -------- GMAC_TIDM4 : (GMAC Offset: 0x0B4) Type ID Match 4 Register -------- */
509 #define GMAC_TIDM4_TID_Pos 0
510 #define GMAC_TIDM4_TID_Msk (0xffffu << GMAC_TIDM4_TID_Pos)
511 #define GMAC_TIDM4_TID(value) ((GMAC_TIDM4_TID_Msk & ((value) << GMAC_TIDM4_TID_Pos)))
512 #define GMAC_TIDM4_ENID4 (0x1u << 31)
513 /* -------- GMAC_WOL : (GMAC Offset: 0x0B8) Wake on LAN Register -------- */
514 #define GMAC_WOL_IP_Pos 0
515 #define GMAC_WOL_IP_Msk (0xffffu << GMAC_WOL_IP_Pos)
516 #define GMAC_WOL_IP(value) ((GMAC_WOL_IP_Msk & ((value) << GMAC_WOL_IP_Pos)))
517 #define GMAC_WOL_MAG (0x1u << 16)
518 #define GMAC_WOL_ARP (0x1u << 17)
519 #define GMAC_WOL_SA1 (0x1u << 18)
520 #define GMAC_WOL_MTI (0x1u << 19)
521 /* -------- GMAC_IPGS : (GMAC Offset: 0x0BC) IPG Stretch Register -------- */
522 #define GMAC_IPGS_FL_Pos 0
523 #define GMAC_IPGS_FL_Msk (0xffffu << GMAC_IPGS_FL_Pos)
524 #define GMAC_IPGS_FL(value) ((GMAC_IPGS_FL_Msk & ((value) << GMAC_IPGS_FL_Pos)))
525 /* -------- GMAC_SVLAN : (GMAC Offset: 0x0C0) Stacked VLAN Register -------- */
526 #define GMAC_SVLAN_VLAN_TYPE_Pos 0
527 #define GMAC_SVLAN_VLAN_TYPE_Msk (0xffffu << GMAC_SVLAN_VLAN_TYPE_Pos)
528 #define GMAC_SVLAN_VLAN_TYPE(value) ((GMAC_SVLAN_VLAN_TYPE_Msk & ((value) << GMAC_SVLAN_VLAN_TYPE_Pos)))
529 #define GMAC_SVLAN_ESVLAN (0x1u << 31)
530 /* -------- GMAC_TPFCP : (GMAC Offset: 0x0C4) Transmit PFC Pause Register -------- */
531 #define GMAC_TPFCP_PEV_Pos 0
532 #define GMAC_TPFCP_PEV_Msk (0xffu << GMAC_TPFCP_PEV_Pos)
533 #define GMAC_TPFCP_PEV(value) ((GMAC_TPFCP_PEV_Msk & ((value) << GMAC_TPFCP_PEV_Pos)))
534 #define GMAC_TPFCP_PQ_Pos 8
535 #define GMAC_TPFCP_PQ_Msk (0xffu << GMAC_TPFCP_PQ_Pos)
536 #define GMAC_TPFCP_PQ(value) ((GMAC_TPFCP_PQ_Msk & ((value) << GMAC_TPFCP_PQ_Pos)))
537 /* -------- GMAC_SAMB1 : (GMAC Offset: 0x0C8) Specific Address 1 Mask Bottom Register -------- */
538 #define GMAC_SAMB1_ADDR_Pos 0
539 #define GMAC_SAMB1_ADDR_Msk (0xffffffffu << GMAC_SAMB1_ADDR_Pos)
540 #define GMAC_SAMB1_ADDR(value) ((GMAC_SAMB1_ADDR_Msk & ((value) << GMAC_SAMB1_ADDR_Pos)))
541 /* -------- GMAC_SAMT1 : (GMAC Offset: 0x0CC) Specific Address 1 Mask Top Register -------- */
542 #define GMAC_SAMT1_ADDR_Pos 0
543 #define GMAC_SAMT1_ADDR_Msk (0xffffu << GMAC_SAMT1_ADDR_Pos)
544 #define GMAC_SAMT1_ADDR(value) ((GMAC_SAMT1_ADDR_Msk & ((value) << GMAC_SAMT1_ADDR_Pos)))
545 /* -------- GMAC_NSC : (GMAC Offset: 0x0DC) 1588 Timer Nanosecond Comparison Register -------- */
546 #define GMAC_NSC_NANOSEC_Pos 0
547 #define GMAC_NSC_NANOSEC_Msk (0x3fffffu << GMAC_NSC_NANOSEC_Pos)
548 #define GMAC_NSC_NANOSEC(value) ((GMAC_NSC_NANOSEC_Msk & ((value) << GMAC_NSC_NANOSEC_Pos)))
549 /* -------- GMAC_SCL : (GMAC Offset: 0x0E0) 1588 Timer Second Comparison Low Register -------- */
550 #define GMAC_SCL_SEC_Pos 0
551 #define GMAC_SCL_SEC_Msk (0xffffffffu << GMAC_SCL_SEC_Pos)
552 #define GMAC_SCL_SEC(value) ((GMAC_SCL_SEC_Msk & ((value) << GMAC_SCL_SEC_Pos)))
553 /* -------- GMAC_SCH : (GMAC Offset: 0x0E4) 1588 Timer Second Comparison High Register -------- */
554 #define GMAC_SCH_SEC_Pos 0
555 #define GMAC_SCH_SEC_Msk (0xffffu << GMAC_SCH_SEC_Pos)
556 #define GMAC_SCH_SEC(value) ((GMAC_SCH_SEC_Msk & ((value) << GMAC_SCH_SEC_Pos)))
557 /* -------- GMAC_EFTSH : (GMAC Offset: 0x0E8) PTP Event Frame Transmitted Seconds High Register -------- */
558 #define GMAC_EFTSH_RUD_Pos 0
559 #define GMAC_EFTSH_RUD_Msk (0xffffu << GMAC_EFTSH_RUD_Pos)
560 /* -------- GMAC_EFRSH : (GMAC Offset: 0x0EC) PTP Event Frame Received Seconds High Register -------- */
561 #define GMAC_EFRSH_RUD_Pos 0
562 #define GMAC_EFRSH_RUD_Msk (0xffffu << GMAC_EFRSH_RUD_Pos)
563 /* -------- GMAC_PEFTSH : (GMAC Offset: 0x0F0) PTP Peer Event Frame Transmitted Seconds High Register -------- */
564 #define GMAC_PEFTSH_RUD_Pos 0
565 #define GMAC_PEFTSH_RUD_Msk (0xffffu << GMAC_PEFTSH_RUD_Pos)
566 /* -------- GMAC_PEFRSH : (GMAC Offset: 0x0F4) PTP Peer Event Frame Received Seconds High Register -------- */
567 #define GMAC_PEFRSH_RUD_Pos 0
568 #define GMAC_PEFRSH_RUD_Msk (0xffffu << GMAC_PEFRSH_RUD_Pos)
569 /* -------- GMAC_MID : (GMAC Offset: 0x0FC) Module ID Register -------- */
570 #define GMAC_MID_MREV_Pos 0
571 #define GMAC_MID_MREV_Msk (0xffffu << GMAC_MID_MREV_Pos)
572 #define GMAC_MID_MID_Pos 16
573 #define GMAC_MID_MID_Msk (0xffffu << GMAC_MID_MID_Pos)
574 /* -------- GMAC_OTLO : (GMAC Offset: 0x100) Octets Transmitted Low Register -------- */
575 #define GMAC_OTLO_TXO_Pos 0
576 #define GMAC_OTLO_TXO_Msk (0xffffffffu << GMAC_OTLO_TXO_Pos)
577 /* -------- GMAC_OTHI : (GMAC Offset: 0x104) Octets Transmitted High Register -------- */
578 #define GMAC_OTHI_TXO_Pos 0
579 #define GMAC_OTHI_TXO_Msk (0xffffu << GMAC_OTHI_TXO_Pos)
580 /* -------- GMAC_FT : (GMAC Offset: 0x108) Frames Transmitted Register -------- */
581 #define GMAC_FT_FTX_Pos 0
582 #define GMAC_FT_FTX_Msk (0xffffffffu << GMAC_FT_FTX_Pos)
583 /* -------- GMAC_BCFT : (GMAC Offset: 0x10C) Broadcast Frames Transmitted Register -------- */
584 #define GMAC_BCFT_BFTX_Pos 0
585 #define GMAC_BCFT_BFTX_Msk (0xffffffffu << GMAC_BCFT_BFTX_Pos)
586 /* -------- GMAC_MFT : (GMAC Offset: 0x110) Multicast Frames Transmitted Register -------- */
587 #define GMAC_MFT_MFTX_Pos 0
588 #define GMAC_MFT_MFTX_Msk (0xffffffffu << GMAC_MFT_MFTX_Pos)
589 /* -------- GMAC_PFT : (GMAC Offset: 0x114) Pause Frames Transmitted Register -------- */
590 #define GMAC_PFT_PFTX_Pos 0
591 #define GMAC_PFT_PFTX_Msk (0xffffu << GMAC_PFT_PFTX_Pos)
592 /* -------- GMAC_BFT64 : (GMAC Offset: 0x118) 64 Byte Frames Transmitted Register -------- */
593 #define GMAC_BFT64_NFTX_Pos 0
594 #define GMAC_BFT64_NFTX_Msk (0xffffffffu << GMAC_BFT64_NFTX_Pos)
595 /* -------- GMAC_TBFT127 : (GMAC Offset: 0x11C) 65 to 127 Byte Frames Transmitted Register -------- */
596 #define GMAC_TBFT127_NFTX_Pos 0
597 #define GMAC_TBFT127_NFTX_Msk (0xffffffffu << GMAC_TBFT127_NFTX_Pos)
598 /* -------- GMAC_TBFT255 : (GMAC Offset: 0x120) 128 to 255 Byte Frames Transmitted Register -------- */
599 #define GMAC_TBFT255_NFTX_Pos 0
600 #define GMAC_TBFT255_NFTX_Msk (0xffffffffu << GMAC_TBFT255_NFTX_Pos)
601 /* -------- GMAC_TBFT511 : (GMAC Offset: 0x124) 256 to 511 Byte Frames Transmitted Register -------- */
602 #define GMAC_TBFT511_NFTX_Pos 0
603 #define GMAC_TBFT511_NFTX_Msk (0xffffffffu << GMAC_TBFT511_NFTX_Pos)
604 /* -------- GMAC_TBFT1023 : (GMAC Offset: 0x128) 512 to 1023 Byte Frames Transmitted Register -------- */
605 #define GMAC_TBFT1023_NFTX_Pos 0
606 #define GMAC_TBFT1023_NFTX_Msk (0xffffffffu << GMAC_TBFT1023_NFTX_Pos)
607 /* -------- GMAC_TBFT1518 : (GMAC Offset: 0x12C) 1024 to 1518 Byte Frames Transmitted Register -------- */
608 #define GMAC_TBFT1518_NFTX_Pos 0
609 #define GMAC_TBFT1518_NFTX_Msk (0xffffffffu << GMAC_TBFT1518_NFTX_Pos)
610 /* -------- GMAC_GTBFT1518 : (GMAC Offset: 0x130) Greater Than 1518 Byte Frames Transmitted Register -------- */
611 #define GMAC_GTBFT1518_NFTX_Pos 0
612 #define GMAC_GTBFT1518_NFTX_Msk (0xffffffffu << GMAC_GTBFT1518_NFTX_Pos)
613 /* -------- GMAC_TUR : (GMAC Offset: 0x134) Transmit Underruns Register -------- */
614 #define GMAC_TUR_TXUNR_Pos 0
615 #define GMAC_TUR_TXUNR_Msk (0x3ffu << GMAC_TUR_TXUNR_Pos)
616 /* -------- GMAC_SCF : (GMAC Offset: 0x138) Single Collision Frames Register -------- */
617 #define GMAC_SCF_SCOL_Pos 0
618 #define GMAC_SCF_SCOL_Msk (0x3ffffu << GMAC_SCF_SCOL_Pos)
619 /* -------- GMAC_MCF : (GMAC Offset: 0x13C) Multiple Collision Frames Register -------- */
620 #define GMAC_MCF_MCOL_Pos 0
621 #define GMAC_MCF_MCOL_Msk (0x3ffffu << GMAC_MCF_MCOL_Pos)
622 /* -------- GMAC_EC : (GMAC Offset: 0x140) Excessive Collisions Register -------- */
623 #define GMAC_EC_XCOL_Pos 0
624 #define GMAC_EC_XCOL_Msk (0x3ffu << GMAC_EC_XCOL_Pos)
625 /* -------- GMAC_LC : (GMAC Offset: 0x144) Late Collisions Register -------- */
626 #define GMAC_LC_LCOL_Pos 0
627 #define GMAC_LC_LCOL_Msk (0x3ffu << GMAC_LC_LCOL_Pos)
628 /* -------- GMAC_DTF : (GMAC Offset: 0x148) Deferred Transmission Frames Register -------- */
629 #define GMAC_DTF_DEFT_Pos 0
630 #define GMAC_DTF_DEFT_Msk (0x3ffffu << GMAC_DTF_DEFT_Pos)
631 /* -------- GMAC_CSE : (GMAC Offset: 0x14C) Carrier Sense Errors Register -------- */
632 #define GMAC_CSE_CSR_Pos 0
633 #define GMAC_CSE_CSR_Msk (0x3ffu << GMAC_CSE_CSR_Pos)
634 /* -------- GMAC_ORLO : (GMAC Offset: 0x150) Octets Received Low Received Register -------- */
635 #define GMAC_ORLO_RXO_Pos 0
636 #define GMAC_ORLO_RXO_Msk (0xffffffffu << GMAC_ORLO_RXO_Pos)
637 /* -------- GMAC_ORHI : (GMAC Offset: 0x154) Octets Received High Received Register -------- */
638 #define GMAC_ORHI_RXO_Pos 0
639 #define GMAC_ORHI_RXO_Msk (0xffffu << GMAC_ORHI_RXO_Pos)
640 /* -------- GMAC_FR : (GMAC Offset: 0x158) Frames Received Register -------- */
641 #define GMAC_FR_FRX_Pos 0
642 #define GMAC_FR_FRX_Msk (0xffffffffu << GMAC_FR_FRX_Pos)
643 /* -------- GMAC_BCFR : (GMAC Offset: 0x15C) Broadcast Frames Received Register -------- */
644 #define GMAC_BCFR_BFRX_Pos 0
645 #define GMAC_BCFR_BFRX_Msk (0xffffffffu << GMAC_BCFR_BFRX_Pos)
646 /* -------- GMAC_MFR : (GMAC Offset: 0x160) Multicast Frames Received Register -------- */
647 #define GMAC_MFR_MFRX_Pos 0
648 #define GMAC_MFR_MFRX_Msk (0xffffffffu << GMAC_MFR_MFRX_Pos)
649 /* -------- GMAC_PFR : (GMAC Offset: 0x164) Pause Frames Received Register -------- */
650 #define GMAC_PFR_PFRX_Pos 0
651 #define GMAC_PFR_PFRX_Msk (0xffffu << GMAC_PFR_PFRX_Pos)
652 /* -------- GMAC_BFR64 : (GMAC Offset: 0x168) 64 Byte Frames Received Register -------- */
653 #define GMAC_BFR64_NFRX_Pos 0
654 #define GMAC_BFR64_NFRX_Msk (0xffffffffu << GMAC_BFR64_NFRX_Pos)
655 /* -------- GMAC_TBFR127 : (GMAC Offset: 0x16C) 65 to 127 Byte Frames Received Register -------- */
656 #define GMAC_TBFR127_NFRX_Pos 0
657 #define GMAC_TBFR127_NFRX_Msk (0xffffffffu << GMAC_TBFR127_NFRX_Pos)
658 /* -------- GMAC_TBFR255 : (GMAC Offset: 0x170) 128 to 255 Byte Frames Received Register -------- */
659 #define GMAC_TBFR255_NFRX_Pos 0
660 #define GMAC_TBFR255_NFRX_Msk (0xffffffffu << GMAC_TBFR255_NFRX_Pos)
661 /* -------- GMAC_TBFR511 : (GMAC Offset: 0x174) 256 to 511 Byte Frames Received Register -------- */
662 #define GMAC_TBFR511_NFRX_Pos 0
663 #define GMAC_TBFR511_NFRX_Msk (0xffffffffu << GMAC_TBFR511_NFRX_Pos)
664 /* -------- GMAC_TBFR1023 : (GMAC Offset: 0x178) 512 to 1023 Byte Frames Received Register -------- */
665 #define GMAC_TBFR1023_NFRX_Pos 0
666 #define GMAC_TBFR1023_NFRX_Msk (0xffffffffu << GMAC_TBFR1023_NFRX_Pos)
667 /* -------- GMAC_TBFR1518 : (GMAC Offset: 0x17C) 1024 to 1518 Byte Frames Received Register -------- */
668 #define GMAC_TBFR1518_NFRX_Pos 0
669 #define GMAC_TBFR1518_NFRX_Msk (0xffffffffu << GMAC_TBFR1518_NFRX_Pos)
670 /* -------- GMAC_TMXBFR : (GMAC Offset: 0x180) 1519 to Maximum Byte Frames Received Register -------- */
671 #define GMAC_TMXBFR_NFRX_Pos 0
672 #define GMAC_TMXBFR_NFRX_Msk (0xffffffffu << GMAC_TMXBFR_NFRX_Pos)
673 /* -------- GMAC_UFR : (GMAC Offset: 0x184) Undersize Frames Received Register -------- */
674 #define GMAC_UFR_UFRX_Pos 0
675 #define GMAC_UFR_UFRX_Msk (0x3ffu << GMAC_UFR_UFRX_Pos)
676 /* -------- GMAC_OFR : (GMAC Offset: 0x188) Oversize Frames Received Register -------- */
677 #define GMAC_OFR_OFRX_Pos 0
678 #define GMAC_OFR_OFRX_Msk (0x3ffu << GMAC_OFR_OFRX_Pos)
679 /* -------- GMAC_JR : (GMAC Offset: 0x18C) Jabbers Received Register -------- */
680 #define GMAC_JR_JRX_Pos 0
681 #define GMAC_JR_JRX_Msk (0x3ffu << GMAC_JR_JRX_Pos)
682 /* -------- GMAC_FCSE : (GMAC Offset: 0x190) Frame Check Sequence Errors Register -------- */
683 #define GMAC_FCSE_FCKR_Pos 0
684 #define GMAC_FCSE_FCKR_Msk (0x3ffu << GMAC_FCSE_FCKR_Pos)
685 /* -------- GMAC_LFFE : (GMAC Offset: 0x194) Length Field Frame Errors Register -------- */
686 #define GMAC_LFFE_LFER_Pos 0
687 #define GMAC_LFFE_LFER_Msk (0x3ffu << GMAC_LFFE_LFER_Pos)
688 /* -------- GMAC_RSE : (GMAC Offset: 0x198) Receive Symbol Errors Register -------- */
689 #define GMAC_RSE_RXSE_Pos 0
690 #define GMAC_RSE_RXSE_Msk (0x3ffu << GMAC_RSE_RXSE_Pos)
691 /* -------- GMAC_AE : (GMAC Offset: 0x19C) Alignment Errors Register -------- */
692 #define GMAC_AE_AER_Pos 0
693 #define GMAC_AE_AER_Msk (0x3ffu << GMAC_AE_AER_Pos)
694 /* -------- GMAC_RRE : (GMAC Offset: 0x1A0) Receive Resource Errors Register -------- */
695 #define GMAC_RRE_RXRER_Pos 0
696 #define GMAC_RRE_RXRER_Msk (0x3ffffu << GMAC_RRE_RXRER_Pos)
697 /* -------- GMAC_ROE : (GMAC Offset: 0x1A4) Receive Overrun Register -------- */
698 #define GMAC_ROE_RXOVR_Pos 0
699 #define GMAC_ROE_RXOVR_Msk (0x3ffu << GMAC_ROE_RXOVR_Pos)
700 /* -------- GMAC_IHCE : (GMAC Offset: 0x1A8) IP Header Checksum Errors Register -------- */
701 #define GMAC_IHCE_HCKER_Pos 0
702 #define GMAC_IHCE_HCKER_Msk (0xffu << GMAC_IHCE_HCKER_Pos)
703 /* -------- GMAC_TCE : (GMAC Offset: 0x1AC) TCP Checksum Errors Register -------- */
704 #define GMAC_TCE_TCKER_Pos 0
705 #define GMAC_TCE_TCKER_Msk (0xffu << GMAC_TCE_TCKER_Pos)
706 /* -------- GMAC_UCE : (GMAC Offset: 0x1B0) UDP Checksum Errors Register -------- */
707 #define GMAC_UCE_UCKER_Pos 0
708 #define GMAC_UCE_UCKER_Msk (0xffu << GMAC_UCE_UCKER_Pos)
709 /* -------- GMAC_TISUBN : (GMAC Offset: 0x1BC) 1588 Timer Increment Sub-nanoseconds Register -------- */
710 #define GMAC_TISUBN_LSBTIR_Pos 0
711 #define GMAC_TISUBN_LSBTIR_Msk (0xffffu << GMAC_TISUBN_LSBTIR_Pos)
712 #define GMAC_TISUBN_LSBTIR(value) ((GMAC_TISUBN_LSBTIR_Msk & ((value) << GMAC_TISUBN_LSBTIR_Pos)))
713 /* -------- GMAC_TSH : (GMAC Offset: 0x1C0) 1588 Timer Seconds High Register -------- */
714 #define GMAC_TSH_TCS_Pos 0
715 #define GMAC_TSH_TCS_Msk (0xffffu << GMAC_TSH_TCS_Pos)
716 #define GMAC_TSH_TCS(value) ((GMAC_TSH_TCS_Msk & ((value) << GMAC_TSH_TCS_Pos)))
717 /* -------- GMAC_TSL : (GMAC Offset: 0x1D0) 1588 Timer Seconds Low Register -------- */
718 #define GMAC_TSL_TCS_Pos 0
719 #define GMAC_TSL_TCS_Msk (0xffffffffu << GMAC_TSL_TCS_Pos)
720 #define GMAC_TSL_TCS(value) ((GMAC_TSL_TCS_Msk & ((value) << GMAC_TSL_TCS_Pos)))
721 /* -------- GMAC_TN : (GMAC Offset: 0x1D4) 1588 Timer Nanoseconds Register -------- */
722 #define GMAC_TN_TNS_Pos 0
723 #define GMAC_TN_TNS_Msk (0x3fffffffu << GMAC_TN_TNS_Pos)
724 #define GMAC_TN_TNS(value) ((GMAC_TN_TNS_Msk & ((value) << GMAC_TN_TNS_Pos)))
725 /* -------- GMAC_TA : (GMAC Offset: 0x1D8) 1588 Timer Adjust Register -------- */
726 #define GMAC_TA_ITDT_Pos 0
727 #define GMAC_TA_ITDT_Msk (0x3fffffffu << GMAC_TA_ITDT_Pos)
728 #define GMAC_TA_ITDT(value) ((GMAC_TA_ITDT_Msk & ((value) << GMAC_TA_ITDT_Pos)))
729 #define GMAC_TA_ADJ (0x1u << 31)
730 /* -------- GMAC_TI : (GMAC Offset: 0x1DC) 1588 Timer Increment Register -------- */
731 #define GMAC_TI_CNS_Pos 0
732 #define GMAC_TI_CNS_Msk (0xffu << GMAC_TI_CNS_Pos)
733 #define GMAC_TI_CNS(value) ((GMAC_TI_CNS_Msk & ((value) << GMAC_TI_CNS_Pos)))
734 #define GMAC_TI_ACNS_Pos 8
735 #define GMAC_TI_ACNS_Msk (0xffu << GMAC_TI_ACNS_Pos)
736 #define GMAC_TI_ACNS(value) ((GMAC_TI_ACNS_Msk & ((value) << GMAC_TI_ACNS_Pos)))
737 #define GMAC_TI_NIT_Pos 16
738 #define GMAC_TI_NIT_Msk (0xffu << GMAC_TI_NIT_Pos)
739 #define GMAC_TI_NIT(value) ((GMAC_TI_NIT_Msk & ((value) << GMAC_TI_NIT_Pos)))
740 /* -------- GMAC_EFTSL : (GMAC Offset: 0x1E0) PTP Event Frame Transmitted Seconds Low Register -------- */
741 #define GMAC_EFTSL_RUD_Pos 0
742 #define GMAC_EFTSL_RUD_Msk (0xffffffffu << GMAC_EFTSL_RUD_Pos)
743 /* -------- GMAC_EFTN : (GMAC Offset: 0x1E4) PTP Event Frame Transmitted Nanoseconds Register -------- */
744 #define GMAC_EFTN_RUD_Pos 0
745 #define GMAC_EFTN_RUD_Msk (0x3fffffffu << GMAC_EFTN_RUD_Pos)
746 /* -------- GMAC_EFRSL : (GMAC Offset: 0x1E8) PTP Event Frame Received Seconds Low Register -------- */
747 #define GMAC_EFRSL_RUD_Pos 0
748 #define GMAC_EFRSL_RUD_Msk (0xffffffffu << GMAC_EFRSL_RUD_Pos)
749 /* -------- GMAC_EFRN : (GMAC Offset: 0x1EC) PTP Event Frame Received Nanoseconds Register -------- */
750 #define GMAC_EFRN_RUD_Pos 0
751 #define GMAC_EFRN_RUD_Msk (0x3fffffffu << GMAC_EFRN_RUD_Pos)
752 /* -------- GMAC_PEFTSL : (GMAC Offset: 0x1F0) PTP Peer Event Frame Transmitted Seconds Low Register -------- */
753 #define GMAC_PEFTSL_RUD_Pos 0
754 #define GMAC_PEFTSL_RUD_Msk (0xffffffffu << GMAC_PEFTSL_RUD_Pos)
755 /* -------- GMAC_PEFTN : (GMAC Offset: 0x1F4) PTP Peer Event Frame Transmitted Nanoseconds Register -------- */
756 #define GMAC_PEFTN_RUD_Pos 0
757 #define GMAC_PEFTN_RUD_Msk (0x3fffffffu << GMAC_PEFTN_RUD_Pos)
758 /* -------- GMAC_PEFRSL : (GMAC Offset: 0x1F8) PTP Peer Event Frame Received Seconds Low Register -------- */
759 #define GMAC_PEFRSL_RUD_Pos 0
760 #define GMAC_PEFRSL_RUD_Msk (0xffffffffu << GMAC_PEFRSL_RUD_Pos)
761 /* -------- GMAC_PEFRN : (GMAC Offset: 0x1FC) PTP Peer Event Frame Received Nanoseconds Register -------- */
762 #define GMAC_PEFRN_RUD_Pos 0
763 #define GMAC_PEFRN_RUD_Msk (0x3fffffffu << GMAC_PEFRN_RUD_Pos)
764 /* -------- GMAC_RXLPI : (GMAC Offset: 0x270) Received LPI Transitions -------- */
765 #define GMAC_RXLPI_COUNT_Pos 0
766 #define GMAC_RXLPI_COUNT_Msk (0xffffu << GMAC_RXLPI_COUNT_Pos)
767 /* -------- GMAC_RXLPITIME : (GMAC Offset: 0x274) Received LPI Time -------- */
768 #define GMAC_RXLPITIME_LPITIME_Pos 0
769 #define GMAC_RXLPITIME_LPITIME_Msk (0xffffffu << GMAC_RXLPITIME_LPITIME_Pos)
770 /* -------- GMAC_TXLPI : (GMAC Offset: 0x278) Transmit LPI Transitions -------- */
771 #define GMAC_TXLPI_COUNT_Pos 0
772 #define GMAC_TXLPI_COUNT_Msk (0xffffu << GMAC_TXLPI_COUNT_Pos)
773 /* -------- GMAC_TXLPITIME : (GMAC Offset: 0x27C) Transmit LPI Time -------- */
774 #define GMAC_TXLPITIME_LPITIME_Pos 0
775 #define GMAC_TXLPITIME_LPITIME_Msk (0xffffffu << GMAC_TXLPITIME_LPITIME_Pos)
776 /* -------- GMAC_ISRPQ[5] : (GMAC Offset: 0x400) Interrupt Status Register Priority Queue (index = 1) -------- */
777 #define GMAC_ISRPQ_RCOMP (0x1u << 1)
778 #define GMAC_ISRPQ_RXUBR (0x1u << 2)
779 #define GMAC_ISRPQ_RLEX (0x1u << 5)
780 #define GMAC_ISRPQ_TFC (0x1u << 6)
781 #define GMAC_ISRPQ_TCOMP (0x1u << 7)
782 #define GMAC_ISRPQ_ROVR (0x1u << 10)
783 #define GMAC_ISRPQ_HRESP (0x1u << 11)
784 /* -------- GMAC_TBQBAPQ[5] : (GMAC Offset: 0x440) Transmit Buffer Queue Base Address Register Priority Queue (index = 1) -------- */
785 #define GMAC_TBQBAPQ_TXBQBA_Pos 2
786 #define GMAC_TBQBAPQ_TXBQBA_Msk (0x3fffffffu << GMAC_TBQBAPQ_TXBQBA_Pos)
787 #define GMAC_TBQBAPQ_TXBQBA(value) ((GMAC_TBQBAPQ_TXBQBA_Msk & ((value) << GMAC_TBQBAPQ_TXBQBA_Pos)))
788 /* -------- GMAC_RBQBAPQ[5] : (GMAC Offset: 0x480) Receive Buffer Queue Base Address Register Priority Queue (index = 1) -------- */
789 #define GMAC_RBQBAPQ_RXBQBA_Pos 2
790 #define GMAC_RBQBAPQ_RXBQBA_Msk (0x3fffffffu << GMAC_RBQBAPQ_RXBQBA_Pos)
791 #define GMAC_RBQBAPQ_RXBQBA(value) ((GMAC_RBQBAPQ_RXBQBA_Msk & ((value) << GMAC_RBQBAPQ_RXBQBA_Pos)))
792 /* -------- GMAC_RBSRPQ[5] : (GMAC Offset: 0x4A0) Receive Buffer Size Register Priority Queue (index = 1) -------- */
793 #define GMAC_RBSRPQ_RBS_Pos 0
794 #define GMAC_RBSRPQ_RBS_Msk (0xffffu << GMAC_RBSRPQ_RBS_Pos)
795 #define GMAC_RBSRPQ_RBS(value) ((GMAC_RBSRPQ_RBS_Msk & ((value) << GMAC_RBSRPQ_RBS_Pos)))
796 /* -------- GMAC_CBSCR : (GMAC Offset: 0x4BC) Credit-Based Shaping Control Register -------- */
797 #define GMAC_CBSCR_QBE (0x1u << 0)
798 #define GMAC_CBSCR_QAE (0x1u << 1)
799 /* -------- GMAC_CBSISQA : (GMAC Offset: 0x4C0) Credit-Based Shaping IdleSlope Register for Queue A -------- */
800 #define GMAC_CBSISQA_IS_Pos 0
801 #define GMAC_CBSISQA_IS_Msk (0xffffffffu << GMAC_CBSISQA_IS_Pos)
802 #define GMAC_CBSISQA_IS(value) ((GMAC_CBSISQA_IS_Msk & ((value) << GMAC_CBSISQA_IS_Pos)))
803 /* -------- GMAC_CBSISQB : (GMAC Offset: 0x4C4) Credit-Based Shaping IdleSlope Register for Queue B -------- */
804 #define GMAC_CBSISQB_IS_Pos 0
805 #define GMAC_CBSISQB_IS_Msk (0xffffffffu << GMAC_CBSISQB_IS_Pos)
806 #define GMAC_CBSISQB_IS(value) ((GMAC_CBSISQB_IS_Msk & ((value) << GMAC_CBSISQB_IS_Pos)))
807 /* -------- GMAC_ST1RPQ[4] : (GMAC Offset: 0x500) Screening Type 1 Register Priority Queue (index = 0) -------- */
808 #define GMAC_ST1RPQ_QNB_Pos 0
809 #define GMAC_ST1RPQ_QNB_Msk (0x7u << GMAC_ST1RPQ_QNB_Pos)
810 #define GMAC_ST1RPQ_QNB(value) ((GMAC_ST1RPQ_QNB_Msk & ((value) << GMAC_ST1RPQ_QNB_Pos)))
811 #define GMAC_ST1RPQ_DSTCM_Pos 4
812 #define GMAC_ST1RPQ_DSTCM_Msk (0xffu << GMAC_ST1RPQ_DSTCM_Pos)
813 #define GMAC_ST1RPQ_DSTCM(value) ((GMAC_ST1RPQ_DSTCM_Msk & ((value) << GMAC_ST1RPQ_DSTCM_Pos)))
814 #define GMAC_ST1RPQ_UDPM_Pos 12
815 #define GMAC_ST1RPQ_UDPM_Msk (0xffffu << GMAC_ST1RPQ_UDPM_Pos)
816 #define GMAC_ST1RPQ_UDPM(value) ((GMAC_ST1RPQ_UDPM_Msk & ((value) << GMAC_ST1RPQ_UDPM_Pos)))
817 #define GMAC_ST1RPQ_DSTCE (0x1u << 28)
818 #define GMAC_ST1RPQ_UDPE (0x1u << 29)
819 /* -------- GMAC_ST2RPQ[8] : (GMAC Offset: 0x540) Screening Type 2 Register Priority Queue (index = 0) -------- */
820 #define GMAC_ST2RPQ_QNB_Pos 0
821 #define GMAC_ST2RPQ_QNB_Msk (0x7u << GMAC_ST2RPQ_QNB_Pos)
822 #define GMAC_ST2RPQ_QNB(value) ((GMAC_ST2RPQ_QNB_Msk & ((value) << GMAC_ST2RPQ_QNB_Pos)))
823 #define GMAC_ST2RPQ_VLANP_Pos 4
824 #define GMAC_ST2RPQ_VLANP_Msk (0x7u << GMAC_ST2RPQ_VLANP_Pos)
825 #define GMAC_ST2RPQ_VLANP(value) ((GMAC_ST2RPQ_VLANP_Msk & ((value) << GMAC_ST2RPQ_VLANP_Pos)))
826 #define GMAC_ST2RPQ_VLANE (0x1u << 8)
827 #define GMAC_ST2RPQ_I2ETH_Pos 9
828 #define GMAC_ST2RPQ_I2ETH_Msk (0x7u << GMAC_ST2RPQ_I2ETH_Pos)
829 #define GMAC_ST2RPQ_I2ETH(value) ((GMAC_ST2RPQ_I2ETH_Msk & ((value) << GMAC_ST2RPQ_I2ETH_Pos)))
830 #define GMAC_ST2RPQ_ETHE (0x1u << 12)
831 #define GMAC_ST2RPQ_COMPA_Pos 13
832 #define GMAC_ST2RPQ_COMPA_Msk (0x1fu << GMAC_ST2RPQ_COMPA_Pos)
833 #define GMAC_ST2RPQ_COMPA(value) ((GMAC_ST2RPQ_COMPA_Msk & ((value) << GMAC_ST2RPQ_COMPA_Pos)))
834 #define GMAC_ST2RPQ_COMPAE (0x1u << 18)
835 #define GMAC_ST2RPQ_COMPB_Pos 19
836 #define GMAC_ST2RPQ_COMPB_Msk (0x1fu << GMAC_ST2RPQ_COMPB_Pos)
837 #define GMAC_ST2RPQ_COMPB(value) ((GMAC_ST2RPQ_COMPB_Msk & ((value) << GMAC_ST2RPQ_COMPB_Pos)))
838 #define GMAC_ST2RPQ_COMPBE (0x1u << 24)
839 #define GMAC_ST2RPQ_COMPC_Pos 25
840 #define GMAC_ST2RPQ_COMPC_Msk (0x1fu << GMAC_ST2RPQ_COMPC_Pos)
841 #define GMAC_ST2RPQ_COMPC(value) ((GMAC_ST2RPQ_COMPC_Msk & ((value) << GMAC_ST2RPQ_COMPC_Pos)))
842 #define GMAC_ST2RPQ_COMPCE (0x1u << 30)
843 /* -------- GMAC_IERPQ[5] : (GMAC Offset: 0x5FC) Interrupt Enable Register Priority Queue (index = 1) -------- */
844 #define GMAC_IERPQ_RCOMP (0x1u << 1)
845 #define GMAC_IERPQ_RXUBR (0x1u << 2)
846 #define GMAC_IERPQ_RLEX (0x1u << 5)
847 #define GMAC_IERPQ_TFC (0x1u << 6)
848 #define GMAC_IERPQ_TCOMP (0x1u << 7)
849 #define GMAC_IERPQ_ROVR (0x1u << 10)
850 #define GMAC_IERPQ_HRESP (0x1u << 11)
851 /* -------- GMAC_IDRPQ[5] : (GMAC Offset: 0x61C) Interrupt Disable Register Priority Queue (index = 1) -------- */
852 #define GMAC_IDRPQ_RCOMP (0x1u << 1)
853 #define GMAC_IDRPQ_RXUBR (0x1u << 2)
854 #define GMAC_IDRPQ_RLEX (0x1u << 5)
855 #define GMAC_IDRPQ_TFC (0x1u << 6)
856 #define GMAC_IDRPQ_TCOMP (0x1u << 7)
857 #define GMAC_IDRPQ_ROVR (0x1u << 10)
858 #define GMAC_IDRPQ_HRESP (0x1u << 11)
859 /* -------- GMAC_IMRPQ[5] : (GMAC Offset: 0x63C) Interrupt Mask Register Priority Queue (index = 1) -------- */
860 #define GMAC_IMRPQ_RCOMP (0x1u << 1)
861 #define GMAC_IMRPQ_RXUBR (0x1u << 2)
862 #define GMAC_IMRPQ_RLEX (0x1u << 5)
863 #define GMAC_IMRPQ_AHB (0x1u << 6)
864 #define GMAC_IMRPQ_TCOMP (0x1u << 7)
865 #define GMAC_IMRPQ_ROVR (0x1u << 10)
866 #define GMAC_IMRPQ_HRESP (0x1u << 11)
867 /* -------- GMAC_ST2ER[4] : (GMAC Offset: 0x6E0) Screening Type 2 Ethertype Register (index = 0) -------- */
868 #define GMAC_ST2ER_COMPVAL_Pos 0
869 #define GMAC_ST2ER_COMPVAL_Msk (0xffffu << GMAC_ST2ER_COMPVAL_Pos)
870 #define GMAC_ST2ER_COMPVAL(value) ((GMAC_ST2ER_COMPVAL_Msk & ((value) << GMAC_ST2ER_COMPVAL_Pos)))
871 /* -------- GMAC_ST2CW00 : (GMAC Offset: 0x700) Screening Type 2 Compare Word 0 Register (index = 0) -------- */
872 #define GMAC_ST2CW00_MASKVAL_Pos 0
873 #define GMAC_ST2CW00_MASKVAL_Msk (0xffffu << GMAC_ST2CW00_MASKVAL_Pos)
874 #define GMAC_ST2CW00_MASKVAL(value) ((GMAC_ST2CW00_MASKVAL_Msk & ((value) << GMAC_ST2CW00_MASKVAL_Pos)))
875 #define GMAC_ST2CW00_COMPVAL_Pos 16
876 #define GMAC_ST2CW00_COMPVAL_Msk (0xffffu << GMAC_ST2CW00_COMPVAL_Pos)
877 #define GMAC_ST2CW00_COMPVAL(value) ((GMAC_ST2CW00_COMPVAL_Msk & ((value) << GMAC_ST2CW00_COMPVAL_Pos)))
878 /* -------- GMAC_ST2CW10 : (GMAC Offset: 0x704) Screening Type 2 Compare Word 1 Register (index = 0) -------- */
879 #define GMAC_ST2CW10_OFFSVAL_Pos 0
880 #define GMAC_ST2CW10_OFFSVAL_Msk (0x7fu << GMAC_ST2CW10_OFFSVAL_Pos)
881 #define GMAC_ST2CW10_OFFSVAL(value) ((GMAC_ST2CW10_OFFSVAL_Msk & ((value) << GMAC_ST2CW10_OFFSVAL_Pos)))
882 #define GMAC_ST2CW10_OFFSSTRT_Pos 7
883 #define GMAC_ST2CW10_OFFSSTRT_Msk (0x3u << GMAC_ST2CW10_OFFSSTRT_Pos)
884 #define GMAC_ST2CW10_OFFSSTRT(value) ((GMAC_ST2CW10_OFFSSTRT_Msk & ((value) << GMAC_ST2CW10_OFFSSTRT_Pos)))
885 #define GMAC_ST2CW10_OFFSSTRT_FRAMESTART (0x0u << 7)
886 #define GMAC_ST2CW10_OFFSSTRT_ETHERTYPE (0x1u << 7)
887 #define GMAC_ST2CW10_OFFSSTRT_IP (0x2u << 7)
888 #define GMAC_ST2CW10_OFFSSTRT_TCP_UDP (0x3u << 7)
889 /* -------- GMAC_ST2CW01 : (GMAC Offset: 0x708) Screening Type 2 Compare Word 0 Register (index = 1) -------- */
890 #define GMAC_ST2CW01_MASKVAL_Pos 0
891 #define GMAC_ST2CW01_MASKVAL_Msk (0xffffu << GMAC_ST2CW01_MASKVAL_Pos)
892 #define GMAC_ST2CW01_MASKVAL(value) ((GMAC_ST2CW01_MASKVAL_Msk & ((value) << GMAC_ST2CW01_MASKVAL_Pos)))
893 #define GMAC_ST2CW01_COMPVAL_Pos 16
894 #define GMAC_ST2CW01_COMPVAL_Msk (0xffffu << GMAC_ST2CW01_COMPVAL_Pos)
895 #define GMAC_ST2CW01_COMPVAL(value) ((GMAC_ST2CW01_COMPVAL_Msk & ((value) << GMAC_ST2CW01_COMPVAL_Pos)))
896 /* -------- GMAC_ST2CW11 : (GMAC Offset: 0x70C) Screening Type 2 Compare Word 1 Register (index = 1) -------- */
897 #define GMAC_ST2CW11_OFFSVAL_Pos 0
898 #define GMAC_ST2CW11_OFFSVAL_Msk (0x7fu << GMAC_ST2CW11_OFFSVAL_Pos)
899 #define GMAC_ST2CW11_OFFSVAL(value) ((GMAC_ST2CW11_OFFSVAL_Msk & ((value) << GMAC_ST2CW11_OFFSVAL_Pos)))
900 #define GMAC_ST2CW11_OFFSSTRT_Pos 7
901 #define GMAC_ST2CW11_OFFSSTRT_Msk (0x3u << GMAC_ST2CW11_OFFSSTRT_Pos)
902 #define GMAC_ST2CW11_OFFSSTRT(value) ((GMAC_ST2CW11_OFFSSTRT_Msk & ((value) << GMAC_ST2CW11_OFFSSTRT_Pos)))
903 #define GMAC_ST2CW11_OFFSSTRT_FRAMESTART (0x0u << 7)
904 #define GMAC_ST2CW11_OFFSSTRT_ETHERTYPE (0x1u << 7)
905 #define GMAC_ST2CW11_OFFSSTRT_IP (0x2u << 7)
906 #define GMAC_ST2CW11_OFFSSTRT_TCP_UDP (0x3u << 7)
907 /* -------- GMAC_ST2CW02 : (GMAC Offset: 0x710) Screening Type 2 Compare Word 0 Register (index = 2) -------- */
908 #define GMAC_ST2CW02_MASKVAL_Pos 0
909 #define GMAC_ST2CW02_MASKVAL_Msk (0xffffu << GMAC_ST2CW02_MASKVAL_Pos)
910 #define GMAC_ST2CW02_MASKVAL(value) ((GMAC_ST2CW02_MASKVAL_Msk & ((value) << GMAC_ST2CW02_MASKVAL_Pos)))
911 #define GMAC_ST2CW02_COMPVAL_Pos 16
912 #define GMAC_ST2CW02_COMPVAL_Msk (0xffffu << GMAC_ST2CW02_COMPVAL_Pos)
913 #define GMAC_ST2CW02_COMPVAL(value) ((GMAC_ST2CW02_COMPVAL_Msk & ((value) << GMAC_ST2CW02_COMPVAL_Pos)))
914 /* -------- GMAC_ST2CW12 : (GMAC Offset: 0x714) Screening Type 2 Compare Word 1 Register (index = 2) -------- */
915 #define GMAC_ST2CW12_OFFSVAL_Pos 0
916 #define GMAC_ST2CW12_OFFSVAL_Msk (0x7fu << GMAC_ST2CW12_OFFSVAL_Pos)
917 #define GMAC_ST2CW12_OFFSVAL(value) ((GMAC_ST2CW12_OFFSVAL_Msk & ((value) << GMAC_ST2CW12_OFFSVAL_Pos)))
918 #define GMAC_ST2CW12_OFFSSTRT_Pos 7
919 #define GMAC_ST2CW12_OFFSSTRT_Msk (0x3u << GMAC_ST2CW12_OFFSSTRT_Pos)
920 #define GMAC_ST2CW12_OFFSSTRT(value) ((GMAC_ST2CW12_OFFSSTRT_Msk & ((value) << GMAC_ST2CW12_OFFSSTRT_Pos)))
921 #define GMAC_ST2CW12_OFFSSTRT_FRAMESTART (0x0u << 7)
922 #define GMAC_ST2CW12_OFFSSTRT_ETHERTYPE (0x1u << 7)
923 #define GMAC_ST2CW12_OFFSSTRT_IP (0x2u << 7)
924 #define GMAC_ST2CW12_OFFSSTRT_TCP_UDP (0x3u << 7)
925 /* -------- GMAC_ST2CW03 : (GMAC Offset: 0x718) Screening Type 2 Compare Word 0 Register (index = 3) -------- */
926 #define GMAC_ST2CW03_MASKVAL_Pos 0
927 #define GMAC_ST2CW03_MASKVAL_Msk (0xffffu << GMAC_ST2CW03_MASKVAL_Pos)
928 #define GMAC_ST2CW03_MASKVAL(value) ((GMAC_ST2CW03_MASKVAL_Msk & ((value) << GMAC_ST2CW03_MASKVAL_Pos)))
929 #define GMAC_ST2CW03_COMPVAL_Pos 16
930 #define GMAC_ST2CW03_COMPVAL_Msk (0xffffu << GMAC_ST2CW03_COMPVAL_Pos)
931 #define GMAC_ST2CW03_COMPVAL(value) ((GMAC_ST2CW03_COMPVAL_Msk & ((value) << GMAC_ST2CW03_COMPVAL_Pos)))
932 /* -------- GMAC_ST2CW13 : (GMAC Offset: 0x71C) Screening Type 2 Compare Word 1 Register (index = 3) -------- */
933 #define GMAC_ST2CW13_OFFSVAL_Pos 0
934 #define GMAC_ST2CW13_OFFSVAL_Msk (0x7fu << GMAC_ST2CW13_OFFSVAL_Pos)
935 #define GMAC_ST2CW13_OFFSVAL(value) ((GMAC_ST2CW13_OFFSVAL_Msk & ((value) << GMAC_ST2CW13_OFFSVAL_Pos)))
936 #define GMAC_ST2CW13_OFFSSTRT_Pos 7
937 #define GMAC_ST2CW13_OFFSSTRT_Msk (0x3u << GMAC_ST2CW13_OFFSSTRT_Pos)
938 #define GMAC_ST2CW13_OFFSSTRT(value) ((GMAC_ST2CW13_OFFSSTRT_Msk & ((value) << GMAC_ST2CW13_OFFSSTRT_Pos)))
939 #define GMAC_ST2CW13_OFFSSTRT_FRAMESTART (0x0u << 7)
940 #define GMAC_ST2CW13_OFFSSTRT_ETHERTYPE (0x1u << 7)
941 #define GMAC_ST2CW13_OFFSSTRT_IP (0x2u << 7)
942 #define GMAC_ST2CW13_OFFSSTRT_TCP_UDP (0x3u << 7)
943 /* -------- GMAC_ST2CW04 : (GMAC Offset: 0x720) Screening Type 2 Compare Word 0 Register (index = 4) -------- */
944 #define GMAC_ST2CW04_MASKVAL_Pos 0
945 #define GMAC_ST2CW04_MASKVAL_Msk (0xffffu << GMAC_ST2CW04_MASKVAL_Pos)
946 #define GMAC_ST2CW04_MASKVAL(value) ((GMAC_ST2CW04_MASKVAL_Msk & ((value) << GMAC_ST2CW04_MASKVAL_Pos)))
947 #define GMAC_ST2CW04_COMPVAL_Pos 16
948 #define GMAC_ST2CW04_COMPVAL_Msk (0xffffu << GMAC_ST2CW04_COMPVAL_Pos)
949 #define GMAC_ST2CW04_COMPVAL(value) ((GMAC_ST2CW04_COMPVAL_Msk & ((value) << GMAC_ST2CW04_COMPVAL_Pos)))
950 /* -------- GMAC_ST2CW14 : (GMAC Offset: 0x724) Screening Type 2 Compare Word 1 Register (index = 4) -------- */
951 #define GMAC_ST2CW14_OFFSVAL_Pos 0
952 #define GMAC_ST2CW14_OFFSVAL_Msk (0x7fu << GMAC_ST2CW14_OFFSVAL_Pos)
953 #define GMAC_ST2CW14_OFFSVAL(value) ((GMAC_ST2CW14_OFFSVAL_Msk & ((value) << GMAC_ST2CW14_OFFSVAL_Pos)))
954 #define GMAC_ST2CW14_OFFSSTRT_Pos 7
955 #define GMAC_ST2CW14_OFFSSTRT_Msk (0x3u << GMAC_ST2CW14_OFFSSTRT_Pos)
956 #define GMAC_ST2CW14_OFFSSTRT(value) ((GMAC_ST2CW14_OFFSSTRT_Msk & ((value) << GMAC_ST2CW14_OFFSSTRT_Pos)))
957 #define GMAC_ST2CW14_OFFSSTRT_FRAMESTART (0x0u << 7)
958 #define GMAC_ST2CW14_OFFSSTRT_ETHERTYPE (0x1u << 7)
959 #define GMAC_ST2CW14_OFFSSTRT_IP (0x2u << 7)
960 #define GMAC_ST2CW14_OFFSSTRT_TCP_UDP (0x3u << 7)
961 /* -------- GMAC_ST2CW05 : (GMAC Offset: 0x728) Screening Type 2 Compare Word 0 Register (index = 5) -------- */
962 #define GMAC_ST2CW05_MASKVAL_Pos 0
963 #define GMAC_ST2CW05_MASKVAL_Msk (0xffffu << GMAC_ST2CW05_MASKVAL_Pos)
964 #define GMAC_ST2CW05_MASKVAL(value) ((GMAC_ST2CW05_MASKVAL_Msk & ((value) << GMAC_ST2CW05_MASKVAL_Pos)))
965 #define GMAC_ST2CW05_COMPVAL_Pos 16
966 #define GMAC_ST2CW05_COMPVAL_Msk (0xffffu << GMAC_ST2CW05_COMPVAL_Pos)
967 #define GMAC_ST2CW05_COMPVAL(value) ((GMAC_ST2CW05_COMPVAL_Msk & ((value) << GMAC_ST2CW05_COMPVAL_Pos)))
968 /* -------- GMAC_ST2CW15 : (GMAC Offset: 0x72C) Screening Type 2 Compare Word 1 Register (index = 5) -------- */
969 #define GMAC_ST2CW15_OFFSVAL_Pos 0
970 #define GMAC_ST2CW15_OFFSVAL_Msk (0x7fu << GMAC_ST2CW15_OFFSVAL_Pos)
971 #define GMAC_ST2CW15_OFFSVAL(value) ((GMAC_ST2CW15_OFFSVAL_Msk & ((value) << GMAC_ST2CW15_OFFSVAL_Pos)))
972 #define GMAC_ST2CW15_OFFSSTRT_Pos 7
973 #define GMAC_ST2CW15_OFFSSTRT_Msk (0x3u << GMAC_ST2CW15_OFFSSTRT_Pos)
974 #define GMAC_ST2CW15_OFFSSTRT(value) ((GMAC_ST2CW15_OFFSSTRT_Msk & ((value) << GMAC_ST2CW15_OFFSSTRT_Pos)))
975 #define GMAC_ST2CW15_OFFSSTRT_FRAMESTART (0x0u << 7)
976 #define GMAC_ST2CW15_OFFSSTRT_ETHERTYPE (0x1u << 7)
977 #define GMAC_ST2CW15_OFFSSTRT_IP (0x2u << 7)
978 #define GMAC_ST2CW15_OFFSSTRT_TCP_UDP (0x3u << 7)
979 /* -------- GMAC_ST2CW06 : (GMAC Offset: 0x730) Screening Type 2 Compare Word 0 Register (index = 6) -------- */
980 #define GMAC_ST2CW06_MASKVAL_Pos 0
981 #define GMAC_ST2CW06_MASKVAL_Msk (0xffffu << GMAC_ST2CW06_MASKVAL_Pos)
982 #define GMAC_ST2CW06_MASKVAL(value) ((GMAC_ST2CW06_MASKVAL_Msk & ((value) << GMAC_ST2CW06_MASKVAL_Pos)))
983 #define GMAC_ST2CW06_COMPVAL_Pos 16
984 #define GMAC_ST2CW06_COMPVAL_Msk (0xffffu << GMAC_ST2CW06_COMPVAL_Pos)
985 #define GMAC_ST2CW06_COMPVAL(value) ((GMAC_ST2CW06_COMPVAL_Msk & ((value) << GMAC_ST2CW06_COMPVAL_Pos)))
986 /* -------- GMAC_ST2CW16 : (GMAC Offset: 0x734) Screening Type 2 Compare Word 1 Register (index = 6) -------- */
987 #define GMAC_ST2CW16_OFFSVAL_Pos 0
988 #define GMAC_ST2CW16_OFFSVAL_Msk (0x7fu << GMAC_ST2CW16_OFFSVAL_Pos)
989 #define GMAC_ST2CW16_OFFSVAL(value) ((GMAC_ST2CW16_OFFSVAL_Msk & ((value) << GMAC_ST2CW16_OFFSVAL_Pos)))
990 #define GMAC_ST2CW16_OFFSSTRT_Pos 7
991 #define GMAC_ST2CW16_OFFSSTRT_Msk (0x3u << GMAC_ST2CW16_OFFSSTRT_Pos)
992 #define GMAC_ST2CW16_OFFSSTRT(value) ((GMAC_ST2CW16_OFFSSTRT_Msk & ((value) << GMAC_ST2CW16_OFFSSTRT_Pos)))
993 #define GMAC_ST2CW16_OFFSSTRT_FRAMESTART (0x0u << 7)
994 #define GMAC_ST2CW16_OFFSSTRT_ETHERTYPE (0x1u << 7)
995 #define GMAC_ST2CW16_OFFSSTRT_IP (0x2u << 7)
996 #define GMAC_ST2CW16_OFFSSTRT_TCP_UDP (0x3u << 7)
997 /* -------- GMAC_ST2CW07 : (GMAC Offset: 0x738) Screening Type 2 Compare Word 0 Register (index = 7) -------- */
998 #define GMAC_ST2CW07_MASKVAL_Pos 0
999 #define GMAC_ST2CW07_MASKVAL_Msk (0xffffu << GMAC_ST2CW07_MASKVAL_Pos)
1000 #define GMAC_ST2CW07_MASKVAL(value) ((GMAC_ST2CW07_MASKVAL_Msk & ((value) << GMAC_ST2CW07_MASKVAL_Pos)))
1001 #define GMAC_ST2CW07_COMPVAL_Pos 16
1002 #define GMAC_ST2CW07_COMPVAL_Msk (0xffffu << GMAC_ST2CW07_COMPVAL_Pos)
1003 #define GMAC_ST2CW07_COMPVAL(value) ((GMAC_ST2CW07_COMPVAL_Msk & ((value) << GMAC_ST2CW07_COMPVAL_Pos)))
1004 /* -------- GMAC_ST2CW17 : (GMAC Offset: 0x73C) Screening Type 2 Compare Word 1 Register (index = 7) -------- */
1005 #define GMAC_ST2CW17_OFFSVAL_Pos 0
1006 #define GMAC_ST2CW17_OFFSVAL_Msk (0x7fu << GMAC_ST2CW17_OFFSVAL_Pos)
1007 #define GMAC_ST2CW17_OFFSVAL(value) ((GMAC_ST2CW17_OFFSVAL_Msk & ((value) << GMAC_ST2CW17_OFFSVAL_Pos)))
1008 #define GMAC_ST2CW17_OFFSSTRT_Pos 7
1009 #define GMAC_ST2CW17_OFFSSTRT_Msk (0x3u << GMAC_ST2CW17_OFFSSTRT_Pos)
1010 #define GMAC_ST2CW17_OFFSSTRT(value) ((GMAC_ST2CW17_OFFSSTRT_Msk & ((value) << GMAC_ST2CW17_OFFSSTRT_Pos)))
1011 #define GMAC_ST2CW17_OFFSSTRT_FRAMESTART (0x0u << 7)
1012 #define GMAC_ST2CW17_OFFSSTRT_ETHERTYPE (0x1u << 7)
1013 #define GMAC_ST2CW17_OFFSSTRT_IP (0x2u << 7)
1014 #define GMAC_ST2CW17_OFFSSTRT_TCP_UDP (0x3u << 7)
1015 /* -------- GMAC_ST2CW08 : (GMAC Offset: 0x740) Screening Type 2 Compare Word 0 Register (index = 8) -------- */
1016 #define GMAC_ST2CW08_MASKVAL_Pos 0
1017 #define GMAC_ST2CW08_MASKVAL_Msk (0xffffu << GMAC_ST2CW08_MASKVAL_Pos)
1018 #define GMAC_ST2CW08_MASKVAL(value) ((GMAC_ST2CW08_MASKVAL_Msk & ((value) << GMAC_ST2CW08_MASKVAL_Pos)))
1019 #define GMAC_ST2CW08_COMPVAL_Pos 16
1020 #define GMAC_ST2CW08_COMPVAL_Msk (0xffffu << GMAC_ST2CW08_COMPVAL_Pos)
1021 #define GMAC_ST2CW08_COMPVAL(value) ((GMAC_ST2CW08_COMPVAL_Msk & ((value) << GMAC_ST2CW08_COMPVAL_Pos)))
1022 /* -------- GMAC_ST2CW18 : (GMAC Offset: 0x744) Screening Type 2 Compare Word 1 Register (index = 8) -------- */
1023 #define GMAC_ST2CW18_OFFSVAL_Pos 0
1024 #define GMAC_ST2CW18_OFFSVAL_Msk (0x7fu << GMAC_ST2CW18_OFFSVAL_Pos)
1025 #define GMAC_ST2CW18_OFFSVAL(value) ((GMAC_ST2CW18_OFFSVAL_Msk & ((value) << GMAC_ST2CW18_OFFSVAL_Pos)))
1026 #define GMAC_ST2CW18_OFFSSTRT_Pos 7
1027 #define GMAC_ST2CW18_OFFSSTRT_Msk (0x3u << GMAC_ST2CW18_OFFSSTRT_Pos)
1028 #define GMAC_ST2CW18_OFFSSTRT(value) ((GMAC_ST2CW18_OFFSSTRT_Msk & ((value) << GMAC_ST2CW18_OFFSSTRT_Pos)))
1029 #define GMAC_ST2CW18_OFFSSTRT_FRAMESTART (0x0u << 7)
1030 #define GMAC_ST2CW18_OFFSSTRT_ETHERTYPE (0x1u << 7)
1031 #define GMAC_ST2CW18_OFFSSTRT_IP (0x2u << 7)
1032 #define GMAC_ST2CW18_OFFSSTRT_TCP_UDP (0x3u << 7)
1033 /* -------- GMAC_ST2CW09 : (GMAC Offset: 0x748) Screening Type 2 Compare Word 0 Register (index = 9) -------- */
1034 #define GMAC_ST2CW09_MASKVAL_Pos 0
1035 #define GMAC_ST2CW09_MASKVAL_Msk (0xffffu << GMAC_ST2CW09_MASKVAL_Pos)
1036 #define GMAC_ST2CW09_MASKVAL(value) ((GMAC_ST2CW09_MASKVAL_Msk & ((value) << GMAC_ST2CW09_MASKVAL_Pos)))
1037 #define GMAC_ST2CW09_COMPVAL_Pos 16
1038 #define GMAC_ST2CW09_COMPVAL_Msk (0xffffu << GMAC_ST2CW09_COMPVAL_Pos)
1039 #define GMAC_ST2CW09_COMPVAL(value) ((GMAC_ST2CW09_COMPVAL_Msk & ((value) << GMAC_ST2CW09_COMPVAL_Pos)))
1040 /* -------- GMAC_ST2CW19 : (GMAC Offset: 0x74C) Screening Type 2 Compare Word 1 Register (index = 9) -------- */
1041 #define GMAC_ST2CW19_OFFSVAL_Pos 0
1042 #define GMAC_ST2CW19_OFFSVAL_Msk (0x7fu << GMAC_ST2CW19_OFFSVAL_Pos)
1043 #define GMAC_ST2CW19_OFFSVAL(value) ((GMAC_ST2CW19_OFFSVAL_Msk & ((value) << GMAC_ST2CW19_OFFSVAL_Pos)))
1044 #define GMAC_ST2CW19_OFFSSTRT_Pos 7
1045 #define GMAC_ST2CW19_OFFSSTRT_Msk (0x3u << GMAC_ST2CW19_OFFSSTRT_Pos)
1046 #define GMAC_ST2CW19_OFFSSTRT(value) ((GMAC_ST2CW19_OFFSSTRT_Msk & ((value) << GMAC_ST2CW19_OFFSSTRT_Pos)))
1047 #define GMAC_ST2CW19_OFFSSTRT_FRAMESTART (0x0u << 7)
1048 #define GMAC_ST2CW19_OFFSSTRT_ETHERTYPE (0x1u << 7)
1049 #define GMAC_ST2CW19_OFFSSTRT_IP (0x2u << 7)
1050 #define GMAC_ST2CW19_OFFSSTRT_TCP_UDP (0x3u << 7)
1051 /* -------- GMAC_ST2CW010 : (GMAC Offset: 0x750) Screening Type 2 Compare Word 0 Register (index = 10) -------- */
1052 #define GMAC_ST2CW010_MASKVAL_Pos 0
1053 #define GMAC_ST2CW010_MASKVAL_Msk (0xffffu << GMAC_ST2CW010_MASKVAL_Pos)
1054 #define GMAC_ST2CW010_MASKVAL(value) ((GMAC_ST2CW010_MASKVAL_Msk & ((value) << GMAC_ST2CW010_MASKVAL_Pos)))
1055 #define GMAC_ST2CW010_COMPVAL_Pos 16
1056 #define GMAC_ST2CW010_COMPVAL_Msk (0xffffu << GMAC_ST2CW010_COMPVAL_Pos)
1057 #define GMAC_ST2CW010_COMPVAL(value) ((GMAC_ST2CW010_COMPVAL_Msk & ((value) << GMAC_ST2CW010_COMPVAL_Pos)))
1058 /* -------- GMAC_ST2CW110 : (GMAC Offset: 0x754) Screening Type 2 Compare Word 1 Register (index = 10) -------- */
1059 #define GMAC_ST2CW110_OFFSVAL_Pos 0
1060 #define GMAC_ST2CW110_OFFSVAL_Msk (0x7fu << GMAC_ST2CW110_OFFSVAL_Pos)
1061 #define GMAC_ST2CW110_OFFSVAL(value) ((GMAC_ST2CW110_OFFSVAL_Msk & ((value) << GMAC_ST2CW110_OFFSVAL_Pos)))
1062 #define GMAC_ST2CW110_OFFSSTRT_Pos 7
1063 #define GMAC_ST2CW110_OFFSSTRT_Msk (0x3u << GMAC_ST2CW110_OFFSSTRT_Pos)
1064 #define GMAC_ST2CW110_OFFSSTRT(value) ((GMAC_ST2CW110_OFFSSTRT_Msk & ((value) << GMAC_ST2CW110_OFFSSTRT_Pos)))
1065 #define GMAC_ST2CW110_OFFSSTRT_FRAMESTART (0x0u << 7)
1066 #define GMAC_ST2CW110_OFFSSTRT_ETHERTYPE (0x1u << 7)
1067 #define GMAC_ST2CW110_OFFSSTRT_IP (0x2u << 7)
1068 #define GMAC_ST2CW110_OFFSSTRT_TCP_UDP (0x3u << 7)
1069 /* -------- GMAC_ST2CW011 : (GMAC Offset: 0x758) Screening Type 2 Compare Word 0 Register (index = 11) -------- */
1070 #define GMAC_ST2CW011_MASKVAL_Pos 0
1071 #define GMAC_ST2CW011_MASKVAL_Msk (0xffffu << GMAC_ST2CW011_MASKVAL_Pos)
1072 #define GMAC_ST2CW011_MASKVAL(value) ((GMAC_ST2CW011_MASKVAL_Msk & ((value) << GMAC_ST2CW011_MASKVAL_Pos)))
1073 #define GMAC_ST2CW011_COMPVAL_Pos 16
1074 #define GMAC_ST2CW011_COMPVAL_Msk (0xffffu << GMAC_ST2CW011_COMPVAL_Pos)
1075 #define GMAC_ST2CW011_COMPVAL(value) ((GMAC_ST2CW011_COMPVAL_Msk & ((value) << GMAC_ST2CW011_COMPVAL_Pos)))
1076 /* -------- GMAC_ST2CW111 : (GMAC Offset: 0x75C) Screening Type 2 Compare Word 1 Register (index = 11) -------- */
1077 #define GMAC_ST2CW111_OFFSVAL_Pos 0
1078 #define GMAC_ST2CW111_OFFSVAL_Msk (0x7fu << GMAC_ST2CW111_OFFSVAL_Pos)
1079 #define GMAC_ST2CW111_OFFSVAL(value) ((GMAC_ST2CW111_OFFSVAL_Msk & ((value) << GMAC_ST2CW111_OFFSVAL_Pos)))
1080 #define GMAC_ST2CW111_OFFSSTRT_Pos 7
1081 #define GMAC_ST2CW111_OFFSSTRT_Msk (0x3u << GMAC_ST2CW111_OFFSSTRT_Pos)
1082 #define GMAC_ST2CW111_OFFSSTRT(value) ((GMAC_ST2CW111_OFFSSTRT_Msk & ((value) << GMAC_ST2CW111_OFFSSTRT_Pos)))
1083 #define GMAC_ST2CW111_OFFSSTRT_FRAMESTART (0x0u << 7)
1084 #define GMAC_ST2CW111_OFFSSTRT_ETHERTYPE (0x1u << 7)
1085 #define GMAC_ST2CW111_OFFSSTRT_IP (0x2u << 7)
1086 #define GMAC_ST2CW111_OFFSSTRT_TCP_UDP (0x3u << 7)
1087 /* -------- GMAC_ST2CW012 : (GMAC Offset: 0x760) Screening Type 2 Compare Word 0 Register (index = 12) -------- */
1088 #define GMAC_ST2CW012_MASKVAL_Pos 0
1089 #define GMAC_ST2CW012_MASKVAL_Msk (0xffffu << GMAC_ST2CW012_MASKVAL_Pos)
1090 #define GMAC_ST2CW012_MASKVAL(value) ((GMAC_ST2CW012_MASKVAL_Msk & ((value) << GMAC_ST2CW012_MASKVAL_Pos)))
1091 #define GMAC_ST2CW012_COMPVAL_Pos 16
1092 #define GMAC_ST2CW012_COMPVAL_Msk (0xffffu << GMAC_ST2CW012_COMPVAL_Pos)
1093 #define GMAC_ST2CW012_COMPVAL(value) ((GMAC_ST2CW012_COMPVAL_Msk & ((value) << GMAC_ST2CW012_COMPVAL_Pos)))
1094 /* -------- GMAC_ST2CW112 : (GMAC Offset: 0x764) Screening Type 2 Compare Word 1 Register (index = 12) -------- */
1095 #define GMAC_ST2CW112_OFFSVAL_Pos 0
1096 #define GMAC_ST2CW112_OFFSVAL_Msk (0x7fu << GMAC_ST2CW112_OFFSVAL_Pos)
1097 #define GMAC_ST2CW112_OFFSVAL(value) ((GMAC_ST2CW112_OFFSVAL_Msk & ((value) << GMAC_ST2CW112_OFFSVAL_Pos)))
1098 #define GMAC_ST2CW112_OFFSSTRT_Pos 7
1099 #define GMAC_ST2CW112_OFFSSTRT_Msk (0x3u << GMAC_ST2CW112_OFFSSTRT_Pos)
1100 #define GMAC_ST2CW112_OFFSSTRT(value) ((GMAC_ST2CW112_OFFSSTRT_Msk & ((value) << GMAC_ST2CW112_OFFSSTRT_Pos)))
1101 #define GMAC_ST2CW112_OFFSSTRT_FRAMESTART (0x0u << 7)
1102 #define GMAC_ST2CW112_OFFSSTRT_ETHERTYPE (0x1u << 7)
1103 #define GMAC_ST2CW112_OFFSSTRT_IP (0x2u << 7)
1104 #define GMAC_ST2CW112_OFFSSTRT_TCP_UDP (0x3u << 7)
1105 /* -------- GMAC_ST2CW013 : (GMAC Offset: 0x768) Screening Type 2 Compare Word 0 Register (index = 13) -------- */
1106 #define GMAC_ST2CW013_MASKVAL_Pos 0
1107 #define GMAC_ST2CW013_MASKVAL_Msk (0xffffu << GMAC_ST2CW013_MASKVAL_Pos)
1108 #define GMAC_ST2CW013_MASKVAL(value) ((GMAC_ST2CW013_MASKVAL_Msk & ((value) << GMAC_ST2CW013_MASKVAL_Pos)))
1109 #define GMAC_ST2CW013_COMPVAL_Pos 16
1110 #define GMAC_ST2CW013_COMPVAL_Msk (0xffffu << GMAC_ST2CW013_COMPVAL_Pos)
1111 #define GMAC_ST2CW013_COMPVAL(value) ((GMAC_ST2CW013_COMPVAL_Msk & ((value) << GMAC_ST2CW013_COMPVAL_Pos)))
1112 /* -------- GMAC_ST2CW113 : (GMAC Offset: 0x76C) Screening Type 2 Compare Word 1 Register (index = 13) -------- */
1113 #define GMAC_ST2CW113_OFFSVAL_Pos 0
1114 #define GMAC_ST2CW113_OFFSVAL_Msk (0x7fu << GMAC_ST2CW113_OFFSVAL_Pos)
1115 #define GMAC_ST2CW113_OFFSVAL(value) ((GMAC_ST2CW113_OFFSVAL_Msk & ((value) << GMAC_ST2CW113_OFFSVAL_Pos)))
1116 #define GMAC_ST2CW113_OFFSSTRT_Pos 7
1117 #define GMAC_ST2CW113_OFFSSTRT_Msk (0x3u << GMAC_ST2CW113_OFFSSTRT_Pos)
1118 #define GMAC_ST2CW113_OFFSSTRT(value) ((GMAC_ST2CW113_OFFSSTRT_Msk & ((value) << GMAC_ST2CW113_OFFSSTRT_Pos)))
1119 #define GMAC_ST2CW113_OFFSSTRT_FRAMESTART (0x0u << 7)
1120 #define GMAC_ST2CW113_OFFSSTRT_ETHERTYPE (0x1u << 7)
1121 #define GMAC_ST2CW113_OFFSSTRT_IP (0x2u << 7)
1122 #define GMAC_ST2CW113_OFFSSTRT_TCP_UDP (0x3u << 7)
1123 /* -------- GMAC_ST2CW014 : (GMAC Offset: 0x770) Screening Type 2 Compare Word 0 Register (index = 14) -------- */
1124 #define GMAC_ST2CW014_MASKVAL_Pos 0
1125 #define GMAC_ST2CW014_MASKVAL_Msk (0xffffu << GMAC_ST2CW014_MASKVAL_Pos)
1126 #define GMAC_ST2CW014_MASKVAL(value) ((GMAC_ST2CW014_MASKVAL_Msk & ((value) << GMAC_ST2CW014_MASKVAL_Pos)))
1127 #define GMAC_ST2CW014_COMPVAL_Pos 16
1128 #define GMAC_ST2CW014_COMPVAL_Msk (0xffffu << GMAC_ST2CW014_COMPVAL_Pos)
1129 #define GMAC_ST2CW014_COMPVAL(value) ((GMAC_ST2CW014_COMPVAL_Msk & ((value) << GMAC_ST2CW014_COMPVAL_Pos)))
1130 /* -------- GMAC_ST2CW114 : (GMAC Offset: 0x774) Screening Type 2 Compare Word 1 Register (index = 14) -------- */
1131 #define GMAC_ST2CW114_OFFSVAL_Pos 0
1132 #define GMAC_ST2CW114_OFFSVAL_Msk (0x7fu << GMAC_ST2CW114_OFFSVAL_Pos)
1133 #define GMAC_ST2CW114_OFFSVAL(value) ((GMAC_ST2CW114_OFFSVAL_Msk & ((value) << GMAC_ST2CW114_OFFSVAL_Pos)))
1134 #define GMAC_ST2CW114_OFFSSTRT_Pos 7
1135 #define GMAC_ST2CW114_OFFSSTRT_Msk (0x3u << GMAC_ST2CW114_OFFSSTRT_Pos)
1136 #define GMAC_ST2CW114_OFFSSTRT(value) ((GMAC_ST2CW114_OFFSSTRT_Msk & ((value) << GMAC_ST2CW114_OFFSSTRT_Pos)))
1137 #define GMAC_ST2CW114_OFFSSTRT_FRAMESTART (0x0u << 7)
1138 #define GMAC_ST2CW114_OFFSSTRT_ETHERTYPE (0x1u << 7)
1139 #define GMAC_ST2CW114_OFFSSTRT_IP (0x2u << 7)
1140 #define GMAC_ST2CW114_OFFSSTRT_TCP_UDP (0x3u << 7)
1141 /* -------- GMAC_ST2CW015 : (GMAC Offset: 0x778) Screening Type 2 Compare Word 0 Register (index = 15) -------- */
1142 #define GMAC_ST2CW015_MASKVAL_Pos 0
1143 #define GMAC_ST2CW015_MASKVAL_Msk (0xffffu << GMAC_ST2CW015_MASKVAL_Pos)
1144 #define GMAC_ST2CW015_MASKVAL(value) ((GMAC_ST2CW015_MASKVAL_Msk & ((value) << GMAC_ST2CW015_MASKVAL_Pos)))
1145 #define GMAC_ST2CW015_COMPVAL_Pos 16
1146 #define GMAC_ST2CW015_COMPVAL_Msk (0xffffu << GMAC_ST2CW015_COMPVAL_Pos)
1147 #define GMAC_ST2CW015_COMPVAL(value) ((GMAC_ST2CW015_COMPVAL_Msk & ((value) << GMAC_ST2CW015_COMPVAL_Pos)))
1148 /* -------- GMAC_ST2CW115 : (GMAC Offset: 0x77C) Screening Type 2 Compare Word 1 Register (index = 15) -------- */
1149 #define GMAC_ST2CW115_OFFSVAL_Pos 0
1150 #define GMAC_ST2CW115_OFFSVAL_Msk (0x7fu << GMAC_ST2CW115_OFFSVAL_Pos)
1151 #define GMAC_ST2CW115_OFFSVAL(value) ((GMAC_ST2CW115_OFFSVAL_Msk & ((value) << GMAC_ST2CW115_OFFSVAL_Pos)))
1152 #define GMAC_ST2CW115_OFFSSTRT_Pos 7
1153 #define GMAC_ST2CW115_OFFSSTRT_Msk (0x3u << GMAC_ST2CW115_OFFSSTRT_Pos)
1154 #define GMAC_ST2CW115_OFFSSTRT(value) ((GMAC_ST2CW115_OFFSSTRT_Msk & ((value) << GMAC_ST2CW115_OFFSSTRT_Pos)))
1155 #define GMAC_ST2CW115_OFFSSTRT_FRAMESTART (0x0u << 7)
1156 #define GMAC_ST2CW115_OFFSSTRT_ETHERTYPE (0x1u << 7)
1157 #define GMAC_ST2CW115_OFFSSTRT_IP (0x2u << 7)
1158 #define GMAC_ST2CW115_OFFSSTRT_TCP_UDP (0x3u << 7)
1159 /* -------- GMAC_ST2CW016 : (GMAC Offset: 0x780) Screening Type 2 Compare Word 0 Register (index = 16) -------- */
1160 #define GMAC_ST2CW016_MASKVAL_Pos 0
1161 #define GMAC_ST2CW016_MASKVAL_Msk (0xffffu << GMAC_ST2CW016_MASKVAL_Pos)
1162 #define GMAC_ST2CW016_MASKVAL(value) ((GMAC_ST2CW016_MASKVAL_Msk & ((value) << GMAC_ST2CW016_MASKVAL_Pos)))
1163 #define GMAC_ST2CW016_COMPVAL_Pos 16
1164 #define GMAC_ST2CW016_COMPVAL_Msk (0xffffu << GMAC_ST2CW016_COMPVAL_Pos)
1165 #define GMAC_ST2CW016_COMPVAL(value) ((GMAC_ST2CW016_COMPVAL_Msk & ((value) << GMAC_ST2CW016_COMPVAL_Pos)))
1166 /* -------- GMAC_ST2CW116 : (GMAC Offset: 0x784) Screening Type 2 Compare Word 1 Register (index = 16) -------- */
1167 #define GMAC_ST2CW116_OFFSVAL_Pos 0
1168 #define GMAC_ST2CW116_OFFSVAL_Msk (0x7fu << GMAC_ST2CW116_OFFSVAL_Pos)
1169 #define GMAC_ST2CW116_OFFSVAL(value) ((GMAC_ST2CW116_OFFSVAL_Msk & ((value) << GMAC_ST2CW116_OFFSVAL_Pos)))
1170 #define GMAC_ST2CW116_OFFSSTRT_Pos 7
1171 #define GMAC_ST2CW116_OFFSSTRT_Msk (0x3u << GMAC_ST2CW116_OFFSSTRT_Pos)
1172 #define GMAC_ST2CW116_OFFSSTRT(value) ((GMAC_ST2CW116_OFFSSTRT_Msk & ((value) << GMAC_ST2CW116_OFFSSTRT_Pos)))
1173 #define GMAC_ST2CW116_OFFSSTRT_FRAMESTART (0x0u << 7)
1174 #define GMAC_ST2CW116_OFFSSTRT_ETHERTYPE (0x1u << 7)
1175 #define GMAC_ST2CW116_OFFSSTRT_IP (0x2u << 7)
1176 #define GMAC_ST2CW116_OFFSSTRT_TCP_UDP (0x3u << 7)
1177 /* -------- GMAC_ST2CW017 : (GMAC Offset: 0x788) Screening Type 2 Compare Word 0 Register (index = 17) -------- */
1178 #define GMAC_ST2CW017_MASKVAL_Pos 0
1179 #define GMAC_ST2CW017_MASKVAL_Msk (0xffffu << GMAC_ST2CW017_MASKVAL_Pos)
1180 #define GMAC_ST2CW017_MASKVAL(value) ((GMAC_ST2CW017_MASKVAL_Msk & ((value) << GMAC_ST2CW017_MASKVAL_Pos)))
1181 #define GMAC_ST2CW017_COMPVAL_Pos 16
1182 #define GMAC_ST2CW017_COMPVAL_Msk (0xffffu << GMAC_ST2CW017_COMPVAL_Pos)
1183 #define GMAC_ST2CW017_COMPVAL(value) ((GMAC_ST2CW017_COMPVAL_Msk & ((value) << GMAC_ST2CW017_COMPVAL_Pos)))
1184 /* -------- GMAC_ST2CW117 : (GMAC Offset: 0x78C) Screening Type 2 Compare Word 1 Register (index = 17) -------- */
1185 #define GMAC_ST2CW117_OFFSVAL_Pos 0
1186 #define GMAC_ST2CW117_OFFSVAL_Msk (0x7fu << GMAC_ST2CW117_OFFSVAL_Pos)
1187 #define GMAC_ST2CW117_OFFSVAL(value) ((GMAC_ST2CW117_OFFSVAL_Msk & ((value) << GMAC_ST2CW117_OFFSVAL_Pos)))
1188 #define GMAC_ST2CW117_OFFSSTRT_Pos 7
1189 #define GMAC_ST2CW117_OFFSSTRT_Msk (0x3u << GMAC_ST2CW117_OFFSSTRT_Pos)
1190 #define GMAC_ST2CW117_OFFSSTRT(value) ((GMAC_ST2CW117_OFFSSTRT_Msk & ((value) << GMAC_ST2CW117_OFFSSTRT_Pos)))
1191 #define GMAC_ST2CW117_OFFSSTRT_FRAMESTART (0x0u << 7)
1192 #define GMAC_ST2CW117_OFFSSTRT_ETHERTYPE (0x1u << 7)
1193 #define GMAC_ST2CW117_OFFSSTRT_IP (0x2u << 7)
1194 #define GMAC_ST2CW117_OFFSSTRT_TCP_UDP (0x3u << 7)
1195 /* -------- GMAC_ST2CW018 : (GMAC Offset: 0x790) Screening Type 2 Compare Word 0 Register (index = 18) -------- */
1196 #define GMAC_ST2CW018_MASKVAL_Pos 0
1197 #define GMAC_ST2CW018_MASKVAL_Msk (0xffffu << GMAC_ST2CW018_MASKVAL_Pos)
1198 #define GMAC_ST2CW018_MASKVAL(value) ((GMAC_ST2CW018_MASKVAL_Msk & ((value) << GMAC_ST2CW018_MASKVAL_Pos)))
1199 #define GMAC_ST2CW018_COMPVAL_Pos 16
1200 #define GMAC_ST2CW018_COMPVAL_Msk (0xffffu << GMAC_ST2CW018_COMPVAL_Pos)
1201 #define GMAC_ST2CW018_COMPVAL(value) ((GMAC_ST2CW018_COMPVAL_Msk & ((value) << GMAC_ST2CW018_COMPVAL_Pos)))
1202 /* -------- GMAC_ST2CW118 : (GMAC Offset: 0x794) Screening Type 2 Compare Word 1 Register (index = 18) -------- */
1203 #define GMAC_ST2CW118_OFFSVAL_Pos 0
1204 #define GMAC_ST2CW118_OFFSVAL_Msk (0x7fu << GMAC_ST2CW118_OFFSVAL_Pos)
1205 #define GMAC_ST2CW118_OFFSVAL(value) ((GMAC_ST2CW118_OFFSVAL_Msk & ((value) << GMAC_ST2CW118_OFFSVAL_Pos)))
1206 #define GMAC_ST2CW118_OFFSSTRT_Pos 7
1207 #define GMAC_ST2CW118_OFFSSTRT_Msk (0x3u << GMAC_ST2CW118_OFFSSTRT_Pos)
1208 #define GMAC_ST2CW118_OFFSSTRT(value) ((GMAC_ST2CW118_OFFSSTRT_Msk & ((value) << GMAC_ST2CW118_OFFSSTRT_Pos)))
1209 #define GMAC_ST2CW118_OFFSSTRT_FRAMESTART (0x0u << 7)
1210 #define GMAC_ST2CW118_OFFSSTRT_ETHERTYPE (0x1u << 7)
1211 #define GMAC_ST2CW118_OFFSSTRT_IP (0x2u << 7)
1212 #define GMAC_ST2CW118_OFFSSTRT_TCP_UDP (0x3u << 7)
1213 /* -------- GMAC_ST2CW019 : (GMAC Offset: 0x798) Screening Type 2 Compare Word 0 Register (index = 19) -------- */
1214 #define GMAC_ST2CW019_MASKVAL_Pos 0
1215 #define GMAC_ST2CW019_MASKVAL_Msk (0xffffu << GMAC_ST2CW019_MASKVAL_Pos)
1216 #define GMAC_ST2CW019_MASKVAL(value) ((GMAC_ST2CW019_MASKVAL_Msk & ((value) << GMAC_ST2CW019_MASKVAL_Pos)))
1217 #define GMAC_ST2CW019_COMPVAL_Pos 16
1218 #define GMAC_ST2CW019_COMPVAL_Msk (0xffffu << GMAC_ST2CW019_COMPVAL_Pos)
1219 #define GMAC_ST2CW019_COMPVAL(value) ((GMAC_ST2CW019_COMPVAL_Msk & ((value) << GMAC_ST2CW019_COMPVAL_Pos)))
1220 /* -------- GMAC_ST2CW119 : (GMAC Offset: 0x79C) Screening Type 2 Compare Word 1 Register (index = 19) -------- */
1221 #define GMAC_ST2CW119_OFFSVAL_Pos 0
1222 #define GMAC_ST2CW119_OFFSVAL_Msk (0x7fu << GMAC_ST2CW119_OFFSVAL_Pos)
1223 #define GMAC_ST2CW119_OFFSVAL(value) ((GMAC_ST2CW119_OFFSVAL_Msk & ((value) << GMAC_ST2CW119_OFFSVAL_Pos)))
1224 #define GMAC_ST2CW119_OFFSSTRT_Pos 7
1225 #define GMAC_ST2CW119_OFFSSTRT_Msk (0x3u << GMAC_ST2CW119_OFFSSTRT_Pos)
1226 #define GMAC_ST2CW119_OFFSSTRT(value) ((GMAC_ST2CW119_OFFSSTRT_Msk & ((value) << GMAC_ST2CW119_OFFSSTRT_Pos)))
1227 #define GMAC_ST2CW119_OFFSSTRT_FRAMESTART (0x0u << 7)
1228 #define GMAC_ST2CW119_OFFSSTRT_ETHERTYPE (0x1u << 7)
1229 #define GMAC_ST2CW119_OFFSSTRT_IP (0x2u << 7)
1230 #define GMAC_ST2CW119_OFFSSTRT_TCP_UDP (0x3u << 7)
1231 /* -------- GMAC_ST2CW020 : (GMAC Offset: 0x7A0) Screening Type 2 Compare Word 0 Register (index = 20) -------- */
1232 #define GMAC_ST2CW020_MASKVAL_Pos 0
1233 #define GMAC_ST2CW020_MASKVAL_Msk (0xffffu << GMAC_ST2CW020_MASKVAL_Pos)
1234 #define GMAC_ST2CW020_MASKVAL(value) ((GMAC_ST2CW020_MASKVAL_Msk & ((value) << GMAC_ST2CW020_MASKVAL_Pos)))
1235 #define GMAC_ST2CW020_COMPVAL_Pos 16
1236 #define GMAC_ST2CW020_COMPVAL_Msk (0xffffu << GMAC_ST2CW020_COMPVAL_Pos)
1237 #define GMAC_ST2CW020_COMPVAL(value) ((GMAC_ST2CW020_COMPVAL_Msk & ((value) << GMAC_ST2CW020_COMPVAL_Pos)))
1238 /* -------- GMAC_ST2CW120 : (GMAC Offset: 0x7A4) Screening Type 2 Compare Word 1 Register (index = 20) -------- */
1239 #define GMAC_ST2CW120_OFFSVAL_Pos 0
1240 #define GMAC_ST2CW120_OFFSVAL_Msk (0x7fu << GMAC_ST2CW120_OFFSVAL_Pos)
1241 #define GMAC_ST2CW120_OFFSVAL(value) ((GMAC_ST2CW120_OFFSVAL_Msk & ((value) << GMAC_ST2CW120_OFFSVAL_Pos)))
1242 #define GMAC_ST2CW120_OFFSSTRT_Pos 7
1243 #define GMAC_ST2CW120_OFFSSTRT_Msk (0x3u << GMAC_ST2CW120_OFFSSTRT_Pos)
1244 #define GMAC_ST2CW120_OFFSSTRT(value) ((GMAC_ST2CW120_OFFSSTRT_Msk & ((value) << GMAC_ST2CW120_OFFSSTRT_Pos)))
1245 #define GMAC_ST2CW120_OFFSSTRT_FRAMESTART (0x0u << 7)
1246 #define GMAC_ST2CW120_OFFSSTRT_ETHERTYPE (0x1u << 7)
1247 #define GMAC_ST2CW120_OFFSSTRT_IP (0x2u << 7)
1248 #define GMAC_ST2CW120_OFFSSTRT_TCP_UDP (0x3u << 7)
1249 /* -------- GMAC_ST2CW021 : (GMAC Offset: 0x7A8) Screening Type 2 Compare Word 0 Register (index = 21) -------- */
1250 #define GMAC_ST2CW021_MASKVAL_Pos 0
1251 #define GMAC_ST2CW021_MASKVAL_Msk (0xffffu << GMAC_ST2CW021_MASKVAL_Pos)
1252 #define GMAC_ST2CW021_MASKVAL(value) ((GMAC_ST2CW021_MASKVAL_Msk & ((value) << GMAC_ST2CW021_MASKVAL_Pos)))
1253 #define GMAC_ST2CW021_COMPVAL_Pos 16
1254 #define GMAC_ST2CW021_COMPVAL_Msk (0xffffu << GMAC_ST2CW021_COMPVAL_Pos)
1255 #define GMAC_ST2CW021_COMPVAL(value) ((GMAC_ST2CW021_COMPVAL_Msk & ((value) << GMAC_ST2CW021_COMPVAL_Pos)))
1256 /* -------- GMAC_ST2CW121 : (GMAC Offset: 0x7AC) Screening Type 2 Compare Word 1 Register (index = 21) -------- */
1257 #define GMAC_ST2CW121_OFFSVAL_Pos 0
1258 #define GMAC_ST2CW121_OFFSVAL_Msk (0x7fu << GMAC_ST2CW121_OFFSVAL_Pos)
1259 #define GMAC_ST2CW121_OFFSVAL(value) ((GMAC_ST2CW121_OFFSVAL_Msk & ((value) << GMAC_ST2CW121_OFFSVAL_Pos)))
1260 #define GMAC_ST2CW121_OFFSSTRT_Pos 7
1261 #define GMAC_ST2CW121_OFFSSTRT_Msk (0x3u << GMAC_ST2CW121_OFFSSTRT_Pos)
1262 #define GMAC_ST2CW121_OFFSSTRT(value) ((GMAC_ST2CW121_OFFSSTRT_Msk & ((value) << GMAC_ST2CW121_OFFSSTRT_Pos)))
1263 #define GMAC_ST2CW121_OFFSSTRT_FRAMESTART (0x0u << 7)
1264 #define GMAC_ST2CW121_OFFSSTRT_ETHERTYPE (0x1u << 7)
1265 #define GMAC_ST2CW121_OFFSSTRT_IP (0x2u << 7)
1266 #define GMAC_ST2CW121_OFFSSTRT_TCP_UDP (0x3u << 7)
1267 /* -------- GMAC_ST2CW022 : (GMAC Offset: 0x7B0) Screening Type 2 Compare Word 0 Register (index = 22) -------- */
1268 #define GMAC_ST2CW022_MASKVAL_Pos 0
1269 #define GMAC_ST2CW022_MASKVAL_Msk (0xffffu << GMAC_ST2CW022_MASKVAL_Pos)
1270 #define GMAC_ST2CW022_MASKVAL(value) ((GMAC_ST2CW022_MASKVAL_Msk & ((value) << GMAC_ST2CW022_MASKVAL_Pos)))
1271 #define GMAC_ST2CW022_COMPVAL_Pos 16
1272 #define GMAC_ST2CW022_COMPVAL_Msk (0xffffu << GMAC_ST2CW022_COMPVAL_Pos)
1273 #define GMAC_ST2CW022_COMPVAL(value) ((GMAC_ST2CW022_COMPVAL_Msk & ((value) << GMAC_ST2CW022_COMPVAL_Pos)))
1274 /* -------- GMAC_ST2CW122 : (GMAC Offset: 0x7B4) Screening Type 2 Compare Word 1 Register (index = 22) -------- */
1275 #define GMAC_ST2CW122_OFFSVAL_Pos 0
1276 #define GMAC_ST2CW122_OFFSVAL_Msk (0x7fu << GMAC_ST2CW122_OFFSVAL_Pos)
1277 #define GMAC_ST2CW122_OFFSVAL(value) ((GMAC_ST2CW122_OFFSVAL_Msk & ((value) << GMAC_ST2CW122_OFFSVAL_Pos)))
1278 #define GMAC_ST2CW122_OFFSSTRT_Pos 7
1279 #define GMAC_ST2CW122_OFFSSTRT_Msk (0x3u << GMAC_ST2CW122_OFFSSTRT_Pos)
1280 #define GMAC_ST2CW122_OFFSSTRT(value) ((GMAC_ST2CW122_OFFSSTRT_Msk & ((value) << GMAC_ST2CW122_OFFSSTRT_Pos)))
1281 #define GMAC_ST2CW122_OFFSSTRT_FRAMESTART (0x0u << 7)
1282 #define GMAC_ST2CW122_OFFSSTRT_ETHERTYPE (0x1u << 7)
1283 #define GMAC_ST2CW122_OFFSSTRT_IP (0x2u << 7)
1284 #define GMAC_ST2CW122_OFFSSTRT_TCP_UDP (0x3u << 7)
1285 /* -------- GMAC_ST2CW023 : (GMAC Offset: 0x7B8) Screening Type 2 Compare Word 0 Register (index = 23) -------- */
1286 #define GMAC_ST2CW023_MASKVAL_Pos 0
1287 #define GMAC_ST2CW023_MASKVAL_Msk (0xffffu << GMAC_ST2CW023_MASKVAL_Pos)
1288 #define GMAC_ST2CW023_MASKVAL(value) ((GMAC_ST2CW023_MASKVAL_Msk & ((value) << GMAC_ST2CW023_MASKVAL_Pos)))
1289 #define GMAC_ST2CW023_COMPVAL_Pos 16
1290 #define GMAC_ST2CW023_COMPVAL_Msk (0xffffu << GMAC_ST2CW023_COMPVAL_Pos)
1291 #define GMAC_ST2CW023_COMPVAL(value) ((GMAC_ST2CW023_COMPVAL_Msk & ((value) << GMAC_ST2CW023_COMPVAL_Pos)))
1292 /* -------- GMAC_ST2CW123 : (GMAC Offset: 0x7BC) Screening Type 2 Compare Word 1 Register (index = 23) -------- */
1293 #define GMAC_ST2CW123_OFFSVAL_Pos 0
1294 #define GMAC_ST2CW123_OFFSVAL_Msk (0x7fu << GMAC_ST2CW123_OFFSVAL_Pos)
1295 #define GMAC_ST2CW123_OFFSVAL(value) ((GMAC_ST2CW123_OFFSVAL_Msk & ((value) << GMAC_ST2CW123_OFFSVAL_Pos)))
1296 #define GMAC_ST2CW123_OFFSSTRT_Pos 7
1297 #define GMAC_ST2CW123_OFFSSTRT_Msk (0x3u << GMAC_ST2CW123_OFFSSTRT_Pos)
1298 #define GMAC_ST2CW123_OFFSSTRT(value) ((GMAC_ST2CW123_OFFSSTRT_Msk & ((value) << GMAC_ST2CW123_OFFSSTRT_Pos)))
1299 #define GMAC_ST2CW123_OFFSSTRT_FRAMESTART (0x0u << 7)
1300 #define GMAC_ST2CW123_OFFSSTRT_ETHERTYPE (0x1u << 7)
1301 #define GMAC_ST2CW123_OFFSSTRT_IP (0x2u << 7)
1302 #define GMAC_ST2CW123_OFFSSTRT_TCP_UDP (0x3u << 7)
1305 
1306 
1307 #endif /* _SAME70_GMAC_COMPONENT_ */
__IO uint32_t GMAC_ST2CW117
(Gmac Offset: 0x78C) Screening Type 2 Compare Word 1 Register (index = 17)
__I uint32_t GMAC_LFFE
(Gmac Offset: 0x194) Length Field Frame Errors Register
__IO uint32_t GMAC_ST2CW022
(Gmac Offset: 0x7B0) Screening Type 2 Compare Word 0 Register (index = 22)
__O uint32_t GMAC_TA
(Gmac Offset: 0x1D8) 1588 Timer Adjust Register
__IO uint32_t GMAC_TIDM4
(Gmac Offset: 0x0B4) Type ID Match 4 Register
__I uint32_t GMAC_SCF
(Gmac Offset: 0x138) Single Collision Frames Register
__IO uint32_t GMAC_ST2CW114
(Gmac Offset: 0x774) Screening Type 2 Compare Word 1 Register (index = 14)
__IO uint32_t GMAC_UR
(Gmac Offset: 0x00C) User Register
__IO uint32_t GMAC_DCFGR
(Gmac Offset: 0x010) DMA Configuration Register
__I uint32_t GMAC_OFR
(Gmac Offset: 0x188) Oversize Frames Received Register
__IO uint32_t GMAC_TIDM3
(Gmac Offset: 0x0B0) Type ID Match 3 Register
__IO uint32_t GMAC_RJFML
(Gmac Offset: 0x048) RX Jumbo Frame Max Length Register
__IO uint32_t GMAC_ST2CW04
(Gmac Offset: 0x720) Screening Type 2 Compare Word 0 Register (index = 4)
__IO uint32_t GMAC_ST2CW122
(Gmac Offset: 0x7B4) Screening Type 2 Compare Word 1 Register (index = 22)
__I uint32_t GMAC_RSE
(Gmac Offset: 0x198) Receive Symbol Errors Register
__I uint32_t GMAC_RRE
(Gmac Offset: 0x1A0) Receive Resource Errors Register
__I uint32_t GMAC_EFRN
(Gmac Offset: 0x1EC) PTP Event Frame Received Nanoseconds Register
__IO uint32_t GMAC_ST2CW115
(Gmac Offset: 0x77C) Screening Type 2 Compare Word 1 Register (index = 15)
__I uint32_t GMAC_EC
(Gmac Offset: 0x140) Excessive Collisions Register
__I uint32_t GMAC_MCF
(Gmac Offset: 0x13C) Multiple Collision Frames Register
__I uint32_t GMAC_TBFR127
(Gmac Offset: 0x16C) 65 to 127 Byte Frames Received Register
__IO uint32_t GMAC_ST2CW012
(Gmac Offset: 0x760) Screening Type 2 Compare Word 0 Register (index = 12)
__IO uint32_t GMAC_ST2CW116
(Gmac Offset: 0x784) Screening Type 2 Compare Word 1 Register (index = 16)
__I uint32_t GMAC_TBFR255
(Gmac Offset: 0x170) 128 to 255 Byte Frames Received Register
__I uint32_t GMAC_RXLPITIME
(Gmac Offset: 0x274) Received LPI Time
__IO uint32_t GMAC_CBSISQB
(Gmac Offset: 0x4C4) Credit-Based Shaping IdleSlope Register for Queue B
__O uint32_t GMAC_IDR
(Gmac Offset: 0x02C) Interrupt Disable Register
#define __IO
Definition: core_cm7.h:266
__IO uint32_t GMAC_ST2CW017
(Gmac Offset: 0x788) Screening Type 2 Compare Word 0 Register (index = 17)
__I uint32_t GMAC_PEFRSH
(Gmac Offset: 0x0F4) PTP Peer Event Frame Received Seconds High Register
__I uint32_t GMAC_OTLO
(Gmac Offset: 0x100) Octets Transmitted Low Register
__I uint32_t GMAC_CSE
(Gmac Offset: 0x14C) Carrier Sense Errors Register
__I uint32_t GMAC_PEFRN
(Gmac Offset: 0x1FC) PTP Peer Event Frame Received Nanoseconds Register
__I uint32_t GMAC_TBFT511
(Gmac Offset: 0x124) 256 to 511 Byte Frames Transmitted Register
#define __O
Definition: core_cm7.h:265
__IO uint32_t GMAC_ST2CW123
(Gmac Offset: 0x7BC) Screening Type 2 Compare Word 1 Register (index = 23)
__IO uint32_t GMAC_TISUBN
(Gmac Offset: 0x1BC) 1588 Timer Increment Sub-nanoseconds Register
__IO uint32_t GMAC_TN
(Gmac Offset: 0x1D4) 1588 Timer Nanoseconds Register
__I uint32_t GMAC_MFT
(Gmac Offset: 0x110) Multicast Frames Transmitted Register
__IO uint32_t GMAC_ST2CW020
(Gmac Offset: 0x7A0) Screening Type 2 Compare Word 0 Register (index = 20)
__IO uint32_t GMAC_ST2CW011
(Gmac Offset: 0x758) Screening Type 2 Compare Word 0 Register (index = 11)
__I uint32_t GMAC_TBFT1023
(Gmac Offset: 0x128) 512 to 1023 Byte Frames Transmitted Register
__I uint32_t GMAC_TXLPITIME
(Gmac Offset: 0x27C) Transmit LPI Time
__I uint32_t GMAC_EFTN
(Gmac Offset: 0x1E4) PTP Event Frame Transmitted Nanoseconds Register
__IO uint32_t GMAC_TPFCP
(Gmac Offset: 0x0C4) Transmit PFC Pause Register
__I uint32_t GMAC_PEFRSL
(Gmac Offset: 0x1F8) PTP Peer Event Frame Received Seconds Low Register
__IO uint32_t GMAC_TSL
(Gmac Offset: 0x1D0) 1588 Timer Seconds Low Register
__IO uint32_t GMAC_NSC
(Gmac Offset: 0x0DC) 1588 Timer Nanosecond Comparison Register
__IO uint32_t GMAC_ST2CW119
(Gmac Offset: 0x79C) Screening Type 2 Compare Word 1 Register (index = 19)
__I uint32_t GMAC_TBFT255
(Gmac Offset: 0x120) 128 to 255 Byte Frames Transmitted Register
__I uint32_t GMAC_TXLPI
(Gmac Offset: 0x278) Transmit LPI Transitions
__IO uint32_t GMAC_SCH
(Gmac Offset: 0x0E4) 1588 Timer Second Comparison High Register
__I uint32_t GMAC_PFT
(Gmac Offset: 0x114) Pause Frames Transmitted Register
__I uint32_t GMAC_TBFR1023
(Gmac Offset: 0x178) 512 to 1023 Byte Frames Received Register
__IO uint32_t GMAC_ST2CW110
(Gmac Offset: 0x754) Screening Type 2 Compare Word 1 Register (index = 10)
__I uint32_t GMAC_PFR
(Gmac Offset: 0x164) Pause Frames Received Register
__IO uint32_t GMAC_NCR
(Gmac Offset: 0x000) Network Control Register
__I uint32_t GMAC_TBFT127
(Gmac Offset: 0x11C) 65 to 127 Byte Frames Transmitted Register
__IO uint32_t GMAC_ST2CW023
(Gmac Offset: 0x7B8) Screening Type 2 Compare Word 0 Register (index = 23)
__IO uint32_t GMAC_SCL
(Gmac Offset: 0x0E0) 1588 Timer Second Comparison Low Register
__IO uint32_t GMAC_ST2CW10
(Gmac Offset: 0x704) Screening Type 2 Compare Word 1 Register (index = 0)
__I uint32_t GMAC_TCE
(Gmac Offset: 0x1AC) TCP Checksum Errors Register
__IO uint32_t GMAC_ST2CW15
(Gmac Offset: 0x72C) Screening Type 2 Compare Word 1 Register (index = 5)
__IO uint32_t GMAC_ST2CW18
(Gmac Offset: 0x744) Screening Type 2 Compare Word 1 Register (index = 8)
__IO uint32_t GMAC_SAB
(GmacSa Offset: 0x0) Specific Address 1 Bottom Register
__I uint32_t GMAC_JR
(Gmac Offset: 0x18C) Jabbers Received Register
__I uint32_t GMAC_TBFR511
(Gmac Offset: 0x174) 256 to 511 Byte Frames Received Register
__IO uint32_t GMAC_ST2CW08
(Gmac Offset: 0x740) Screening Type 2 Compare Word 0 Register (index = 8)
__IO uint32_t GMAC_TSH
(Gmac Offset: 0x1C0) 1588 Timer Seconds High Register
__IO uint32_t GMAC_ST2CW016
(Gmac Offset: 0x780) Screening Type 2 Compare Word 0 Register (index = 16)
__IO uint32_t GMAC_ST2CW13
(Gmac Offset: 0x71C) Screening Type 2 Compare Word 1 Register (index = 3)
__I uint32_t GMAC_NSR
(Gmac Offset: 0x008) Network Status Register
__IO uint32_t GMAC_ST2CW120
(Gmac Offset: 0x7A4) Screening Type 2 Compare Word 1 Register (index = 20)
__I uint32_t GMAC_TMXBFR
(Gmac Offset: 0x180) 1519 to Maximum Byte Frames Received Register
__I uint32_t GMAC_FT
(Gmac Offset: 0x108) Frames Transmitted Register
__I uint32_t GMAC_DTF
(Gmac Offset: 0x148) Deferred Transmission Frames Register
__IO uint32_t GMAC_TIDM1
(Gmac Offset: 0x0A8) Type ID Match 1 Register
__IO uint32_t GMAC_TI
(Gmac Offset: 0x1DC) 1588 Timer Increment Register
__IO uint32_t GMAC_ST2CW013
(Gmac Offset: 0x768) Screening Type 2 Compare Word 0 Register (index = 13)
__IO uint32_t GMAC_SAT
(GmacSa Offset: 0x4) Specific Address 1 Top Register
__IO uint32_t GMAC_TPQ
(Gmac Offset: 0x03C) Transmit Pause Quantum Register
__IO uint32_t GMAC_RSR
(Gmac Offset: 0x020) Receive Status Register
__I uint32_t GMAC_RPQ
(Gmac Offset: 0x038) Received Pause Quantum Register
__IO uint32_t GMAC_ST2CW00
(Gmac Offset: 0x700) Screening Type 2 Compare Word 0 Register (index = 0)
__IO uint32_t GMAC_ST2CW03
(Gmac Offset: 0x718) Screening Type 2 Compare Word 0 Register (index = 3)
__IO uint32_t GMAC_HRT
(Gmac Offset: 0x084) Hash Register Top
#define GMACSA_NUMBER
Gmac hardware registers.
__I uint32_t GMAC_LC
(Gmac Offset: 0x144) Late Collisions Register
__IO uint32_t GMAC_RPSF
(Gmac Offset: 0x044) RX Partial Store and Forward Register
__IO uint32_t GMAC_ST2CW113
(Gmac Offset: 0x76C) Screening Type 2 Compare Word 1 Register (index = 13)
__IO uint32_t GMAC_ST2CW021
(Gmac Offset: 0x7A8) Screening Type 2 Compare Word 0 Register (index = 21)
__IO uint32_t GMAC_IMR
(Gmac Offset: 0x030) Interrupt Mask Register
__I uint32_t GMAC_FR
(Gmac Offset: 0x158) Frames Received Register
__I uint32_t GMAC_AE
(Gmac Offset: 0x19C) Alignment Errors Register
__IO uint32_t GMAC_ST2CW019
(Gmac Offset: 0x798) Screening Type 2 Compare Word 0 Register (index = 19)
__IO uint32_t GMAC_TIDM2
(Gmac Offset: 0x0AC) Type ID Match 2 Register
__I uint32_t GMAC_OTHI
(Gmac Offset: 0x104) Octets Transmitted High Register
__I uint32_t GMAC_EFRSL
(Gmac Offset: 0x1E8) PTP Event Frame Received Seconds Low Register
__I uint32_t GMAC_TUR
(Gmac Offset: 0x134) Transmit Underruns Register
GmacSa hardware registers.
__IO uint32_t GMAC_SAMT1
(Gmac Offset: 0x0CC) Specific Address 1 Mask Top Register
__IO uint32_t GMAC_ST2CW06
(Gmac Offset: 0x730) Screening Type 2 Compare Word 0 Register (index = 6)
__IO uint32_t GMAC_WOL
(Gmac Offset: 0x0B8) Wake on LAN Register
__IO uint32_t GMAC_ST2CW16
(Gmac Offset: 0x734) Screening Type 2 Compare Word 1 Register (index = 6)
__IO uint32_t GMAC_ST2CW121
(Gmac Offset: 0x7AC) Screening Type 2 Compare Word 1 Register (index = 21)
__I uint32_t GMAC_UCE
(Gmac Offset: 0x1B0) UDP Checksum Errors Register
__I uint32_t GMAC_EFTSL
(Gmac Offset: 0x1E0) PTP Event Frame Transmitted Seconds Low Register
__IO uint32_t GMAC_SAMB1
(Gmac Offset: 0x0C8) Specific Address 1 Mask Bottom Register
__I uint32_t GMAC_BFT64
(Gmac Offset: 0x118) 64 Byte Frames Transmitted Register
__I uint32_t GMAC_UFR
(Gmac Offset: 0x184) Undersize Frames Received Register
__IO uint32_t GMAC_ST2CW11
(Gmac Offset: 0x70C) Screening Type 2 Compare Word 1 Register (index = 1)
__IO uint32_t GMAC_ST2CW01
(Gmac Offset: 0x708) Screening Type 2 Compare Word 0 Register (index = 1)
__I uint32_t GMAC_ORLO
(Gmac Offset: 0x150) Octets Received Low Received Register
__IO uint32_t GMAC_ST2CW018
(Gmac Offset: 0x790) Screening Type 2 Compare Word 0 Register (index = 18)
__IO uint32_t GMAC_RBQB
(Gmac Offset: 0x018) Receive Buffer Queue Base Address Register
__I uint32_t GMAC_BCFR
(Gmac Offset: 0x15C) Broadcast Frames Received Register
__I uint32_t GMAC_PEFTN
(Gmac Offset: 0x1F4) PTP Peer Event Frame Transmitted Nanoseconds Register
__IO uint32_t GMAC_ST2CW118
(Gmac Offset: 0x794) Screening Type 2 Compare Word 1 Register (index = 18)
__IO uint32_t GMAC_CBSISQA
(Gmac Offset: 0x4C0) Credit-Based Shaping IdleSlope Register for Queue A
__IO uint32_t GMAC_TPSF
(Gmac Offset: 0x040) TX Partial Store and Forward Register
__I uint32_t GMAC_TBFT1518
(Gmac Offset: 0x12C) 1024 to 1518 Byte Frames Transmitted Register
__O uint32_t GMAC_IER
(Gmac Offset: 0x028) Interrupt Enable Register
__IO uint32_t GMAC_CBSCR
(Gmac Offset: 0x4BC) Credit-Based Shaping Control Register
__IO uint32_t GMAC_NCFGR
(Gmac Offset: 0x004) Network Configuration Register
__I uint32_t GMAC_MFR
(Gmac Offset: 0x160) Multicast Frames Received Register
__IO uint32_t GMAC_ST2CW12
(Gmac Offset: 0x714) Screening Type 2 Compare Word 1 Register (index = 2)
__IO uint32_t GMAC_ST2CW02
(Gmac Offset: 0x710) Screening Type 2 Compare Word 0 Register (index = 2)
__IO uint32_t GMAC_IPGS
(Gmac Offset: 0x0BC) IPG Stretch Register
__IO uint32_t GMAC_ST2CW111
(Gmac Offset: 0x75C) Screening Type 2 Compare Word 1 Register (index = 11)
__IO uint32_t GMAC_ST2CW014
(Gmac Offset: 0x770) Screening Type 2 Compare Word 0 Register (index = 14)
__IO uint32_t GMAC_ST2CW17
(Gmac Offset: 0x73C) Screening Type 2 Compare Word 1 Register (index = 7)
__IO uint32_t GMAC_ST2CW010
(Gmac Offset: 0x750) Screening Type 2 Compare Word 0 Register (index = 10)
__IO uint32_t GMAC_HRB
(Gmac Offset: 0x080) Hash Register Bottom
__I uint32_t GMAC_MID
(Gmac Offset: 0x0FC) Module ID Register
__I uint32_t GMAC_PEFTSL
(Gmac Offset: 0x1F0) PTP Peer Event Frame Transmitted Seconds Low Register
__I uint32_t GMAC_GTBFT1518
(Gmac Offset: 0x130) Greater Than 1518 Byte Frames Transmitted Register
__I uint32_t GMAC_EFTSH
(Gmac Offset: 0x0E8) PTP Event Frame Transmitted Seconds High Register
__I uint32_t GMAC_BFR64
(Gmac Offset: 0x168) 64 Byte Frames Received Register
__IO uint32_t GMAC_ST2CW09
(Gmac Offset: 0x748) Screening Type 2 Compare Word 0 Register (index = 9)
__I uint32_t GMAC_BCFT
(Gmac Offset: 0x10C) Broadcast Frames Transmitted Register
__IO uint32_t GMAC_ST2CW112
(Gmac Offset: 0x764) Screening Type 2 Compare Word 1 Register (index = 12)
__I uint32_t GMAC_ISR
(Gmac Offset: 0x024) Interrupt Status Register
__IO uint32_t GMAC_TBQB
(Gmac Offset: 0x01C) Transmit Buffer Queue Base Address Register
__I uint32_t GMAC_FCSE
(Gmac Offset: 0x190) Frame Check Sequence Errors Register
__IO uint32_t GMAC_SVLAN
(Gmac Offset: 0x0C0) Stacked VLAN Register
__I uint32_t GMAC_ORHI
(Gmac Offset: 0x154) Octets Received High Received Register
__IO uint32_t GMAC_ST2CW05
(Gmac Offset: 0x728) Screening Type 2 Compare Word 0 Register (index = 5)
__I uint32_t GMAC_ROE
(Gmac Offset: 0x1A4) Receive Overrun Register
__I uint32_t GMAC_TBFR1518
(Gmac Offset: 0x17C) 1024 to 1518 Byte Frames Received Register
__I uint32_t GMAC_RXLPI
(Gmac Offset: 0x270) Received LPI Transitions
__I uint32_t GMAC_EFRSH
(Gmac Offset: 0x0EC) PTP Event Frame Received Seconds High Register
__I uint32_t GMAC_IHCE
(Gmac Offset: 0x1A8) IP Header Checksum Errors Register
__I uint32_t GMAC_PEFTSH
(Gmac Offset: 0x0F0) PTP Peer Event Frame Transmitted Seconds High Register
__IO uint32_t GMAC_TSR
(Gmac Offset: 0x014) Transmit Status Register
#define __I
Definition: core_cm7.h:263
__IO uint32_t GMAC_ST2CW07
(Gmac Offset: 0x738) Screening Type 2 Compare Word 0 Register (index = 7)
__IO uint32_t GMAC_ST2CW14
(Gmac Offset: 0x724) Screening Type 2 Compare Word 1 Register (index = 4)
__IO uint32_t GMAC_ST2CW19
(Gmac Offset: 0x74C) Screening Type 2 Compare Word 1 Register (index = 9)
__IO uint32_t GMAC_ST2CW015
(Gmac Offset: 0x778) Screening Type 2 Compare Word 0 Register (index = 15)
__IO uint32_t GMAC_MAN
(Gmac Offset: 0x034) PHY Maintenance Register


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:57