摘要
RTL8139是目前应用最为广泛的以太网控制器之一,在嵌入式系统中,常用做通信网口,这要求其驱动程序稳定性好,效率高。Realtek公司在其网页上提供了基于VxW orks系统的RTL8139驱动源程序,但在不同的硬件平台上,为提高驱动程序的稳定性和效率,需要修改源程序。RTL8139因其FIFO较小,收发数据包又采用完全拷贝方式,在网络突发数据包较多的情况下,容易丢包,且不能自行恢复。基于MPC8241 CPU的硬件平台,详细讨论了RTL8139收发数据包流程容易中断的原因,提出了一种改进RTL8139驱动的方法。
The Reahek RTL8139 is a Fast Ethernet Controller widely used in communication equipment. In embedded system, it is frequently used as network interface card. It is necessary to provide a high efficient and robust driver. The driver source code based on VxWorks can be down loaded from the web of Realtek semiconductor Corp, but it needs modification according to hardware environment. RTL8139 contains only 2K-byte receive (Rx) and transmit (Tx) FIFOs. Moreover, it must copy an entire packet into the corresponding buffer, in both Rx and Tx. If there are too many burst packets in a network, RTL8139 will lose packets in large number ant, it can' t recover. Basing on the MPC8241 CPU platform, the cause of losing packets is discussed in this paper, and an improved RTL8139 Ethemet network interface driver is suggested.
出处
《电子工程师》
2006年第5期56-58,共3页
Electronic Engineer