linux下網(wǎng)卡驅(qū)動程序的開發(fā).rar
linux下網(wǎng)卡驅(qū)動程序的開發(fā),linux下網(wǎng)卡驅(qū)動程序的開發(fā)4.1萬字 64頁論文+開題+答辯ppt摘要 本文首先介紹了linux下設(shè)備驅(qū)動程序設(shè)計的基本知識,其中包括對linux的發(fā)展歷程、內(nèi)核、特性的概述,linux設(shè)備的分類及編寫驅(qū)動程序的一些基本概念等;其次對linux環(huán)境下網(wǎng)卡驅(qū)動程序的設(shè)計作了理論上的探討,重點對編寫驅(qū)動程所要用到的數(shù)據(jù)...
該文檔為壓縮文件,包含的文件列表如下:


內(nèi)容介紹
原文檔由會員 wumei 發(fā)布
Linux下網(wǎng)卡驅(qū)動程序的開發(fā)
4.1萬字 64頁
論文+開題+答辯PPT
摘要 本文首先介紹了linux下設(shè)備驅(qū)動程序設(shè)計的基本知識,其中包括對linux的發(fā)展歷程、內(nèi)核、特性的概述,linux設(shè)備的分類及編寫驅(qū)動程序的一些基本概念等;其次對linux環(huán)境下網(wǎng)卡驅(qū)動程序的設(shè)計作了理論上的探討,重點對編寫驅(qū)動程所要用到的數(shù)據(jù)結(jié)構(gòu)和基本方法進行了分析和研究,并對模塊的加載和卸載以及驅(qū)動程序的調(diào)試做了闡述,另外還簡要的介紹了有關(guān)PCI的一些基礎(chǔ)知識;最后結(jié)合基于PCI總線的RelTek8139網(wǎng)卡,詳細論述了網(wǎng)卡驅(qū)動程序開發(fā)的基本流程,并對驅(qū)動程序的使用和運行效果作了演示,文章末尾針對不足之處提出了改進設(shè)想。
關(guān)鍵詞 linux 設(shè)備驅(qū)動程序 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下設(shè)備驅(qū)動程序設(shè)計的基本知識 1
1.1 Linux概述 1
1.1.1 Linux 發(fā)展的重要里程碑 1
1.1.2 Linux 內(nèi)核簡介 1
1.1.3 Linux 的特性 3
1.2 Linux 設(shè)備驅(qū)動程序概述 3
1.2.1 Linux設(shè)備驅(qū)動程序分類 4
1.2.2 編寫網(wǎng)絡(luò)驅(qū)動程序的一些基本概念 4
1.3 makefile文件簡介 5
第二章 Linux 網(wǎng)卡驅(qū)動程序設(shè)計的理論探討 6
2.1 Linux 下網(wǎng)卡驅(qū)動程序設(shè)計的數(shù)據(jù)結(jié)構(gòu)和基本方法 6
2.1.1 網(wǎng)卡驅(qū)動程序設(shè)計要用到的數(shù)據(jù)結(jié)構(gòu) 7
2.1.2 網(wǎng)卡驅(qū)動程序的基本方法 9
2.2 驅(qū)動模塊的加載和卸載 10
2.2.1 模塊加載 10
2.2.2 模塊卸載 11
2.3 驅(qū)動程序的調(diào)試 11
2.4 PCI簡介 12
第三章 開發(fā)環(huán)境 14
3.1 硬件 14
3.1.1 普通PC機 14
3.1.2 TP-LINK 10/100M自適應(yīng)快速以太網(wǎng)卡 14
3.2 軟件 17
第四章 系統(tǒng)分析 18
4.1 需求分析 18
4.2 數(shù)據(jù)流圖 18
4.2.1 頂層圖 18
4.2.2 0層圖 19
4.2.3 1層圖 19
4.3 數(shù)據(jù)字典 20
第五章 系統(tǒng)設(shè)計 21
5.1 設(shè)計原則 21
5.2 系統(tǒng)功能設(shè)計 21
第六章 系統(tǒng)實現(xiàn) 22
6.1 主模塊實現(xiàn) 22
6.1.1 rtl8139網(wǎng)卡驅(qū)動程序加載主模塊流程圖 22
6.1.2 rtl8139網(wǎng)卡驅(qū)動程序打開主模塊流程圖 24
6.1.3 rtl8139網(wǎng)卡接口信息模塊流程圖 25
6.1.4 rtl8139網(wǎng)卡驅(qū)動程序關(guān)閉主模塊流程圖 25
6.1.5 rtl8139網(wǎng)卡驅(qū)動程序卸載主模塊流程圖 27
6.2 各子模塊實現(xiàn) 28
6.2.1 加載主模塊下相關(guān)子模塊 28
6.2.2 打開模塊下相關(guān)子模塊 30
6.3 驅(qū)動程序使用簡單說明及運行效果 32
6.3.1 驅(qū)動程序的加載 32
6.3.2 激活網(wǎng)卡 33
6.3.3 為接口分配IP地址、子網(wǎng)掩碼、廣播地址 34
6.3.4 添加路由 34
6.3.5 關(guān)閉網(wǎng)卡 36
6.3.6卸載網(wǎng)卡 36
第七章 難點及對策 37
7.1 makefile文件的編寫 37
7.2 中斷的獨占與共享 37
7.3 rtl8139網(wǎng)卡驅(qū)動程序的調(diào)試 38
第八章 總結(jié)及展望 40
8.1 不足之處 40
8.2 改進設(shè)想 40
致謝語 41
參考文獻 42
附錄 43
參考文獻
[1](美)Sarwar,Al-Saqaki,英宇,姚鋒譯.Linux&unix程序開發(fā)基礎(chǔ)教程.北京:清華大學(xué)出版社,2000年
[2](美)Richard Petersen,希望圖書創(chuàng)作室譯.Linux參考大全.北京:北京希望電子出版社,2000年
4.1萬字 64頁
論文+開題+答辯PPT
摘要 本文首先介紹了linux下設(shè)備驅(qū)動程序設(shè)計的基本知識,其中包括對linux的發(fā)展歷程、內(nèi)核、特性的概述,linux設(shè)備的分類及編寫驅(qū)動程序的一些基本概念等;其次對linux環(huán)境下網(wǎng)卡驅(qū)動程序的設(shè)計作了理論上的探討,重點對編寫驅(qū)動程所要用到的數(shù)據(jù)結(jié)構(gòu)和基本方法進行了分析和研究,并對模塊的加載和卸載以及驅(qū)動程序的調(diào)試做了闡述,另外還簡要的介紹了有關(guān)PCI的一些基礎(chǔ)知識;最后結(jié)合基于PCI總線的RelTek8139網(wǎng)卡,詳細論述了網(wǎng)卡驅(qū)動程序開發(fā)的基本流程,并對驅(qū)動程序的使用和運行效果作了演示,文章末尾針對不足之處提出了改進設(shè)想。
關(guān)鍵詞 linux 設(shè)備驅(qū)動程序 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下設(shè)備驅(qū)動程序設(shè)計的基本知識 1
1.1 Linux概述 1
1.1.1 Linux 發(fā)展的重要里程碑 1
1.1.2 Linux 內(nèi)核簡介 1
1.1.3 Linux 的特性 3
1.2 Linux 設(shè)備驅(qū)動程序概述 3
1.2.1 Linux設(shè)備驅(qū)動程序分類 4
1.2.2 編寫網(wǎng)絡(luò)驅(qū)動程序的一些基本概念 4
1.3 makefile文件簡介 5
第二章 Linux 網(wǎng)卡驅(qū)動程序設(shè)計的理論探討 6
2.1 Linux 下網(wǎng)卡驅(qū)動程序設(shè)計的數(shù)據(jù)結(jié)構(gòu)和基本方法 6
2.1.1 網(wǎng)卡驅(qū)動程序設(shè)計要用到的數(shù)據(jù)結(jié)構(gòu) 7
2.1.2 網(wǎng)卡驅(qū)動程序的基本方法 9
2.2 驅(qū)動模塊的加載和卸載 10
2.2.1 模塊加載 10
2.2.2 模塊卸載 11
2.3 驅(qū)動程序的調(diào)試 11
2.4 PCI簡介 12
第三章 開發(fā)環(huán)境 14
3.1 硬件 14
3.1.1 普通PC機 14
3.1.2 TP-LINK 10/100M自適應(yīng)快速以太網(wǎng)卡 14
3.2 軟件 17
第四章 系統(tǒng)分析 18
4.1 需求分析 18
4.2 數(shù)據(jù)流圖 18
4.2.1 頂層圖 18
4.2.2 0層圖 19
4.2.3 1層圖 19
4.3 數(shù)據(jù)字典 20
第五章 系統(tǒng)設(shè)計 21
5.1 設(shè)計原則 21
5.2 系統(tǒng)功能設(shè)計 21
第六章 系統(tǒng)實現(xiàn) 22
6.1 主模塊實現(xiàn) 22
6.1.1 rtl8139網(wǎng)卡驅(qū)動程序加載主模塊流程圖 22
6.1.2 rtl8139網(wǎng)卡驅(qū)動程序打開主模塊流程圖 24
6.1.3 rtl8139網(wǎng)卡接口信息模塊流程圖 25
6.1.4 rtl8139網(wǎng)卡驅(qū)動程序關(guān)閉主模塊流程圖 25
6.1.5 rtl8139網(wǎng)卡驅(qū)動程序卸載主模塊流程圖 27
6.2 各子模塊實現(xiàn) 28
6.2.1 加載主模塊下相關(guān)子模塊 28
6.2.2 打開模塊下相關(guān)子模塊 30
6.3 驅(qū)動程序使用簡單說明及運行效果 32
6.3.1 驅(qū)動程序的加載 32
6.3.2 激活網(wǎng)卡 33
6.3.3 為接口分配IP地址、子網(wǎng)掩碼、廣播地址 34
6.3.4 添加路由 34
6.3.5 關(guān)閉網(wǎng)卡 36
6.3.6卸載網(wǎng)卡 36
第七章 難點及對策 37
7.1 makefile文件的編寫 37
7.2 中斷的獨占與共享 37
7.3 rtl8139網(wǎng)卡驅(qū)動程序的調(diào)試 38
第八章 總結(jié)及展望 40
8.1 不足之處 40
8.2 改進設(shè)想 40
致謝語 41
參考文獻 42
附錄 43
參考文獻
[1](美)Sarwar,Al-Saqaki,英宇,姚鋒譯.Linux&unix程序開發(fā)基礎(chǔ)教程.北京:清華大學(xué)出版社,2000年
[2](美)Richard Petersen,希望圖書創(chuàng)作室譯.Linux參考大全.北京:北京希望電子出版社,2000年