1 /* Coldfire C Header File
\r
2 * Copyright Freescale Semiconductor Inc
\r
3 * All rights reserved.
\r
5 * 2008/04/17 Revision: 0.2
\r
7 * (c) Copyright UNIS, spol. s r.o. 1997-2008
\r
12 * http : www.processorexpert.com
\r
13 * mail : info@processorexpert.com
\r
16 #ifndef __MCF52259_FEC_H__
\r
17 #define __MCF52259_FEC_H__
\r
20 /*********************************************************************
\r
22 * Fast Ethernet Controller(FEC)
\r
24 *********************************************************************/
\r
26 /* Register read/write macros */
\r
27 #define MCF_FEC_EIR (*(vuint32*)(0x40001004))
\r
28 #define MCF_FEC_EIMR (*(vuint32*)(0x40001008))
\r
29 #define MCF_FEC_RDAR (*(vuint32*)(0x40001010))
\r
30 #define MCF_FEC_TDAR (*(vuint32*)(0x40001014))
\r
31 #define MCF_FEC_ECR (*(vuint32*)(0x40001024))
\r
32 #define MCF_FEC_MMFR (*(vuint32*)(0x40001040))
\r
33 #define MCF_FEC_MSCR (*(vuint32*)(0x40001044))
\r
34 #define MCF_FEC_MIBC (*(vuint32*)(0x40001064))
\r
35 #define MCF_FEC_RCR (*(vuint32*)(0x40001084))
\r
36 #define MCF_FEC_TCR (*(vuint32*)(0x400010C4))
\r
37 #define MCF_FEC_PALR (*(vuint32*)(0x400010E4))
\r
38 #define MCF_FEC_PAUR (*(vuint32*)(0x400010E8))
\r
39 #define MCF_FEC_OPD (*(vuint32*)(0x400010EC))
\r
40 #define MCF_FEC_IAUR (*(vuint32*)(0x40001118))
\r
41 #define MCF_FEC_IALR (*(vuint32*)(0x4000111C))
\r
42 #define MCF_FEC_GAUR (*(vuint32*)(0x40001120))
\r
43 #define MCF_FEC_GALR (*(vuint32*)(0x40001124))
\r
44 #define MCF_FEC_TFWR (*(vuint32*)(0x40001144))
\r
45 #define MCF_FEC_FRBR (*(vuint32*)(0x4000114C))
\r
46 #define MCF_FEC_FRSR (*(vuint32*)(0x40001150))
\r
47 #define MCF_FEC_ERDSR (*(vuint32*)(0x40001180))
\r
48 #define MCF_FEC_ETSDR (*(vuint32*)(0x40001184))
\r
49 #define MCF_FEC_EMRBR (*(vuint32*)(0x40001188))
\r
50 #define MCF_FEC_RMON_T_DROP (*(vuint32*)(0x40001200))
\r
51 #define MCF_FEC_RMON_T_PACKETS (*(vuint32*)(0x40001204))
\r
52 #define MCF_FEC_RMON_T_BC_PKT (*(vuint32*)(0x40001208))
\r
53 #define MCF_FEC_RMON_T_MC_PKT (*(vuint32*)(0x4000120C))
\r
54 #define MCF_FEC_RMON_T_CRC_ALIGN (*(vuint32*)(0x40001210))
\r
55 #define MCF_FEC_RMON_T_UNDERSIZE (*(vuint32*)(0x40001214))
\r
56 #define MCF_FEC_RMON_T_OVERSIZE (*(vuint32*)(0x40001218))
\r
57 #define MCF_FEC_RMON_T_FRAG (*(vuint32*)(0x4000121C))
\r
58 #define MCF_FEC_RMON_T_JAB (*(vuint32*)(0x40001220))
\r
59 #define MCF_FEC_RMON_T_COL (*(vuint32*)(0x40001224))
\r
60 #define MCF_FEC_RMON_T_P64 (*(vuint32*)(0x40001228))
\r
61 #define MCF_FEC_RMON_T_P65TO127 (*(vuint32*)(0x4000122C))
\r
62 #define MCF_FEC_RMON_T_P128TO255 (*(vuint32*)(0x40001230))
\r
63 #define MCF_FEC_RMON_T_P256TO511 (*(vuint32*)(0x40001234))
\r
64 #define MCF_FEC_RMON_T_P512TO1023 (*(vuint32*)(0x40001238))
\r
65 #define MCF_FEC_RMON_T_P1024TO2047 (*(vuint32*)(0x4000123C))
\r
66 #define MCF_FEC_RMON_T_P_GTE2048 (*(vuint32*)(0x40001240))
\r
67 #define MCF_FEC_RMON_T_OCTETS (*(vuint32*)(0x40001244))
\r
68 #define MCF_FEC_IEEE_T_DROP (*(vuint32*)(0x40001248))
\r
69 #define MCF_FEC_IEEE_T_FRAME_OK (*(vuint32*)(0x4000124C))
\r
70 #define MCF_FEC_IEEE_T_1COL (*(vuint32*)(0x40001250))
\r
71 #define MCF_FEC_IEEE_T_MCOL (*(vuint32*)(0x40001254))
\r
72 #define MCF_FEC_IEEE_T_DEF (*(vuint32*)(0x40001258))
\r
73 #define MCF_FEC_IEEE_T_LCOL (*(vuint32*)(0x4000125C))
\r
74 #define MCF_FEC_IEEE_T_EXCOL (*(vuint32*)(0x40001260))
\r
75 #define MCF_FEC_IEEE_T_MACERR (*(vuint32*)(0x40001264))
\r
76 #define MCF_FEC_IEEE_T_CSERR (*(vuint32*)(0x40001268))
\r
77 #define MCF_FEC_IEEE_T_SQE (*(vuint32*)(0x4000126C))
\r
78 #define MCF_FEC_IEEE_T_FDXFC (*(vuint32*)(0x40001270))
\r
79 #define MCF_FEC_IEEE_T_OCTETS_OK (*(vuint32*)(0x40001274))
\r
80 #define MCF_FEC_RMON_R_PACKETS (*(vuint32*)(0x40001284))
\r
81 #define MCF_FEC_RMON_R_BC_PKT (*(vuint32*)(0x40001288))
\r
82 #define MCF_FEC_RMON_R_MC_PKT (*(vuint32*)(0x4000128C))
\r
83 #define MCF_FEC_RMON_R_CRC_ALIGN (*(vuint32*)(0x40001290))
\r
84 #define MCF_FEC_RMON_R_UNDERSIZE (*(vuint32*)(0x40001294))
\r
85 #define MCF_FEC_RMON_R_OVERSIZE (*(vuint32*)(0x40001298))
\r
86 #define MCF_FEC_RMON_R_FRAG (*(vuint32*)(0x4000129C))
\r
87 #define MCF_FEC_RMON_R_JAB (*(vuint32*)(0x400012A0))
\r
88 #define MCF_FEC_RMON_R_RESVD_0 (*(vuint32*)(0x400012A4))
\r
89 #define MCF_FEC_RMON_R_P64 (*(vuint32*)(0x400012A8))
\r
90 #define MCF_FEC_RMON_R_P65TO127 (*(vuint32*)(0x400012AC))
\r
91 #define MCF_FEC_RMON_R_P128TO255 (*(vuint32*)(0x400012B0))
\r
92 #define MCF_FEC_RMON_R_P256TO511 (*(vuint32*)(0x400012B4))
\r
93 #define MCF_FEC_RMON_R_P512TO1023 (*(vuint32*)(0x400012B8))
\r
94 #define MCF_FEC_RMON_R_P1024TO2047 (*(vuint32*)(0x400012BC))
\r
95 #define MCF_FEC_RMON_R_P_GTE2048 (*(vuint32*)(0x400012C0))
\r
96 #define MCF_FEC_RMON_R_OCTETS (*(vuint32*)(0x400012C4))
\r
97 #define MCF_FEC_IEEE_R_DROP (*(vuint32*)(0x400012C8))
\r
98 #define MCF_FEC_IEEE_R_FRAME_OK (*(vuint32*)(0x400012CC))
\r
99 #define MCF_FEC_IEEE_R_CRC (*(vuint32*)(0x400012D0))
\r
100 #define MCF_FEC_IEEE_R_ALIGN (*(vuint32*)(0x400012D4))
\r
101 #define MCF_FEC_IEEE_R_MACERR (*(vuint32*)(0x400012D8))
\r
102 #define MCF_FEC_IEEE_R_FDXFC (*(vuint32*)(0x400012DC))
\r
103 #define MCF_FEC_IEEE_R_OCTETS_OK (*(vuint32*)(0x400012E0))
\r
107 /* Bit definitions and macros for MCF_FEC_EIR */
\r
108 #define MCF_FEC_EIR_UN (0x80000)
\r
109 #define MCF_FEC_EIR_RL (0x100000)
\r
110 #define MCF_FEC_EIR_LC (0x200000)
\r
111 #define MCF_FEC_EIR_EBERR (0x400000)
\r
112 #define MCF_FEC_EIR_MII (0x800000)
\r
113 #define MCF_FEC_EIR_RXB (0x1000000)
\r
114 #define MCF_FEC_EIR_RXF (0x2000000)
\r
115 #define MCF_FEC_EIR_TXB (0x4000000)
\r
116 #define MCF_FEC_EIR_TXF (0x8000000)
\r
117 #define MCF_FEC_EIR_GRA (0x10000000)
\r
118 #define MCF_FEC_EIR_BABT (0x20000000)
\r
119 #define MCF_FEC_EIR_BABR (0x40000000)
\r
120 #define MCF_FEC_EIR_HBERR (0x80000000)
\r
121 #define MCF_FEC_EIR_CLEAR_ALL (0xFFFFFFFF)
\r
123 /* Bit definitions and macros for MCF_FEC_EIMR */
\r
124 #define MCF_FEC_EIMR_UN (0x80000)
\r
125 #define MCF_FEC_EIMR_RL (0x100000)
\r
126 #define MCF_FEC_EIMR_LC (0x200000)
\r
127 #define MCF_FEC_EIMR_EBERR (0x400000)
\r
128 #define MCF_FEC_EIMR_MII (0x800000)
\r
129 #define MCF_FEC_EIMR_RXB (0x1000000)
\r
130 #define MCF_FEC_EIMR_RXF (0x2000000)
\r
131 #define MCF_FEC_EIMR_TXB (0x4000000)
\r
132 #define MCF_FEC_EIMR_TXF (0x8000000)
\r
133 #define MCF_FEC_EIMR_GRA (0x10000000)
\r
134 #define MCF_FEC_EIMR_BABT (0x20000000)
\r
135 #define MCF_FEC_EIMR_BABR (0x40000000)
\r
136 #define MCF_FEC_EIMR_HBERR (0x80000000)
\r
137 #define MCF_FEC_EIMR_MASK_ALL (0)
\r
138 #define MCF_FEC_EIMR_UNMASK_ALL (0xFFFFFFFF)
\r
140 /* Bit definitions and macros for MCF_FEC_RDAR */
\r
141 #define MCF_FEC_RDAR_R_DES_ACTIVE (0x1000000)
\r
143 /* Bit definitions and macros for MCF_FEC_TDAR */
\r
144 #define MCF_FEC_TDAR_X_DES_ACTIVE (0x1000000)
\r
146 /* Bit definitions and macros for MCF_FEC_ECR */
\r
147 #define MCF_FEC_ECR_RESET (0x1)
\r
148 #define MCF_FEC_ECR_ETHER_EN (0x2)
\r
150 /* Bit definitions and macros for MCF_FEC_MMFR */
\r
151 #define MCF_FEC_MMFR_DATA(x) (((x)&0xFFFF)<<0)
\r
152 #define MCF_FEC_MMFR_TA(x) (((x)&0x3)<<0x10)
\r
153 #define MCF_FEC_MMFR_TA_10 (0x20000)
\r
154 #define MCF_FEC_MMFR_RA(x) (((x)&0x1F)<<0x12)
\r
155 #define MCF_FEC_MMFR_PA(x) (((x)&0x1F)<<0x17)
\r
156 #define MCF_FEC_MMFR_OP(x) (((x)&0x3)<<0x1C)
\r
157 #define MCF_FEC_MMFR_OP_READ (0x20000000)
\r
158 #define MCF_FEC_MMFR_OP_WRITE (0x10000000)
\r
159 #define MCF_FEC_MMFR_ST(x) (((x)&0x3)<<0x1E)
\r
160 #define MCF_FEC_MMFR_ST_01 (0x40000000)
\r
162 /* Bit definitions and macros for MCF_FEC_MSCR */
\r
163 #define MCF_FEC_MSCR_MII_SPEED(x) (((x)&0x3F)<<0x1)
\r
164 #define MCF_FEC_MSCR_DIS_PREAMBLE (0x80)
\r
166 /* Bit definitions and macros for MCF_FEC_MIBC */
\r
167 #define MCF_FEC_MIBC_MIB_IDLE (0x40000000)
\r
168 #define MCF_FEC_MIBC_MIB_DISABLE (0x80000000)
\r
170 /* Bit definitions and macros for MCF_FEC_RCR */
\r
171 #define MCF_FEC_RCR_LOOP (0x1)
\r
172 #define MCF_FEC_RCR_DRT (0x2)
\r
173 #define MCF_FEC_RCR_MII_MODE (0x4)
\r
174 #define MCF_FEC_RCR_PROM (0x8)
\r
175 #define MCF_FEC_RCR_BC_REJ (0x10)
\r
176 #define MCF_FEC_RCR_FCE (0x20)
\r
177 #define MCF_FEC_RCR_MAX_FL(x) (((x)&0x7FF)<<0x10)
\r
179 /* Bit definitions and macros for MCF_FEC_TCR */
\r
180 #define MCF_FEC_TCR_GTS (0x1)
\r
181 #define MCF_FEC_TCR_HBC (0x2)
\r
182 #define MCF_FEC_TCR_FDEN (0x4)
\r
183 #define MCF_FEC_TCR_TFC_PAUSE (0x8)
\r
184 #define MCF_FEC_TCR_RFC_PAUSE (0x10)
\r
186 /* Bit definitions and macros for MCF_FEC_PALR */
\r
187 #define MCF_FEC_PALR_PADDR1(x) (((x)&0xFFFFFFFF)<<0)
\r
189 /* Bit definitions and macros for MCF_FEC_PAUR */
\r
190 #define MCF_FEC_PAUR_TYPE(x) (((x)&0xFFFF)<<0)
\r
191 #define MCF_FEC_PAUR_PADDR2(x) (((x)&0xFFFF)<<0x10)
\r
193 /* Bit definitions and macros for MCF_FEC_OPD */
\r
194 #define MCF_FEC_OPD_PAUSE_DUR(x) (((x)&0xFFFF)<<0)
\r
195 #define MCF_FEC_OPD_OPCODE(x) (((x)&0xFFFF)<<0x10)
\r
197 /* Bit definitions and macros for MCF_FEC_IAUR */
\r
198 #define MCF_FEC_IAUR_IADDR1(x) (((x)&0xFFFFFFFF)<<0)
\r
200 /* Bit definitions and macros for MCF_FEC_IALR */
\r
201 #define MCF_FEC_IALR_IADDR2(x) (((x)&0xFFFFFFFF)<<0)
\r
203 /* Bit definitions and macros for MCF_FEC_GAUR */
\r
204 #define MCF_FEC_GAUR_GADDR1(x) (((x)&0xFFFFFFFF)<<0)
\r
206 /* Bit definitions and macros for MCF_FEC_GALR */
\r
207 #define MCF_FEC_GALR_GADDR2(x) (((x)&0xFFFFFFFF)<<0)
\r
209 /* Bit definitions and macros for MCF_FEC_TFWR */
\r
210 #define MCF_FEC_TFWR_X_WMRK(x) (((x)&0x3)<<0)
\r
211 #define MCF_FEC_TFWR_X_WMRK_64 (0)
\r
212 #define MCF_FEC_TFWR_X_WMRK_128 (0x2)
\r
213 #define MCF_FEC_TFWR_X_WMRK_192 (0x3)
\r
215 /* Bit definitions and macros for MCF_FEC_FRBR */
\r
216 #define MCF_FEC_FRBR_R_BOUND(x) (((x)&0xFF)<<0x2)
\r
218 /* Bit definitions and macros for MCF_FEC_FRSR */
\r
219 #define MCF_FEC_FRSR_R_FSTART(x) (((x)&0xFF)<<0x2)
\r
221 /* Bit definitions and macros for MCF_FEC_ERDSR */
\r
222 #define MCF_FEC_ERDSR_R_DES_START(x) (((x)&0x3FFFFFFF)<<0x2)
\r
224 /* Bit definitions and macros for MCF_FEC_ETSDR */
\r
225 #define MCF_FEC_ETSDR_X_DES_START(x) (((x)&0x3FFFFFFF)<<0x2)
\r
227 /* Bit definitions and macros for MCF_FEC_EMRBR */
\r
228 #define MCF_FEC_EMRBR_R_BUF_SIZE(x) (((x)&0x7F)<<0x4)
\r
230 /* Bit definitions and macros for MCF_FEC_RMON_T_DROP */
\r
231 #define MCF_FEC_RMON_T_DROP_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
233 /* Bit definitions and macros for MCF_FEC_RMON_T_PACKETS */
\r
234 #define MCF_FEC_RMON_T_PACKETS_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
236 /* Bit definitions and macros for MCF_FEC_RMON_T_BC_PKT */
\r
237 #define MCF_FEC_RMON_T_BC_PKT_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
239 /* Bit definitions and macros for MCF_FEC_RMON_T_MC_PKT */
\r
240 #define MCF_FEC_RMON_T_MC_PKT_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
242 /* Bit definitions and macros for MCF_FEC_RMON_T_CRC_ALIGN */
\r
243 #define MCF_FEC_RMON_T_CRC_ALIGN_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
245 /* Bit definitions and macros for MCF_FEC_RMON_T_UNDERSIZE */
\r
246 #define MCF_FEC_RMON_T_UNDERSIZE_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
248 /* Bit definitions and macros for MCF_FEC_RMON_T_OVERSIZE */
\r
249 #define MCF_FEC_RMON_T_OVERSIZE_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
251 /* Bit definitions and macros for MCF_FEC_RMON_T_FRAG */
\r
252 #define MCF_FEC_RMON_T_FRAG_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
254 /* Bit definitions and macros for MCF_FEC_RMON_T_JAB */
\r
255 #define MCF_FEC_RMON_T_JAB_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
257 /* Bit definitions and macros for MCF_FEC_RMON_T_COL */
\r
258 #define MCF_FEC_RMON_T_COL_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
260 /* Bit definitions and macros for MCF_FEC_RMON_T_P64 */
\r
261 #define MCF_FEC_RMON_T_P64_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
263 /* Bit definitions and macros for MCF_FEC_RMON_T_P65TO127 */
\r
264 #define MCF_FEC_RMON_T_P65TO127_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
266 /* Bit definitions and macros for MCF_FEC_RMON_T_P128TO255 */
\r
267 #define MCF_FEC_RMON_T_P128TO255_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
269 /* Bit definitions and macros for MCF_FEC_RMON_T_P256TO511 */
\r
270 #define MCF_FEC_RMON_T_P256TO511_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
272 /* Bit definitions and macros for MCF_FEC_RMON_T_P512TO1023 */
\r
273 #define MCF_FEC_RMON_T_P512TO1023_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
275 /* Bit definitions and macros for MCF_FEC_RMON_T_P1024TO2047 */
\r
276 #define MCF_FEC_RMON_T_P1024TO2047_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
278 /* Bit definitions and macros for MCF_FEC_RMON_T_P_GTE2048 */
\r
279 #define MCF_FEC_RMON_T_P_GTE2048_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
281 /* Bit definitions and macros for MCF_FEC_RMON_T_OCTETS */
\r
282 #define MCF_FEC_RMON_T_OCTETS_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
284 /* Bit definitions and macros for MCF_FEC_IEEE_T_DROP */
\r
285 #define MCF_FEC_IEEE_T_DROP_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
287 /* Bit definitions and macros for MCF_FEC_IEEE_T_FRAME_OK */
\r
288 #define MCF_FEC_IEEE_T_FRAME_OK_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
290 /* Bit definitions and macros for MCF_FEC_IEEE_T_1COL */
\r
291 #define MCF_FEC_IEEE_T_1COL_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
293 /* Bit definitions and macros for MCF_FEC_IEEE_T_MCOL */
\r
294 #define MCF_FEC_IEEE_T_MCOL_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
296 /* Bit definitions and macros for MCF_FEC_IEEE_T_DEF */
\r
297 #define MCF_FEC_IEEE_T_DEF_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
299 /* Bit definitions and macros for MCF_FEC_IEEE_T_LCOL */
\r
300 #define MCF_FEC_IEEE_T_LCOL_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
302 /* Bit definitions and macros for MCF_FEC_IEEE_T_EXCOL */
\r
303 #define MCF_FEC_IEEE_T_EXCOL_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
305 /* Bit definitions and macros for MCF_FEC_IEEE_T_MACERR */
\r
306 #define MCF_FEC_IEEE_T_MACERR_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
308 /* Bit definitions and macros for MCF_FEC_IEEE_T_CSERR */
\r
309 #define MCF_FEC_IEEE_T_CSERR_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
311 /* Bit definitions and macros for MCF_FEC_IEEE_T_SQE */
\r
312 #define MCF_FEC_IEEE_T_SQE_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
314 /* Bit definitions and macros for MCF_FEC_IEEE_T_FDXFC */
\r
315 #define MCF_FEC_IEEE_T_FDXFC_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
317 /* Bit definitions and macros for MCF_FEC_IEEE_T_OCTETS_OK */
\r
318 #define MCF_FEC_IEEE_T_OCTETS_OK_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
320 /* Bit definitions and macros for MCF_FEC_RMON_R_PACKETS */
\r
321 #define MCF_FEC_RMON_R_PACKETS_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
323 /* Bit definitions and macros for MCF_FEC_RMON_R_BC_PKT */
\r
324 #define MCF_FEC_RMON_R_BC_PKT_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
326 /* Bit definitions and macros for MCF_FEC_RMON_R_MC_PKT */
\r
327 #define MCF_FEC_RMON_R_MC_PKT_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
329 /* Bit definitions and macros for MCF_FEC_RMON_R_CRC_ALIGN */
\r
330 #define MCF_FEC_RMON_R_CRC_ALIGN_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
332 /* Bit definitions and macros for MCF_FEC_RMON_R_UNDERSIZE */
\r
333 #define MCF_FEC_RMON_R_UNDERSIZE_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
335 /* Bit definitions and macros for MCF_FEC_RMON_R_OVERSIZE */
\r
336 #define MCF_FEC_RMON_R_OVERSIZE_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
338 /* Bit definitions and macros for MCF_FEC_RMON_R_FRAG */
\r
339 #define MCF_FEC_RMON_R_FRAG_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
341 /* Bit definitions and macros for MCF_FEC_RMON_R_JAB */
\r
342 #define MCF_FEC_RMON_R_JAB_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
344 /* Bit definitions and macros for MCF_FEC_RMON_R_RESVD_0 */
\r
345 #define MCF_FEC_RMON_R_RESVD_0_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
347 /* Bit definitions and macros for MCF_FEC_RMON_R_P64 */
\r
348 #define MCF_FEC_RMON_R_P64_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
350 /* Bit definitions and macros for MCF_FEC_RMON_R_P65TO127 */
\r
351 #define MCF_FEC_RMON_R_P65TO127_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
353 /* Bit definitions and macros for MCF_FEC_RMON_R_P128TO255 */
\r
354 #define MCF_FEC_RMON_R_P128TO255_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
356 /* Bit definitions and macros for MCF_FEC_RMON_R_P256TO511 */
\r
357 #define MCF_FEC_RMON_R_P256TO511_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
359 /* Bit definitions and macros for MCF_FEC_RMON_R_P512TO1023 */
\r
360 #define MCF_FEC_RMON_R_P512TO1023_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
362 /* Bit definitions and macros for MCF_FEC_RMON_R_P1024TO2047 */
\r
363 #define MCF_FEC_RMON_R_P1024TO2047_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
365 /* Bit definitions and macros for MCF_FEC_RMON_R_P_GTE2048 */
\r
366 #define MCF_FEC_RMON_R_P_GTE2048_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
368 /* Bit definitions and macros for MCF_FEC_RMON_R_OCTETS */
\r
369 #define MCF_FEC_RMON_R_OCTETS_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
371 /* Bit definitions and macros for MCF_FEC_IEEE_R_DROP */
\r
372 #define MCF_FEC_IEEE_R_DROP_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
374 /* Bit definitions and macros for MCF_FEC_IEEE_R_FRAME_OK */
\r
375 #define MCF_FEC_IEEE_R_FRAME_OK_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
377 /* Bit definitions and macros for MCF_FEC_IEEE_R_CRC */
\r
378 #define MCF_FEC_IEEE_R_CRC_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
380 /* Bit definitions and macros for MCF_FEC_IEEE_R_ALIGN */
\r
381 #define MCF_FEC_IEEE_R_ALIGN_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
383 /* Bit definitions and macros for MCF_FEC_IEEE_R_MACERR */
\r
384 #define MCF_FEC_IEEE_R_MACERR_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
386 /* Bit definitions and macros for MCF_FEC_IEEE_R_FDXFC */
\r
387 #define MCF_FEC_IEEE_R_FDXFC_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
389 /* Bit definitions and macros for MCF_FEC_IEEE_R_OCTETS_OK */
\r
390 #define MCF_FEC_IEEE_R_OCTETS_OK_Value(x) (((x)&0xFFFFFFFF)<<0)
\r
393 #endif /* __MCF52259_FEC_H__ */
\r