Hallo,
I have to write a driver for a PCI device, but I have some problem I
can't understand: when loading the driver I got an IRP_MN_START_DEVICE
with Parameters.StartDevice.AllocatedResources and
Parameters.StartDevice.AllocatedResourcesTranslated set to NULL, whilst
I expect to have some IO range and a Memory Range.
How can I obtain those resource ?

Thank you very much,

Jane

Re: IRP_MN_START_DEVICE won't pass any resource by Walter

Walter
Thu Feb 05 05:20:57 CST 2004

JRoss wrote:
> I have to write a driver for a PCI device, but I have some problem I
> can't understand: when loading the driver I got an IRP_MN_START_DEVICE
> with Parameters.StartDevice.AllocatedResources and
> Parameters.StartDevice.AllocatedResourcesTranslated set to NULL, whilst
> I expect to have some IO range and a Memory Range.
> How can I obtain those resource ?

Did you possibly install this driver by hand? I.e., did you launch the
Add Hardware wizard and then force the system to install this driver? If
you did, you would have created a root-enumerated device that doesn't
have any resources.

The correct way to install any driver for a PnP device like a PCI card
is to boot the system with the card installed. The system will then
prompt you for the location of the driver.

--
Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Check out our schedule at http://www.oneysoft.com

Re: IRP_MN_START_DEVICE won't pass any resource by JRoss

JRoss
Thu Feb 05 05:55:36 CST 2004

Yes, that was the problem, thank you.
Is there a way to programmatically install the driver without that
resources problem ? It would really ease the deployment-and-test process.

Thank you again,

Jane Ross

Walter Oney wrote:
>
> Did you possibly install this driver by hand? I.e., did you launch the
> Add Hardware wizard and then force the system to install this driver? If
> you did, you would have created a root-enumerated device that doesn't
> have any resources.
>
> The correct way to install any driver for a PnP device like a PCI card
> is to boot the system with the card installed. The system will then
> prompt you for the location of the driver.
>
> --
> Walter Oney, Consulting and Training
> Basic and Advanced Driver Programming Seminars
> Check out our schedule at http://www.oneysoft.com