1 /*
2  * Copyright 1997-2016 Freescale Semiconductor, Inc.
3  * Copyright 2016-2022 NXP
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 /*!
9  * @file S32Z2_SW_PORT0.h
10  * @version 1.8
11  * @date 2022-07-13
12  * @brief Peripheral Access Layer for S32Z2_SW_PORT0
13  *
14  * This file contains register definitions and macros for easy access to their
15  * bit fields.
16  *
17  * This file assumes LITTLE endian system.
18  */
19 
20 /**
21 * @page misra_violations MISRA-C:2012 violations
22 *
23 * @section [global]
24 * Violates MISRA 2012 Advisory Rule 2.3, local typedef not referenced
25 * The SoC header defines typedef for all modules.
26 *
27 * @section [global]
28 * Violates MISRA 2012 Advisory Rule 2.5, local macro not referenced
29 * The SoC header defines macros for all modules and registers.
30 *
31 * @section [global]
32 * Violates MISRA 2012 Advisory Directive 4.9, Function-like macro
33 * These are generated macros used for accessing the bit-fields from registers.
34 *
35 * @section [global]
36 * Violates MISRA 2012 Required Rule 5.1, identifier clash
37 * The supported compilers use more than 31 significant characters for identifiers.
38 *
39 * @section [global]
40 * Violates MISRA 2012 Required Rule 5.2, identifier clash
41 * The supported compilers use more than 31 significant characters for identifiers.
42 *
43 * @section [global]
44 * Violates MISRA 2012 Required Rule 5.4, identifier clash
45 * The supported compilers use more than 31 significant characters for identifiers.
46 *
47 * @section [global]
48 * Violates MISRA 2012 Required Rule 5.5, identifier clash
49 * The supported compilers use more than 31 significant characters for identifiers.
50 *
51 * @section [global]
52 * Violates MISRA 2012 Required Rule 21.1, defined macro '__I' is reserved to the compiler
53 * This type qualifier is needed to ensure correct I/O access and addressing.
54 */
55 
56 /* Prevention from multiple including the same memory map */
57 #if !defined(S32Z2_SW_PORT0_H_)  /* Check if memory map has not been already included */
58 #define S32Z2_SW_PORT0_H_
59 
60 #include "S32Z2_COMMON.h"
61 
62 /* ----------------------------------------------------------------------------
63    -- SW_PORT0 Peripheral Access Layer
64    ---------------------------------------------------------------------------- */
65 
66 /*!
67  * @addtogroup SW_PORT0_Peripheral_Access_Layer SW_PORT0 Peripheral Access Layer
68  * @{
69  */
70 
71 /** SW_PORT0 - Size of Registers Arrays */
72 #define SW_PORT0_TCT_NUM_COUNT                    8u
73 
74 /** SW_PORT0 - Register Layout Typedef */
75 typedef struct {
76   __I  uint32_t PCAPR;                             /**< Port capability register, offset: 0x0 */
77   __I  uint32_t PMCAPR;                            /**< Port MAC capability register, offset: 0x4 */
78   __I  uint32_t PIOCAPR;                           /**< Port I/O capability register, offset: 0x8 */
79   uint8_t RESERVED_0[4];
80   __IO uint32_t PCR;                               /**< Port configuration register, offset: 0x10 */
81   uint8_t RESERVED_1[12];
82   __IO uint32_t PMAR0;                             /**< Port MAC address register 0, offset: 0x20 */
83   __IO uint32_t PMAR1;                             /**< Port MAC address register 1, offset: 0x24 */
84   uint8_t RESERVED_2[40];
85   __IO uint32_t PTAR;                              /**< Port TPID acceptance register, offset: 0x50 */
86   __IO uint32_t PQOSMR;                            /**< Port QoS mode register, offset: 0x54 */
87   uint8_t RESERVED_3[8];
88   __I  uint32_t PQOR;                              /**< Port Queue Operational register, offset: 0x60 */
89   uint8_t RESERVED_4[28];
90   __IO uint32_t PPCR;                              /**< Port parser configuration register, offset: 0x80 */
91   __IO uint32_t PIPFCR;                            /**< Port ingress port filter configuration register, offset: 0x84 */
92   uint8_t RESERVED_5[24];
93   __IO uint32_t PSGCR;                             /**< Port stream gate configuration register, offset: 0xA0 */
94   uint8_t RESERVED_6[92];
95   __IO uint32_t POR;                               /**< Port operational register, offset: 0x100 */
96   __I  uint32_t PSR;                               /**< Port status register, offset: 0x104 */
97   __IO uint32_t PRXSDUOR;                          /**< Port receive SDU overhead register, offset: 0x108 */
98   __IO uint32_t PTXSDUOR;                          /**< Port transmit SDU overhead register, offset: 0x10C */
99   __IO uint32_t PTGSCR;                            /**< Port time gate scheduling control register, offset: 0x110 */
100   __I  uint32_t PTGAGLSR;                          /**< Port time gate scheduling admin gate list status register, offset: 0x114 */
101   __I  uint32_t PTGAGLLR;                          /**< Port time gate scheduling admin gate list length register, offset: 0x118 */
102   __I  uint32_t PTGOGLLR;                          /**< Port time gating operational gate list length register, offset: 0x11C */
103   uint8_t RESERVED_7[4];
104   __I  uint32_t PTGSHAR;                           /**< Port time gate scheduling hold advance register, offset: 0x124 */
105   __I  uint32_t PTGSRAR;                           /**< Port time gate scheduling release advance register, offset: 0x128 */
106   __IO uint32_t PTGSHCR;                           /**< Port time gate scheduling hold configuration register, offset: 0x12C */
107   uint8_t RESERVED_8[4];
108   __IO uint32_t PFPCR;                             /**< Port frame preemption configuration register, offset: 0x134 */
109   uint8_t RESERVED_9[136];
110   __I  uint32_t PRXDCR;                            /**< Port Rx discard count register, offset: 0x1C0 */
111   uint8_t RESERVED_10[4];
112   __IO uint32_t PRXDCRR0;                          /**< Port Rx discard count reason register 0, offset: 0x1C8 */
113   __IO uint32_t PRXDCRR1;                          /**< Port Rx discard count reason register 1, offset: 0x1CC */
114   uint8_t RESERVED_11[16];
115   __I  uint32_t PTXDCR;                            /**< Port Tx discard count register, offset: 0x1E0 */
116   uint8_t RESERVED_12[4];
117   __IO uint32_t PTXDCRR0;                          /**< Port Tx discard count reason register 0, offset: 0x1E8 */
118   __IO uint32_t PTXDCRR1;                          /**< Port Tx discard count reason register 1, offset: 0x1EC */
119   uint8_t RESERVED_13[16];
120   struct {                                         /* offset: 0x200, array step: 0x20 */
121     uint8_t RESERVED_0[8];
122     __IO uint32_t PTCTMSDUR;                         /**< Port traffic class 0 transmit maximum SDU register..Port traffic class 7 transmit maximum SDU register, array offset: 0x208, array step: 0x20 */
123     uint8_t RESERVED_1[4];
124     __IO uint32_t PTCCBSR0;                          /**< Port transmit traffic class 0 credit based shaper register 0..Port transmit traffic class 7 credit based shaper register 0, array offset: 0x210, array step: 0x20 */
125     __IO uint32_t PTCCBSR1;                          /**< Port traffic class 0 credit based shaper register 1..Port traffic class 7 credit based shaper register 1, array offset: 0x214, array step: 0x20 */
126     uint8_t RESERVED_2[8];
127   } TCT_NUM[SW_PORT0_TCT_NUM_COUNT];
128   uint8_t RESERVED_14[256];
129   __IO uint32_t PBPMCR0;                           /**< Port buffer pool mapping configuration register 0, offset: 0x400 */
130   __IO uint32_t PBPMCR1;                           /**< Port buffer pool mapping configuration register 1, offset: 0x404 */
131   uint8_t RESERVED_15[48];
132   __IO uint32_t PPCPDEIMR;                         /**< Port PCP DEI mapping register, offset: 0x438 */
133   uint8_t RESERVED_16[4];
134   __IO uint32_t PMCR;                              /**< Port mirror configuration register, offset: 0x440 */
135   uint8_t RESERVED_17[12];
136   __IO uint32_t PCTFCR;                            /**< Port cut through forwarding configuration register, offset: 0x450 */
137   uint8_t RESERVED_18[4];
138   __IO uint32_t PLANIDCR;                          /**< Port LANID configuration register, offset: 0x458 */
139   uint8_t RESERVED_19[4];
140   __IO uint32_t PISIDCR;                           /**< Port ingress stream identification configuration register, offset: 0x460 */
141   __IO uint32_t PFMCR;                             /**< Port frame modification configuration register, offset: 0x464 */
142   uint8_t RESERVED_20[8];
143   __IO uint32_t PIPV2QMR0;                         /**< Port IPV to queue mapping register 0, offset: 0x470 */
144   uint8_t RESERVED_21[60];
145   __I  uint32_t PTCMINLR;                          /**< Port time capture minimum latency register, offset: 0x4B0 */
146   __I  uint32_t PTCMAXLR;                          /**< Port time capture maximum latency register, offset: 0x4B4 */
147   uint8_t RESERVED_22[72];
148   __IO uint32_t BPCR;                              /**< Bridge port configuration register, offset: 0x500 */
149   uint8_t RESERVED_23[12];
150   __IO uint32_t BPDVR;                             /**< Bridge port default VLAN register, offset: 0x510 */
151   uint8_t RESERVED_24[12];
152   __IO uint32_t BPSTGSR;                           /**< Bridge port spanning tree group state register, offset: 0x520 */
153   uint8_t RESERVED_25[4];
154   __IO uint32_t BPSCR0;                            /**< Bridge port storm control register 0, offset: 0x528 */
155   __IO uint32_t BPSCR1;                            /**< Bridge port storm control register 1, offset: 0x52C */
156   __I  uint32_t BPOR;                              /**< Bridge port operational register, offset: 0x530 */
157   uint8_t RESERVED_26[76];
158   __I  uint32_t BPDCR;                             /**< Bridge port discard count register, offset: 0x580 */
159   uint8_t RESERVED_27[4];
160   __IO uint32_t BPDCRR0;                           /**< Bridge port discard count reason register 0, offset: 0x588 */
161   __IO uint32_t BPDCRR1;                           /**< Bridge port discard count reason register 1, offset: 0x58C */
162   __IO uint32_t BPMLFSR;                           /**< Bridge port MAC learning failure status register, offset: 0x590 */
163 } SW_PORT0_Type, *SW_PORT0_MemMapPtr;
164 
165 /** Number of instances of the SW_PORT0 module. */
166 #define SW_PORT0_INSTANCE_COUNT                  (1u)
167 
168 /* SW_PORT0 - Peripheral instance base addresses */
169 /** Peripheral NETC__SW0_PORT0 base address */
170 #define IP_NETC__SW0_PORT0_BASE                  (0x74A04000u)
171 /** Peripheral NETC__SW0_PORT0 base pointer */
172 #define IP_NETC__SW0_PORT0                       ((SW_PORT0_Type *)IP_NETC__SW0_PORT0_BASE)
173 /** Array initializer of SW_PORT0 peripheral base addresses */
174 #define IP_SW_PORT0_BASE_ADDRS                   { IP_NETC__SW0_PORT0_BASE }
175 /** Array initializer of SW_PORT0 peripheral base pointers */
176 #define IP_SW_PORT0_BASE_PTRS                    { IP_NETC__SW0_PORT0 }
177 
178 /* ----------------------------------------------------------------------------
179    -- SW_PORT0 Register Masks
180    ---------------------------------------------------------------------------- */
181 
182 /*!
183  * @addtogroup SW_PORT0_Register_Masks SW_PORT0 Register Masks
184  * @{
185  */
186 
187 /*! @name PCAPR - Port capability register */
188 /*! @{ */
189 
190 #define SW_PORT0_PCAPR_LINK_TYPE_MASK            (0x10U)
191 #define SW_PORT0_PCAPR_LINK_TYPE_SHIFT           (4U)
192 #define SW_PORT0_PCAPR_LINK_TYPE_WIDTH           (1U)
193 #define SW_PORT0_PCAPR_LINK_TYPE(x)              (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PCAPR_LINK_TYPE_SHIFT)) & SW_PORT0_PCAPR_LINK_TYPE_MASK)
194 
195 #define SW_PORT0_PCAPR_NUM_TC_MASK               (0xF000U)
196 #define SW_PORT0_PCAPR_NUM_TC_SHIFT              (12U)
197 #define SW_PORT0_PCAPR_NUM_TC_WIDTH              (4U)
198 #define SW_PORT0_PCAPR_NUM_TC(x)                 (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PCAPR_NUM_TC_SHIFT)) & SW_PORT0_PCAPR_NUM_TC_MASK)
199 
200 #define SW_PORT0_PCAPR_NUM_Q_MASK                (0xF0000U)
201 #define SW_PORT0_PCAPR_NUM_Q_SHIFT               (16U)
202 #define SW_PORT0_PCAPR_NUM_Q_WIDTH               (4U)
203 #define SW_PORT0_PCAPR_NUM_Q(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PCAPR_NUM_Q_SHIFT)) & SW_PORT0_PCAPR_NUM_Q_MASK)
204 
205 #define SW_PORT0_PCAPR_NUM_CG_MASK               (0xF000000U)
206 #define SW_PORT0_PCAPR_NUM_CG_SHIFT              (24U)
207 #define SW_PORT0_PCAPR_NUM_CG_WIDTH              (4U)
208 #define SW_PORT0_PCAPR_NUM_CG(x)                 (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PCAPR_NUM_CG_SHIFT)) & SW_PORT0_PCAPR_NUM_CG_MASK)
209 
210 #define SW_PORT0_PCAPR_TGS_MASK                  (0x10000000U)
211 #define SW_PORT0_PCAPR_TGS_SHIFT                 (28U)
212 #define SW_PORT0_PCAPR_TGS_WIDTH                 (1U)
213 #define SW_PORT0_PCAPR_TGS(x)                    (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PCAPR_TGS_SHIFT)) & SW_PORT0_PCAPR_TGS_MASK)
214 
215 #define SW_PORT0_PCAPR_CBS_MASK                  (0x20000000U)
216 #define SW_PORT0_PCAPR_CBS_SHIFT                 (29U)
217 #define SW_PORT0_PCAPR_CBS_WIDTH                 (1U)
218 #define SW_PORT0_PCAPR_CBS(x)                    (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PCAPR_CBS_SHIFT)) & SW_PORT0_PCAPR_CBS_MASK)
219 /*! @} */
220 
221 /*! @name PMCAPR - Port MAC capability register */
222 /*! @{ */
223 
224 #define SW_PORT0_PMCAPR_MAC_VAR_MASK             (0x7U)
225 #define SW_PORT0_PMCAPR_MAC_VAR_SHIFT            (0U)
226 #define SW_PORT0_PMCAPR_MAC_VAR_WIDTH            (3U)
227 #define SW_PORT0_PMCAPR_MAC_VAR(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PMCAPR_MAC_VAR_SHIFT)) & SW_PORT0_PMCAPR_MAC_VAR_MASK)
228 
229 #define SW_PORT0_PMCAPR_EFPAD_MASK               (0x30U)
230 #define SW_PORT0_PMCAPR_EFPAD_SHIFT              (4U)
231 #define SW_PORT0_PMCAPR_EFPAD_WIDTH              (2U)
232 #define SW_PORT0_PMCAPR_EFPAD(x)                 (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PMCAPR_EFPAD_SHIFT)) & SW_PORT0_PMCAPR_EFPAD_MASK)
233 
234 #define SW_PORT0_PMCAPR_HD_MASK                  (0x100U)
235 #define SW_PORT0_PMCAPR_HD_SHIFT                 (8U)
236 #define SW_PORT0_PMCAPR_HD_WIDTH                 (1U)
237 #define SW_PORT0_PMCAPR_HD(x)                    (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PMCAPR_HD_SHIFT)) & SW_PORT0_PMCAPR_HD_MASK)
238 
239 #define SW_PORT0_PMCAPR_FP_MASK                  (0x600U)
240 #define SW_PORT0_PMCAPR_FP_SHIFT                 (9U)
241 #define SW_PORT0_PMCAPR_FP_WIDTH                 (2U)
242 #define SW_PORT0_PMCAPR_FP(x)                    (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PMCAPR_FP_SHIFT)) & SW_PORT0_PMCAPR_FP_MASK)
243 
244 #define SW_PORT0_PMCAPR_MII_PROT_MASK            (0xF000000U)
245 #define SW_PORT0_PMCAPR_MII_PROT_SHIFT           (24U)
246 #define SW_PORT0_PMCAPR_MII_PROT_WIDTH           (4U)
247 #define SW_PORT0_PMCAPR_MII_PROT(x)              (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PMCAPR_MII_PROT_SHIFT)) & SW_PORT0_PMCAPR_MII_PROT_MASK)
248 /*! @} */
249 
250 /*! @name PIOCAPR - Port I/O capability register */
251 /*! @{ */
252 
253 #define SW_PORT0_PIOCAPR_PCS_PROT_MASK           (0xFFFFU)
254 #define SW_PORT0_PIOCAPR_PCS_PROT_SHIFT          (0U)
255 #define SW_PORT0_PIOCAPR_PCS_PROT_WIDTH          (16U)
256 #define SW_PORT0_PIOCAPR_PCS_PROT(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PIOCAPR_PCS_PROT_SHIFT)) & SW_PORT0_PIOCAPR_PCS_PROT_MASK)
257 
258 #define SW_PORT0_PIOCAPR_IO_VAR_MASK             (0xF000000U)
259 #define SW_PORT0_PIOCAPR_IO_VAR_SHIFT            (24U)
260 #define SW_PORT0_PIOCAPR_IO_VAR_WIDTH            (4U)
261 #define SW_PORT0_PIOCAPR_IO_VAR(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PIOCAPR_IO_VAR_SHIFT)) & SW_PORT0_PIOCAPR_IO_VAR_MASK)
262 
263 #define SW_PORT0_PIOCAPR_EMDIO_MASK              (0x10000000U)
264 #define SW_PORT0_PIOCAPR_EMDIO_SHIFT             (28U)
265 #define SW_PORT0_PIOCAPR_EMDIO_WIDTH             (1U)
266 #define SW_PORT0_PIOCAPR_EMDIO(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PIOCAPR_EMDIO_SHIFT)) & SW_PORT0_PIOCAPR_EMDIO_MASK)
267 
268 #define SW_PORT0_PIOCAPR_REVMII_RATE_MASK        (0x40000000U)
269 #define SW_PORT0_PIOCAPR_REVMII_RATE_SHIFT       (30U)
270 #define SW_PORT0_PIOCAPR_REVMII_RATE_WIDTH       (1U)
271 #define SW_PORT0_PIOCAPR_REVMII_RATE(x)          (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PIOCAPR_REVMII_RATE_SHIFT)) & SW_PORT0_PIOCAPR_REVMII_RATE_MASK)
272 
273 #define SW_PORT0_PIOCAPR_REVMII_MASK             (0x80000000U)
274 #define SW_PORT0_PIOCAPR_REVMII_SHIFT            (31U)
275 #define SW_PORT0_PIOCAPR_REVMII_WIDTH            (1U)
276 #define SW_PORT0_PIOCAPR_REVMII(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PIOCAPR_REVMII_SHIFT)) & SW_PORT0_PIOCAPR_REVMII_MASK)
277 /*! @} */
278 
279 /*! @name PCR - Port configuration register */
280 /*! @{ */
281 
282 #define SW_PORT0_PCR_HDR_FMT_MASK                (0x1U)
283 #define SW_PORT0_PCR_HDR_FMT_SHIFT               (0U)
284 #define SW_PORT0_PCR_HDR_FMT_WIDTH               (1U)
285 #define SW_PORT0_PCR_HDR_FMT(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PCR_HDR_FMT_SHIFT)) & SW_PORT0_PCR_HDR_FMT_MASK)
286 
287 #define SW_PORT0_PCR_L2DOSE_MASK                 (0x10U)
288 #define SW_PORT0_PCR_L2DOSE_SHIFT                (4U)
289 #define SW_PORT0_PCR_L2DOSE_WIDTH                (1U)
290 #define SW_PORT0_PCR_L2DOSE(x)                   (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PCR_L2DOSE_SHIFT)) & SW_PORT0_PCR_L2DOSE_MASK)
291 
292 #define SW_PORT0_PCR_TIMER_CS_MASK               (0x100U)
293 #define SW_PORT0_PCR_TIMER_CS_SHIFT              (8U)
294 #define SW_PORT0_PCR_TIMER_CS_WIDTH              (1U)
295 #define SW_PORT0_PCR_TIMER_CS(x)                 (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PCR_TIMER_CS_SHIFT)) & SW_PORT0_PCR_TIMER_CS_MASK)
296 
297 #define SW_PORT0_PCR_FCSEA_MASK                  (0x1000U)
298 #define SW_PORT0_PCR_FCSEA_SHIFT                 (12U)
299 #define SW_PORT0_PCR_FCSEA_WIDTH                 (1U)
300 #define SW_PORT0_PCR_FCSEA(x)                    (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PCR_FCSEA_SHIFT)) & SW_PORT0_PCR_FCSEA_MASK)
301 
302 #define SW_PORT0_PCR_PSPEED_MASK                 (0x3FFF0000U)
303 #define SW_PORT0_PCR_PSPEED_SHIFT                (16U)
304 #define SW_PORT0_PCR_PSPEED_WIDTH                (14U)
305 #define SW_PORT0_PCR_PSPEED(x)                   (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PCR_PSPEED_SHIFT)) & SW_PORT0_PCR_PSPEED_MASK)
306 /*! @} */
307 
308 /*! @name PMAR0 - Port MAC address register 0 */
309 /*! @{ */
310 
311 #define SW_PORT0_PMAR0_PRIM_MAC_ADDR_MASK        (0xFFFFFFFFU)
312 #define SW_PORT0_PMAR0_PRIM_MAC_ADDR_SHIFT       (0U)
313 #define SW_PORT0_PMAR0_PRIM_MAC_ADDR_WIDTH       (32U)
314 #define SW_PORT0_PMAR0_PRIM_MAC_ADDR(x)          (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PMAR0_PRIM_MAC_ADDR_SHIFT)) & SW_PORT0_PMAR0_PRIM_MAC_ADDR_MASK)
315 /*! @} */
316 
317 /*! @name PMAR1 - Port MAC address register 1 */
318 /*! @{ */
319 
320 #define SW_PORT0_PMAR1_PRIM_MAC_ADDR_MASK        (0xFFFFU)
321 #define SW_PORT0_PMAR1_PRIM_MAC_ADDR_SHIFT       (0U)
322 #define SW_PORT0_PMAR1_PRIM_MAC_ADDR_WIDTH       (16U)
323 #define SW_PORT0_PMAR1_PRIM_MAC_ADDR(x)          (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PMAR1_PRIM_MAC_ADDR_SHIFT)) & SW_PORT0_PMAR1_PRIM_MAC_ADDR_MASK)
324 /*! @} */
325 
326 /*! @name PTAR - Port TPID acceptance register */
327 /*! @{ */
328 
329 #define SW_PORT0_PTAR_OVTPIDL_MASK               (0xFU)
330 #define SW_PORT0_PTAR_OVTPIDL_SHIFT              (0U)
331 #define SW_PORT0_PTAR_OVTPIDL_WIDTH              (4U)
332 #define SW_PORT0_PTAR_OVTPIDL(x)                 (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTAR_OVTPIDL_SHIFT)) & SW_PORT0_PTAR_OVTPIDL_MASK)
333 
334 #define SW_PORT0_PTAR_IVTPIDL_MASK               (0xF0U)
335 #define SW_PORT0_PTAR_IVTPIDL_SHIFT              (4U)
336 #define SW_PORT0_PTAR_IVTPIDL_WIDTH              (4U)
337 #define SW_PORT0_PTAR_IVTPIDL(x)                 (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTAR_IVTPIDL_SHIFT)) & SW_PORT0_PTAR_IVTPIDL_MASK)
338 /*! @} */
339 
340 /*! @name PQOSMR - Port QoS mode register */
341 /*! @{ */
342 
343 #define SW_PORT0_PQOSMR_VS_MASK                  (0x1U)
344 #define SW_PORT0_PQOSMR_VS_SHIFT                 (0U)
345 #define SW_PORT0_PQOSMR_VS_WIDTH                 (1U)
346 #define SW_PORT0_PQOSMR_VS(x)                    (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PQOSMR_VS_SHIFT)) & SW_PORT0_PQOSMR_VS_MASK)
347 
348 #define SW_PORT0_PQOSMR_VE_MASK                  (0x2U)
349 #define SW_PORT0_PQOSMR_VE_SHIFT                 (1U)
350 #define SW_PORT0_PQOSMR_VE_WIDTH                 (1U)
351 #define SW_PORT0_PQOSMR_VE(x)                    (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PQOSMR_VE_SHIFT)) & SW_PORT0_PQOSMR_VE_MASK)
352 
353 #define SW_PORT0_PQOSMR_DDR_MASK                 (0xCU)
354 #define SW_PORT0_PQOSMR_DDR_SHIFT                (2U)
355 #define SW_PORT0_PQOSMR_DDR_WIDTH                (2U)
356 #define SW_PORT0_PQOSMR_DDR(x)                   (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PQOSMR_DDR_SHIFT)) & SW_PORT0_PQOSMR_DDR_MASK)
357 
358 #define SW_PORT0_PQOSMR_DIPV_MASK                (0x70U)
359 #define SW_PORT0_PQOSMR_DIPV_SHIFT               (4U)
360 #define SW_PORT0_PQOSMR_DIPV_WIDTH               (3U)
361 #define SW_PORT0_PQOSMR_DIPV(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PQOSMR_DIPV_SHIFT)) & SW_PORT0_PQOSMR_DIPV_MASK)
362 
363 #define SW_PORT0_PQOSMR_VQMP_MASK                (0xF0000U)
364 #define SW_PORT0_PQOSMR_VQMP_SHIFT               (16U)
365 #define SW_PORT0_PQOSMR_VQMP_WIDTH               (4U)
366 #define SW_PORT0_PQOSMR_VQMP(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PQOSMR_VQMP_SHIFT)) & SW_PORT0_PQOSMR_VQMP_MASK)
367 
368 #define SW_PORT0_PQOSMR_QVMP_MASK                (0xF00000U)
369 #define SW_PORT0_PQOSMR_QVMP_SHIFT               (20U)
370 #define SW_PORT0_PQOSMR_QVMP_WIDTH               (4U)
371 #define SW_PORT0_PQOSMR_QVMP(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PQOSMR_QVMP_SHIFT)) & SW_PORT0_PQOSMR_QVMP_MASK)
372 /*! @} */
373 
374 /*! @name PQOR - Port Queue Operational register */
375 /*! @{ */
376 
377 #define SW_PORT0_PQOR_Q0S_MASK                   (0x1U)
378 #define SW_PORT0_PQOR_Q0S_SHIFT                  (0U)
379 #define SW_PORT0_PQOR_Q0S_WIDTH                  (1U)
380 #define SW_PORT0_PQOR_Q0S(x)                     (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PQOR_Q0S_SHIFT)) & SW_PORT0_PQOR_Q0S_MASK)
381 
382 #define SW_PORT0_PQOR_Q1S_MASK                   (0x2U)
383 #define SW_PORT0_PQOR_Q1S_SHIFT                  (1U)
384 #define SW_PORT0_PQOR_Q1S_WIDTH                  (1U)
385 #define SW_PORT0_PQOR_Q1S(x)                     (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PQOR_Q1S_SHIFT)) & SW_PORT0_PQOR_Q1S_MASK)
386 
387 #define SW_PORT0_PQOR_Q2S_MASK                   (0x4U)
388 #define SW_PORT0_PQOR_Q2S_SHIFT                  (2U)
389 #define SW_PORT0_PQOR_Q2S_WIDTH                  (1U)
390 #define SW_PORT0_PQOR_Q2S(x)                     (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PQOR_Q2S_SHIFT)) & SW_PORT0_PQOR_Q2S_MASK)
391 
392 #define SW_PORT0_PQOR_Q3S_MASK                   (0x8U)
393 #define SW_PORT0_PQOR_Q3S_SHIFT                  (3U)
394 #define SW_PORT0_PQOR_Q3S_WIDTH                  (1U)
395 #define SW_PORT0_PQOR_Q3S(x)                     (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PQOR_Q3S_SHIFT)) & SW_PORT0_PQOR_Q3S_MASK)
396 
397 #define SW_PORT0_PQOR_Q4S_MASK                   (0x10U)
398 #define SW_PORT0_PQOR_Q4S_SHIFT                  (4U)
399 #define SW_PORT0_PQOR_Q4S_WIDTH                  (1U)
400 #define SW_PORT0_PQOR_Q4S(x)                     (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PQOR_Q4S_SHIFT)) & SW_PORT0_PQOR_Q4S_MASK)
401 
402 #define SW_PORT0_PQOR_Q5S_MASK                   (0x20U)
403 #define SW_PORT0_PQOR_Q5S_SHIFT                  (5U)
404 #define SW_PORT0_PQOR_Q5S_WIDTH                  (1U)
405 #define SW_PORT0_PQOR_Q5S(x)                     (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PQOR_Q5S_SHIFT)) & SW_PORT0_PQOR_Q5S_MASK)
406 
407 #define SW_PORT0_PQOR_Q6S_MASK                   (0x40U)
408 #define SW_PORT0_PQOR_Q6S_SHIFT                  (6U)
409 #define SW_PORT0_PQOR_Q6S_WIDTH                  (1U)
410 #define SW_PORT0_PQOR_Q6S(x)                     (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PQOR_Q6S_SHIFT)) & SW_PORT0_PQOR_Q6S_MASK)
411 
412 #define SW_PORT0_PQOR_Q7S_MASK                   (0x80U)
413 #define SW_PORT0_PQOR_Q7S_SHIFT                  (7U)
414 #define SW_PORT0_PQOR_Q7S_WIDTH                  (1U)
415 #define SW_PORT0_PQOR_Q7S(x)                     (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PQOR_Q7S_SHIFT)) & SW_PORT0_PQOR_Q7S_MASK)
416 /*! @} */
417 
418 /*! @name PPCR - Port parser configuration register */
419 /*! @{ */
420 
421 #define SW_PORT0_PPCR_L1PFS_MASK                 (0x3EU)
422 #define SW_PORT0_PPCR_L1PFS_SHIFT                (1U)
423 #define SW_PORT0_PPCR_L1PFS_WIDTH                (5U)
424 #define SW_PORT0_PPCR_L1PFS(x)                   (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PPCR_L1PFS_SHIFT)) & SW_PORT0_PPCR_L1PFS_MASK)
425 
426 #define SW_PORT0_PPCR_L2PFS_MASK                 (0x3E00U)
427 #define SW_PORT0_PPCR_L2PFS_SHIFT                (9U)
428 #define SW_PORT0_PPCR_L2PFS_WIDTH                (5U)
429 #define SW_PORT0_PPCR_L2PFS(x)                   (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PPCR_L2PFS_SHIFT)) & SW_PORT0_PPCR_L2PFS_MASK)
430 
431 #define SW_PORT0_PPCR_L3HFP_MASK                 (0x10000U)
432 #define SW_PORT0_PPCR_L3HFP_SHIFT                (16U)
433 #define SW_PORT0_PPCR_L3HFP_WIDTH                (1U)
434 #define SW_PORT0_PPCR_L3HFP(x)                   (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PPCR_L3HFP_SHIFT)) & SW_PORT0_PPCR_L3HFP_MASK)
435 
436 #define SW_PORT0_PPCR_L3PFS_MASK                 (0x3E0000U)
437 #define SW_PORT0_PPCR_L3PFS_SHIFT                (17U)
438 #define SW_PORT0_PPCR_L3PFS_WIDTH                (5U)
439 #define SW_PORT0_PPCR_L3PFS(x)                   (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PPCR_L3PFS_SHIFT)) & SW_PORT0_PPCR_L3PFS_MASK)
440 
441 #define SW_PORT0_PPCR_L4HFP_MASK                 (0x1000000U)
442 #define SW_PORT0_PPCR_L4HFP_SHIFT                (24U)
443 #define SW_PORT0_PPCR_L4HFP_WIDTH                (1U)
444 #define SW_PORT0_PPCR_L4HFP(x)                   (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PPCR_L4HFP_SHIFT)) & SW_PORT0_PPCR_L4HFP_MASK)
445 
446 #define SW_PORT0_PPCR_L4PFS_MASK                 (0x3E000000U)
447 #define SW_PORT0_PPCR_L4PFS_SHIFT                (25U)
448 #define SW_PORT0_PPCR_L4PFS_WIDTH                (5U)
449 #define SW_PORT0_PPCR_L4PFS(x)                   (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PPCR_L4PFS_SHIFT)) & SW_PORT0_PPCR_L4PFS_MASK)
450 /*! @} */
451 
452 /*! @name PIPFCR - Port ingress port filter configuration register */
453 /*! @{ */
454 
455 #define SW_PORT0_PIPFCR_EN_MASK                  (0x1U)
456 #define SW_PORT0_PIPFCR_EN_SHIFT                 (0U)
457 #define SW_PORT0_PIPFCR_EN_WIDTH                 (1U)
458 #define SW_PORT0_PIPFCR_EN(x)                    (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PIPFCR_EN_SHIFT)) & SW_PORT0_PIPFCR_EN_MASK)
459 /*! @} */
460 
461 /*! @name PSGCR - Port stream gate configuration register */
462 /*! @{ */
463 
464 #define SW_PORT0_PSGCR_PDELAY_MASK               (0xFFFFFFU)
465 #define SW_PORT0_PSGCR_PDELAY_SHIFT              (0U)
466 #define SW_PORT0_PSGCR_PDELAY_WIDTH              (24U)
467 #define SW_PORT0_PSGCR_PDELAY(x)                 (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PSGCR_PDELAY_SHIFT)) & SW_PORT0_PSGCR_PDELAY_MASK)
468 
469 #define SW_PORT0_PSGCR_OGC_MASK                  (0x80000000U)
470 #define SW_PORT0_PSGCR_OGC_SHIFT                 (31U)
471 #define SW_PORT0_PSGCR_OGC_WIDTH                 (1U)
472 #define SW_PORT0_PSGCR_OGC(x)                    (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PSGCR_OGC_SHIFT)) & SW_PORT0_PSGCR_OGC_MASK)
473 /*! @} */
474 
475 /*! @name POR - Port operational register */
476 /*! @{ */
477 
478 #define SW_PORT0_POR_TXDIS_MASK                  (0x1U)
479 #define SW_PORT0_POR_TXDIS_SHIFT                 (0U)
480 #define SW_PORT0_POR_TXDIS_WIDTH                 (1U)
481 #define SW_PORT0_POR_TXDIS(x)                    (((uint32_t)(((uint32_t)(x)) << SW_PORT0_POR_TXDIS_SHIFT)) & SW_PORT0_POR_TXDIS_MASK)
482 
483 #define SW_PORT0_POR_RXDIS_MASK                  (0x2U)
484 #define SW_PORT0_POR_RXDIS_SHIFT                 (1U)
485 #define SW_PORT0_POR_RXDIS_WIDTH                 (1U)
486 #define SW_PORT0_POR_RXDIS(x)                    (((uint32_t)(((uint32_t)(x)) << SW_PORT0_POR_RXDIS_SHIFT)) & SW_PORT0_POR_RXDIS_MASK)
487 /*! @} */
488 
489 /*! @name PSR - Port status register */
490 /*! @{ */
491 
492 #define SW_PORT0_PSR_TX_BUSY_MASK                (0x1U)
493 #define SW_PORT0_PSR_TX_BUSY_SHIFT               (0U)
494 #define SW_PORT0_PSR_TX_BUSY_WIDTH               (1U)
495 #define SW_PORT0_PSR_TX_BUSY(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PSR_TX_BUSY_SHIFT)) & SW_PORT0_PSR_TX_BUSY_MASK)
496 
497 #define SW_PORT0_PSR_RX_BUSY_MASK                (0x2U)
498 #define SW_PORT0_PSR_RX_BUSY_SHIFT               (1U)
499 #define SW_PORT0_PSR_RX_BUSY_WIDTH               (1U)
500 #define SW_PORT0_PSR_RX_BUSY(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PSR_RX_BUSY_SHIFT)) & SW_PORT0_PSR_RX_BUSY_MASK)
501 /*! @} */
502 
503 /*! @name PRXSDUOR - Port receive SDU overhead register */
504 /*! @{ */
505 
506 #define SW_PORT0_PRXSDUOR_PPDU_BCO_MASK          (0x1FU)
507 #define SW_PORT0_PRXSDUOR_PPDU_BCO_SHIFT         (0U)
508 #define SW_PORT0_PRXSDUOR_PPDU_BCO_WIDTH         (5U)
509 #define SW_PORT0_PRXSDUOR_PPDU_BCO(x)            (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXSDUOR_PPDU_BCO_SHIFT)) & SW_PORT0_PRXSDUOR_PPDU_BCO_MASK)
510 
511 #define SW_PORT0_PRXSDUOR_MACSEC_BCO_MASK        (0x1F00U)
512 #define SW_PORT0_PRXSDUOR_MACSEC_BCO_SHIFT       (8U)
513 #define SW_PORT0_PRXSDUOR_MACSEC_BCO_WIDTH       (5U)
514 #define SW_PORT0_PRXSDUOR_MACSEC_BCO(x)          (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXSDUOR_MACSEC_BCO_SHIFT)) & SW_PORT0_PRXSDUOR_MACSEC_BCO_MASK)
515 /*! @} */
516 
517 /*! @name PTXSDUOR - Port transmit SDU overhead register */
518 /*! @{ */
519 
520 #define SW_PORT0_PTXSDUOR_PPDU_BCO_MASK          (0x1FU)
521 #define SW_PORT0_PTXSDUOR_PPDU_BCO_SHIFT         (0U)
522 #define SW_PORT0_PTXSDUOR_PPDU_BCO_WIDTH         (5U)
523 #define SW_PORT0_PTXSDUOR_PPDU_BCO(x)            (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXSDUOR_PPDU_BCO_SHIFT)) & SW_PORT0_PTXSDUOR_PPDU_BCO_MASK)
524 
525 #define SW_PORT0_PTXSDUOR_MACSEC_BCO_MASK        (0x1F00U)
526 #define SW_PORT0_PTXSDUOR_MACSEC_BCO_SHIFT       (8U)
527 #define SW_PORT0_PTXSDUOR_MACSEC_BCO_WIDTH       (5U)
528 #define SW_PORT0_PTXSDUOR_MACSEC_BCO(x)          (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXSDUOR_MACSEC_BCO_SHIFT)) & SW_PORT0_PTXSDUOR_MACSEC_BCO_MASK)
529 /*! @} */
530 
531 /*! @name PTGSCR - Port time gate scheduling control register */
532 /*! @{ */
533 
534 #define SW_PORT0_PTGSCR_TGE_MASK                 (0x80000000U)
535 #define SW_PORT0_PTGSCR_TGE_SHIFT                (31U)
536 #define SW_PORT0_PTGSCR_TGE_WIDTH                (1U)
537 #define SW_PORT0_PTGSCR_TGE(x)                   (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTGSCR_TGE_SHIFT)) & SW_PORT0_PTGSCR_TGE_MASK)
538 /*! @} */
539 
540 /*! @name PTGAGLSR - Port time gate scheduling admin gate list status register */
541 /*! @{ */
542 
543 #define SW_PORT0_PTGAGLSR_TG_MASK                (0x1U)
544 #define SW_PORT0_PTGAGLSR_TG_SHIFT               (0U)
545 #define SW_PORT0_PTGAGLSR_TG_WIDTH               (1U)
546 #define SW_PORT0_PTGAGLSR_TG(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTGAGLSR_TG_SHIFT)) & SW_PORT0_PTGAGLSR_TG_MASK)
547 
548 #define SW_PORT0_PTGAGLSR_CFG_PEND_MASK          (0x2U)
549 #define SW_PORT0_PTGAGLSR_CFG_PEND_SHIFT         (1U)
550 #define SW_PORT0_PTGAGLSR_CFG_PEND_WIDTH         (1U)
551 #define SW_PORT0_PTGAGLSR_CFG_PEND(x)            (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTGAGLSR_CFG_PEND_SHIFT)) & SW_PORT0_PTGAGLSR_CFG_PEND_MASK)
552 /*! @} */
553 
554 /*! @name PTGAGLLR - Port time gate scheduling admin gate list length register */
555 /*! @{ */
556 
557 #define SW_PORT0_PTGAGLLR_ADMIN_GATE_LIST_LENGTH_MASK (0xFFFFU)
558 #define SW_PORT0_PTGAGLLR_ADMIN_GATE_LIST_LENGTH_SHIFT (0U)
559 #define SW_PORT0_PTGAGLLR_ADMIN_GATE_LIST_LENGTH_WIDTH (16U)
560 #define SW_PORT0_PTGAGLLR_ADMIN_GATE_LIST_LENGTH(x) (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTGAGLLR_ADMIN_GATE_LIST_LENGTH_SHIFT)) & SW_PORT0_PTGAGLLR_ADMIN_GATE_LIST_LENGTH_MASK)
561 /*! @} */
562 
563 /*! @name PTGOGLLR - Port time gating operational gate list length register */
564 /*! @{ */
565 
566 #define SW_PORT0_PTGOGLLR_OPER_GATE_LIST_LENGTH_MASK (0xFFFFU)
567 #define SW_PORT0_PTGOGLLR_OPER_GATE_LIST_LENGTH_SHIFT (0U)
568 #define SW_PORT0_PTGOGLLR_OPER_GATE_LIST_LENGTH_WIDTH (16U)
569 #define SW_PORT0_PTGOGLLR_OPER_GATE_LIST_LENGTH(x) (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTGOGLLR_OPER_GATE_LIST_LENGTH_SHIFT)) & SW_PORT0_PTGOGLLR_OPER_GATE_LIST_LENGTH_MASK)
570 /*! @} */
571 
572 /*! @name PTGSHAR - Port time gate scheduling hold advance register */
573 /*! @{ */
574 
575 #define SW_PORT0_PTGSHAR_HOLDADVANCE_MASK        (0xFFFFU)
576 #define SW_PORT0_PTGSHAR_HOLDADVANCE_SHIFT       (0U)
577 #define SW_PORT0_PTGSHAR_HOLDADVANCE_WIDTH       (16U)
578 #define SW_PORT0_PTGSHAR_HOLDADVANCE(x)          (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTGSHAR_HOLDADVANCE_SHIFT)) & SW_PORT0_PTGSHAR_HOLDADVANCE_MASK)
579 /*! @} */
580 
581 /*! @name PTGSRAR - Port time gate scheduling release advance register */
582 /*! @{ */
583 
584 #define SW_PORT0_PTGSRAR_RELEASEADVANCE_MASK     (0xFFFFU)
585 #define SW_PORT0_PTGSRAR_RELEASEADVANCE_SHIFT    (0U)
586 #define SW_PORT0_PTGSRAR_RELEASEADVANCE_WIDTH    (16U)
587 #define SW_PORT0_PTGSRAR_RELEASEADVANCE(x)       (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTGSRAR_RELEASEADVANCE_SHIFT)) & SW_PORT0_PTGSRAR_RELEASEADVANCE_MASK)
588 /*! @} */
589 
590 /*! @name PTGSHCR - Port time gate scheduling hold configuration register */
591 /*! @{ */
592 
593 #define SW_PORT0_PTGSHCR_HOLD_SKEW_MASK          (0xFFFFFU)
594 #define SW_PORT0_PTGSHCR_HOLD_SKEW_SHIFT         (0U)
595 #define SW_PORT0_PTGSHCR_HOLD_SKEW_WIDTH         (20U)
596 #define SW_PORT0_PTGSHCR_HOLD_SKEW(x)            (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTGSHCR_HOLD_SKEW_SHIFT)) & SW_PORT0_PTGSHCR_HOLD_SKEW_MASK)
597 /*! @} */
598 
599 /*! @name PFPCR - Port frame preemption configuration register */
600 /*! @{ */
601 
602 #define SW_PORT0_PFPCR_FPE_TC0_MASK              (0x1U)
603 #define SW_PORT0_PFPCR_FPE_TC0_SHIFT             (0U)
604 #define SW_PORT0_PFPCR_FPE_TC0_WIDTH             (1U)
605 #define SW_PORT0_PFPCR_FPE_TC0(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PFPCR_FPE_TC0_SHIFT)) & SW_PORT0_PFPCR_FPE_TC0_MASK)
606 
607 #define SW_PORT0_PFPCR_FPE_TC1_MASK              (0x2U)
608 #define SW_PORT0_PFPCR_FPE_TC1_SHIFT             (1U)
609 #define SW_PORT0_PFPCR_FPE_TC1_WIDTH             (1U)
610 #define SW_PORT0_PFPCR_FPE_TC1(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PFPCR_FPE_TC1_SHIFT)) & SW_PORT0_PFPCR_FPE_TC1_MASK)
611 
612 #define SW_PORT0_PFPCR_FPE_TC2_MASK              (0x4U)
613 #define SW_PORT0_PFPCR_FPE_TC2_SHIFT             (2U)
614 #define SW_PORT0_PFPCR_FPE_TC2_WIDTH             (1U)
615 #define SW_PORT0_PFPCR_FPE_TC2(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PFPCR_FPE_TC2_SHIFT)) & SW_PORT0_PFPCR_FPE_TC2_MASK)
616 
617 #define SW_PORT0_PFPCR_FPE_TC3_MASK              (0x8U)
618 #define SW_PORT0_PFPCR_FPE_TC3_SHIFT             (3U)
619 #define SW_PORT0_PFPCR_FPE_TC3_WIDTH             (1U)
620 #define SW_PORT0_PFPCR_FPE_TC3(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PFPCR_FPE_TC3_SHIFT)) & SW_PORT0_PFPCR_FPE_TC3_MASK)
621 
622 #define SW_PORT0_PFPCR_FPE_TC4_MASK              (0x10U)
623 #define SW_PORT0_PFPCR_FPE_TC4_SHIFT             (4U)
624 #define SW_PORT0_PFPCR_FPE_TC4_WIDTH             (1U)
625 #define SW_PORT0_PFPCR_FPE_TC4(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PFPCR_FPE_TC4_SHIFT)) & SW_PORT0_PFPCR_FPE_TC4_MASK)
626 
627 #define SW_PORT0_PFPCR_FPE_TC5_MASK              (0x20U)
628 #define SW_PORT0_PFPCR_FPE_TC5_SHIFT             (5U)
629 #define SW_PORT0_PFPCR_FPE_TC5_WIDTH             (1U)
630 #define SW_PORT0_PFPCR_FPE_TC5(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PFPCR_FPE_TC5_SHIFT)) & SW_PORT0_PFPCR_FPE_TC5_MASK)
631 
632 #define SW_PORT0_PFPCR_FPE_TC6_MASK              (0x40U)
633 #define SW_PORT0_PFPCR_FPE_TC6_SHIFT             (6U)
634 #define SW_PORT0_PFPCR_FPE_TC6_WIDTH             (1U)
635 #define SW_PORT0_PFPCR_FPE_TC6(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PFPCR_FPE_TC6_SHIFT)) & SW_PORT0_PFPCR_FPE_TC6_MASK)
636 
637 #define SW_PORT0_PFPCR_FPE_TC7_MASK              (0x80U)
638 #define SW_PORT0_PFPCR_FPE_TC7_SHIFT             (7U)
639 #define SW_PORT0_PFPCR_FPE_TC7_WIDTH             (1U)
640 #define SW_PORT0_PFPCR_FPE_TC7(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PFPCR_FPE_TC7_SHIFT)) & SW_PORT0_PFPCR_FPE_TC7_MASK)
641 /*! @} */
642 
643 /*! @name PRXDCR - Port Rx discard count register */
644 /*! @{ */
645 
646 #define SW_PORT0_PRXDCR_COUNT_MASK               (0xFFFFFFFFU)
647 #define SW_PORT0_PRXDCR_COUNT_SHIFT              (0U)
648 #define SW_PORT0_PRXDCR_COUNT_WIDTH              (32U)
649 #define SW_PORT0_PRXDCR_COUNT(x)                 (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCR_COUNT_SHIFT)) & SW_PORT0_PRXDCR_COUNT_MASK)
650 /*! @} */
651 
652 /*! @name PRXDCRR0 - Port Rx discard count reason register 0 */
653 /*! @{ */
654 
655 #define SW_PORT0_PRXDCRR0_PCDR_MASK              (0x1U)
656 #define SW_PORT0_PRXDCRR0_PCDR_SHIFT             (0U)
657 #define SW_PORT0_PRXDCRR0_PCDR_WIDTH             (1U)
658 #define SW_PORT0_PRXDCRR0_PCDR(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_PCDR_SHIFT)) & SW_PORT0_PRXDCRR0_PCDR_MASK)
659 
660 #define SW_PORT0_PRXDCRR0_SMREDR_MASK            (0x2U)
661 #define SW_PORT0_PRXDCRR0_SMREDR_SHIFT           (1U)
662 #define SW_PORT0_PRXDCRR0_SMREDR_WIDTH           (1U)
663 #define SW_PORT0_PRXDCRR0_SMREDR(x)              (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_SMREDR_SHIFT)) & SW_PORT0_PRXDCRR0_SMREDR_MASK)
664 
665 #define SW_PORT0_PRXDCRR0_RXDISDR_MASK           (0x4U)
666 #define SW_PORT0_PRXDCRR0_RXDISDR_SHIFT          (2U)
667 #define SW_PORT0_PRXDCRR0_RXDISDR_WIDTH          (1U)
668 #define SW_PORT0_PRXDCRR0_RXDISDR(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_RXDISDR_SHIFT)) & SW_PORT0_PRXDCRR0_RXDISDR_MASK)
669 
670 #define SW_PORT0_PRXDCRR0_IPFDR_MASK             (0x8U)
671 #define SW_PORT0_PRXDCRR0_IPFDR_SHIFT            (3U)
672 #define SW_PORT0_PRXDCRR0_IPFDR_WIDTH            (1U)
673 #define SW_PORT0_PRXDCRR0_IPFDR(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_IPFDR_SHIFT)) & SW_PORT0_PRXDCRR0_IPFDR_MASK)
674 
675 #define SW_PORT0_PRXDCRR0_RPDR_MASK              (0x10U)
676 #define SW_PORT0_PRXDCRR0_RPDR_SHIFT             (4U)
677 #define SW_PORT0_PRXDCRR0_RPDR_WIDTH             (1U)
678 #define SW_PORT0_PRXDCRR0_RPDR(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_RPDR_SHIFT)) & SW_PORT0_PRXDCRR0_RPDR_MASK)
679 
680 #define SW_PORT0_PRXDCRR0_ISFDR_MASK             (0x20U)
681 #define SW_PORT0_PRXDCRR0_ISFDR_SHIFT            (5U)
682 #define SW_PORT0_PRXDCRR0_ISFDR_WIDTH            (1U)
683 #define SW_PORT0_PRXDCRR0_ISFDR(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_ISFDR_SHIFT)) & SW_PORT0_PRXDCRR0_ISFDR_MASK)
684 
685 #define SW_PORT0_PRXDCRR0_SGCDR_MASK             (0x40U)
686 #define SW_PORT0_PRXDCRR0_SGCDR_SHIFT            (6U)
687 #define SW_PORT0_PRXDCRR0_SGCDR_WIDTH            (1U)
688 #define SW_PORT0_PRXDCRR0_SGCDR(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_SGCDR_SHIFT)) & SW_PORT0_PRXDCRR0_SGCDR_MASK)
689 
690 #define SW_PORT0_PRXDCRR0_SGOEDR_MASK            (0x80U)
691 #define SW_PORT0_PRXDCRR0_SGOEDR_SHIFT           (7U)
692 #define SW_PORT0_PRXDCRR0_SGOEDR_WIDTH           (1U)
693 #define SW_PORT0_PRXDCRR0_SGOEDR(x)              (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_SGOEDR_SHIFT)) & SW_PORT0_PRXDCRR0_SGOEDR_MASK)
694 
695 #define SW_PORT0_PRXDCRR0_MSDUEDR_MASK           (0x100U)
696 #define SW_PORT0_PRXDCRR0_MSDUEDR_SHIFT          (8U)
697 #define SW_PORT0_PRXDCRR0_MSDUEDR_WIDTH          (1U)
698 #define SW_PORT0_PRXDCRR0_MSDUEDR(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_MSDUEDR_SHIFT)) & SW_PORT0_PRXDCRR0_MSDUEDR_MASK)
699 
700 #define SW_PORT0_PRXDCRR0_FMMEDR_MASK            (0x200U)
701 #define SW_PORT0_PRXDCRR0_FMMEDR_SHIFT           (9U)
702 #define SW_PORT0_PRXDCRR0_FMMEDR_WIDTH           (1U)
703 #define SW_PORT0_PRXDCRR0_FMMEDR(x)              (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_FMMEDR_SHIFT)) & SW_PORT0_PRXDCRR0_FMMEDR_MASK)
704 
705 #define SW_PORT0_PRXDCRR0_CMDR_MASK              (0x400U)
706 #define SW_PORT0_PRXDCRR0_CMDR_SHIFT             (10U)
707 #define SW_PORT0_PRXDCRR0_CMDR_WIDTH             (1U)
708 #define SW_PORT0_PRXDCRR0_CMDR(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_CMDR_SHIFT)) & SW_PORT0_PRXDCRR0_CMDR_MASK)
709 
710 #define SW_PORT0_PRXDCRR0_ITEDR_MASK             (0x800U)
711 #define SW_PORT0_PRXDCRR0_ITEDR_SHIFT            (11U)
712 #define SW_PORT0_PRXDCRR0_ITEDR_WIDTH            (1U)
713 #define SW_PORT0_PRXDCRR0_ITEDR(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_ITEDR_SHIFT)) & SW_PORT0_PRXDCRR0_ITEDR_MASK)
714 
715 #define SW_PORT0_PRXDCRR0_ECCEDR_MASK            (0x1000U)
716 #define SW_PORT0_PRXDCRR0_ECCEDR_SHIFT           (12U)
717 #define SW_PORT0_PRXDCRR0_ECCEDR_WIDTH           (1U)
718 #define SW_PORT0_PRXDCRR0_ECCEDR(x)              (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_ECCEDR_SHIFT)) & SW_PORT0_PRXDCRR0_ECCEDR_MASK)
719 
720 #define SW_PORT0_PRXDCRR0_L2DOSDR_MASK           (0x4000U)
721 #define SW_PORT0_PRXDCRR0_L2DOSDR_SHIFT          (14U)
722 #define SW_PORT0_PRXDCRR0_L2DOSDR_WIDTH          (1U)
723 #define SW_PORT0_PRXDCRR0_L2DOSDR(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_L2DOSDR_SHIFT)) & SW_PORT0_PRXDCRR0_L2DOSDR_MASK)
724 
725 #define SW_PORT0_PRXDCRR0_PEDR_MASK              (0x10000U)
726 #define SW_PORT0_PRXDCRR0_PEDR_SHIFT             (16U)
727 #define SW_PORT0_PRXDCRR0_PEDR_WIDTH             (1U)
728 #define SW_PORT0_PRXDCRR0_PEDR(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_PEDR_SHIFT)) & SW_PORT0_PRXDCRR0_PEDR_MASK)
729 
730 #define SW_PORT0_PRXDCRR0_NODESTDR_MASK          (0x20000U)
731 #define SW_PORT0_PRXDCRR0_NODESTDR_SHIFT         (17U)
732 #define SW_PORT0_PRXDCRR0_NODESTDR_WIDTH         (1U)
733 #define SW_PORT0_PRXDCRR0_NODESTDR(x)            (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR0_NODESTDR_SHIFT)) & SW_PORT0_PRXDCRR0_NODESTDR_MASK)
734 /*! @} */
735 
736 /*! @name PRXDCRR1 - Port Rx discard count reason register 1 */
737 /*! @{ */
738 
739 #define SW_PORT0_PRXDCRR1_ENTRYID_MASK           (0xFFFFU)
740 #define SW_PORT0_PRXDCRR1_ENTRYID_SHIFT          (0U)
741 #define SW_PORT0_PRXDCRR1_ENTRYID_WIDTH          (16U)
742 #define SW_PORT0_PRXDCRR1_ENTRYID(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR1_ENTRYID_SHIFT)) & SW_PORT0_PRXDCRR1_ENTRYID_MASK)
743 
744 #define SW_PORT0_PRXDCRR1_TT_MASK                (0xF0000000U)
745 #define SW_PORT0_PRXDCRR1_TT_SHIFT               (28U)
746 #define SW_PORT0_PRXDCRR1_TT_WIDTH               (4U)
747 #define SW_PORT0_PRXDCRR1_TT(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PRXDCRR1_TT_SHIFT)) & SW_PORT0_PRXDCRR1_TT_MASK)
748 /*! @} */
749 
750 /*! @name PTXDCR - Port Tx discard count register */
751 /*! @{ */
752 
753 #define SW_PORT0_PTXDCR_COUNT_MASK               (0xFFFFFFFFU)
754 #define SW_PORT0_PTXDCR_COUNT_SHIFT              (0U)
755 #define SW_PORT0_PTXDCR_COUNT_WIDTH              (32U)
756 #define SW_PORT0_PTXDCR_COUNT(x)                 (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCR_COUNT_SHIFT)) & SW_PORT0_PTXDCR_COUNT_MASK)
757 /*! @} */
758 
759 /*! @name PTXDCRR0 - Port Tx discard count reason register 0 */
760 /*! @{ */
761 
762 #define SW_PORT0_PTXDCRR0_TXDISDR_MASK           (0x1U)
763 #define SW_PORT0_PTXDCRR0_TXDISDR_SHIFT          (0U)
764 #define SW_PORT0_PTXDCRR0_TXDISDR_WIDTH          (1U)
765 #define SW_PORT0_PTXDCRR0_TXDISDR(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR0_TXDISDR_SHIFT)) & SW_PORT0_PTXDCRR0_TXDISDR_MASK)
766 
767 #define SW_PORT0_PTXDCRR0_ECCEDR_MASK            (0x2U)
768 #define SW_PORT0_PTXDCRR0_ECCEDR_SHIFT           (1U)
769 #define SW_PORT0_PTXDCRR0_ECCEDR_WIDTH           (1U)
770 #define SW_PORT0_PTXDCRR0_ECCEDR(x)              (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR0_ECCEDR_SHIFT)) & SW_PORT0_PTXDCRR0_ECCEDR_MASK)
771 
772 #define SW_PORT0_PTXDCRR0_PEDR_MASK              (0x4U)
773 #define SW_PORT0_PTXDCRR0_PEDR_SHIFT             (2U)
774 #define SW_PORT0_PTXDCRR0_PEDR_WIDTH             (1U)
775 #define SW_PORT0_PTXDCRR0_PEDR(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR0_PEDR_SHIFT)) & SW_PORT0_PTXDCRR0_PEDR_MASK)
776 
777 #define SW_PORT0_PTXDCRR0_TGSFTLDR_MASK          (0x10U)
778 #define SW_PORT0_PTXDCRR0_TGSFTLDR_SHIFT         (4U)
779 #define SW_PORT0_PTXDCRR0_TGSFTLDR_WIDTH         (1U)
780 #define SW_PORT0_PTXDCRR0_TGSFTLDR(x)            (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR0_TGSFTLDR_SHIFT)) & SW_PORT0_PTXDCRR0_TGSFTLDR_MASK)
781 
782 #define SW_PORT0_PTXDCRR0_FMMDR_MASK             (0x20U)
783 #define SW_PORT0_PTXDCRR0_FMMDR_SHIFT            (5U)
784 #define SW_PORT0_PTXDCRR0_FMMDR_WIDTH            (1U)
785 #define SW_PORT0_PTXDCRR0_FMMDR(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR0_FMMDR_SHIFT)) & SW_PORT0_PTXDCRR0_FMMDR_MASK)
786 
787 #define SW_PORT0_PTXDCRR0_TXDISEDR_MASK          (0x40U)
788 #define SW_PORT0_PTXDCRR0_TXDISEDR_SHIFT         (6U)
789 #define SW_PORT0_PTXDCRR0_TXDISEDR_WIDTH         (1U)
790 #define SW_PORT0_PTXDCRR0_TXDISEDR(x)            (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR0_TXDISEDR_SHIFT)) & SW_PORT0_PTXDCRR0_TXDISEDR_MASK)
791 
792 #define SW_PORT0_PTXDCRR0_MSDUEDR_MASK           (0x80U)
793 #define SW_PORT0_PTXDCRR0_MSDUEDR_SHIFT          (7U)
794 #define SW_PORT0_PTXDCRR0_MSDUEDR_WIDTH          (1U)
795 #define SW_PORT0_PTXDCRR0_MSDUEDR(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR0_MSDUEDR_SHIFT)) & SW_PORT0_PTXDCRR0_MSDUEDR_MASK)
796 
797 #define SW_PORT0_PTXDCRR0_QCONGDR_MASK           (0x100U)
798 #define SW_PORT0_PTXDCRR0_QCONGDR_SHIFT          (8U)
799 #define SW_PORT0_PTXDCRR0_QCONGDR_WIDTH          (1U)
800 #define SW_PORT0_PTXDCRR0_QCONGDR(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR0_QCONGDR_SHIFT)) & SW_PORT0_PTXDCRR0_QCONGDR_MASK)
801 
802 #define SW_PORT0_PTXDCRR0_ITEDR_MASK             (0x200U)
803 #define SW_PORT0_PTXDCRR0_ITEDR_SHIFT            (9U)
804 #define SW_PORT0_PTXDCRR0_ITEDR_WIDTH            (1U)
805 #define SW_PORT0_PTXDCRR0_ITEDR(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR0_ITEDR_SHIFT)) & SW_PORT0_PTXDCRR0_ITEDR_MASK)
806 
807 #define SW_PORT0_PTXDCRR0_INVEQDR_MASK           (0x400U)
808 #define SW_PORT0_PTXDCRR0_INVEQDR_SHIFT          (10U)
809 #define SW_PORT0_PTXDCRR0_INVEQDR_WIDTH          (1U)
810 #define SW_PORT0_PTXDCRR0_INVEQDR(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR0_INVEQDR_SHIFT)) & SW_PORT0_PTXDCRR0_INVEQDR_MASK)
811 
812 #define SW_PORT0_PTXDCRR0_SQRTNSQDR_MASK         (0x800U)
813 #define SW_PORT0_PTXDCRR0_SQRTNSQDR_SHIFT        (11U)
814 #define SW_PORT0_PTXDCRR0_SQRTNSQDR_WIDTH        (1U)
815 #define SW_PORT0_PTXDCRR0_SQRTNSQDR(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR0_SQRTNSQDR_SHIFT)) & SW_PORT0_PTXDCRR0_SQRTNSQDR_MASK)
816 
817 #define SW_PORT0_PTXDCRR0_SQRRDR_MASK            (0x2000U)
818 #define SW_PORT0_PTXDCRR0_SQRRDR_SHIFT           (13U)
819 #define SW_PORT0_PTXDCRR0_SQRRDR_WIDTH           (1U)
820 #define SW_PORT0_PTXDCRR0_SQRRDR(x)              (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR0_SQRRDR_SHIFT)) & SW_PORT0_PTXDCRR0_SQRRDR_MASK)
821 
822 #define SW_PORT0_PTXDCRR0_SQRDDR_MASK            (0x4000U)
823 #define SW_PORT0_PTXDCRR0_SQRDDR_SHIFT           (14U)
824 #define SW_PORT0_PTXDCRR0_SQRDDR_WIDTH           (1U)
825 #define SW_PORT0_PTXDCRR0_SQRDDR(x)              (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR0_SQRDDR_SHIFT)) & SW_PORT0_PTXDCRR0_SQRDDR_MASK)
826 
827 #define SW_PORT0_PTXDCRR0_SMREDR_MASK            (0x8000U)
828 #define SW_PORT0_PTXDCRR0_SMREDR_SHIFT           (15U)
829 #define SW_PORT0_PTXDCRR0_SMREDR_WIDTH           (1U)
830 #define SW_PORT0_PTXDCRR0_SMREDR(x)              (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR0_SMREDR_SHIFT)) & SW_PORT0_PTXDCRR0_SMREDR_MASK)
831 /*! @} */
832 
833 /*! @name PTXDCRR1 - Port Tx discard count reason register 1 */
834 /*! @{ */
835 
836 #define SW_PORT0_PTXDCRR1_ENTRYID_MASK           (0xFFFFU)
837 #define SW_PORT0_PTXDCRR1_ENTRYID_SHIFT          (0U)
838 #define SW_PORT0_PTXDCRR1_ENTRYID_WIDTH          (16U)
839 #define SW_PORT0_PTXDCRR1_ENTRYID(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR1_ENTRYID_SHIFT)) & SW_PORT0_PTXDCRR1_ENTRYID_MASK)
840 
841 #define SW_PORT0_PTXDCRR1_TT_MASK                (0xF0000000U)
842 #define SW_PORT0_PTXDCRR1_TT_SHIFT               (28U)
843 #define SW_PORT0_PTXDCRR1_TT_WIDTH               (4U)
844 #define SW_PORT0_PTXDCRR1_TT(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTXDCRR1_TT_SHIFT)) & SW_PORT0_PTXDCRR1_TT_MASK)
845 /*! @} */
846 
847 /*! @name PTCTMSDUR - Port traffic class 0 transmit maximum SDU register..Port traffic class 7 transmit maximum SDU register */
848 /*! @{ */
849 
850 #define SW_PORT0_PTCTMSDUR_MAXSDU_MASK           (0xFFFFU)
851 #define SW_PORT0_PTCTMSDUR_MAXSDU_SHIFT          (0U)
852 #define SW_PORT0_PTCTMSDUR_MAXSDU_WIDTH          (16U)
853 #define SW_PORT0_PTCTMSDUR_MAXSDU(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTCTMSDUR_MAXSDU_SHIFT)) & SW_PORT0_PTCTMSDUR_MAXSDU_MASK)
854 
855 #define SW_PORT0_PTCTMSDUR_SDU_TYPE_MASK         (0x30000U)
856 #define SW_PORT0_PTCTMSDUR_SDU_TYPE_SHIFT        (16U)
857 #define SW_PORT0_PTCTMSDUR_SDU_TYPE_WIDTH        (2U)
858 #define SW_PORT0_PTCTMSDUR_SDU_TYPE(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTCTMSDUR_SDU_TYPE_SHIFT)) & SW_PORT0_PTCTMSDUR_SDU_TYPE_MASK)
859 
860 #define SW_PORT0_PTCTMSDUR_SF_MAXSDU_DIS_MASK    (0x1000000U)
861 #define SW_PORT0_PTCTMSDUR_SF_MAXSDU_DIS_SHIFT   (24U)
862 #define SW_PORT0_PTCTMSDUR_SF_MAXSDU_DIS_WIDTH   (1U)
863 #define SW_PORT0_PTCTMSDUR_SF_MAXSDU_DIS(x)      (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTCTMSDUR_SF_MAXSDU_DIS_SHIFT)) & SW_PORT0_PTCTMSDUR_SF_MAXSDU_DIS_MASK)
864 /*! @} */
865 
866 /*! @name PTCCBSR0 - Port transmit traffic class 0 credit based shaper register 0..Port transmit traffic class 7 credit based shaper register 0 */
867 /*! @{ */
868 
869 #define SW_PORT0_PTCCBSR0_BW_MASK                (0x7FU)
870 #define SW_PORT0_PTCCBSR0_BW_SHIFT               (0U)
871 #define SW_PORT0_PTCCBSR0_BW_WIDTH               (7U)
872 #define SW_PORT0_PTCCBSR0_BW(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTCCBSR0_BW_SHIFT)) & SW_PORT0_PTCCBSR0_BW_MASK)
873 
874 #define SW_PORT0_PTCCBSR0_CBSE_MASK              (0x80000000U)
875 #define SW_PORT0_PTCCBSR0_CBSE_SHIFT             (31U)
876 #define SW_PORT0_PTCCBSR0_CBSE_WIDTH             (1U)
877 #define SW_PORT0_PTCCBSR0_CBSE(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTCCBSR0_CBSE_SHIFT)) & SW_PORT0_PTCCBSR0_CBSE_MASK)
878 /*! @} */
879 
880 /*! @name PTCCBSR1 - Port traffic class 0 credit based shaper register 1..Port traffic class 7 credit based shaper register 1 */
881 /*! @{ */
882 
883 #define SW_PORT0_PTCCBSR1_HI_CREDIT_MASK         (0xFFFFFFFFU)
884 #define SW_PORT0_PTCCBSR1_HI_CREDIT_SHIFT        (0U)
885 #define SW_PORT0_PTCCBSR1_HI_CREDIT_WIDTH        (32U)
886 #define SW_PORT0_PTCCBSR1_HI_CREDIT(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTCCBSR1_HI_CREDIT_SHIFT)) & SW_PORT0_PTCCBSR1_HI_CREDIT_MASK)
887 /*! @} */
888 
889 /*! @name PBPMCR0 - Port buffer pool mapping configuration register 0 */
890 /*! @{ */
891 
892 #define SW_PORT0_PBPMCR0_IPV0_INDEX_MASK         (0xFFU)
893 #define SW_PORT0_PBPMCR0_IPV0_INDEX_SHIFT        (0U)
894 #define SW_PORT0_PBPMCR0_IPV0_INDEX_WIDTH        (8U)
895 #define SW_PORT0_PBPMCR0_IPV0_INDEX(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PBPMCR0_IPV0_INDEX_SHIFT)) & SW_PORT0_PBPMCR0_IPV0_INDEX_MASK)
896 
897 #define SW_PORT0_PBPMCR0_IPV1_INDEX_MASK         (0xFF00U)
898 #define SW_PORT0_PBPMCR0_IPV1_INDEX_SHIFT        (8U)
899 #define SW_PORT0_PBPMCR0_IPV1_INDEX_WIDTH        (8U)
900 #define SW_PORT0_PBPMCR0_IPV1_INDEX(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PBPMCR0_IPV1_INDEX_SHIFT)) & SW_PORT0_PBPMCR0_IPV1_INDEX_MASK)
901 
902 #define SW_PORT0_PBPMCR0_IPV2_INDEX_MASK         (0xFF0000U)
903 #define SW_PORT0_PBPMCR0_IPV2_INDEX_SHIFT        (16U)
904 #define SW_PORT0_PBPMCR0_IPV2_INDEX_WIDTH        (8U)
905 #define SW_PORT0_PBPMCR0_IPV2_INDEX(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PBPMCR0_IPV2_INDEX_SHIFT)) & SW_PORT0_PBPMCR0_IPV2_INDEX_MASK)
906 
907 #define SW_PORT0_PBPMCR0_IPV3_INDEX_MASK         (0xFF000000U)
908 #define SW_PORT0_PBPMCR0_IPV3_INDEX_SHIFT        (24U)
909 #define SW_PORT0_PBPMCR0_IPV3_INDEX_WIDTH        (8U)
910 #define SW_PORT0_PBPMCR0_IPV3_INDEX(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PBPMCR0_IPV3_INDEX_SHIFT)) & SW_PORT0_PBPMCR0_IPV3_INDEX_MASK)
911 /*! @} */
912 
913 /*! @name PBPMCR1 - Port buffer pool mapping configuration register 1 */
914 /*! @{ */
915 
916 #define SW_PORT0_PBPMCR1_IPV4_INDEX_MASK         (0xFFU)
917 #define SW_PORT0_PBPMCR1_IPV4_INDEX_SHIFT        (0U)
918 #define SW_PORT0_PBPMCR1_IPV4_INDEX_WIDTH        (8U)
919 #define SW_PORT0_PBPMCR1_IPV4_INDEX(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PBPMCR1_IPV4_INDEX_SHIFT)) & SW_PORT0_PBPMCR1_IPV4_INDEX_MASK)
920 
921 #define SW_PORT0_PBPMCR1_IPV5_INDEX_MASK         (0xFF00U)
922 #define SW_PORT0_PBPMCR1_IPV5_INDEX_SHIFT        (8U)
923 #define SW_PORT0_PBPMCR1_IPV5_INDEX_WIDTH        (8U)
924 #define SW_PORT0_PBPMCR1_IPV5_INDEX(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PBPMCR1_IPV5_INDEX_SHIFT)) & SW_PORT0_PBPMCR1_IPV5_INDEX_MASK)
925 
926 #define SW_PORT0_PBPMCR1_IPV6_INDEX_MASK         (0xFF0000U)
927 #define SW_PORT0_PBPMCR1_IPV6_INDEX_SHIFT        (16U)
928 #define SW_PORT0_PBPMCR1_IPV6_INDEX_WIDTH        (8U)
929 #define SW_PORT0_PBPMCR1_IPV6_INDEX(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PBPMCR1_IPV6_INDEX_SHIFT)) & SW_PORT0_PBPMCR1_IPV6_INDEX_MASK)
930 
931 #define SW_PORT0_PBPMCR1_IPV7_INDEX_MASK         (0xFF000000U)
932 #define SW_PORT0_PBPMCR1_IPV7_INDEX_SHIFT        (24U)
933 #define SW_PORT0_PBPMCR1_IPV7_INDEX_WIDTH        (8U)
934 #define SW_PORT0_PBPMCR1_IPV7_INDEX(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PBPMCR1_IPV7_INDEX_SHIFT)) & SW_PORT0_PBPMCR1_IPV7_INDEX_MASK)
935 /*! @} */
936 
937 /*! @name PPCPDEIMR - Port PCP DEI mapping register */
938 /*! @{ */
939 
940 #define SW_PORT0_PPCPDEIMR_IPCPMP_MASK           (0xFU)
941 #define SW_PORT0_PPCPDEIMR_IPCPMP_SHIFT          (0U)
942 #define SW_PORT0_PPCPDEIMR_IPCPMP_WIDTH          (4U)
943 #define SW_PORT0_PPCPDEIMR_IPCPMP(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PPCPDEIMR_IPCPMP_SHIFT)) & SW_PORT0_PPCPDEIMR_IPCPMP_MASK)
944 
945 #define SW_PORT0_PPCPDEIMR_IPCPMPV_MASK          (0x80U)
946 #define SW_PORT0_PPCPDEIMR_IPCPMPV_SHIFT         (7U)
947 #define SW_PORT0_PPCPDEIMR_IPCPMPV_WIDTH         (1U)
948 #define SW_PORT0_PPCPDEIMR_IPCPMPV(x)            (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PPCPDEIMR_IPCPMPV_SHIFT)) & SW_PORT0_PPCPDEIMR_IPCPMPV_MASK)
949 
950 #define SW_PORT0_PPCPDEIMR_EPCPMP_MASK           (0xF00U)
951 #define SW_PORT0_PPCPDEIMR_EPCPMP_SHIFT          (8U)
952 #define SW_PORT0_PPCPDEIMR_EPCPMP_WIDTH          (4U)
953 #define SW_PORT0_PPCPDEIMR_EPCPMP(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PPCPDEIMR_EPCPMP_SHIFT)) & SW_PORT0_PPCPDEIMR_EPCPMP_MASK)
954 
955 #define SW_PORT0_PPCPDEIMR_EPCPMPV_MASK          (0x8000U)
956 #define SW_PORT0_PPCPDEIMR_EPCPMPV_SHIFT         (15U)
957 #define SW_PORT0_PPCPDEIMR_EPCPMPV_WIDTH         (1U)
958 #define SW_PORT0_PPCPDEIMR_EPCPMPV(x)            (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PPCPDEIMR_EPCPMPV_SHIFT)) & SW_PORT0_PPCPDEIMR_EPCPMPV_MASK)
959 
960 #define SW_PORT0_PPCPDEIMR_DR0DEI_MASK           (0x10000U)
961 #define SW_PORT0_PPCPDEIMR_DR0DEI_SHIFT          (16U)
962 #define SW_PORT0_PPCPDEIMR_DR0DEI_WIDTH          (1U)
963 #define SW_PORT0_PPCPDEIMR_DR0DEI(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PPCPDEIMR_DR0DEI_SHIFT)) & SW_PORT0_PPCPDEIMR_DR0DEI_MASK)
964 
965 #define SW_PORT0_PPCPDEIMR_DR1DEI_MASK           (0x20000U)
966 #define SW_PORT0_PPCPDEIMR_DR1DEI_SHIFT          (17U)
967 #define SW_PORT0_PPCPDEIMR_DR1DEI_WIDTH          (1U)
968 #define SW_PORT0_PPCPDEIMR_DR1DEI(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PPCPDEIMR_DR1DEI_SHIFT)) & SW_PORT0_PPCPDEIMR_DR1DEI_MASK)
969 
970 #define SW_PORT0_PPCPDEIMR_DR2DEI_MASK           (0x40000U)
971 #define SW_PORT0_PPCPDEIMR_DR2DEI_SHIFT          (18U)
972 #define SW_PORT0_PPCPDEIMR_DR2DEI_WIDTH          (1U)
973 #define SW_PORT0_PPCPDEIMR_DR2DEI(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PPCPDEIMR_DR2DEI_SHIFT)) & SW_PORT0_PPCPDEIMR_DR2DEI_MASK)
974 
975 #define SW_PORT0_PPCPDEIMR_DR3DEI_MASK           (0x80000U)
976 #define SW_PORT0_PPCPDEIMR_DR3DEI_SHIFT          (19U)
977 #define SW_PORT0_PPCPDEIMR_DR3DEI_WIDTH          (1U)
978 #define SW_PORT0_PPCPDEIMR_DR3DEI(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PPCPDEIMR_DR3DEI_SHIFT)) & SW_PORT0_PPCPDEIMR_DR3DEI_MASK)
979 
980 #define SW_PORT0_PPCPDEIMR_DRME_MASK             (0x100000U)
981 #define SW_PORT0_PPCPDEIMR_DRME_SHIFT            (20U)
982 #define SW_PORT0_PPCPDEIMR_DRME_WIDTH            (1U)
983 #define SW_PORT0_PPCPDEIMR_DRME(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PPCPDEIMR_DRME_SHIFT)) & SW_PORT0_PPCPDEIMR_DRME_MASK)
984 /*! @} */
985 
986 /*! @name PMCR - Port mirror configuration register */
987 /*! @{ */
988 
989 #define SW_PORT0_PMCR_IMIRE_MASK                 (0x1U)
990 #define SW_PORT0_PMCR_IMIRE_SHIFT                (0U)
991 #define SW_PORT0_PMCR_IMIRE_WIDTH                (1U)
992 #define SW_PORT0_PMCR_IMIRE(x)                   (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PMCR_IMIRE_SHIFT)) & SW_PORT0_PMCR_IMIRE_MASK)
993 /*! @} */
994 
995 /*! @name PCTFCR - Port cut through forwarding configuration register */
996 /*! @{ */
997 
998 #define SW_PORT0_PCTFCR_ICTS_MASK                (0x1U)
999 #define SW_PORT0_PCTFCR_ICTS_SHIFT               (0U)
1000 #define SW_PORT0_PCTFCR_ICTS_WIDTH               (1U)
1001 #define SW_PORT0_PCTFCR_ICTS(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PCTFCR_ICTS_SHIFT)) & SW_PORT0_PCTFCR_ICTS_MASK)
1002 
1003 #define SW_PORT0_PCTFCR_ECTS_MASK                (0x2U)
1004 #define SW_PORT0_PCTFCR_ECTS_SHIFT               (1U)
1005 #define SW_PORT0_PCTFCR_ECTS_WIDTH               (1U)
1006 #define SW_PORT0_PCTFCR_ECTS(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PCTFCR_ECTS_SHIFT)) & SW_PORT0_PCTFCR_ECTS_MASK)
1007 
1008 #define SW_PORT0_PCTFCR_BSQS_MASK                (0x30U)
1009 #define SW_PORT0_PCTFCR_BSQS_SHIFT               (4U)
1010 #define SW_PORT0_PCTFCR_BSQS_WIDTH               (2U)
1011 #define SW_PORT0_PCTFCR_BSQS(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PCTFCR_BSQS_SHIFT)) & SW_PORT0_PCTFCR_BSQS_MASK)
1012 /*! @} */
1013 
1014 /*! @name PLANIDCR - Port LANID configuration register */
1015 /*! @{ */
1016 
1017 #define SW_PORT0_PLANIDCR_LANID_MASK             (0xFU)
1018 #define SW_PORT0_PLANIDCR_LANID_SHIFT            (0U)
1019 #define SW_PORT0_PLANIDCR_LANID_WIDTH            (4U)
1020 #define SW_PORT0_PLANIDCR_LANID(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PLANIDCR_LANID_SHIFT)) & SW_PORT0_PLANIDCR_LANID_MASK)
1021 /*! @} */
1022 
1023 /*! @name PISIDCR - Port ingress stream identification configuration register */
1024 /*! @{ */
1025 
1026 #define SW_PORT0_PISIDCR_KCPAIR_MASK             (0x1U)
1027 #define SW_PORT0_PISIDCR_KCPAIR_SHIFT            (0U)
1028 #define SW_PORT0_PISIDCR_KCPAIR_WIDTH            (1U)
1029 #define SW_PORT0_PISIDCR_KCPAIR(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PISIDCR_KCPAIR_SHIFT)) & SW_PORT0_PISIDCR_KCPAIR_MASK)
1030 
1031 #define SW_PORT0_PISIDCR_KC0EN_MASK              (0x2U)
1032 #define SW_PORT0_PISIDCR_KC0EN_SHIFT             (1U)
1033 #define SW_PORT0_PISIDCR_KC0EN_WIDTH             (1U)
1034 #define SW_PORT0_PISIDCR_KC0EN(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PISIDCR_KC0EN_SHIFT)) & SW_PORT0_PISIDCR_KC0EN_MASK)
1035 
1036 #define SW_PORT0_PISIDCR_KC1EN_MASK              (0x4U)
1037 #define SW_PORT0_PISIDCR_KC1EN_SHIFT             (2U)
1038 #define SW_PORT0_PISIDCR_KC1EN_WIDTH             (1U)
1039 #define SW_PORT0_PISIDCR_KC1EN(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PISIDCR_KC1EN_SHIFT)) & SW_PORT0_PISIDCR_KC1EN_MASK)
1040 
1041 #define SW_PORT0_PISIDCR_ISEID_MASK              (0xFFFF0000U)
1042 #define SW_PORT0_PISIDCR_ISEID_SHIFT             (16U)
1043 #define SW_PORT0_PISIDCR_ISEID_WIDTH             (16U)
1044 #define SW_PORT0_PISIDCR_ISEID(x)                (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PISIDCR_ISEID_SHIFT)) & SW_PORT0_PISIDCR_ISEID_MASK)
1045 /*! @} */
1046 
1047 /*! @name PFMCR - Port frame modification configuration register */
1048 /*! @{ */
1049 
1050 #define SW_PORT0_PFMCR_FMMA_MASK                 (0x1U)
1051 #define SW_PORT0_PFMCR_FMMA_SHIFT                (0U)
1052 #define SW_PORT0_PFMCR_FMMA_WIDTH                (1U)
1053 #define SW_PORT0_PFMCR_FMMA(x)                   (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PFMCR_FMMA_SHIFT)) & SW_PORT0_PFMCR_FMMA_MASK)
1054 /*! @} */
1055 
1056 /*! @name PIPV2QMR0 - Port IPV to queue mapping register 0 */
1057 /*! @{ */
1058 
1059 #define SW_PORT0_PIPV2QMR0_IPV0_Q_MASK           (0xFU)
1060 #define SW_PORT0_PIPV2QMR0_IPV0_Q_SHIFT          (0U)
1061 #define SW_PORT0_PIPV2QMR0_IPV0_Q_WIDTH          (4U)
1062 #define SW_PORT0_PIPV2QMR0_IPV0_Q(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PIPV2QMR0_IPV0_Q_SHIFT)) & SW_PORT0_PIPV2QMR0_IPV0_Q_MASK)
1063 
1064 #define SW_PORT0_PIPV2QMR0_IPV1_Q_MASK           (0xF0U)
1065 #define SW_PORT0_PIPV2QMR0_IPV1_Q_SHIFT          (4U)
1066 #define SW_PORT0_PIPV2QMR0_IPV1_Q_WIDTH          (4U)
1067 #define SW_PORT0_PIPV2QMR0_IPV1_Q(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PIPV2QMR0_IPV1_Q_SHIFT)) & SW_PORT0_PIPV2QMR0_IPV1_Q_MASK)
1068 
1069 #define SW_PORT0_PIPV2QMR0_IPV2_Q_MASK           (0xF00U)
1070 #define SW_PORT0_PIPV2QMR0_IPV2_Q_SHIFT          (8U)
1071 #define SW_PORT0_PIPV2QMR0_IPV2_Q_WIDTH          (4U)
1072 #define SW_PORT0_PIPV2QMR0_IPV2_Q(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PIPV2QMR0_IPV2_Q_SHIFT)) & SW_PORT0_PIPV2QMR0_IPV2_Q_MASK)
1073 
1074 #define SW_PORT0_PIPV2QMR0_IPV3_Q_MASK           (0xF000U)
1075 #define SW_PORT0_PIPV2QMR0_IPV3_Q_SHIFT          (12U)
1076 #define SW_PORT0_PIPV2QMR0_IPV3_Q_WIDTH          (4U)
1077 #define SW_PORT0_PIPV2QMR0_IPV3_Q(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PIPV2QMR0_IPV3_Q_SHIFT)) & SW_PORT0_PIPV2QMR0_IPV3_Q_MASK)
1078 
1079 #define SW_PORT0_PIPV2QMR0_IPV4_Q_MASK           (0xF0000U)
1080 #define SW_PORT0_PIPV2QMR0_IPV4_Q_SHIFT          (16U)
1081 #define SW_PORT0_PIPV2QMR0_IPV4_Q_WIDTH          (4U)
1082 #define SW_PORT0_PIPV2QMR0_IPV4_Q(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PIPV2QMR0_IPV4_Q_SHIFT)) & SW_PORT0_PIPV2QMR0_IPV4_Q_MASK)
1083 
1084 #define SW_PORT0_PIPV2QMR0_IPV5_Q_MASK           (0xF00000U)
1085 #define SW_PORT0_PIPV2QMR0_IPV5_Q_SHIFT          (20U)
1086 #define SW_PORT0_PIPV2QMR0_IPV5_Q_WIDTH          (4U)
1087 #define SW_PORT0_PIPV2QMR0_IPV5_Q(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PIPV2QMR0_IPV5_Q_SHIFT)) & SW_PORT0_PIPV2QMR0_IPV5_Q_MASK)
1088 
1089 #define SW_PORT0_PIPV2QMR0_IPV6_Q_MASK           (0xF000000U)
1090 #define SW_PORT0_PIPV2QMR0_IPV6_Q_SHIFT          (24U)
1091 #define SW_PORT0_PIPV2QMR0_IPV6_Q_WIDTH          (4U)
1092 #define SW_PORT0_PIPV2QMR0_IPV6_Q(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PIPV2QMR0_IPV6_Q_SHIFT)) & SW_PORT0_PIPV2QMR0_IPV6_Q_MASK)
1093 
1094 #define SW_PORT0_PIPV2QMR0_IPV7_Q_MASK           (0xF0000000U)
1095 #define SW_PORT0_PIPV2QMR0_IPV7_Q_SHIFT          (28U)
1096 #define SW_PORT0_PIPV2QMR0_IPV7_Q_WIDTH          (4U)
1097 #define SW_PORT0_PIPV2QMR0_IPV7_Q(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PIPV2QMR0_IPV7_Q_SHIFT)) & SW_PORT0_PIPV2QMR0_IPV7_Q_MASK)
1098 /*! @} */
1099 
1100 /*! @name PTCMINLR - Port time capture minimum latency register */
1101 /*! @{ */
1102 
1103 #define SW_PORT0_PTCMINLR_LATENCY_MASK           (0x3FFFFFFFU)
1104 #define SW_PORT0_PTCMINLR_LATENCY_SHIFT          (0U)
1105 #define SW_PORT0_PTCMINLR_LATENCY_WIDTH          (30U)
1106 #define SW_PORT0_PTCMINLR_LATENCY(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTCMINLR_LATENCY_SHIFT)) & SW_PORT0_PTCMINLR_LATENCY_MASK)
1107 
1108 #define SW_PORT0_PTCMINLR_COUNT_MASK             (0xC0000000U)
1109 #define SW_PORT0_PTCMINLR_COUNT_SHIFT            (30U)
1110 #define SW_PORT0_PTCMINLR_COUNT_WIDTH            (2U)
1111 #define SW_PORT0_PTCMINLR_COUNT(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTCMINLR_COUNT_SHIFT)) & SW_PORT0_PTCMINLR_COUNT_MASK)
1112 /*! @} */
1113 
1114 /*! @name PTCMAXLR - Port time capture maximum latency register */
1115 /*! @{ */
1116 
1117 #define SW_PORT0_PTCMAXLR_LATENCY_MASK           (0x3FFFFFFFU)
1118 #define SW_PORT0_PTCMAXLR_LATENCY_SHIFT          (0U)
1119 #define SW_PORT0_PTCMAXLR_LATENCY_WIDTH          (30U)
1120 #define SW_PORT0_PTCMAXLR_LATENCY(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_PTCMAXLR_LATENCY_SHIFT)) & SW_PORT0_PTCMAXLR_LATENCY_MASK)
1121 /*! @} */
1122 
1123 /*! @name BPCR - Bridge port configuration register */
1124 /*! @{ */
1125 
1126 #define SW_PORT0_BPCR_DYN_LIMIT_MASK             (0xFFFFU)
1127 #define SW_PORT0_BPCR_DYN_LIMIT_SHIFT            (0U)
1128 #define SW_PORT0_BPCR_DYN_LIMIT_WIDTH            (16U)
1129 #define SW_PORT0_BPCR_DYN_LIMIT(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPCR_DYN_LIMIT_SHIFT)) & SW_PORT0_BPCR_DYN_LIMIT_MASK)
1130 
1131 #define SW_PORT0_BPCR_UUCASTE_MASK               (0x1000000U)
1132 #define SW_PORT0_BPCR_UUCASTE_SHIFT              (24U)
1133 #define SW_PORT0_BPCR_UUCASTE_WIDTH              (1U)
1134 #define SW_PORT0_BPCR_UUCASTE(x)                 (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPCR_UUCASTE_SHIFT)) & SW_PORT0_BPCR_UUCASTE_MASK)
1135 
1136 #define SW_PORT0_BPCR_UMCASTE_MASK               (0x2000000U)
1137 #define SW_PORT0_BPCR_UMCASTE_SHIFT              (25U)
1138 #define SW_PORT0_BPCR_UMCASTE_WIDTH              (1U)
1139 #define SW_PORT0_BPCR_UMCASTE(x)                 (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPCR_UMCASTE_SHIFT)) & SW_PORT0_BPCR_UMCASTE_MASK)
1140 
1141 #define SW_PORT0_BPCR_MCASTE_MASK                (0x4000000U)
1142 #define SW_PORT0_BPCR_MCASTE_SHIFT               (26U)
1143 #define SW_PORT0_BPCR_MCASTE_WIDTH               (1U)
1144 #define SW_PORT0_BPCR_MCASTE(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPCR_MCASTE_SHIFT)) & SW_PORT0_BPCR_MCASTE_MASK)
1145 
1146 #define SW_PORT0_BPCR_BCASTE_MASK                (0x8000000U)
1147 #define SW_PORT0_BPCR_BCASTE_SHIFT               (27U)
1148 #define SW_PORT0_BPCR_BCASTE_WIDTH               (1U)
1149 #define SW_PORT0_BPCR_BCASTE(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPCR_BCASTE_SHIFT)) & SW_PORT0_BPCR_BCASTE_MASK)
1150 
1151 #define SW_PORT0_BPCR_STAMVD_MASK                (0x10000000U)
1152 #define SW_PORT0_BPCR_STAMVD_SHIFT               (28U)
1153 #define SW_PORT0_BPCR_STAMVD_WIDTH               (1U)
1154 #define SW_PORT0_BPCR_STAMVD(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPCR_STAMVD_SHIFT)) & SW_PORT0_BPCR_STAMVD_MASK)
1155 
1156 #define SW_PORT0_BPCR_SRCPRND_MASK               (0x20000000U)
1157 #define SW_PORT0_BPCR_SRCPRND_SHIFT              (29U)
1158 #define SW_PORT0_BPCR_SRCPRND_WIDTH              (1U)
1159 #define SW_PORT0_BPCR_SRCPRND(x)                 (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPCR_SRCPRND_SHIFT)) & SW_PORT0_BPCR_SRCPRND_MASK)
1160 /*! @} */
1161 
1162 /*! @name BPDVR - Bridge port default VLAN register */
1163 /*! @{ */
1164 
1165 #define SW_PORT0_BPDVR_VID_MASK                  (0xFFFU)
1166 #define SW_PORT0_BPDVR_VID_SHIFT                 (0U)
1167 #define SW_PORT0_BPDVR_VID_WIDTH                 (12U)
1168 #define SW_PORT0_BPDVR_VID(x)                    (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDVR_VID_SHIFT)) & SW_PORT0_BPDVR_VID_MASK)
1169 
1170 #define SW_PORT0_BPDVR_DEI_MASK                  (0x1000U)
1171 #define SW_PORT0_BPDVR_DEI_SHIFT                 (12U)
1172 #define SW_PORT0_BPDVR_DEI_WIDTH                 (1U)
1173 #define SW_PORT0_BPDVR_DEI(x)                    (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDVR_DEI_SHIFT)) & SW_PORT0_BPDVR_DEI_MASK)
1174 
1175 #define SW_PORT0_BPDVR_PCP_MASK                  (0xE000U)
1176 #define SW_PORT0_BPDVR_PCP_SHIFT                 (13U)
1177 #define SW_PORT0_BPDVR_PCP_WIDTH                 (3U)
1178 #define SW_PORT0_BPDVR_PCP(x)                    (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDVR_PCP_SHIFT)) & SW_PORT0_BPDVR_PCP_MASK)
1179 
1180 #define SW_PORT0_BPDVR_TPID_MASK                 (0x10000U)
1181 #define SW_PORT0_BPDVR_TPID_SHIFT                (16U)
1182 #define SW_PORT0_BPDVR_TPID_WIDTH                (1U)
1183 #define SW_PORT0_BPDVR_TPID(x)                   (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDVR_TPID_SHIFT)) & SW_PORT0_BPDVR_TPID_MASK)
1184 
1185 #define SW_PORT0_BPDVR_RXTAGA_MASK               (0xF00000U)
1186 #define SW_PORT0_BPDVR_RXTAGA_SHIFT              (20U)
1187 #define SW_PORT0_BPDVR_RXTAGA_WIDTH              (4U)
1188 #define SW_PORT0_BPDVR_RXTAGA(x)                 (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDVR_RXTAGA_SHIFT)) & SW_PORT0_BPDVR_RXTAGA_MASK)
1189 
1190 #define SW_PORT0_BPDVR_RXVAM_MASK                (0x1000000U)
1191 #define SW_PORT0_BPDVR_RXVAM_SHIFT               (24U)
1192 #define SW_PORT0_BPDVR_RXVAM_WIDTH               (1U)
1193 #define SW_PORT0_BPDVR_RXVAM(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDVR_RXVAM_SHIFT)) & SW_PORT0_BPDVR_RXVAM_MASK)
1194 
1195 #define SW_PORT0_BPDVR_TXTAGA_MASK               (0x6000000U)
1196 #define SW_PORT0_BPDVR_TXTAGA_SHIFT              (25U)
1197 #define SW_PORT0_BPDVR_TXTAGA_WIDTH              (2U)
1198 #define SW_PORT0_BPDVR_TXTAGA(x)                 (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDVR_TXTAGA_SHIFT)) & SW_PORT0_BPDVR_TXTAGA_MASK)
1199 /*! @} */
1200 
1201 /*! @name BPSTGSR - Bridge port spanning tree group state register */
1202 /*! @{ */
1203 
1204 #define SW_PORT0_BPSTGSR_STG_STATE0_MASK         (0x3U)
1205 #define SW_PORT0_BPSTGSR_STG_STATE0_SHIFT        (0U)
1206 #define SW_PORT0_BPSTGSR_STG_STATE0_WIDTH        (2U)
1207 #define SW_PORT0_BPSTGSR_STG_STATE0(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE0_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE0_MASK)
1208 
1209 #define SW_PORT0_BPSTGSR_STG_STATE1_MASK         (0xCU)
1210 #define SW_PORT0_BPSTGSR_STG_STATE1_SHIFT        (2U)
1211 #define SW_PORT0_BPSTGSR_STG_STATE1_WIDTH        (2U)
1212 #define SW_PORT0_BPSTGSR_STG_STATE1(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE1_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE1_MASK)
1213 
1214 #define SW_PORT0_BPSTGSR_STG_STATE2_MASK         (0x30U)
1215 #define SW_PORT0_BPSTGSR_STG_STATE2_SHIFT        (4U)
1216 #define SW_PORT0_BPSTGSR_STG_STATE2_WIDTH        (2U)
1217 #define SW_PORT0_BPSTGSR_STG_STATE2(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE2_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE2_MASK)
1218 
1219 #define SW_PORT0_BPSTGSR_STG_STATE3_MASK         (0xC0U)
1220 #define SW_PORT0_BPSTGSR_STG_STATE3_SHIFT        (6U)
1221 #define SW_PORT0_BPSTGSR_STG_STATE3_WIDTH        (2U)
1222 #define SW_PORT0_BPSTGSR_STG_STATE3(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE3_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE3_MASK)
1223 
1224 #define SW_PORT0_BPSTGSR_STG_STATE4_MASK         (0x300U)
1225 #define SW_PORT0_BPSTGSR_STG_STATE4_SHIFT        (8U)
1226 #define SW_PORT0_BPSTGSR_STG_STATE4_WIDTH        (2U)
1227 #define SW_PORT0_BPSTGSR_STG_STATE4(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE4_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE4_MASK)
1228 
1229 #define SW_PORT0_BPSTGSR_STG_STATE5_MASK         (0xC00U)
1230 #define SW_PORT0_BPSTGSR_STG_STATE5_SHIFT        (10U)
1231 #define SW_PORT0_BPSTGSR_STG_STATE5_WIDTH        (2U)
1232 #define SW_PORT0_BPSTGSR_STG_STATE5(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE5_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE5_MASK)
1233 
1234 #define SW_PORT0_BPSTGSR_STG_STATE6_MASK         (0x3000U)
1235 #define SW_PORT0_BPSTGSR_STG_STATE6_SHIFT        (12U)
1236 #define SW_PORT0_BPSTGSR_STG_STATE6_WIDTH        (2U)
1237 #define SW_PORT0_BPSTGSR_STG_STATE6(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE6_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE6_MASK)
1238 
1239 #define SW_PORT0_BPSTGSR_STG_STATE7_MASK         (0xC000U)
1240 #define SW_PORT0_BPSTGSR_STG_STATE7_SHIFT        (14U)
1241 #define SW_PORT0_BPSTGSR_STG_STATE7_WIDTH        (2U)
1242 #define SW_PORT0_BPSTGSR_STG_STATE7(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE7_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE7_MASK)
1243 
1244 #define SW_PORT0_BPSTGSR_STG_STATE8_MASK         (0x30000U)
1245 #define SW_PORT0_BPSTGSR_STG_STATE8_SHIFT        (16U)
1246 #define SW_PORT0_BPSTGSR_STG_STATE8_WIDTH        (2U)
1247 #define SW_PORT0_BPSTGSR_STG_STATE8(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE8_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE8_MASK)
1248 
1249 #define SW_PORT0_BPSTGSR_STG_STATE9_MASK         (0xC0000U)
1250 #define SW_PORT0_BPSTGSR_STG_STATE9_SHIFT        (18U)
1251 #define SW_PORT0_BPSTGSR_STG_STATE9_WIDTH        (2U)
1252 #define SW_PORT0_BPSTGSR_STG_STATE9(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE9_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE9_MASK)
1253 
1254 #define SW_PORT0_BPSTGSR_STG_STATE10_MASK        (0x300000U)
1255 #define SW_PORT0_BPSTGSR_STG_STATE10_SHIFT       (20U)
1256 #define SW_PORT0_BPSTGSR_STG_STATE10_WIDTH       (2U)
1257 #define SW_PORT0_BPSTGSR_STG_STATE10(x)          (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE10_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE10_MASK)
1258 
1259 #define SW_PORT0_BPSTGSR_STG_STATE11_MASK        (0xC00000U)
1260 #define SW_PORT0_BPSTGSR_STG_STATE11_SHIFT       (22U)
1261 #define SW_PORT0_BPSTGSR_STG_STATE11_WIDTH       (2U)
1262 #define SW_PORT0_BPSTGSR_STG_STATE11(x)          (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE11_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE11_MASK)
1263 
1264 #define SW_PORT0_BPSTGSR_STG_STATE12_MASK        (0x3000000U)
1265 #define SW_PORT0_BPSTGSR_STG_STATE12_SHIFT       (24U)
1266 #define SW_PORT0_BPSTGSR_STG_STATE12_WIDTH       (2U)
1267 #define SW_PORT0_BPSTGSR_STG_STATE12(x)          (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE12_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE12_MASK)
1268 
1269 #define SW_PORT0_BPSTGSR_STG_STATE13_MASK        (0xC000000U)
1270 #define SW_PORT0_BPSTGSR_STG_STATE13_SHIFT       (26U)
1271 #define SW_PORT0_BPSTGSR_STG_STATE13_WIDTH       (2U)
1272 #define SW_PORT0_BPSTGSR_STG_STATE13(x)          (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE13_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE13_MASK)
1273 
1274 #define SW_PORT0_BPSTGSR_STG_STATE14_MASK        (0x30000000U)
1275 #define SW_PORT0_BPSTGSR_STG_STATE14_SHIFT       (28U)
1276 #define SW_PORT0_BPSTGSR_STG_STATE14_WIDTH       (2U)
1277 #define SW_PORT0_BPSTGSR_STG_STATE14(x)          (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE14_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE14_MASK)
1278 
1279 #define SW_PORT0_BPSTGSR_STG_STATE15_MASK        (0xC0000000U)
1280 #define SW_PORT0_BPSTGSR_STG_STATE15_SHIFT       (30U)
1281 #define SW_PORT0_BPSTGSR_STG_STATE15_WIDTH       (2U)
1282 #define SW_PORT0_BPSTGSR_STG_STATE15(x)          (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSTGSR_STG_STATE15_SHIFT)) & SW_PORT0_BPSTGSR_STG_STATE15_MASK)
1283 /*! @} */
1284 
1285 /*! @name BPSCR0 - Bridge port storm control register 0 */
1286 /*! @{ */
1287 
1288 #define SW_PORT0_BPSCR0_UUCASTRPEID_MASK         (0xFFFU)
1289 #define SW_PORT0_BPSCR0_UUCASTRPEID_SHIFT        (0U)
1290 #define SW_PORT0_BPSCR0_UUCASTRPEID_WIDTH        (12U)
1291 #define SW_PORT0_BPSCR0_UUCASTRPEID(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSCR0_UUCASTRPEID_SHIFT)) & SW_PORT0_BPSCR0_UUCASTRPEID_MASK)
1292 
1293 #define SW_PORT0_BPSCR0_BCASTRPEID_MASK          (0xFFF0000U)
1294 #define SW_PORT0_BPSCR0_BCASTRPEID_SHIFT         (16U)
1295 #define SW_PORT0_BPSCR0_BCASTRPEID_WIDTH         (12U)
1296 #define SW_PORT0_BPSCR0_BCASTRPEID(x)            (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSCR0_BCASTRPEID_SHIFT)) & SW_PORT0_BPSCR0_BCASTRPEID_MASK)
1297 /*! @} */
1298 
1299 /*! @name BPSCR1 - Bridge port storm control register 1 */
1300 /*! @{ */
1301 
1302 #define SW_PORT0_BPSCR1_MCASTRPEID_MASK          (0xFFFU)
1303 #define SW_PORT0_BPSCR1_MCASTRPEID_SHIFT         (0U)
1304 #define SW_PORT0_BPSCR1_MCASTRPEID_WIDTH         (12U)
1305 #define SW_PORT0_BPSCR1_MCASTRPEID(x)            (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSCR1_MCASTRPEID_SHIFT)) & SW_PORT0_BPSCR1_MCASTRPEID_MASK)
1306 
1307 #define SW_PORT0_BPSCR1_UMCASTRPEID_MASK         (0xFFF0000U)
1308 #define SW_PORT0_BPSCR1_UMCASTRPEID_SHIFT        (16U)
1309 #define SW_PORT0_BPSCR1_UMCASTRPEID_WIDTH        (12U)
1310 #define SW_PORT0_BPSCR1_UMCASTRPEID(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPSCR1_UMCASTRPEID_SHIFT)) & SW_PORT0_BPSCR1_UMCASTRPEID_MASK)
1311 /*! @} */
1312 
1313 /*! @name BPOR - Bridge port operational register */
1314 /*! @{ */
1315 
1316 #define SW_PORT0_BPOR_NUM_DYN_MASK               (0xFFFFU)
1317 #define SW_PORT0_BPOR_NUM_DYN_SHIFT              (0U)
1318 #define SW_PORT0_BPOR_NUM_DYN_WIDTH              (16U)
1319 #define SW_PORT0_BPOR_NUM_DYN(x)                 (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPOR_NUM_DYN_SHIFT)) & SW_PORT0_BPOR_NUM_DYN_MASK)
1320 /*! @} */
1321 
1322 /*! @name BPDCR - Bridge port discard count register */
1323 /*! @{ */
1324 
1325 #define SW_PORT0_BPDCR_COUNT_MASK                (0xFFFFFFFFU)
1326 #define SW_PORT0_BPDCR_COUNT_SHIFT               (0U)
1327 #define SW_PORT0_BPDCR_COUNT_WIDTH               (32U)
1328 #define SW_PORT0_BPDCR_COUNT(x)                  (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDCR_COUNT_SHIFT)) & SW_PORT0_BPDCR_COUNT_MASK)
1329 /*! @} */
1330 
1331 /*! @name BPDCRR0 - Bridge port discard count reason register 0 */
1332 /*! @{ */
1333 
1334 #define SW_PORT0_BPDCRR0_BPACDR_MASK             (0x1U)
1335 #define SW_PORT0_BPDCRR0_BPACDR_SHIFT            (0U)
1336 #define SW_PORT0_BPDCRR0_BPACDR_WIDTH            (1U)
1337 #define SW_PORT0_BPDCRR0_BPACDR(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDCRR0_BPACDR_SHIFT)) & SW_PORT0_BPDCRR0_BPACDR_MASK)
1338 
1339 #define SW_PORT0_BPDCRR0_ISTGSDR_MASK            (0x2U)
1340 #define SW_PORT0_BPDCRR0_ISTGSDR_SHIFT           (1U)
1341 #define SW_PORT0_BPDCRR0_ISTGSDR_WIDTH           (1U)
1342 #define SW_PORT0_BPDCRR0_ISTGSDR(x)              (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDCRR0_ISTGSDR_SHIFT)) & SW_PORT0_BPDCRR0_ISTGSDR_MASK)
1343 
1344 #define SW_PORT0_BPDCRR0_BPVFLTDR_MASK           (0x4U)
1345 #define SW_PORT0_BPDCRR0_BPVFLTDR_SHIFT          (2U)
1346 #define SW_PORT0_BPDCRR0_BPVFLTDR_WIDTH          (1U)
1347 #define SW_PORT0_BPDCRR0_BPVFLTDR(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDCRR0_BPVFLTDR_SHIFT)) & SW_PORT0_BPDCRR0_BPVFLTDR_MASK)
1348 
1349 #define SW_PORT0_BPDCRR0_MACLNFDR_MASK           (0x8U)
1350 #define SW_PORT0_BPDCRR0_MACLNFDR_SHIFT          (3U)
1351 #define SW_PORT0_BPDCRR0_MACLNFDR_WIDTH          (1U)
1352 #define SW_PORT0_BPDCRR0_MACLNFDR(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDCRR0_MACLNFDR_SHIFT)) & SW_PORT0_BPDCRR0_MACLNFDR_MASK)
1353 
1354 #define SW_PORT0_BPDCRR0_STAMVDDR_MASK           (0x80U)
1355 #define SW_PORT0_BPDCRR0_STAMVDDR_SHIFT          (7U)
1356 #define SW_PORT0_BPDCRR0_STAMVDDR_WIDTH          (1U)
1357 #define SW_PORT0_BPDCRR0_STAMVDDR(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDCRR0_STAMVDDR_SHIFT)) & SW_PORT0_BPDCRR0_STAMVDDR_MASK)
1358 
1359 #define SW_PORT0_BPDCRR0_MACFDDDR_MASK           (0x100U)
1360 #define SW_PORT0_BPDCRR0_MACFDDDR_SHIFT          (8U)
1361 #define SW_PORT0_BPDCRR0_MACFDDDR_WIDTH          (1U)
1362 #define SW_PORT0_BPDCRR0_MACFDDDR(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDCRR0_MACFDDDR_SHIFT)) & SW_PORT0_BPDCRR0_MACFDDDR_MASK)
1363 
1364 #define SW_PORT0_BPDCRR0_NODESTDR_MASK           (0x200U)
1365 #define SW_PORT0_BPDCRR0_NODESTDR_SHIFT          (9U)
1366 #define SW_PORT0_BPDCRR0_NODESTDR_WIDTH          (1U)
1367 #define SW_PORT0_BPDCRR0_NODESTDR(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDCRR0_NODESTDR_SHIFT)) & SW_PORT0_BPDCRR0_NODESTDR_MASK)
1368 
1369 #define SW_PORT0_BPDCRR0_IPMFDR_MASK             (0x400U)
1370 #define SW_PORT0_BPDCRR0_IPMFDR_SHIFT            (10U)
1371 #define SW_PORT0_BPDCRR0_IPMFDR_WIDTH            (1U)
1372 #define SW_PORT0_BPDCRR0_IPMFDR(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDCRR0_IPMFDR_SHIFT)) & SW_PORT0_BPDCRR0_IPMFDR_MASK)
1373 
1374 #define SW_PORT0_BPDCRR0_UFMMDR_MASK             (0x800U)
1375 #define SW_PORT0_BPDCRR0_UFMMDR_SHIFT            (11U)
1376 #define SW_PORT0_BPDCRR0_UFMMDR_WIDTH            (1U)
1377 #define SW_PORT0_BPDCRR0_UFMMDR(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDCRR0_UFMMDR_SHIFT)) & SW_PORT0_BPDCRR0_UFMMDR_MASK)
1378 
1379 #define SW_PORT0_BPDCRR0_MISCDR_MASK             (0x1000U)
1380 #define SW_PORT0_BPDCRR0_MISCDR_SHIFT            (12U)
1381 #define SW_PORT0_BPDCRR0_MISCDR_WIDTH            (1U)
1382 #define SW_PORT0_BPDCRR0_MISCDR(x)               (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDCRR0_MISCDR_SHIFT)) & SW_PORT0_BPDCRR0_MISCDR_MASK)
1383 
1384 #define SW_PORT0_BPDCRR0_STRMCTRLDR_MASK         (0x2000U)
1385 #define SW_PORT0_BPDCRR0_STRMCTRLDR_SHIFT        (13U)
1386 #define SW_PORT0_BPDCRR0_STRMCTRLDR_WIDTH        (1U)
1387 #define SW_PORT0_BPDCRR0_STRMCTRLDR(x)           (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDCRR0_STRMCTRLDR_SHIFT)) & SW_PORT0_BPDCRR0_STRMCTRLDR_MASK)
1388 /*! @} */
1389 
1390 /*! @name BPDCRR1 - Bridge port discard count reason register 1 */
1391 /*! @{ */
1392 
1393 #define SW_PORT0_BPDCRR1_ENTRYID_MASK            (0x7FFFFFFU)
1394 #define SW_PORT0_BPDCRR1_ENTRYID_SHIFT           (0U)
1395 #define SW_PORT0_BPDCRR1_ENTRYID_WIDTH           (27U)
1396 #define SW_PORT0_BPDCRR1_ENTRYID(x)              (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDCRR1_ENTRYID_SHIFT)) & SW_PORT0_BPDCRR1_ENTRYID_MASK)
1397 
1398 #define SW_PORT0_BPDCRR1_TT_MASK                 (0xF0000000U)
1399 #define SW_PORT0_BPDCRR1_TT_SHIFT                (28U)
1400 #define SW_PORT0_BPDCRR1_TT_WIDTH                (4U)
1401 #define SW_PORT0_BPDCRR1_TT(x)                   (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPDCRR1_TT_SHIFT)) & SW_PORT0_BPDCRR1_TT_MASK)
1402 /*! @} */
1403 
1404 /*! @name BPMLFSR - Bridge port MAC learning failure status register */
1405 /*! @{ */
1406 
1407 #define SW_PORT0_BPMLFSR_BPMLLRFR_MASK           (0x1U)
1408 #define SW_PORT0_BPMLFSR_BPMLLRFR_SHIFT          (0U)
1409 #define SW_PORT0_BPMLFSR_BPMLLRFR_WIDTH          (1U)
1410 #define SW_PORT0_BPMLFSR_BPMLLRFR(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPMLFSR_BPMLLRFR_SHIFT)) & SW_PORT0_BPMLFSR_BPMLLRFR_MASK)
1411 
1412 #define SW_PORT0_BPMLFSR_FFDBTRFR_MASK           (0x2U)
1413 #define SW_PORT0_BPMLFSR_FFDBTRFR_SHIFT          (1U)
1414 #define SW_PORT0_BPMLFSR_FFDBTRFR_WIDTH          (1U)
1415 #define SW_PORT0_BPMLFSR_FFDBTRFR(x)             (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPMLFSR_FFDBTRFR_SHIFT)) & SW_PORT0_BPMLFSR_FFDBTRFR_MASK)
1416 
1417 #define SW_PORT0_BPMLFSR_HCCLRFR_MASK            (0x4U)
1418 #define SW_PORT0_BPMLFSR_HCCLRFR_SHIFT           (2U)
1419 #define SW_PORT0_BPMLFSR_HCCLRFR_WIDTH           (1U)
1420 #define SW_PORT0_BPMLFSR_HCCLRFR(x)              (((uint32_t)(((uint32_t)(x)) << SW_PORT0_BPMLFSR_HCCLRFR_SHIFT)) & SW_PORT0_BPMLFSR_HCCLRFR_MASK)
1421 /*! @} */
1422 
1423 /*!
1424  * @}
1425  */ /* end of group SW_PORT0_Register_Masks */
1426 
1427 /*!
1428  * @}
1429  */ /* end of group SW_PORT0_Peripheral_Access_Layer */
1430 
1431 #endif  /* #if !defined(S32Z2_SW_PORT0_H_) */
1432