Where to call IoReportResourceForDetection

For a legacy, root enumerated device where should you call
IoReportResourceForDetection?

Thanks,

Daniel Nemiroff
Intel Corporation
System Software Engineering
(916) 356-5723

Say you want to find out whether such and such legacy device exists by
fiddling some port or memory address. Before you use those hardware
resources, you must report them to the PnP manager using
IoReportResourceForDetection. You can call this function from anywhere -
typically called in DriverEntry.

Let us now say you did find the legacy device and want to enumerate it as a
(root enumerated) pnp device, you do that by calling IoReportDetectedDevice.
In that call you must set the ResourceAssigned parameter to TRUE to prevent
the PnP manager from claiming the resources again.

-Eliyas

-----Original Message-----
From: Nemiroff, Daniel [mailto:xxxxx@intel.com]
Sent: Thursday, July 13, 2000 10:47 AM
To: NT Developers Interest List
Subject: [ntdev] Where to call IoReportResourceForDetection

For a legacy, root enumerated device where should you call
IoReportResourceForDetection?

Thanks,

Daniel Nemiroff
Intel Corporation
System Software Engineering
(916) 356-5723


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

Another point I forgot mention is that once that legacy device is root
enumerated, the system gives the same resources to the device, every time
you restart the machine. The system keeps every root enumerated (legacy)
device resource information in the registry and loads the driver
automatically during boot - no enumeration is required. This is much like
the same way you would specify the resources in an INF file and install the
driver for a legacy device using Add Hardware Wizard.

And one more point, after reporting the resources for detection, if you find
out that device doesn’t exists, you must free the resources by calling the
same function with bunch of null arguments and count of zero.

-Eliyas

-----Original Message-----
From: Eliyas Yakub [mailto:xxxxx@microsoft.com]
Sent: Thursday, July 13, 2000 11:41 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Where to call IoReportResourceForDetection

Say you want to find out whether such and such legacy device exists by
fiddling some port or memory address. Before you use those hardware
resources, you must report them to the PnP manager using
IoReportResourceForDetection. You can call this function from anywhere -
typically called in DriverEntry.

Let us now say you did find the legacy device and want to enumerate it as a
(root enumerated) pnp device, you do that by calling IoReportDetectedDevice.
In that call you must set the ResourceAssigned parameter to TRUE to prevent
the PnP manager from claiming the resources again.

-Eliyas

-----Original Message-----
From: Nemiroff, Daniel [mailto:xxxxx@intel.com]
Sent: Thursday, July 13, 2000 10:47 AM
To: NT Developers Interest List
Subject: [ntdev] Where to call IoReportResourceForDetection

For a legacy, root enumerated device where should you call
IoReportResourceForDetection?

Thanks,

Daniel Nemiroff
Intel Corporation
System Software Engineering
(916) 356-5723


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)