39#ifndef LIBBSP_ARM_TMS570_EMACM
40#define LIBBSP_ARM_TMS570_EMACM
48 uint8_t reserved1 [4];
52 uint8_t reserved2 [100];
53 uint32_t TXINTSTATRAW;
54 uint32_t TXINTSTATMASKED;
55 uint32_t TXINTMASKSET;
56 uint32_t TXINTMASKCLEAR;
58 uint32_t MACEOIVECTOR;
59 uint8_t reserved3 [8];
60 uint32_t RXINTSTATRAW;
61 uint32_t RXINTSTATMASKED;
62 uint32_t RXINTMASKSET;
63 uint32_t RXINTMASKCLEAR;
64 uint32_t MACINTSTATRAW;
65 uint32_t MACINTSTATMASKED;
66 uint32_t MACINTMASKSET;
67 uint32_t MACINTMASKCLEAR;
68 uint8_t reserved4 [64];
70 uint32_t RXUNICASTSET;
71 uint32_t RXUNICASTCLEAR;
73 uint32_t RXBUFFEROFFSET;
74 uint32_t RXFILTERLOWTHRESH;
75 uint8_t reserved5 [8];
76 uint32_t RXFLOWTHRESH[8];
77 uint32_t RXFREEBUFFER[8];
84 uint8_t reserved6 [88];
85 uint32_t MACSRCADDRLO;
86 uint32_t MACSRCADDRHI;
93 uint8_t reserved7 [784];
97 uint8_t reserved8 [244];
111#define TMS570_EMACM_TXCONTROL_TXEN BSP_BIT32(0)
116#define TMS570_EMACM_TXTEARDOWN_TXTDNCH(val) BSP_FLD32(val,0, 2)
117#define TMS570_EMACM_TXTEARDOWN_TXTDNCH_GET(reg) BSP_FLD32GET(reg,0, 2)
118#define TMS570_EMACM_TXTEARDOWN_TXTDNCH_SET(reg,val) BSP_FLD32SET(reg, val,0, 2)
127#define TMS570_EMACM_RXCONTROL_RXEN BSP_BIT32(0)
132#define TMS570_EMACM_RXTEARDOWN_RXTDNCH(val) BSP_FLD32(val,0, 2)
133#define TMS570_EMACM_RXTEARDOWN_RXTDNCH_GET(reg) BSP_FLD32GET(reg,0, 2)
134#define TMS570_EMACM_RXTEARDOWN_RXTDNCH_SET(reg,val) BSP_FLD32SET(reg, val,0, 2)
139#define TMS570_EMACM_TXINTSTATRAW_TX7PEND BSP_BIT32(7)
142#define TMS570_EMACM_TXINTSTATRAW_TX6PEND BSP_BIT32(6)
145#define TMS570_EMACM_TXINTSTATRAW_TX5PEND BSP_BIT32(5)
148#define TMS570_EMACM_TXINTSTATRAW_TX4PEND BSP_BIT32(4)
151#define TMS570_EMACM_TXINTSTATRAW_TX3PEND BSP_BIT32(3)
154#define TMS570_EMACM_TXINTSTATRAW_TX2PEND BSP_BIT32(2)
157#define TMS570_EMACM_TXINTSTATRAW_TX1PEND BSP_BIT32(1)
160#define TMS570_EMACM_TXINTSTATRAW_TX0PEND BSP_BIT32(0)
165#define TMS570_EMACM_TXINTSTATMASKED_TX7PEND BSP_BIT32(7)
168#define TMS570_EMACM_TXINTSTATMASKED_TX6PEND BSP_BIT32(6)
171#define TMS570_EMACM_TXINTSTATMASKED_TX5PEND BSP_BIT32(5)
174#define TMS570_EMACM_TXINTSTATMASKED_TX4PEND BSP_BIT32(4)
177#define TMS570_EMACM_TXINTSTATMASKED_TX3PEND BSP_BIT32(3)
180#define TMS570_EMACM_TXINTSTATMASKED_TX2PEND BSP_BIT32(2)
183#define TMS570_EMACM_TXINTSTATMASKED_TX1PEND BSP_BIT32(1)
186#define TMS570_EMACM_TXINTSTATMASKED_TX0PEND BSP_BIT32(0)
191#define TMS570_EMACM_TXINTMASKSET_TX7MASK BSP_BIT32(7)
194#define TMS570_EMACM_TXINTMASKSET_TX6MASK BSP_BIT32(6)
197#define TMS570_EMACM_TXINTMASKSET_TX5MASK BSP_BIT32(5)
200#define TMS570_EMACM_TXINTMASKSET_TX4MASK BSP_BIT32(4)
203#define TMS570_EMACM_TXINTMASKSET_TX3MASK BSP_BIT32(3)
206#define TMS570_EMACM_TXINTMASKSET_TX2MASK BSP_BIT32(2)
209#define TMS570_EMACM_TXINTMASKSET_TX1MASK BSP_BIT32(1)
212#define TMS570_EMACM_TXINTMASKSET_TX0MASK BSP_BIT32(0)
217#define TMS570_EMACM_TXINTMASKCLEAR_TX7MASK BSP_BIT32(7)
220#define TMS570_EMACM_TXINTMASKCLEAR_TX6MASK BSP_BIT32(6)
223#define TMS570_EMACM_TXINTMASKCLEAR_TX5MASK BSP_BIT32(5)
226#define TMS570_EMACM_TXINTMASKCLEAR_TX4MASK BSP_BIT32(4)
229#define TMS570_EMACM_TXINTMASKCLEAR_TX3MASK BSP_BIT32(3)
232#define TMS570_EMACM_TXINTMASKCLEAR_TX2MASK BSP_BIT32(2)
235#define TMS570_EMACM_TXINTMASKCLEAR_TX1MASK BSP_BIT32(1)
238#define TMS570_EMACM_TXINTMASKCLEAR_TX0MASK BSP_BIT32(0)
243#define TMS570_EMACM_MACINVECTOR_STATPEND BSP_BIT32(27)
246#define TMS570_EMACM_MACINVECTOR_HOSTPEND BSP_BIT32(26)
249#define TMS570_EMACM_MACINVECTOR_LINKINT0 BSP_BIT32(25)
252#define TMS570_EMACM_MACINVECTOR_USERINT0 BSP_BIT32(24)
255#define TMS570_EMACM_MACINVECTOR_TXPEND(val) BSP_FLD32(val,16, 23)
256#define TMS570_EMACM_MACINVECTOR_TXPEND_GET(reg) BSP_FLD32GET(reg,16, 23)
257#define TMS570_EMACM_MACINVECTOR_TXPEND_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
260#define TMS570_EMACM_MACINVECTOR_RXTHRESHPEND(val) BSP_FLD32(val,8, 15)
261#define TMS570_EMACM_MACINVECTOR_RXTHRESHPEND_GET(reg) BSP_FLD32GET(reg,8, 15)
262#define TMS570_EMACM_MACINVECTOR_RXTHRESHPEND_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
265#define TMS570_EMACM_MACINVECTOR_RXPEND(val) BSP_FLD32(val,0, 7)
266#define TMS570_EMACM_MACINVECTOR_RXPEND_GET(reg) BSP_FLD32GET(reg,0, 7)
267#define TMS570_EMACM_MACINVECTOR_RXPEND_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
272#define TMS570_EMACM_MACEOIVECTOR_INTVECT(val) BSP_FLD32(val,0, 4)
273#define TMS570_EMACM_MACEOIVECTOR_INTVECT_GET(reg) BSP_FLD32GET(reg,0, 4)
274#define TMS570_EMACM_MACEOIVECTOR_INTVECT_SET(reg,val) BSP_FLD32SET(reg, val,0, 4)
279#define TMS570_EMACM_RXINTSTATRAW_RX7THRESHPEND BSP_BIT32(15)
282#define TMS570_EMACM_RXINTSTATRAW_RX6THRESHPEND BSP_BIT32(14)
285#define TMS570_EMACM_RXINTSTATRAW_RX5THRESHPEND BSP_BIT32(13)
288#define TMS570_EMACM_RXINTSTATRAW_RX4THRESHPEND BSP_BIT32(12)
291#define TMS570_EMACM_RXINTSTATRAW_RX3THRESHPEND BSP_BIT32(11)
294#define TMS570_EMACM_RXINTSTATRAW_RX2THRESHPEND BSP_BIT32(10)
297#define TMS570_EMACM_RXINTSTATRAW_RX1THRESHPEND BSP_BIT32(9)
300#define TMS570_EMACM_RXINTSTATRAW_RX0THRESHPEND BSP_BIT32(8)
303#define TMS570_EMACM_RXINTSTATRAW_RX7PEND BSP_BIT32(7)
306#define TMS570_EMACM_RXINTSTATRAW_RX6PEND BSP_BIT32(6)
309#define TMS570_EMACM_RXINTSTATRAW_RX5PEND BSP_BIT32(5)
312#define TMS570_EMACM_RXINTSTATRAW_RX4PEND BSP_BIT32(4)
315#define TMS570_EMACM_RXINTSTATRAW_RX3PEND BSP_BIT32(3)
318#define TMS570_EMACM_RXINTSTATRAW_RX2PEND BSP_BIT32(2)
321#define TMS570_EMACM_RXINTSTATRAW_RX1PEND BSP_BIT32(1)
324#define TMS570_EMACM_RXINTSTATRAW_RX0PEND BSP_BIT32(0)
329#define TMS570_EMACM_RXINTSTATMASKED_RX7THRESHPEND BSP_BIT32(15)
332#define TMS570_EMACM_RXINTSTATMASKED_RX6THRESHPEND BSP_BIT32(14)
335#define TMS570_EMACM_RXINTSTATMASKED_RX5THRESHPEND BSP_BIT32(13)
338#define TMS570_EMACM_RXINTSTATMASKED_RX4THRESHPEND BSP_BIT32(12)
341#define TMS570_EMACM_RXINTSTATMASKED_RX3THRESHPEND BSP_BIT32(11)
344#define TMS570_EMACM_RXINTSTATMASKED_RX2THRESHPEND BSP_BIT32(10)
347#define TMS570_EMACM_RXINTSTATMASKED_RX1THRESHPEND BSP_BIT32(9)
350#define TMS570_EMACM_RXINTSTATMASKED_RX0THRESHPEND BSP_BIT32(8)
353#define TMS570_EMACM_RXINTSTATMASKED_RX7PEND BSP_BIT32(7)
356#define TMS570_EMACM_RXINTSTATMASKED_RX6PEND BSP_BIT32(6)
359#define TMS570_EMACM_RXINTSTATMASKED_RX5PEND BSP_BIT32(5)
362#define TMS570_EMACM_RXINTSTATMASKED_RX4PEND BSP_BIT32(4)
365#define TMS570_EMACM_RXINTSTATMASKED_RX3PEND BSP_BIT32(3)
368#define TMS570_EMACM_RXINTSTATMASKED_RX2PEND BSP_BIT32(2)
371#define TMS570_EMACM_RXINTSTATMASKED_RX1PEND BSP_BIT32(1)
374#define TMS570_EMACM_RXINTSTATMASKED_RX0PEND BSP_BIT32(0)
379#define TMS570_EMACM_RXINTMASKSET_RX7THRESHMASK BSP_BIT32(15)
382#define TMS570_EMACM_RXINTMASKSET_RX6THRESHMASK BSP_BIT32(14)
385#define TMS570_EMACM_RXINTMASKSET_RX5THRESHMASK BSP_BIT32(13)
388#define TMS570_EMACM_RXINTMASKSET_RX4THRESHMASK BSP_BIT32(12)
391#define TMS570_EMACM_RXINTMASKSET_RX3THRESHMASK BSP_BIT32(11)
394#define TMS570_EMACM_RXINTMASKSET_RX2THRESHMASK BSP_BIT32(10)
397#define TMS570_EMACM_RXINTMASKSET_RX1THRESHMASK BSP_BIT32(9)
400#define TMS570_EMACM_RXINTMASKSET_RX0THRESHMASK BSP_BIT32(8)
403#define TMS570_EMACM_RXINTMASKSET_RX7MASK BSP_BIT32(7)
406#define TMS570_EMACM_RXINTMASKSET_RX6MASK BSP_BIT32(6)
409#define TMS570_EMACM_RXINTMASKSET_RX5MASK BSP_BIT32(5)
412#define TMS570_EMACM_RXINTMASKSET_RX4MASK BSP_BIT32(4)
415#define TMS570_EMACM_RXINTMASKSET_RX3MASK BSP_BIT32(3)
418#define TMS570_EMACM_RXINTMASKSET_RX2MASK BSP_BIT32(2)
421#define TMS570_EMACM_RXINTMASKSET_RX1MASK BSP_BIT32(1)
424#define TMS570_EMACM_RXINTMASKSET_RX0MASK BSP_BIT32(0)
429#define TMS570_EMACM_RXINTMASKCLEAR_RX7THRESHMASK BSP_BIT32(15)
432#define TMS570_EMACM_RXINTMASKCLEAR_RX6THRESHMASK BSP_BIT32(14)
435#define TMS570_EMACM_RXINTMASKCLEAR_RX5THRESHMASK BSP_BIT32(13)
438#define TMS570_EMACM_RXINTMASKCLEAR_RX4THRESHMASK BSP_BIT32(12)
441#define TMS570_EMACM_RXINTMASKCLEAR_RX3THRESHMASK BSP_BIT32(11)
444#define TMS570_EMACM_RXINTMASKCLEAR_RX2THRESHMASK BSP_BIT32(10)
447#define TMS570_EMACM_RXINTMASKCLEAR_RX1THRESHMASK BSP_BIT32(9)
450#define TMS570_EMACM_RXINTMASKCLEAR_RX0THRESHMASK BSP_BIT32(8)
453#define TMS570_EMACM_RXINTMASKCLEAR_RX7MASK BSP_BIT32(7)
456#define TMS570_EMACM_RXINTMASKCLEAR_RX6MASK BSP_BIT32(6)
459#define TMS570_EMACM_RXINTMASKCLEAR_RX5MASK BSP_BIT32(5)
462#define TMS570_EMACM_RXINTMASKCLEAR_RX4MASK BSP_BIT32(4)
465#define TMS570_EMACM_RXINTMASKCLEAR_RX3MASK BSP_BIT32(3)
468#define TMS570_EMACM_RXINTMASKCLEAR_RX2MASK BSP_BIT32(2)
471#define TMS570_EMACM_RXINTMASKCLEAR_RX1MASK BSP_BIT32(1)
474#define TMS570_EMACM_RXINTMASKCLEAR_RX0MASK BSP_BIT32(0)
479#define TMS570_EMACM_MACINTSTATRAW_HOSTPEND BSP_BIT32(1)
482#define TMS570_EMACM_MACINTSTATRAW_STATPEND BSP_BIT32(0)
487#define TMS570_EMACM_MACINTSTATMASKED_HOSTPEND BSP_BIT32(1)
490#define TMS570_EMACM_MACINTSTATMASKED_STATPEND BSP_BIT32(0)
495#define TMS570_EMACM_MACINTMASKSET_HOSTMASK BSP_BIT32(1)
498#define TMS570_EMACM_MACINTMASKSET_STATMASK BSP_BIT32(0)
503#define TMS570_EMACM_MACINTMASKCLEAR_HOSTMASK BSP_BIT32(1)
506#define TMS570_EMACM_MACINTMASKCLEAR_STATMASK BSP_BIT32(0)
511#define TMS570_EMACM_RXMBPENABLE_RXPASSCRC BSP_BIT32(30)
514#define TMS570_EMACM_RXMBPENABLE_RXQOSEN BSP_BIT32(29)
517#define TMS570_EMACM_RXMBPENABLE_RXNOCHAIN BSP_BIT32(28)
520#define TMS570_EMACM_RXMBPENABLE_RXCMFEN BSP_BIT32(24)
523#define TMS570_EMACM_RXMBPENABLE_RXCSFEN BSP_BIT32(23)
526#define TMS570_EMACM_RXMBPENABLE_RXCEFEN BSP_BIT32(22)
529#define TMS570_EMACM_RXMBPENABLE_RXCAFEN BSP_BIT32(21)
532#define TMS570_EMACM_RXMBPENABLE_RXPROMCH(val) BSP_FLD32(val,16, 18)
533#define TMS570_EMACM_RXMBPENABLE_RXPROMCH_GET(reg) BSP_FLD32GET(reg,16, 18)
534#define TMS570_EMACM_RXMBPENABLE_RXPROMCH_SET(reg,val) BSP_FLD32SET(reg, val,16, 18)
537#define TMS570_EMACM_RXMBPENABLE_RXBROADEN BSP_BIT32(13)
540#define TMS570_EMACM_RXMBPENABLE_RXBROADCH(val) BSP_FLD32(val,8, 10)
541#define TMS570_EMACM_RXMBPENABLE_RXBROADCH_GET(reg) BSP_FLD32GET(reg,8, 10)
542#define TMS570_EMACM_RXMBPENABLE_RXBROADCH_SET(reg,val) BSP_FLD32SET(reg, val,8, 10)
545#define TMS570_EMACM_RXMBPENABLE_RXMULTEN BSP_BIT32(5)
550#define TMS570_EMACM_RXUNICASTSET_RXCH7EN BSP_BIT32(7)
553#define TMS570_EMACM_RXUNICASTSET_RXCH6EN BSP_BIT32(6)
556#define TMS570_EMACM_RXUNICASTSET_RXCH5EN BSP_BIT32(5)
559#define TMS570_EMACM_RXUNICASTSET_RXCH4EN BSP_BIT32(4)
562#define TMS570_EMACM_RXUNICASTSET_RXCH3EN BSP_BIT32(3)
565#define TMS570_EMACM_RXUNICASTSET_RXCH2EN BSP_BIT32(2)
568#define TMS570_EMACM_RXUNICASTSET_RXCH1EN BSP_BIT32(1)
571#define TMS570_EMACM_RXUNICASTSET_RXCH0EN BSP_BIT32(0)
576#define TMS570_EMACM_RXUNICASTCLEAR_RXCH7EN BSP_BIT32(7)
579#define TMS570_EMACM_RXUNICASTCLEAR_RXCH6EN BSP_BIT32(6)
582#define TMS570_EMACM_RXUNICASTCLEAR_RXCH5EN BSP_BIT32(5)
585#define TMS570_EMACM_RXUNICASTCLEAR_RXCH4EN BSP_BIT32(4)
588#define TMS570_EMACM_RXUNICASTCLEAR_RXCH3EN BSP_BIT32(3)
591#define TMS570_EMACM_RXUNICASTCLEAR_RXCH2EN BSP_BIT32(2)
594#define TMS570_EMACM_RXUNICASTCLEAR_RXCH1EN BSP_BIT32(1)
597#define TMS570_EMACM_RXUNICASTCLEAR_RXCH0EN BSP_BIT32(0)
602#define TMS570_EMACM_RXMAXLEN_RXMAXLEN(val) BSP_FLD32(val,0, 15)
603#define TMS570_EMACM_RXMAXLEN_RXMAXLEN_GET(reg) BSP_FLD32GET(reg,0, 15)
604#define TMS570_EMACM_RXMAXLEN_RXMAXLEN_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
609#define TMS570_EMACM_RXBUFFEROFFSET_RXBUFFEROFFSET(val) BSP_FLD32(val,0, 15)
610#define TMS570_EMACM_RXBUFFEROFFSET_RXBUFFEROFFSET_GET(reg) BSP_FLD32GET(reg,0, 15)
611#define TMS570_EMACM_RXBUFFEROFFSET_RXBUFFEROFFSET_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
616#define TMS570_EMACM_RXFILTERLOWTHRESH_RXFILTERTHRESH(val) BSP_FLD32(val,0, 7)
617#define TMS570_EMACM_RXFILTERLOWTHRESH_RXFILTERTHRESH_GET(reg) BSP_FLD32GET(reg,0, 7)
618#define TMS570_EMACM_RXFILTERLOWTHRESH_RXFILTERTHRESH_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
623#define TMS570_EMACM_RXFLOWTHRESH_RXnFLOWTHRESH(val) BSP_FLD32(val,0, 7)
624#define TMS570_EMACM_RXFLOWTHRESH_RXnFLOWTHRESH_GET(reg) BSP_FLD32GET(reg,0, 7)
625#define TMS570_EMACM_RXFLOWTHRESH_RXnFLOWTHRESH_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
630#define TMS570_EMACM_RXFREEBUFFER_RXnFREEBUF(val) BSP_FLD32(val,0, 15)
631#define TMS570_EMACM_RXFREEBUFFER_RXnFREEBUF_GET(reg) BSP_FLD32GET(reg,0, 15)
632#define TMS570_EMACM_RXFREEBUFFER_RXnFREEBUF_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
637#define TMS570_EMACM_MACCONTROL_RMIISPEED BSP_BIT32(15)
640#define TMS570_EMACM_MACCONTROL_RXOFFLENBLOCK BSP_BIT32(14)
643#define TMS570_EMACM_MACCONTROL_RXOWNERSHIP BSP_BIT32(13)
646#define TMS570_EMACM_MACCONTROL_CMDIDLE BSP_BIT32(11)
649#define TMS570_EMACM_MACCONTROL_TXSHORTGAPEN BSP_BIT32(10)
652#define TMS570_EMACM_MACCONTROL_TXPTYPE BSP_BIT32(9)
655#define TMS570_EMACM_MACCONTROL_TXPACE BSP_BIT32(6)
658#define TMS570_EMACM_MACCONTROL_GMIIEN BSP_BIT32(5)
661#define TMS570_EMACM_MACCONTROL_TXFLOWEN BSP_BIT32(4)
664#define TMS570_EMACM_MACCONTROL_RXBUFFERFLOWEN BSP_BIT32(3)
667#define TMS570_EMACM_MACCONTROL_LOOPBACK BSP_BIT32(1)
670#define TMS570_EMACM_MACCONTROL_FULLDUPLEX BSP_BIT32(0)
675#define TMS570_EMACM_MACSTATUS_IDLE BSP_BIT32(31)
678#define TMS570_EMACM_MACSTATUS_TXERRCODE(val) BSP_FLD32(val,20, 23)
679#define TMS570_EMACM_MACSTATUS_TXERRCODE_GET(reg) BSP_FLD32GET(reg,20, 23)
680#define TMS570_EMACM_MACSTATUS_TXERRCODE_SET(reg,val) BSP_FLD32SET(reg, val,20, 23)
683#define TMS570_EMACM_MACSTATUS_TXERRCH(val) BSP_FLD32(val,16, 18)
684#define TMS570_EMACM_MACSTATUS_TXERRCH_GET(reg) BSP_FLD32GET(reg,16, 18)
685#define TMS570_EMACM_MACSTATUS_TXERRCH_SET(reg,val) BSP_FLD32SET(reg, val,16, 18)
688#define TMS570_EMACM_MACSTATUS_RXERRCODE(val) BSP_FLD32(val,12, 15)
689#define TMS570_EMACM_MACSTATUS_RXERRCODE_GET(reg) BSP_FLD32GET(reg,12, 15)
690#define TMS570_EMACM_MACSTATUS_RXERRCODE_SET(reg,val) BSP_FLD32SET(reg, val,12, 15)
693#define TMS570_EMACM_MACSTATUS_RXERRCH(val) BSP_FLD32(val,8, 10)
694#define TMS570_EMACM_MACSTATUS_RXERRCH_GET(reg) BSP_FLD32GET(reg,8, 10)
695#define TMS570_EMACM_MACSTATUS_RXERRCH_SET(reg,val) BSP_FLD32SET(reg, val,8, 10)
698#define TMS570_EMACM_MACSTATUS_RXQOSACT BSP_BIT32(2)
701#define TMS570_EMACM_MACSTATUS_RXFLOWACT BSP_BIT32(1)
704#define TMS570_EMACM_MACSTATUS_TXFLOWACT BSP_BIT32(0)
709#define TMS570_EMACM_EMCONTROL_SOFT BSP_BIT32(1)
712#define TMS570_EMACM_EMCONTROL_FREE BSP_BIT32(0)
717#define TMS570_EMACM_FIFOCONTROL_TXCELLTHRESH(val) BSP_FLD32(val,0, 1)
718#define TMS570_EMACM_FIFOCONTROL_TXCELLTHRESH_GET(reg) BSP_FLD32GET(reg,0, 1)
719#define TMS570_EMACM_FIFOCONTROL_TXCELLTHRESH_SET(reg,val) BSP_FLD32SET(reg, val,0, 1)
724#define TMS570_EMACM_MACCONFIG_TXCELLDEPTH(val) BSP_FLD32(val,24, 31)
725#define TMS570_EMACM_MACCONFIG_TXCELLDEPTH_GET(reg) BSP_FLD32GET(reg,24, 31)
726#define TMS570_EMACM_MACCONFIG_TXCELLDEPTH_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
729#define TMS570_EMACM_MACCONFIG_RXCELLDEPTH(val) BSP_FLD32(val,16, 23)
730#define TMS570_EMACM_MACCONFIG_RXCELLDEPTH_GET(reg) BSP_FLD32GET(reg,16, 23)
731#define TMS570_EMACM_MACCONFIG_RXCELLDEPTH_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
734#define TMS570_EMACM_MACCONFIG_ADDRESSTYPE(val) BSP_FLD32(val,8, 15)
735#define TMS570_EMACM_MACCONFIG_ADDRESSTYPE_GET(reg) BSP_FLD32GET(reg,8, 15)
736#define TMS570_EMACM_MACCONFIG_ADDRESSTYPE_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
739#define TMS570_EMACM_MACCONFIG_MACCFIG(val) BSP_FLD32(val,0, 7)
740#define TMS570_EMACM_MACCONFIG_MACCFIG_GET(reg) BSP_FLD32GET(reg,0, 7)
741#define TMS570_EMACM_MACCONFIG_MACCFIG_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
746#define TMS570_EMACM_SOFTRESET_SOFTRESET BSP_BIT32(0)
751#define TMS570_EMACM_MACSRCADDRLO_MACSRCADDR0(val) BSP_FLD32(val,8, 15)
752#define TMS570_EMACM_MACSRCADDRLO_MACSRCADDR0_GET(reg) BSP_FLD32GET(reg,8, 15)
753#define TMS570_EMACM_MACSRCADDRLO_MACSRCADDR0_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
756#define TMS570_EMACM_MACSRCADDRLO_MACSRCADDR1(val) BSP_FLD32(val,0, 7)
757#define TMS570_EMACM_MACSRCADDRLO_MACSRCADDR1_GET(reg) BSP_FLD32GET(reg,0, 7)
758#define TMS570_EMACM_MACSRCADDRLO_MACSRCADDR1_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
763#define TMS570_EMACM_MACSRCADDRHI_MACSRCADDR2(val) BSP_FLD32(val,24, 31)
764#define TMS570_EMACM_MACSRCADDRHI_MACSRCADDR2_GET(reg) BSP_FLD32GET(reg,24, 31)
765#define TMS570_EMACM_MACSRCADDRHI_MACSRCADDR2_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
768#define TMS570_EMACM_MACSRCADDRHI_MACSRCADDR3(val) BSP_FLD32(val,16, 23)
769#define TMS570_EMACM_MACSRCADDRHI_MACSRCADDR3_GET(reg) BSP_FLD32GET(reg,16, 23)
770#define TMS570_EMACM_MACSRCADDRHI_MACSRCADDR3_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
773#define TMS570_EMACM_MACSRCADDRHI_MACSRCADDR4(val) BSP_FLD32(val,8, 15)
774#define TMS570_EMACM_MACSRCADDRHI_MACSRCADDR4_GET(reg) BSP_FLD32GET(reg,8, 15)
775#define TMS570_EMACM_MACSRCADDRHI_MACSRCADDR4_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
778#define TMS570_EMACM_MACSRCADDRHI_MACSRCADDR5(val) BSP_FLD32(val,0, 7)
779#define TMS570_EMACM_MACSRCADDRHI_MACSRCADDR5_GET(reg) BSP_FLD32GET(reg,0, 7)
780#define TMS570_EMACM_MACSRCADDRHI_MACSRCADDR5_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
793#define TMS570_EMACM_BOFFTEST_RNDNUM(val) BSP_FLD32(val,16, 25)
794#define TMS570_EMACM_BOFFTEST_RNDNUM_GET(reg) BSP_FLD32GET(reg,16, 25)
795#define TMS570_EMACM_BOFFTEST_RNDNUM_SET(reg,val) BSP_FLD32SET(reg, val,16, 25)
798#define TMS570_EMACM_BOFFTEST_COLLCOUNT(val) BSP_FLD32(val,12, 15)
799#define TMS570_EMACM_BOFFTEST_COLLCOUNT_GET(reg) BSP_FLD32GET(reg,12, 15)
800#define TMS570_EMACM_BOFFTEST_COLLCOUNT_SET(reg,val) BSP_FLD32SET(reg, val,12, 15)
803#define TMS570_EMACM_BOFFTEST_TXBACKOFF(val) BSP_FLD32(val,0, 9)
804#define TMS570_EMACM_BOFFTEST_TXBACKOFF_GET(reg) BSP_FLD32GET(reg,0, 9)
805#define TMS570_EMACM_BOFFTEST_TXBACKOFF_SET(reg,val) BSP_FLD32SET(reg, val,0, 9)
810#define TMS570_EMACM_TPACETEST_PACEVAL(val) BSP_FLD32(val,0, 4)
811#define TMS570_EMACM_TPACETEST_PACEVAL_GET(reg) BSP_FLD32GET(reg,0, 4)
812#define TMS570_EMACM_TPACETEST_PACEVAL_SET(reg,val) BSP_FLD32SET(reg, val,0, 4)
817#define TMS570_EMACM_RXPAUSE_PAUSETIMER(val) BSP_FLD32(val,0, 15)
818#define TMS570_EMACM_RXPAUSE_PAUSETIMER_GET(reg) BSP_FLD32GET(reg,0, 15)
819#define TMS570_EMACM_RXPAUSE_PAUSETIMER_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
824#define TMS570_EMACM_TXPAUSE_PAUSETIMER(val) BSP_FLD32(val,0, 15)
825#define TMS570_EMACM_TXPAUSE_PAUSETIMER_GET(reg) BSP_FLD32GET(reg,0, 15)
826#define TMS570_EMACM_TXPAUSE_PAUSETIMER_SET(reg,val) BSP_FLD32SET(reg, val,0, 15)
831#define TMS570_EMACM_MACADDRLO_VALID BSP_BIT32(20)
834#define TMS570_EMACM_MACADDRLO_MATCHFILT BSP_BIT32(19)
837#define TMS570_EMACM_MACADDRLO_CHANNEL(val) BSP_FLD32(val,16, 18)
838#define TMS570_EMACM_MACADDRLO_CHANNEL_GET(reg) BSP_FLD32GET(reg,16, 18)
839#define TMS570_EMACM_MACADDRLO_CHANNEL_SET(reg,val) BSP_FLD32SET(reg, val,16, 18)
842#define TMS570_EMACM_MACADDRLO_MACADDR0(val) BSP_FLD32(val,8, 15)
843#define TMS570_EMACM_MACADDRLO_MACADDR0_GET(reg) BSP_FLD32GET(reg,8, 15)
844#define TMS570_EMACM_MACADDRLO_MACADDR0_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
847#define TMS570_EMACM_MACADDRLO_MACADDR1(val) BSP_FLD32(val,0, 7)
848#define TMS570_EMACM_MACADDRLO_MACADDR1_GET(reg) BSP_FLD32GET(reg,0, 7)
849#define TMS570_EMACM_MACADDRLO_MACADDR1_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
854#define TMS570_EMACM_MACADDRHI_MACADDR2(val) BSP_FLD32(val,24, 31)
855#define TMS570_EMACM_MACADDRHI_MACADDR2_GET(reg) BSP_FLD32GET(reg,24, 31)
856#define TMS570_EMACM_MACADDRHI_MACADDR2_SET(reg,val) BSP_FLD32SET(reg, val,24, 31)
859#define TMS570_EMACM_MACADDRHI_MACADDR3(val) BSP_FLD32(val,16, 23)
860#define TMS570_EMACM_MACADDRHI_MACADDR3_GET(reg) BSP_FLD32GET(reg,16, 23)
861#define TMS570_EMACM_MACADDRHI_MACADDR3_SET(reg,val) BSP_FLD32SET(reg, val,16, 23)
864#define TMS570_EMACM_MACADDRHI_MACADDR4(val) BSP_FLD32(val,8, 15)
865#define TMS570_EMACM_MACADDRHI_MACADDR4_GET(reg) BSP_FLD32GET(reg,8, 15)
866#define TMS570_EMACM_MACADDRHI_MACADDR4_SET(reg,val) BSP_FLD32SET(reg, val,8, 15)
869#define TMS570_EMACM_MACADDRHI_MACADDR5(val) BSP_FLD32(val,0, 7)
870#define TMS570_EMACM_MACADDRHI_MACADDR5_GET(reg) BSP_FLD32GET(reg,0, 7)
871#define TMS570_EMACM_MACADDRHI_MACADDR5_SET(reg,val) BSP_FLD32SET(reg, val,0, 7)
876#define TMS570_EMACM_MACINDEX_MACINDEX(val) BSP_FLD32(val,0, 2)
877#define TMS570_EMACM_MACINDEX_MACINDEX_GET(reg) BSP_FLD32GET(reg,0, 2)
878#define TMS570_EMACM_MACINDEX_MACINDEX_SET(reg,val) BSP_FLD32SET(reg, val,0, 2)
This header file provides utility macros for BSPs.
Definition: reg_emacm.h:44