摘要
论述了在基于S3C2410、CS8900和Linux2.4.18内核的网卡驱动中有关中断的实现,该程序首先读取CS8900的端口状态寄存器获取中断请求,然后根据不同的请求分别响应,最后还需在Linux内核中进行安装与注册,让中断服务程序与相应的中断号联系起来。在Linux2.4.18内核中提供了request-irq()函数,来实现中断服务程序的安装,最后经过调试,网卡驱动正常工作。
This paper has discussed the interrupt implementation in network card driver, based on the s3c2410, cs8900, linux2. 4.18 kernel. First of all, the program read CS8900 access to the port status register interrupt request, and then depending on the response to each request, finally, be conducted in the linux kernel installation and registration, Interruption of services and procedures so that the interruption of its link. Linux2. 4.18 in the core provided request _ irq () function to achieve a break in service of the installation process, after the final commissioning, and network card driver to work properly.
出处
《电脑开发与应用》
2009年第1期46-48,共3页
Computer Development & Applications