摘要
针对QorIQ^(■)T2080处理器外设特征,结合工控设备高实时、高性能、灵活组态的需求,设计基于VxWorks的PCIe多路传输系统驱动程序;通过PLX公司的PEX8619交换机芯片拓展链路,并给出PCIe多路传输系统整体结构。在介绍VxWorks驱动体系的基础上,结合PCIe设备驱动程序开发实际需求,分析并介绍了PCIe地址映射、DMA传输、MSI中断处理等关键技术的解决方案及其驱动实现方法。经测试,该驱动程序可正确完成外设读写,实时性和处理效率满足工业控制装置中控制处理单元等设备要求;PCIe多路传输系统驱动程序设计合理,便于扩展到其他实时性高、组态灵活的嵌入式系统中,对工程应用具有积极指导作用。
For the QorIQ ^(■)T2080 processor peripheral characteristics,combined with the demand of industrial control equipment for high real-time,high-performance,and flexible configuration,a VxWorks-based PCIe multiplexer system driver is designed.And through PLX PEX8619 switch chip,the link is expanded and the overall structure of the PCIe multiplexer system is obtained.On the basis of introducing VxWorks driver system,considering the actual requirements of PCIe driver development,the solution scheme for key technical points such as PCIe address mapping,DMA transmission,MSI interrupt processing and the corresponding driver implementation method are analyzed and described in this paper.Test results show that the designed driver program can correctly perform peripheral read and write,and its real-time property and processing efficiency meet the requirements of control processing units and other devices in industrial control devices.Benefiting from the rational design of the driver program,the PCIe multiplexer system can easily be extended to other embedded systems with high real-time and flexible configuration,which has a positive guiding effect for engineering practice.
作者
张健
李跃鹏
刘威鹏
王孟彬
王传伟
ZHANG Jian;LI Yuepeng;LIU Weipeng;WANG Mengbin;WANG Chuanwei(XJ Electric Co.,Ltd.,Xuchang 461000,China)
出处
《电工技术》
2023年第17期173-175,179,共4页
Electric Engineering