文档介绍:华中科技大学
硕士学位论文
基于WDM模型的网络协议测试卡驱动程序的设计与实现
姓名:刘劲
申请学位级别:硕士
专业:通信与信息系统
指导教师:魏蛟龙
20090501
华中科技大学硕士学位论文
摘要
对于硬件系统而言,开发配套的驱动程序是必不可少的一个环节。驱动程序使
得硬件设备能够被操作系统正确的识别并分配资源。同时驱动程序作为高层应用软
件与硬件之间的桥梁,发挥着传递数据,映射消息的作用。
在分析了基于 Cyclone II 的网络协议测试平台的基础之上,论文描述了硬件板卡
的设备驱动程序在 WindowsXP 操作系统下的编写过程。全文主要包含了以下内容:
首先论文概述了课题的来源和意义以及相关的技术基础知识,基于这些基础知
识选择了适当的驱动程序,紧接着介绍并研究了与 PCI 总线操作相关的内容,并对
网络协议测试平台和板卡的硬件结构进行了描述。
然后文章对 WindowsXP 操作系统的结构和 WDM 驱动程序模型中最重要的几个
概念和例程给予了介绍。之后,针对硬件的特点,阐述了硬件设备的即插即用和电
源管理功能的实现方法,数据传输中的驱动程序与应用程序的消息传递机制,提高
设备工作效率的数据传输请求数据包队列以及用户程序和驱动之间的通信协议。
在上述部分介绍完之后,本文给出了与每个部分相应的调试结果和程序截图来
说明驱动程序实现的正确性,并简要说明了调试过程中遇到的常见问题。最后,论
文概述了本次课题设计的收获以及不足。
关键词:PCI 总线 WDM驱动程序即插即用电源管理数据传输请求数据包
I
华中科技大学硕士学位论文
Abstract
Supporting the development of drivers is an essential part of a hardware
allows the operating system can correctly identify hardwares and allocate resources
for them. At the same time as a bridge between high-level software and hardware, driver
plays the role of transmitting data and mapping message.
At the base of analysing the structure of the whole system which bases on the EP2C35II
FPGA, this dissertation discribes the process of constructing the driver for the system on
the Windows XP main works of this dissertation are as follows:
At first, the background and the bearing of this dissertation will be discribed, the
fundamental ideas of the pertinent technology tightly follows, then introduces and studies
the PCI bus operation with relevant content. It needs characteristics of the hardware to
develop corresponding drivers.
Then the article introduces the structure of windowsXP operating system and WDM
technology. And then, for the characteristics of the hardware, the dissertation illustrates
plug-and-play hardware device state transitions, the finite state machine of power
management, and data transfer in message passing mechanisms munication
protocols.
In the after