Go to the documentation of this file.
16 #define EMAC_OPMODE 0xFFC03000
17 #define EMAC_ADDRLO 0xFFC03004
18 #define EMAC_ADDRHI 0xFFC03008
19 #define EMAC_HASHLO 0xFFC0300C
20 #define EMAC_HASHHI 0xFFC03010
21 #define EMAC_STAADD 0xFFC03014
22 #define EMAC_STADAT 0xFFC03018
23 #define EMAC_FLC 0xFFC0301C
24 #define EMAC_VLAN1 0xFFC03020
25 #define EMAC_VLAN2 0xFFC03024
26 #define EMAC_WKUP_CTL 0xFFC0302C
27 #define EMAC_WKUP_FFMSK0 0xFFC03030
28 #define EMAC_WKUP_FFMSK1 0xFFC03034
29 #define EMAC_WKUP_FFMSK2 0xFFC03038
30 #define EMAC_WKUP_FFMSK3 0xFFC0303C
31 #define EMAC_WKUP_FFCMD 0xFFC03040
32 #define EMAC_WKUP_FFOFF 0xFFC03044
33 #define EMAC_WKUP_FFCRC0 0xFFC03048
34 #define EMAC_WKUP_FFCRC1 0xFFC0304C
36 #define EMAC_SYSCTL 0xFFC03060
37 #define EMAC_SYSTAT 0xFFC03064
38 #define EMAC_RX_STAT 0xFFC03068
39 #define EMAC_RX_STKY 0xFFC0306C
40 #define EMAC_RX_IRQE 0xFFC03070
41 #define EMAC_TX_STAT 0xFFC03074
42 #define EMAC_TX_STKY 0xFFC03078
43 #define EMAC_TX_IRQE 0xFFC0307C
45 #define EMAC_MMC_CTL 0xFFC03080
46 #define EMAC_MMC_RIRQS 0xFFC03084
47 #define EMAC_MMC_RIRQE 0xFFC03088
48 #define EMAC_MMC_TIRQS 0xFFC0308C
49 #define EMAC_MMC_TIRQE 0xFFC03090
51 #define EMAC_RXC_OK 0xFFC03100
52 #define EMAC_RXC_FCS 0xFFC03104
53 #define EMAC_RXC_ALIGN 0xFFC03108
54 #define EMAC_RXC_OCTET 0xFFC0310C
55 #define EMAC_RXC_DMAOVF 0xFFC03110
56 #define EMAC_RXC_UNICST 0xFFC03114
57 #define EMAC_RXC_MULTI 0xFFC03118
58 #define EMAC_RXC_BROAD 0xFFC0311C
59 #define EMAC_RXC_LNERRI 0xFFC03120
60 #define EMAC_RXC_LNERRO 0xFFC03124
61 #define EMAC_RXC_LONG 0xFFC03128
62 #define EMAC_RXC_MACCTL 0xFFC0312C
63 #define EMAC_RXC_OPCODE 0xFFC03130
64 #define EMAC_RXC_PAUSE 0xFFC03134
65 #define EMAC_RXC_ALLFRM 0xFFC03138
66 #define EMAC_RXC_ALLOCT 0xFFC0313C
67 #define EMAC_RXC_TYPED 0xFFC03140
68 #define EMAC_RXC_SHORT 0xFFC03144
69 #define EMAC_RXC_EQ64 0xFFC03148
70 #define EMAC_RXC_LT128 0xFFC0314C
71 #define EMAC_RXC_LT256 0xFFC03150
72 #define EMAC_RXC_LT512 0xFFC03154
73 #define EMAC_RXC_LT1024 0xFFC03158
74 #define EMAC_RXC_GE1024 0xFFC0315C
76 #define EMAC_TXC_OK 0xFFC03180
77 #define EMAC_TXC_1COL 0xFFC03184
78 #define EMAC_TXC_GT1COL 0xFFC03188
79 #define EMAC_TXC_OCTET 0xFFC0318C
80 #define EMAC_TXC_DEFER 0xFFC03190
81 #define EMAC_TXC_LATECL 0xFFC03194
82 #define EMAC_TXC_XS_COL 0xFFC03198
83 #define EMAC_TXC_DMAUND 0xFFC0319C
84 #define EMAC_TXC_CRSERR 0xFFC031A0
85 #define EMAC_TXC_UNICST 0xFFC031A4
86 #define EMAC_TXC_MULTI 0xFFC031A8
87 #define EMAC_TXC_BROAD 0xFFC031AC
88 #define EMAC_TXC_XS_DFR 0xFFC031B0
89 #define EMAC_TXC_MACCTL 0xFFC031B4
90 #define EMAC_TXC_ALLFRM 0xFFC031B8
91 #define EMAC_TXC_ALLOCT 0xFFC031BC
92 #define EMAC_TXC_EQ64 0xFFC031C0
93 #define EMAC_TXC_LT128 0xFFC031C4
94 #define EMAC_TXC_LT256 0xFFC031C8
95 #define EMAC_TXC_LT512 0xFFC031CC
96 #define EMAC_TXC_LT1024 0xFFC031D0
97 #define EMAC_TXC_GE1024 0xFFC031D4
98 #define EMAC_TXC_ABORT 0xFFC031D8
102 #define FramesReceivedOK EMAC_RXC_OK
103 #define FrameCheckSequenceErrors EMAC_RXC_FCS
104 #define AlignmentErrors EMAC_RXC_ALIGN
105 #define OctetsReceivedOK EMAC_RXC_OCTET
106 #define FramesLostDueToIntMACRcvError EMAC_RXC_DMAOVF
107 #define UnicastFramesReceivedOK EMAC_RXC_UNICST
108 #define MulticastFramesReceivedOK EMAC_RXC_MULTI
109 #define BroadcastFramesReceivedOK EMAC_RXC_BROAD
110 #define InRangeLengthErrors EMAC_RXC_LNERRI
111 #define OutOfRangeLengthField EMAC_RXC_LNERRO
112 #define FrameTooLongErrors EMAC_RXC_LONG
113 #define MACControlFramesReceived EMAC_RXC_MACCTL
114 #define UnsupportedOpcodesReceived EMAC_RXC_OPCODE
115 #define PAUSEMACCtrlFramesReceived EMAC_RXC_PAUSE
116 #define FramesReceivedAll EMAC_RXC_ALLFRM
117 #define OctetsReceivedAll EMAC_RXC_ALLOCT
118 #define TypedFramesReceived EMAC_RXC_TYPED
119 #define FramesLenLt64Received EMAC_RXC_SHORT
120 #define FramesLenEq64Received EMAC_RXC_EQ64
121 #define FramesLen65_127Received EMAC_RXC_LT128
122 #define FramesLen128_255Received EMAC_RXC_LT256
123 #define FramesLen256_511Received EMAC_RXC_LT512
124 #define FramesLen512_1023Received EMAC_RXC_LT1024
125 #define FramesLen1024_MaxReceived EMAC_RXC_GE1024
127 #define FramesTransmittedOK EMAC_TXC_OK
128 #define SingleCollisionFrames EMAC_TXC_1COL
129 #define MultipleCollisionFrames EMAC_TXC_GT1COL
130 #define OctetsTransmittedOK EMAC_TXC_OCTET
131 #define FramesWithDeferredXmissions EMAC_TXC_DEFER
132 #define LateCollisions EMAC_TXC_LATECL
133 #define FramesAbortedDueToXSColls EMAC_TXC_XS_COL
134 #define FramesLostDueToIntMacXmitError EMAC_TXC_DMAUND
135 #define CarrierSenseErrors EMAC_TXC_CRSERR
136 #define UnicastFramesXmittedOK EMAC_TXC_UNICST
137 #define MulticastFramesXmittedOK EMAC_TXC_MULTI
138 #define BroadcastFramesXmittedOK EMAC_TXC_BROAD
139 #define FramesWithExcessiveDeferral EMAC_TXC_XS_DFR
140 #define MACControlFramesTransmitted EMAC_TXC_MACCTL
141 #define FramesTransmittedAll EMAC_TXC_ALLFRM
142 #define OctetsTransmittedAll EMAC_TXC_ALLOCT
143 #define FramesLenEq64Transmitted EMAC_TXC_EQ64
144 #define FramesLen65_127Transmitted EMAC_TXC_LT128
145 #define FramesLen128_255Transmitted EMAC_TXC_LT256
146 #define FramesLen256_511Transmitted EMAC_TXC_LT512
147 #define FramesLen512_1023Transmitted EMAC_TXC_LT1024
148 #define FramesLen1024_MaxTransmitted EMAC_TXC_GE1024
149 #define TxAbortedFrames EMAC_TXC_ABORT
167 #define RE 0x00000001
168 #define ASTP 0x00000002
169 #define HU 0x00000010
170 #define HM 0x00000020
171 #define PAM 0x00000040
172 #define PR 0x00000080
173 #define IFE 0x00000100
174 #define DBF 0x00000200
175 #define PBF 0x00000400
176 #define PSF 0x00000800
177 #define RAF 0x00001000
178 #define TE 0x00010000
179 #define DTXPAD 0x00020000
180 #define DTXCRC 0x00040000
181 #define DC 0x00080000
182 #define BOLMT 0x00300000
183 #define BOLMT_10 0x00000000
184 #define BOLMT_8 0x00100000
185 #define BOLMT_4 0x00200000
186 #define BOLMT_1 0x00300000
187 #define DRTY 0x00400000
188 #define LCTRE 0x00800000
189 #define RMII 0x01000000
190 #define RMII_10 0x02000000
191 #define FDMODE 0x04000000
192 #define LB 0x08000000
193 #define DRO 0x10000000
197 #define STABUSY 0x00000001
198 #define STAOP 0x00000002
199 #define STADISPRE 0x00000004
200 #define STAIE 0x00000008
201 #define REGAD 0x000007C0
202 #define PHYAD 0x0000F800
204 #define SET_REGAD(x) (((x)&0x1F)<< 6 )
205 #define SET_PHYAD(x) (((x)&0x1F)<< 11 )
209 #define STADATA 0x0000FFFF
213 #define FLCBUSY 0x00000001
214 #define FLCE 0x00000002
215 #define PCF 0x00000004
216 #define BKPRSEN 0x00000008
217 #define FLCPAUSE 0xFFFF0000
219 #define SET_FLCPAUSE(x) (((x)&0xFFFF)<< 16)
223 #define CAPWKFRM 0x00000001
224 #define MPKE 0x00000002
225 #define RWKE 0x00000004
226 #define GUWKE 0x00000008
227 #define MPKS 0x00000020
228 #define RWKS 0x00000F00
232 #define WF0_E 0x00000001
233 #define WF0_T 0x00000008
234 #define WF1_E 0x00000100
235 #define WF1_T 0x00000800
236 #define WF2_E 0x00010000
237 #define WF2_T 0x00080000
238 #define WF3_E 0x01000000
239 #define WF3_T 0x08000000
243 #define WF0_OFF 0x000000FF
244 #define WF1_OFF 0x0000FF00
245 #define WF2_OFF 0x00FF0000
246 #define WF3_OFF 0xFF000000
248 #define SET_WF0_OFF(x) (((x)&0xFF)<< 0 )
249 #define SET_WF1_OFF(x) (((x)&0xFF)<< 8 )
250 #define SET_WF2_OFF(x) (((x)&0xFF)<< 16 )
251 #define SET_WF3_OFF(x) (((x)&0xFF)<< 24 )
253 #define SET_WF_OFFS(x0,x1,x2,x3) (SET_WF0_OFF((x0))|SET_WF1_OFF((x1))|SET_WF2_OFF((x2))|SET_WF3_OFF((x3)))
257 #define WF0_CRC 0x0000FFFF
258 #define WF1_CRC 0xFFFF0000
260 #define SET_WF0_CRC(x) (((x)&0xFFFF)<< 0 )
261 #define SET_WF1_CRC(x) (((x)&0xFFFF)<< 16 )
265 #define WF2_CRC 0x0000FFFF
266 #define WF3_CRC 0xFFFF0000
268 #define SET_WF2_CRC(x) (((x)&0xFFFF)<< 0 )
269 #define SET_WF3_CRC(x) (((x)&0xFFFF)<< 16 )
273 #define PHYIE 0x00000001
274 #define RXDWA 0x00000002
275 #define RXCKS 0x00000004
276 #define TXDWA 0x00000010
277 #define MDCDIV 0x00003F00
279 #define SET_MDCDIV(x) (((x)&0x3F)<< 8)
283 #define PHYINT 0x00000001
284 #define MMCINT 0x00000002
285 #define RXFSINT 0x00000004
286 #define TXFSINT 0x00000008
287 #define WAKEDET 0x00000010
288 #define RXDMAERR 0x00000020
289 #define TXDMAERR 0x00000040
290 #define STMDONE 0x00000080
294 #define RX_FRLEN 0x000007FF
295 #define RX_COMP 0x00001000
296 #define RX_OK 0x00002000
297 #define RX_LONG 0x00004000
298 #define RX_ALIGN 0x00008000
299 #define RX_CRC 0x00010000
300 #define RX_LEN 0x00020000
301 #define RX_FRAG 0x00040000
302 #define RX_ADDR 0x00080000
303 #define RX_DMAO 0x00100000
304 #define RX_PHY 0x00200000
305 #define RX_LATE 0x00400000
306 #define RX_RANGE 0x00800000
307 #define RX_MULTI 0x01000000
308 #define RX_BROAD 0x02000000
309 #define RX_CTL 0x04000000
310 #define RX_UCTL 0x08000000
311 #define RX_TYPE 0x10000000
312 #define RX_VLAN1 0x20000000
313 #define RX_VLAN2 0x40000000
314 #define RX_ACCEPT 0x80000000
318 #define TX_COMP 0x00000001
319 #define TX_OK 0x00000002
320 #define TX_ECOLL 0x00000004
321 #define TX_LATE 0x00000008
322 #define TX_DMAU 0x00000010
323 #define TX_MACE 0x00000010
324 #define TX_EDEFER 0x00000020
325 #define TX_BROAD 0x00000040
326 #define TX_MULTI 0x00000080
327 #define TX_CCNT 0x00000F00
328 #define TX_DEFER 0x00001000
329 #define TX_CRS 0x00002000
330 #define TX_LOSS 0x00004000
331 #define TX_RETRY 0x00008000
332 #define TX_FRLEN 0x07FF0000
335 #define RSTC 0x00000001
336 #define CROLL 0x00000002
337 #define CCOR 0x00000004
338 #define MMCE 0x00000008
341 #define RX_OK_CNT 0x00000001
342 #define RX_FCS_CNT 0x00000002
343 #define RX_ALIGN_CNT 0x00000004
344 #define RX_OCTET_CNT 0x00000008
345 #define RX_LOST_CNT 0x00000010
346 #define RX_UNI_CNT 0x00000020
347 #define RX_MULTI_CNT 0x00000040
348 #define RX_BROAD_CNT 0x00000080
349 #define RX_IRL_CNT 0x00000100
350 #define RX_ORL_CNT 0x00000200
351 #define RX_LONG_CNT 0x00000400
352 #define RX_MACCTL_CNT 0x00000800
353 #define RX_OPCODE_CTL 0x00001000
354 #define RX_PAUSE_CNT 0x00002000
355 #define RX_ALLF_CNT 0x00004000
356 #define RX_ALLO_CNT 0x00008000
357 #define RX_TYPED_CNT 0x00010000
358 #define RX_SHORT_CNT 0x00020000
359 #define RX_EQ64_CNT 0x00040000
360 #define RX_LT128_CNT 0x00080000
361 #define RX_LT256_CNT 0x00100000
362 #define RX_LT512_CNT 0x00200000
363 #define RX_LT1024_CNT 0x00400000
364 #define RX_GE1024_CNT 0x00800000
368 #define TX_OK_CNT 0x00000001
369 #define TX_SCOLL_CNT 0x00000002
370 #define TX_MCOLL_CNT 0x00000004
371 #define TX_OCTET_CNT 0x00000008
372 #define TX_DEFER_CNT 0x00000010
373 #define TX_LATE_CNT 0x00000020
374 #define TX_ABORTC_CNT 0x00000040
375 #define TX_LOST_CNT 0x00000080
376 #define TX_CRS_CNT 0x00000100
377 #define TX_UNI_CNT 0x00000200
378 #define TX_MULTI_CNT 0x00000400
379 #define TX_BROAD_CNT 0x00000800
380 #define TX_EXDEF_CTL 0x00001000
381 #define TX_MACCTL_CNT 0x00002000
382 #define TX_ALLF_CNT 0x00004000
383 #define TX_ALLO_CNT 0x00008000
384 #define TX_EQ64_CNT 0x00010000
385 #define TX_LT128_CNT 0x00020000
386 #define TX_LT256_CNT 0x00040000
387 #define TX_LT512_CNT 0x00080000
388 #define TX_LT1024_CNT 0x00100000
389 #define TX_GE1024_CNT 0x00200000
390 #define TX_ABORT_CNT 0x00400000