linux下网卡驱动程序的开发.rar

RAR格式版权申诉手机打开展开

linux下网卡驱动程序的开发,linux下网卡驱动程序的开发4.1万字 64页论文+开题+答辩ppt摘要 本文首先介绍了linux下设备驱动程序设计的基本知识,其中包括对linux的发展历程、内核、特性的概述,linux设备的分类及编写驱动程序的一些基本概念等;其次对linux环境下网卡驱动程序的设计作了理论上的探讨,重点对编写驱动程所要用到的数据...
编号:88-31411大小:2.40M
分类: 论文>计算机论文

该文档为压缩文件,包含的文件列表如下:

内容介绍

原文档由会员 wumei 发布

Linux下网卡驱动程序的开发
4.1万字 64页
论文+开题+答辩PPT


摘要 本文首先介绍了linux下设备驱动程序设计的基本知识,其中包括对linux的发展历程、内核、特性的概述,linux设备的分类及编写驱动程序的一些基本概念等;其次对linux环境下网卡驱动程序的设计作了理论上的探讨,重点对编写驱动程所要用到的数据结构和基本方法进行了分析和研究,并对模块的加载和卸载以及驱动程序的调试做了阐述,另外还简要的介绍了有关PCI的一些基础知识;最后结合基于PCI总线的RelTek8139网卡,详细论述了网卡驱动程序开发的基本流程,并对驱动程序的使用和运行效果作了演示,文章末尾针对不足之处提出了改进设想。

关键词 linux 设备驱动程序 rtl8139



DEVELOPING NETWORK CARD DRIVER
UNDER LINUX
Abstract This paper firstly introduces some basic knowledge on the design of the device drivers under linux , summarizing the development course ,the kernel and the idiosyncrasy of linux. Meanwhile the sorting of the linux device and some basic terms on writing driver for it are also covered in this part.
The second part of this paper theoretically discusses the topic on how to design the drivers for network card under linux . It emphasizes on the analysis and studies of the data structure and basic method when writing device drivers .what is more ,it expounds the loading and unloading of the module and debugging of the drivers.In addition ,it briefly introduces some basic knowledge of the PCI bus ,too.
The Last part of this paper discourses upon the basic flow of developing the driver for network card ,such as RelTek8139 based on the PCI bus. Further more ,it shows how to use the driver and the demo of the running picture .In the end ,it brings forward the amelioration against the insufficiency of the driver.
Keywords linux device drivers rtl8139


目录
前言 I
第一章 Linux下设备驱动程序设计的基本知识 1
1.1 Linux概述 1
1.1.1 Linux 发展的重要里程碑 1
1.1.2 Linux 内核简介 1
1.1.3 Linux 的特性 3
1.2 Linux 设备驱动程序概述 3
1.2.1 Linux设备驱动程序分类 4
1.2.2 编写网络驱动程序的一些基本概念 4
1.3 makefile文件简介 5
第二章 Linux 网卡驱动程序设计的理论探讨 6
2.1 Linux 下网卡驱动程序设计的数据结构和基本方法 6
2.1.1 网卡驱动程序设计要用到的数据结构 7
2.1.2 网卡驱动程序的基本方法 9
2.2 驱动模块的加载和卸载 10
2.2.1 模块加载 10
2.2.2 模块卸载 11
2.3 驱动程序的调试 11
2.4 PCI简介 12
第三章 开发环境 14
3.1 硬件 14
3.1.1 普通PC机 14
3.1.2 TP-LINK 10/100M自适应快速以太网卡 14
3.2 软件 17
第四章 系统分析 18
4.1 需求分析 18
4.2 数据流图 18
4.2.1 顶层图 18
4.2.2 0层图 19
4.2.3 1层图 19
4.3 数据字典 20
第五章 系统设计 21
5.1 设计原则 21
5.2 系统功能设计 21
第六章 系统实现 22
6.1 主模块实现 22
6.1.1 rtl8139网卡驱动程序加载主模块流程图 22
6.1.2 rtl8139网卡驱动程序打开主模块流程图 24
6.1.3 rtl8139网卡接口信息模块流程图 25
6.1.4 rtl8139网卡驱动程序关闭主模块流程图 25
6.1.5 rtl8139网卡驱动程序卸载主模块流程图 27
6.2 各子模块实现 28
6.2.1 加载主模块下相关子模块 28
6.2.2 打开模块下相关子模块 30
6.3 驱动程序使用简单说明及运行效果 32
6.3.1 驱动程序的加载 32
6.3.2 激活网卡 33
6.3.3 为接口分配IP地址、子网掩码、广播地址 34
6.3.4 添加路由 34
6.3.5 关闭网卡 36
6.3.6卸载网卡 36
第七章 难点及对策 37
7.1 makefile文件的编写 37
7.2 中断的独占与共享 37
7.3 rtl8139网卡驱动程序的调试 38
第八章 总结及展望 40
8.1 不足之处 40
8.2 改进设想 40
致谢语 41
参考文献 42
附录 43


参考文献
[1](美)Sarwar,Al-Saqaki,英宇,姚锋译.Linux&unix程序开发基础教程.北京:清华大学出版社,2000年
[2](美)Richard Petersen,希望图书创作室译.Linux参考大全.北京:北京希望电子出版社,2000年