Hideman
驱动中牛
驱动中牛
  • 注册日期2001-09-11
  • 最后登录2007-04-16
  • 粉丝0
  • 关注0
  • 积分70分
  • 威望7点
  • 贡献值0点
  • 好评度7点
  • 原创分0分
  • 专家分0分
阅读:1841回复:5

wdm中非PNP设备怎样连接中断?

楼主#
更多 发布于:2002-03-04 20:21
WindThruEars
驱动老牛
驱动老牛
  • 注册日期2002-11-17
  • 最后登录2004-07-10
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2002-03-05 05:06
Is your card a ISA or anything else? If Windows cannot detect the card for you when your DispatchPnP with IRP_MN_START_DEVICE being called, you can enumerate the bus to find your device and allocate resource for it.

I am not very sure but I remembered even if your device is not PnP, Windows will record its resource requirement in the registry and then your device can be started as a PnP device after the first driver run.

Or, if your device doesn\'t support PnP and Power, why not just write a kernel mode driver instead of WDM? that would be simple and easy.

[编辑 -  3/5/02 作者: kanghai]
我是假耳朵
Hideman
驱动中牛
驱动中牛
  • 注册日期2001-09-11
  • 最后登录2007-04-16
  • 粉丝0
  • 关注0
  • 积分70分
  • 威望7点
  • 贡献值0点
  • 好评度7点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2002-03-05 12:10
我使用的是并口设备
1.系统在枚举时,和打印机驱动程序有冲突,所以不希望用Pnp方式分配资源。
2.设备在工作时可以和打印机共存(端口值、中断号均一致),所以希望用虚拟设备的方式进行端口操作和连接中断。
3.我现在编的wdm端口操作已经解决,但连接中断时遇到困难。
在调IoConnectInterrupt时,不知如何获得所需资源参数;
能否直接使用打印口的资源?怎样获得?
By the way, what\'s the difference between a kernel mode driver and a WDM driver?
Tom_lyd
驱动大牛
驱动大牛
  • 注册日期2001-09-02
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分10分
  • 威望1点
  • 贡献值0点
  • 好评度1点
  • 原创分0分
  • 专家分0分
地板#
发布于:2002-03-06 11:35
    There are two kinds of drivers in Win2000 seeing from the highest level,they are User mode driver and Kernel mode driver. Virtual Device Driver(VDD) is a User mode Driver;Kernel mode Driver (KMD) is the concept from the WINNT.
    Before WDM Driver,there are two types of drivers in Windows series,they are VxD(run on Win3x,win 9x) and KMD(NT).a KMD does not support Power Management and PnP,but a standard WDM Driver must support both of them.

    KMD is so similiar with the WDM that a lot of people confuse with them,and just because of this reason, The earier KMD Driver programmer(Write driver for NT) can switch to WDM more easily than VxD programer.

Tom_lyd
houjzs
驱动牛犊
驱动牛犊
  • 注册日期2002-01-29
  • 最后登录2002-07-10
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2002-03-07 13:20
To KangHai:
    where does windows put the records of resources the driver uses in the registry. BTW
Hideman
驱动中牛
驱动中牛
  • 注册日期2001-09-11
  • 最后登录2007-04-16
  • 粉丝0
  • 关注0
  • 积分70分
  • 威望7点
  • 贡献值0点
  • 好评度7点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2002-03-11 12:19
谢谢诸位!
我已成功解决了以上问题。
游客

返回顶部