How to simulate a PCI card installation

Hi,

I need to install and test my WDM for a memory mapped
PCI card without the card itself. What settings do I
need to make in the .inf file to simulate the card ??
I tried with the following settings :

[Manufacturer]
%Vendor% = Vendor.Mfg

[Vendor.Mfg]
%Vendor.DeviceDesc0% = Myhardware, *SomeName

[Myhardware]
Copyfiles=driver.sys
LogConfig=DESIRED_CFG,NORMAL_CFG

[DESIRED_CFG]
ConfigPriority=DESIRED
IRQConfig=9
MemConfig=40000@c0000000-fffc0000%fffff000

[NORMAL_CFG]
ConfigPriority=NORMAL
IRQConfig=5,9,10,11,12
MemConfig=40000@c0000000-fffc0000%fffff000

If I install the driver using the above settings, the
Device Manager always prompts me to modify the
resource settings. After that, the AddDevice routine
of the driver gets called. Later, instead of
gettingthe IRP_MN_START_DEVICE message, I get
IRP_MN_QUERY_REMOVE_DEVICE and
IRP_MN_FILTER_RESOURCE_REQUIREMENTS.

All help appreciated.
Thanks in advance
MV


Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Try looking at the toaster sample in the DDK. It simulates a virtual
toaster plugged into a virtual toaster bus.

Youssef

-----Original Message-----
From: M V [mailto:xxxxx@yahoo.com]
Sent: Thursday, May 24, 2001 11:54 AM
To: NT Developers Interest List
Subject: [ntdev] How to simulate a PCI card installation

Hi,

I need to install and test my WDM for a memory mapped
PCI card without the card itself. What settings do I
need to make in the .inf file to simulate the card ??
I tried with the following settings :

[Manufacturer]
%Vendor% = Vendor.Mfg

[Vendor.Mfg]
%Vendor.DeviceDesc0% = Myhardware, *SomeName

[Myhardware]
Copyfiles=driver.sys
LogConfig=DESIRED_CFG,NORMAL_CFG

[DESIRED_CFG]
ConfigPriority=DESIRED
IRQConfig=9
MemConfig=40000@c0000000-fffc0000%fffff000

[NORMAL_CFG]
ConfigPriority=NORMAL
IRQConfig=5,9,10,11,12
MemConfig=40000@c0000000-fffc0000%fffff000

If I install the driver using the above settings, the
Device Manager always prompts me to modify the
resource settings. After that, the AddDevice routine
of the driver gets called. Later, instead of
gettingthe IRP_MN_START_DEVICE message, I get
IRP_MN_QUERY_REMOVE_DEVICE and
IRP_MN_FILTER_RESOURCE_REQUIREMENTS.

All help appreciated.
Thanks in advance
MV


Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

I’m really curious to know how can u fool the OS about
non existing h/w in the system. I guess on NT it’s
NTdetect.dll that assists the inf scripts to find and
detect the h/w on the system. In this case u r
simulating meaning fooling the OS.
Is it poosible on NT/W2k?

I greatly appreciate any comments from experts. This
will really give us push a in many scenarios during
development phase.


Girish H.

Hi,

I need to install and test my WDM for a memory mapped
PCI card without the card itself. What settings do I
need to make in the .inf file to simulate the card ??
I tried with the following settings :

[Manufacturer]
%Vendor% = Vendor.Mfg

[Vendor.Mfg]
%Vendor.DeviceDesc0% = Myhardware, *SomeName

[Myhardware]
Copyfiles=driver.sys
LogConfig=DESIRED_CFG,NORMAL_CFG

[DESIRED_CFG]
ConfigPriority=DESIRED
IRQConfig=9
MemConfig=40000@c0000000-fffc0000%fffff000

[NORMAL_CFG]
ConfigPriority=NORMAL
IRQConfig=5,9,10,11,12
MemConfig=40000@c0000000-fffc0000%fffff000

If I install the driver using the above settings, the
Device Manager always prompts me to modify the
resource settings. After that, the AddDevice routine
of the driver gets called. Later, instead of
gettingthe IRP_MN_START_DEVICE message, I get
IRP_MN_QUERY_REMOVE_DEVICE and
IRP_MN_FILTER_RESOURCE_REQUIREMENTS.

All help appreciated.
Thanks in advance
MV


Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/


You are currently subscribed to ntdev as: xxxxx@att.net
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com