H/W Resources for a Device instance (PNP Device)

Hi,
Can someone throw some light on how pnp manager comes to know the resource requirements of a pnp device instance. Will the bus driver be giving this info or should the info be given during installation or should function driver specify the requirements in the IRP_MN_FILTER_RESOURCE_REQUIREMENTS Irp. Any inputs will be of great help.

As far as I know, PNP manager sends a query request to the BUS driver. and BUS driver knows this from PCI Configuration space if it is PCI bus driver, CIS in case of cardbus. (Don’t know about others…)

Regards
Rakesh

----- Original Message -----
From: Seshagiri Babu K V
To: NT Developers Interest List
Sent: Tuesday, December 17, 2002 12:51 PM
Subject: [ntdev] H/W Resources for a Device instance (PNP Device)

Hi,
Can someone throw some light on how pnp manager comes to know the resource requirements of a pnp device instance. Will the bus driver be giving this info or should the info be given during installation or should function driver specify the requirements in the IRP_MN_FILTER_RESOURCE_REQUIREMENTS Irp. Any inputs will be of great help.

You are currently subscribed to ntdev as: xxxxx@india.ti.com
To unsubscribe send a blank email to %%email.unsub%%

Thanks Rakesh. Sounds valid…Config Space is one source, which is accessed by the bus driver and returned when sent an IRP_MN_QUERY_RESOURCES irp by the PNP Manager.

Now i wan’t to know if the contents will be the same IO_RESOURCE_LIST (IoStatus.Information) of the irp, when my function driver gets and IRP_MN_FILTER_RESOURCE_REQUIREMENTS irp?

I got some more info like you can check the LogConf\BootConfig key of the device instance in enum branch of CurrentControlSet. But iam not knowing how to interpret these!!!

Giri.

----- Original Message -----
From: Rakesh A. Ughreja
To: NT Developers Interest List
Sent: Tuesday, December 17, 2002 1:02 PM
Subject: [ntdev] Re: H/W Resources for a Device instance (PNP Device)

As far as I know, PNP manager sends a query request to the BUS driver. and BUS driver knows this from PCI Configuration space if it is PCI bus driver, CIS in case of cardbus. (Don’t know about others…)

Regards
Rakesh

----- Original Message -----
From: Seshagiri Babu K V
To: NT Developers Interest List
Sent: Tuesday, December 17, 2002 12:51 PM
Subject: [ntdev] H/W Resources for a Device instance (PNP Device)

Hi,
Can someone throw some light on how pnp manager comes to know the resource requirements of a pnp device instance. Will the bus driver be giving this info or should the info be given during installation or should function driver specify the requirements in the IRP_MN_FILTER_RESOURCE_REQUIREMENTS Irp. Any inputs will be of great help.

You are currently subscribed to ntdev as: xxxxx@india.ti.com
To unsubscribe send a blank email to %%email.unsub%%

You are currently subscribed to ntdev as: xxxxx@sasken.com
To unsubscribe send a blank email to %%email.unsub%%

The bus driver provides this information by responding to the
IRP_MN_QUERY_RESOURCE_REQUIREMENTS IRPs for a PDO. Function drivers can adjust these
resources (but usually do not,) by operating on IRP_MN_FILTER_RESOURCE_REQUIREMENTS IRPs.
Function drivers DO NOT handle IRP_MN_QUERY_RESOURCE_REQUIREMENTS requests.

For a PCI device the pci bus driver simply (or not so simply :slight_smile: looks up the PCI config
space resources when it recieves an IRP_MN_QUERY_RESOURCE_REQUIREMENTS IRP for one of its
PDOs, and fills in the resources as appropriate.

Other bus drivers do what is appropriate for the bus in question. For non-pnp isa devices,
for example, the resource configuration information might be in the registry.

===========================
Mark Roddy
Consultant, Microsoft DDK MVP
Hollis Technology Solutions
xxxxx@hollistech.com
www.hollistech.com
603-321-1032

-----Original Message-----
From: “Seshagiri Babu K V”
To: “NT Developers Interest List”
Date: Tue, 17 Dec 2002 12:51:02 +0530
Subject: [ntdev] H/W Resources for a Device instance (PNP Device)

> Hi,
> Can someone throw some light on how pnp manager comes to know the
> resource requirements of a pnp device instance. Will the bus driver be
> giving this info or should the info be given during installation or
> should function driver specify the requirements in the
> IRP_MN_FILTER_RESOURCE_REQUIREMENTS Irp. Any inputs will be of great
> help.
>
> —
> You are currently subscribed to ntdev as: xxxxx@hollistech.com
> To unsubscribe send a blank email to %%email.unsub%%
>

The bus driver gives this info, but the FD can adjust it - only if it wants.

Max

----- Original Message -----
From: Seshagiri Babu K V
To: NT Developers Interest List
Sent: Tuesday, December 17, 2002 10:21 AM
Subject: [ntdev] H/W Resources for a Device instance (PNP Device)

Hi,
Can someone throw some light on how pnp manager comes to know the resource requirements of a pnp device instance. Will the bus driver be giving this info or should the info be given during installation or should function driver specify the requirements in the IRP_MN_FILTER_RESOURCE_REQUIREMENTS Irp. Any inputs will be of great help.

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to %%email.unsub%%