
11-34
MCF5272 User’s Manual
MOTOROLA
Buffer Descriptors
NOTE:
Anytime the software driver sets an E bit in a receive
descriptor, the driver should immediately write to RDAR.
11.6.1.2 Ethernet Transmit Buffer Descriptor
Data is presented to the FEC for transmission by arranging it in buffers referenced by the
channel’s TxBDs. The FEC conrms transmission or indicates error conditions using the
BDs to inform the host that the buffers have been serviced. In the TxBD, the user initializes
the R, W, L, and TC bits and the length (in bytes) in the rst word and the buffer pointer in
the second words.
If L = 0, then the FEC sets the R bit to 0 in the rst word of the BD when the buffer is sent
as a DMA. Status bits are not modied.
If L = 1, then the FEC sets the R bit to 0 and will modify the DEF, HB, LC, RL, RC, UN,
and CSL status bits in the rst word of the BD after the buffer is sent as a DMA, and frame
transmission is complete.
4
NO
Rx non-octet-aligned frame. Written by the FEC. A frame that contained a number of bits not
divisible by 8 was received, and the CRC check that occurred at the preceding byte boundary
generated an error. Valid only if the L-bit is set. If this bit is set, the CR bit is not set.
3
SH
Short frame. Written by the FEC. A frame length that was less than the minimum dened for
this channel was recognized. The FEC does not support SH and this bit is always cleared.
2
CR
Rx CRC error. Written by the FEC. Contains a CRC error and is an integral number of octets in
length. Valid only if the L-bit is set.
1
OV
Overrun. Written by the FEC. A receive FIFO overrun occurred during frame reception. If this
bit is set, the other status bits, M, LG, NO, SH, CR, and CL, lose their normal meaning and are
zero. Valid only if the L-bit is set.
0
TR
Truncated receive frame. Written by the FEC. Set if the receive frame is truncated. Frames
greater than or equal to 2048 bytes are truncated.
Offset
+ 2
Data
Length
Written by the FEC. Data length is the number of octets written by the FEC into this BD’s data
buffer if L = 0 (the value is equal to EMRBR), or the length of the frame including CRC if L = 1.
It is written by the FEC once as the BD is closed.
Offset
+ 4
Rx Buffer
Pointer
Written by the user. The receive buffer pointer, which always points to the rst location of the
associated data buffer, must always be evenly divisible by 16. The buffer must reside in
memory external to the FEC.
15
14
13
12
11
10
98765
210
+0
R
TO1
W
TO2
L
TC
DEF
HB
LC
RL
RC
UN
CSL
+2
DATA LENGTH
+4
Tx Data Buffer Pointer A[31–16]
+6
Tx Data Buffer Pointer A[15–0]
Figure 11-27. Transmit Buffer Descriptor (TxBD)
Table 11-34. RxBD Field Descriptions (Continued)
Bits
Name
Description