Texas Instruments TMS320TCI648x Network Card User Manual


 
www.ti.com
31
0
1
2
1523
7
27 11
19
3
29
o
w
n
e
r
s
h
i
p
t
e
a
r
d
o
w
n
e
o
p
e
o
q
s
o
p
3
reserved
retry_count
cc
message_length
13
21
5
25
9
17 1
30
1422
626 10
18
2
28
12
20
424
8
16 0
BitFields
next_descriptor_pointer
buffer_pointer
dest_id pri
tt
ssize mailbox
port_id
Word
Offset
SRIOFunctionalDescription
Table20.TXDMAStateCompletionPointer(CP)(AddressOffset58h–5BCh)
BitNameDescription
31–0TXQueueTXQueueCompletionPointer:ThisfieldistheDSPcorememoryaddressforthetransmitqueue
CompletionPointercompletionpointer.ThisregisteriswrittenbytheDSPcorewiththebufferdescriptoraddressfor
thelastbufferprocessedbytheDSPcoreduringinterruptprocessing.Theportusesthevalue
writtentodetermineiftheinterruptshouldbedeasserted.
Figure22.TXBufferDescriptorFields
Table21.TXBufferDescriptorFieldDefinitions
FieldDescription
next_descriptor_pointerNextDescriptorPointer:The32-bitwordalignedmemoryaddressofthenextbuffer
descriptorintheTXqueue.Thisisthemechanismusedtoreferencethenextbuffer
descriptorfromthecurrentbufferdescriptor.Ifthevalueofthispointeriszerothenthe
currentbufferisthelastbufferinthequeue.TheDSPcoresetsthe
next_descriptor_pointer.
buffer_pointerBufferPointer:Thebytealignedmemoryaddressofthebufferassociatedwiththe
bufferdescriptor.TheDSPcoresetsthebuffer_pointer.
sop=1StartofMessage:Indicatesthatthedescriptorbufferisthefirstbufferinthemessage.
Thisbitwillalwaysbesetasthisdeviceonlysupportsonebufferpermessage.
eop=1EndofMessage:Indicatesthatthedescriptorbufferisthelastbufferinthemessage.
Thisbitwillalwaysbesetasthisdeviceonlysupportsonebufferpermessage.
ownershipOwnership:Indicatesownershipofthemessageandisvalidonlyonsop.Thisbitisset
bytheDSPcoreandclearedbytheportwhenthemessagehasbeentransmitted.The
DSPcoreusesthisbittoreclaimbuffers.
0:ThemessageisownedbytheDSPcore
1:Themessageisownedbytheport
eoqEndOfQueue:Setbytheporttoindicatethatallmessagesinthequeuehavebeen
transmittedandtheTXqueueisempty.Endofqueueisdeterminedbytheportwhen
thenext_descriptor_pointeriszeroonaneopbuffer.Thisbitisvalidonlyoneop.
0:TheTXqueuehasmoremessagestotransfer.
1:TheDescriptorbufferisthelastbufferinthelastmessageinthequeue.
teardown_completeTeardownComplete:SetbytheporttoindicatethattheDSPcorecommanded
teardownprocessiscomplete,andthechannelbuffersmaybereclaimedbytheDSP
core.
0:Theporthasnotcompletedtheteardownprocess.
1:Theporthascompletedthecommandedteardownprocess.
52SerialRapidIO(SRIO)SPRUE13ASeptember2006
SubmitDocumentationFeedback