Texas Instruments TMS320DM643x DMP Switch User Manual


 
www.ti.com
5.29MACStatusRegister(MACSTATUS)
EthernetMediaAccessController(EMAC)Registers
TheMACstatusregister(MACSTATUS)isshowninFigure55anddescribedinTable54.
Figure55.MACStatusRegister(MACSTATUS)
3130242320191816
IDLEReservedTXERRCODERsvdTXERRCH
R-0R-0R-0R-0R-0
151211108
RXERRCODEReservedRXERRCH
R-0R-0R-0
73210
ReservedRXQOSACTRXFLOWACTTXFLOWACT
R-0R-0R-0R-0
LEGEND:R=Readonly;-n=valueafterreset
Table54.MACStatusRegister(MACSTATUS)FieldDescriptions
BitFieldValueDescription
31IDLEEMACidlebit.Thisbitisclearedto0atreset;oneclockafterreset,itgoesto1.
0TheEMACisnotidle.
1TheEMACisintheidlestate.
30-24Reserved0Reserved
23-20TXERRCODE0-FhTransmithosterrorcode.ThesebitsindicatethatEMACdetectedtransmitDMArelatedhosterrors.
Thehostshouldreadthisfieldafterahosterrorinterrupt(HOSTPEND)todeterminetheerror.Host
errorinterruptsrequirehardwareresetinordertorecover.A0packetlengthisanerror,butitisnot
detected.
0Noerror
1hSOPerror;thebufferisthefirstbufferinapacket,buttheSOPbitisnotsetinsoftware.
2hOwnershipbitnotsetinSOPbuffer
3hZeronextbufferdescriptorpointerwithoutEOP
4hZerobufferpointer
5hZerobufferlength
6hPacketlengtherror(sumofbuffersislessthanpacketlength)
19Reserved0Reserved
18-16TXERRCH0-7hTransmithosterrorchannel.Thesebitsindicatewhichtransmitchannelthehosterroroccurredon.
Thisfieldisclearedto0onahostread.
0Thehosterroroccurredontransmitchannel0
1hThehosterroroccurredontransmitchannel1
2hThehosterroroccurredontransmitchannel2
3hThehosterroroccurredontransmitchannel3
4hThehosterroroccurredontransmitchannel4
5hThehosterroroccurredontransmitchannel5
6hThehosterroroccurredontransmitchannel6
7hThehosterroroccurredontransmitchannel7
15-12RXERRCODE0-FhReceivehosterrorcode.ThesebitsindicatethatEMACdetectedreceiveDMArelatedhosterrors.
Thehostshouldreadthisfieldafterahosterrorinterrupt(HOSTPEND)todeterminetheerror.Host
errorinterruptsrequirehardwareresetinordertorecover.
0Noerror
2hOwnershipbitnotsetinSOPbuffer
4hZerobufferpointer
11Reserved0Reserved
96EthernetMediaAccessController(EMAC)/SPRU941AApril2007
ManagementDataInput/Output(MDIO)
SubmitDocumentationFeedback