更新时间:04-14 (白色球鞋)提供原创文章
摘要:随着人们对开放源代码软件热情的日益增高,Linux作为一个功能强大而稳定的开源操作系统,越来越受到成千上万的计算机专家和爱好者的青睐。Linux强大的网络支持功能实现了对包括TCP/IP在内的多种协议的支持,满足了面向21世纪的嵌入式系统应用联网的需求。因此,在嵌入式系统开发调试时,网络接口几乎成为不可或缺的模块。
本课题对嵌入式Linux网络设备驱动程序做了深入的研究,研究了 Samsung 公司的 S3C2410 微处理器和CIRRUS公司的 CS8900以太网控制芯片,构成一个以太网系统。以Linux作为开发平台的操作系统,利用开发平台搭建了嵌入式系统开发环境。完成了CS8900以太网卡驱动程序的编写,其中最主要的是完成设备功能层中设备初始化、设备打开、关闭、数据包的发送、接收和中断处理这六大功能。分析了中断共享、硬件发送忙、流量控制等难点问题,并给出了相应可行的解决办法。本文着重论述驱动程序实现的框架设计,对于网络设备驱动程序在其它嵌入式平台下的实现具有一定的借鉴意义。
关键词:嵌入式系统,S3c2410,CS8900,Linux,网络设备
ABSTRACT:Along with the people to the open source software enthusiasm increasingly heighten, Linux as a powerful and stable open source operating system, more and more by tens of thousands of computer professionals and enthusiasts of all ages. Linux powerful network support functions to include TCP / IP, multiple protocols support, to meet the twenty-first Century embedded system application networking needs. Therefore, in the development of embedded system and debugging, network interface has become almost indispensable module.
This topic of embedded Linux network device drivers, makes a deep research on company Samsung S3C2410 microprocessor and CIRRUS CS8900 Ethernet control chip,and constitute an Ethernet system. Taking Linux as the development platform of the operating system, using the development platform of embedded system development environment. Completed the CS8900Ethernet card driver, among which the most important is to complete the equipment function layer device initialization, device to open, close, data packets to send, receive and interrupt handling of the six functions. Analysis of the hardware interrupt sharing, send busy, flow control and other difficult problems, and gives the corresponding feasible solution. In this paper a driver for the realization of the frame design, the network device driver in other embedded platform implementation has certain reference significance.
Keywords: embedded system, S3c2410, CS8900, Linux, network equipment