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 />

Enhanced Tx DMA descriptors<br />

Enhanced descriptors (enabled with EDFE=1, ETHDMABMR bit 7), must be used if time<br />

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

activated (IPCO=1, ETH_MACCR bit 10).<br />

Enhanced descriptors comprise eight 32-bit words, twice the size of normal descriptors.<br />

TDES0, TDES1, TDES2 and TDES3 have the same definitions as for normal transmit<br />

descriptors (refer to Normal Tx DMA descriptors). TDES6 and TDES7 hold the time stamp.<br />

TDES4, TDES5, TDES6 and TDES7 are defined below.<br />

When the Enhanced descriptor mode is selected, the software needs to allocate 32-bytes (8<br />

DWORDS) of memory for every descriptor. When time stamping or IPv4 checksum offload<br />

are not being used, the enhanced descriptor format may be disabled and the software can<br />

use normal descriptors with the default size of 16 bytes.<br />

Figure 350. Enhanced transmit descriptor<br />

TDES 0<br />

TDES 1<br />

TDES 2<br />

TDES 3<br />

TDES 4<br />

TDES 5<br />

TDES 6<br />

TDES 7<br />

31 0<br />

O<br />

W<br />

N<br />

Ctrl<br />

[30:26]<br />

Reserved<br />

[31:29]<br />

Res.<br />

24<br />

Ctrl<br />

[23:20]<br />

Buffer 2 byte count<br />

[28:16]<br />

● TDES4: Transmit descriptor Word4<br />

Reserved<br />

● TDES5: Transmit descriptor Word5<br />

Reserved<br />

● TDES6: Transmit descriptor Word6<br />

Reserved<br />

[19:18]<br />

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

T<br />

T<br />

S<br />

E<br />

Reserved<br />

[15:13]<br />

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

Status [16:0]<br />

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

Reserved<br />

Reserved<br />

T<br />

T<br />

S<br />

S<br />

Time stamp low [31:0]<br />

Time stamp high [31:0]<br />

Buffer 1 byte count<br />

[12:0]<br />

ai17105b<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 />

TTSL<br />

rw<br />

Bits 31:0 TTSL: Transmit frame time stamp low<br />

This field is updated by DMA with the 32 least significant bits of the time stamp captured<br />

for the corresponding transmit frame. This field has the time stamp only if the Last segment<br />

control bit (LS) in the descriptor is set.

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

Saved successfully!

Ooh no, something went wrong!