Information

Enhanced Three-Speed Ethernet Controllers
MPC8308 PowerQUICC II Pro Processor Reference Manual, Rev. 1
Freescale Semiconductor 16-107
Table 16-106 describes the fields of the ATTRELI register.
16.5.3.9 Lossless Flow Control Configuration Registers
When enabled through RCTRL[LFC], the eTSEC tracks location of the last free BD in each Rx BD ring
through the value of RFBPTRn. Using this pointer and the ring length stored in RQPRMn[LEN], the
eTSEC continuously calculates the number of free BDs in the ring. Whenever the calculated number of
free BDs in the ring drops below the pause threshold specified in RQPRMn[FBTHR], the eTSEC issues
link layer flow control. It continues to assert flow control until the free BD count for each active ring
reaches or exceeds RQPRMn[FBTHR]. See section 16.6.5.1/16-154 for the theory of operation of these
registers.
16.5.3.9.1 Receive Queue Parameters 0–7 (RQPRM0–PQPRM7)
The RQPRMn registers specify the minimum number of BDs required to prevent flow control being
asserted and the total number of Rx BDs in their respective ring. Whenever the free BD count calculated
by the eTSEC for any active ring drops below the value of RQPRMn[FBTHR] for that ring, link level flow
control is asserted. Software must not write to RQPRMn while LFC is enabled and the eTSEC is actively
receiving frames. However, software may modify these registers after disabling LFC by clearing
RCTRL[LFC]. Note that packets may be lost due to lack of RxBDs while RCTRL[LFC] is clear. Software
can prevent packet loss by manually generating pause frames (through TCTRL[TFC_PAUSE]) to cover
the time when RCTRL[LFC] is clear. Figure 16-103 describes the definition for the RQPRMn register.
Offset eTSEC1:0x2_4BFC; eTSEC2:0x2_5BFC Access: Read/Write
0 1 2 1213 1718 2526 31
R
—EL EI
W
Reset All zeros
Figure 16-102. ATTRELI Register Definition
Table 16-106. ATTRELI Field Descriptions
Bits Name Description
0–1 Reserved
2–12 EL Extracted length. Specifies the number of bytes, as a multiple of 8 bytes, to extract from the receive
frame. The DMA controller uses this field to perform extraction. If cleared, no extraction is performed.
13–15 To ensure that EL is a multiple of 8 bytes, these bits should be written with zero.
16–17 Reserved
18–25 EI Extracted index. Points to the first byte, as a multiple of 64 bytes, within the receive frame as sent to
memory from which to begin extracting data.
26–31 To ensure that EI is a multiple of 8 bytes, these bits should be written with zero.