Receive Buffer Descriptor Format - Texas Instruments TMS320DM646x User Manual

Texas instruments ethernet media access controller (emac)/ management data input/output (mdio) module user's guide
Hide thumbs Also See for TMS320DM646x:
Table of Contents

Advertisement

www.ti.com
2.5.5

Receive Buffer Descriptor Format

A receive (RX) buffer descriptor
32-bit boundary that describes a packet or a packet fragment.
descriptor described by a C structure.
2.5.5.1
Next Descriptor Pointer
This pointer points to the 32–bit word aligned memory address of the next buffer descriptor in the receive
queue. This pointer is used to create a linked list of buffer descriptors. If the value of this pointer is zero,
then the current buffer is the last buffer in the queue. The software application must set this value prior to
adding the descriptor to the active receive list. This pointer is not altered by the EMAC.
The value of pNext should never be altered once the descriptor is in an active receive queue, unless its
current value is NULL. If the pNext pointer is initially NULL, and more empty buffers can be added to the
pool, the software application may alter this pointer to point to a newly appended descriptor. The EMAC
will use the new pointer value and proceed to the next descriptor unless the pNext value has already been
read. In this latter case, the receiver will halt the receive channel in question, and the software application
may restart it at that time. The software can detect this case by checking for an end of queue (EOQ)
condition flag on the updated packet descriptor when it is returned by the EMAC.
2.5.5.2
Buffer Pointer
The buffer pointer is the byte-aligned memory address of the memory buffer associated with the buffer
descriptor. The software application must set this value prior to adding the descriptor to the active receive
list. This pointer is not altered by the EMAC.
Word 0
31
Word 1
31
Word 2
31
Buffer Offset
Word 3
31
30
SOP
EOP
23
22
FRAGMENT
UNDERSIZED
15
SPRUEQ6 – December 2007
Submit Documentation Feedback
(Figure
8) is a contiguous block of four 32-bit data words aligned on a
Figure 8. Receive Buffer Descriptor Format
Next Descriptor Pointer
Buffer Pointer
16 15
29
28
OWNER
EOQ
21
20
CONTROL
OVERRUN
Packet Length
Ethernet Media Access Controller (EMAC)/Management Data Input/Output (MDIO)
Example 2
shows the receive buffer
Buffer Length
27
26
TDOWNCMPLT
PASSCRC
19
18
CODEERROR
ALIGNERROR
Architecture
0
0
0
25
24
JABBER
OVERSIZE
17
16
CRCERROR
NOMATCH
0
27

Advertisement

Table of Contents
loading

Table of Contents