xiaoyan_yang121
驱动牛犊
驱动牛犊
  • 注册日期2002-06-25
  • 最后登录2005-06-13
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:968回复:1

W2KDDK中怎样得到配置空间的内容?

楼主#
更多 发布于:2002-08-19 14:08
请各位帮助:
W2KDDK中通过什么样的函数能得到配置空间的内容?此函数的IRQL是什么?
WindThruEars
驱动老牛
驱动老牛
  • 注册日期2002-11-17
  • 最后登录2004-07-10
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于: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.

我是假耳朵
游客

返回顶部