摘要
在开发PCI设备驱动程序时,需要访问配置空间来控制设备。研究了PC平台和Windows系统下访问PCI配置空间的机制和方法,分析了配置空间中的寄存器结构,提出了一种在用户模式下访问PCI配置空间并通过新能力列表确认PCI Express设备的方法,在英特尔G31主板Windows XP系统的PC上的实验结果表明这种方法可行。
It's necessary to access device configuration space in the development of a PCI device driver to control the equipment. The mechanism and ways of accessing PCI configuration space under PC platform and Windows OS were studied in this paper. The register structure in PCI configuration space was analysed. A way of accessing configuration space under user mode was introduced, which can determine a PCI Express device through capability list. Experiment on a G31 motherboard and Windows XP based PC shows this solution is valid.
出处
《电子设计工程》
2010年第10期1-4,共4页
Electronic Design Engineering
基金
国家自然科学基金资助项目(60507003)