Realtek RTL8100 Скачать руководство пользователя страница 7

 
 

RTL8100 

 

2001/12/10 

Rev.1.0 

 
 

2.2 The Packet Header 

Bit

 

R/W

 

Symbol

 

Description

 

15 R  MAR 

Multicast Address Received:

 

This bit set

 to 1 indicates that a multicast 

packet is received. 

14 R  PAM 

Physical Address Matched:

 

This bit set

 to 1 indicates that the destination 

address of this packet matches the value written in ID registers. 

13 R  BAR 

Broadcast Address Received:

 

This bit set

 to 1 indicates that a broadcast 

packet is received. BAR, MAR bit will not be set simultaneously. 

12-6 - 

Reserved 

5 R  ISE 

Invalid Symbol Error:

 (100BASE-TX only) This bit set to 1 indicates that an 

invalid symbol was encountered during the reception of this packet. 

4 R RUNT 

Runt Packet Received:

 This bit set to 1 indicates that the received packet 

length is smaller than 64 bytes ( i.e. media data + CRC < 64 bytes ) 

3 R LONG 

Long Packet:

 This bit set to 1 indicates that the size of the received packet 

exceeds 4k bytes. 

2 R CRC 

CRC Error:

 When set, indicates that a CRC error occurred on the received 

packet. 

1 R  FAE 

Frame Alignment Error:

 When set, indicates that a frame alignment error 

occurred on this received packet. 

0 R ROK 

Receive OK:

 When set, indicates that a good packet is received. 

 

2.3 The Transmission Process 

The following process describes the reception of a packet. 

1.  Data received from the line is stored in the receive FIFO. 

2.  When the early receive threshold is met, data is moved from the FIFO to the receive buffer. 

3.  After the whole packet is moved from the FIFO to the receive buffer, the receive packet header (receive status and 

packet length) is written in front of the packet. CBA is updated to the end of the packet. 

4.  CMD (BufferEmpty) and ISR (TOK) is set. 

5.  An ISR routine is called and then the driver clears ISR (TOK) and updates CAPR. 

2.4 Registers Involved 

1.  RBStart: Receive Buffer start address. 

2.  CR (BufferEmpty): Indicates if driver is empty. 

3.  CAPR: Buffer read pointer. 

4.  CBP: Buffer write pointer. 

5.  ISR/IMR (ROK, RER, RxOverflow, RxFIFOOverflow) 

6.  RCR: Receive Configuration register. 

7. Packet 

Header. 

Содержание RTL8100

Страница 1: ...2 6 Configuration 8 2 7 Sample Code 9 3 Initialization 10 Additional Notes 10 This document is intended for use by the software engineer when programming for the Realtek RTL8100 series NIC controller...

Страница 2: ...on of a packet 28 R CDH CD Heart Beat The same as RTL8029 AS This bit is cleared in the 100Mbps mode 27 24 R NCC3 0 Number of Collision Count Indicates the number of collisions encountered during the...

Страница 3: ...mit Status register Also clear the OWN bit in TSD This starts the PCI operation 3 As the data moved into the FIFO meets the early transmit threshold the chip starts to move data from the FIFO to the l...

Страница 4: ...ssing a transmit interrupt the following two cases should be managed properly Case 1 More than one interrupt between TOK and when ISR routine called Drivers have to check as many descriptor as possibl...

Страница 5: ...S_OWN case 0 return TSDSTATUS_0 return 0 void IssueCMD unsigned char descriptor unsigned long offset descriptor 2 outpdw IOBase TSAD0 offset TxDesc TxHwSetupPtr PhysicalAddress outpdw IOBase TSD0 offs...

Страница 6: ...gister CBA keeps the current address of the data moved to the buffer CAPR is then a read pointer which keeps the address of data that the driver had read The receiving packet status is stored in front...

Страница 7: ...2 R CRC CRC Error When set indicates that a CRC error occurred on the received packet 1 R FAE Frame Alignment Error When set indicates that a frame alignment error occurred on this received packet 0...

Страница 8: ...arly threshold No early FIFO Buffer DMA starts when the whole packet is in the FIFO If an incoming packet is larger than the size of the FIFO 2K RxFIFOOvw will be set but Rx DMA will never start so th...

Страница 9: ...CR_BUFE break do RxReadPtr RxBuffer RxReadPtrOffset pPacketHeader PPACKETHEADER RxReadPtr pIncomePacket RxReadPtr 4 PktLength pPacketHeader PacketLength this length include CRC if PacketOK pPacketHead...

Страница 10: ...n developed under Borland C 3 0 and the debugging process was accomplished under Softice for DOS All testing is done under DOS win98 2 To enable source code debugging under Softice the compiling linki...

Отзывы: