阅读:969回复:1
W2KDDK中怎样得到配置空间的内容?
请各位帮助:
W2KDDK中通过什么样的函数能得到配置空间的内容?此函数的IRQL是什么? |
|
沙发#
发布于:2002-08-20 00:46
1. Use IRP_MN_QUERY_INTERFACE if you just want to read the config space of the device owned by your driver. Refer to:
http://www.hollistech.com/Resources/Misc%20articles/getbusdata.htm 2. Under W2K, you can still use HalGetBusData/HalGetBusDataByOffset to read PCI configuration space although DDK said \"xxx is exported only to support existing drivers. Use the PnP Manager\'s IRP_MN_QUERY_INTERFACE request instead. \". This is not recommended, use it only if it\'s possible to use the method in 1. 3. Read/write 0xcf8/0xcfc directly. This is not recommended and according to engineers in M$, that\'s because these accesses are not synchronized if you do that directly with in/out instructions. So, if you really want to do that, higher the IRQL to HIGH_LEVEL temporarily. Note this only works on UniProcessor systems. |
|
|