阅读:1841回复:5
wdm中非PNP设备怎样连接中断? |
|
沙发#
发布于: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] |
|
|
板凳#
发布于: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? |
|
地板#
发布于: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. |
|
|
地下室#
发布于:2002-03-07 13:20
To KangHai:
where does windows put the records of resources the driver uses in the registry. BTW |
|
5楼#
发布于:2002-03-11 12:19
谢谢诸位!
我已成功解决了以上问题。 |
|