欢迎访问ic37.com |
会员登录 免费注册
发布采购

LAN9211_0711 参数 Datasheet PDF下载

LAN9211_0711图片预览
型号: LAN9211_0711
PDF下载: 下载PDF文件 查看货源
内容描述: 高性能小尺寸单芯片以太网控制器与HP Auto-MDIX的 [High-Performance Small Form Factor Single-Chip Ethernet Controller with HP Auto-MDIX]
分类和应用: 控制器以太网
文件页数/大小: 146 页 / 1764 K
品牌: SMSC [ SMSC CORPORATION ]
 浏览型号LAN9211_0711的Datasheet PDF文件第28页浏览型号LAN9211_0711的Datasheet PDF文件第29页浏览型号LAN9211_0711的Datasheet PDF文件第30页浏览型号LAN9211_0711的Datasheet PDF文件第31页浏览型号LAN9211_0711的Datasheet PDF文件第33页浏览型号LAN9211_0711的Datasheet PDF文件第34页浏览型号LAN9211_0711的Datasheet PDF文件第35页浏览型号LAN9211_0711的Datasheet PDF文件第36页  
High-Performance Small Form Factor Single-Chip Ethernet Controller with HP Auto-MDIX  
Datasheet  
3.6.2  
Transmit Checksum Offload Engine (TXCOE)  
The transmit checksum offload engine provides assistance to the CPU by calculating a 16-bit  
checksum, typically for TCP, for a transmit Ethernet frame. The TXCOE calculates the checksum and  
inserts the results back into the data stream as it is transferred to the MAC.  
To activate the TXCOE and perform a checksum calculation, the host must first set the TX checksum  
offload engine enable bit (TXCOE_EN) in the COE_CR—Checksum Offload Engine Control Register.  
The host then pre-pends a 3 DWORD buffer to the data that will be transmitted. The pre-pended buffer  
includes a TX Command ‘A’, TX Command ‘B’, and a 32-bit TX checksum preamble. When bit 14 (CK)  
of the TX Command ‘B’ is set in conjunction with bit 13 (FS) of TX Command ‘A’ and bit 16  
(TXCOE_EN) of the COE_CR register, the TXCOE will perform a checksum calculation on the  
associated packet. When these three bits are set, a 32-bit TX checksum preamble must be pre-pended  
to the beginning of the TX packet (refer to Table 3.7). The TX checksum preamble instructs the TXCOE  
on the handling of the associated packet. Bits 11:0 of the TX checksum preamble define the byte offset  
at which the data checksum calculation will begin (TXCSSP). The checksum calculation will begin at  
this offset and will continue until the end of the packet. The data checksum calculation must not begin  
in the MAC header (first 14 bytes) or in the last 4 bytes of the TX packet. When the calculation is  
complete, the checksum will be inserted into the packet at the byte offset defined by bits 27:16 of the  
TX checksum preamble (TXCSLOC). The TX checksum cannot be inserted in the MAC header (first  
14 bytes) or in the last 4 bytes of the TX packet. If the CK bit is not set in the first TX Command ‘B’  
of a packet, the packet is passed directly through the TXCOE without modification, regardless if the  
TXCOE_EN is set. An example of a TX packet with a pre-pended TX checksum preamble can be  
found in Section 3.12.6.3, "TX Example 3". In this example the host writes the packet data to the  
ethernet controller in four fragments, the first containing the TX Checksum Preamble. Figure 3.17  
shows how these fragments are loaded into the TX Data FIFO. For more information on the TX  
Command ‘A’ and TX Command ‘B’, refer to Section 3.12.2, "TX Command Format".  
If the TX packet already includes a partial checksum calculation (perhaps inserted by an upper layer  
protocol), this checksum can be included in the hardware checksum calculation by setting the TXCSSP  
field in the TX checksum preamble to include the partial checksum. The partial checksum can be  
replaced by the completed checksum calculation by setting the TXCSLOC pointer to point to the  
location of the partial checksum.  
Table 3.7 TX Checksum Preamble  
FIELD  
DESCRIPTION  
31:28  
27:16  
RESERVED  
TXCSLOC - TX Checksum Location  
This field specifies the byte offset where the TX checksum will be inserted in the TX packet. The  
checksum will replace two bytes of data starting at this offset.  
Note:  
The TX checksum cannot be inserted in the MAC header (first 14 bytes) or in the last 4  
bytes of the TX packet.  
15:12  
11:0  
RESERVED  
TXCSSP - TX Checksum Start Pointer  
This field indicates start offset, in bytes, where the checksum calculation will begin in the associated  
TX packet.  
Note:  
The data checksum calculation must not begin in the MAC header (first 14 bytes) or in  
the last 4 bytes of the TX packet.  
Note: When the TXCOE is enabled, the third DWORD of the pre-pended packet is not transmitted.  
However, 4 bytes must be added to the packet length field in TX Command ‘B’.  
Note: When the TXCOE is enabled, the store and forward mode must be enabled (bit 20 (SF) of the  
HW_CFG—Hardware Configuration Register must be set).  
Revision 1.93 (11-27-07)  
32  
SMSC LAN9211  
DATASHEET