09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Ethernet (ETH): media access control (MAC) with DMA controller <strong>RM0090</strong><br />

Normal Rx DMA descriptors<br />

The normal receive descriptor structure consists of four 32-bit words (16 bytes). These are<br />

shown in Figure 352. The bit descriptions of RDES0, RDES1, RDES2 and RDES3 are given<br />

below.<br />

Note that enhanced descriptors must be used if time stamping is activated (TSE=1,<br />

ETH_PTPTSCR bit 0) or if IPv4 checksum offload is activated (IPCO=1, ETH_MACCR bit<br />

10).<br />

Figure 352. Normal Rx DMA descriptor structure<br />

RDES 0<br />

RDES 1<br />

RDES 2<br />

RDES 3<br />

31 0<br />

O<br />

W<br />

N<br />

CT<br />

RL<br />

Reserved<br />

[30:29]<br />

Buffer 2 byte count<br />

[28:16]<br />

● RDES0: Receive descriptor Word0<br />

RDES0 contains the received frame status, the frame length and the descriptor<br />

ownership information.<br />

957/1416 Doc ID 018909 Rev 3<br />

Status [30:0]<br />

CTRL<br />

[15:14]<br />

Buffer 1 address [31:0]<br />

Res.<br />

Buffer 2 address [31:0] or Next descriptor address [31:0]<br />

Buffer 1 byte count<br />

[12:0]<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

OWN<br />

AFM<br />

FL ES<br />

rw<br />

DE<br />

SAF<br />

LE<br />

OE<br />

VLAN<br />

FS<br />

LS<br />

IPHCE/TSV<br />

LCO<br />

FT<br />

RWT<br />

RE<br />

ai15644<br />

Bit 31 OWN: Own bit<br />

When set, this bit indicates that the descriptor is owned by the DMA of the MAC Subsystem.<br />

When this bit is reset, it indicates that the descriptor is owned by the Host. The DMA clears this bit<br />

either when it completes the frame reception or when the buffers that are associated with this<br />

descriptor are full.<br />

Bit 30 AFM: Destination address filter fail<br />

When set, this bit indicates a frame that failed the DA filter in the MAC Core.<br />

Bits 29:16 FL: Frame length<br />

These bits indicate the byte length of the received frame that was transferred to host memory<br />

(including CRC). This field is valid only when last descriptor (RDES0[8]) is set and descriptor error<br />

(RDES0[14]) is reset.<br />

This field is valid when last descriptor (RDES0[8]) is set. When the last descriptor and error<br />

summary bits are not set, this field indicates the accumulated number of bytes that have been<br />

transferred for the current frame.<br />

DE<br />

CE<br />

PCE/ESA

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!