Texas Instruments TMS320DM643x DMP Switch User Manual


 
www.ti.com
2.5.4.7EndofPacket(EOP)Flag
2.5.4.8Ownership(OWNER)Flag
2.5.4.9EndofQueue(EOQ)Flag
2.5.4.10TeardownComplete(TDOWNCMPLT)Flag
2.5.4.11PassCRC(PASSCRC)Flag
PeripheralArchitecture
Whenset,thisflagindicatesthatthedescriptorpointstoapacketbufferthatislastforagivenpacket.In
thecaseofasinglefragmentpacket,boththestartofpacket(SOP)andEOPflagsareset.Otherwise,the
descriptorpointingtothelastpacketbufferforthepacketsetstheEOPflag.Thisbitissetbythesoftware
applicationandisnotalteredbytheEMAC.
Whenset,thisflagindicatesthatallthedescriptorsforthegivenpacket(fromSOPtoEOP)arecurrently
ownedbytheEMAC.ThisflagissetbythesoftwareapplicationontheSOPpacketdescriptorbefore
addingthedescriptortothetransmitdescriptorqueue.Forasinglefragmentpacket,theSOP,EOP,and
OWNERflagsareallset.TheOWNERflagisclearedbytheEMAConceitisfinishedwithallthe
descriptorsforthegivenpacket.NotethatthisflagisvalidonSOPdescriptorsonly.
Whenset,thisflagindicatesthatthedescriptorinquestionwasthelastdescriptorinthetransmitqueue
foragiventransmitchannel,andthatthetransmitterhashalted.Thisflagisinitiallyclearedbythe
softwareapplicationpriortoaddingthedescriptortothetransmitqueue.ThisbitissetbytheEMACwhen
theEMACidentifiesthatadescriptoristhelastforagivenpacket(theEOPflagisset),andthereareno
moredescriptorsinthetransmitlist(nextdescriptorpointerisNULL).
ThesoftwareapplicationcanusethisbittodetectwhentheEMACtransmitterforthecorresponding
channelhashalted.Thisisusefulwhentheapplicationappendsadditionalpacketdescriptorstoatransmit
queuelistthatisalreadyownedbytheEMAC.NotethatthisflagisvalidonEOPdescriptorsonly.
Thisflagisusedwhenatransmitqueueisbeingtorndown,oraborted,insteadofallowingittobe
transmitted.Thiswouldhappenunderdevicedriverresetorshutdownconditions.TheEMACsetsthisbit
intheSOPdescriptorofeachpacketasitisabortedfromtransmission.
NotethatthisflagisvalidonSOPdescriptorsonly.Alsonotethatonlythefirstpacketinanunsentlisthas
theTDOWNCMPLTflagset.SubsequentdescriptorsarenotevenprocessedbytheEMAC.
ThisflagissetbythesoftwareapplicationintheSOPpacketdescriptorbeforeitaddsthedescriptortothe
transmitqueue.SettingthisbitindicatestotheEMACthatthe4byteEthernetCRCisalreadypresentin
thepacketdata,andthattheEMACshouldnotgenerateitsownversionoftheCRC.
WhentheCRCflagiscleared,theEMACgeneratesandappendsthe4-byteCRC.Thebufferlengthand
packetlengthfieldsdonotincludetheCRCbytes.WhentheCRCflagisset,the4-byteCRCissupplied
bythesoftwareapplicationandisalreadyappendedtotheendofthepacketdata.Thebufferlengthand
packetlengthfieldsincludetheCRCbytes,astheyarepartofthevalidpacketdata.Notethatthisflagis
validonSOPdescriptorsonly.
22EthernetMediaAccessController(EMAC)/SPRU941AApril2007
ManagementDataInput/Output(MDIO)
SubmitDocumentationFeedback