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