Hi,
How to change the resource requirement of device in driver?
I am writing a Miniport driver.
After the card inserted, the ResourceRequirementList can be read in
HLM/SYSTEM/CurrentControlSet/ENUM/PCI/VEN... from Registry.
REG_RESOURCE_REQUIREMENTS_LIST is shown as below,
Alternative... Resou... Descrip.. Device..
1 1 1 Memory
1 2 1 Memory
1 3 1 Memory
1 4 1 Intererupt
The third memory is not need, and I want to move it.
As the DDK said, I/O manager gives a chance to change the resource
requirement. When FDO gets IRP_MN_FILTER_RESOURCE_REQUIREMENTS of
IRP_MJ_PnP.
I did this successfully, however, for doing this, I add the AddDevice
routine and IRP_MJ_PnP dispatch routine, as a result, The
MiniportInitialize function is not called.
Who can give me some suggestion?
Thanks!