在开发PCI设备驱动程序时,需要访问配置空间来控制设备。研究了PC平台和Windows系统下访问PCI配置空间的机制和方法,分析了配置空间中的寄存器结构,提出了一种在用户模式下访问PCI配置空间并通过新能力列表确认PCI Express设备的方法,在英特尔G31主板Windows XP系统的PC上的实验结果表明这种方法可行。
- Abstract:
- 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.
-
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉