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