摘要
Linux作为1个开源操作系统,由于其开源性,使得Linux在众多领域应用越来越广泛,特别在嵌入式领域。因此,将Linux操作系统和应用广泛的PCI总线相结合成为必要。在简要介绍Linux设备驱动基本原理的基础上,结合PCI总线设备的特点,介绍Linux内核对PCI设备配置识别过程以及内核如何将获得的PCI设备信息传递给驱动,并大致构造1个PCI字符设备驱动框架。最后通过1个实际的PCI串口设备的驱动的开发来阐述Linux设备驱动的开发过程,并用Qt开发1个简易界面程序验证驱动能正确收发数据。
Linux is an open-source OS,which widely used in many fields especially in embeded fields.Therefore it's necessary to combine the Linux OS and PCI bus,which is used in many application.Introduces the principles of device driver and the process of recognition and configuration of PCI device by Linux kernel briefly.A PCI character device driver framework is given in this article.At the end,an example of a PCI serial device driver explains the development of device driver on Linux and a simple GUI compiled with Qt is uesd to testify the device driver.
出处
《电子测量技术》
2011年第9期58-60,68,共4页
Electronic Measurement Technology
关键词
LINUX操作系统
PCI
设备驱动
字符设备
Linux OS
PCI(peripheral component interconnect)
device driver
character device