摘要
文中主要从逻辑与实现两个方面来建立从PCI硬件设备到应用程序之间的联系,并以实例说明驱动程序的实现。文章自下而上分析了x86平台、PCI总线、Windows操作系统、驱动程序、应用程序及其之间的关系,重点是Windows的内存管理,包括Windows如何组织物理内存、PCI内存,调配给不同的进程使用。接着以PLX9054为例详细描述了驱动程序与对应的动态链接库、应用程序的开发过程,重点分析了应用程序通过Windows接口调用驱动程序、最终控制硬件设备的过程,以及驱动程序在操作系统中的运行情况。本文比较完整地描述了从PCI硬件到应用软件的逻辑关系以及驱动程序的具体实现。
In this paper, the connection between PCI device and application program is created m terms of logic and realization, and the realization of the driver program is shown by an example, x86 platform, PCI bus, Windows OS, the driver program, the application program and the relationship among them are analyzed. Memory management, including physical memory and PCI memory organization, is the emphasis. In the PLX9054 example, the development of driver program, correspording DLL program and application program is shown. The procedure that the application calls the OS interface and then controls the hardware is analyzed in detail. The running of the driver is also shown in that example. In result, the realization of the driver and the logical relationship between PCI hardware and the application are shown fully.
出处
《信息化研究》
2010年第2期41-44,共4页
INFORMATIZATION RESEARCH