Need to search and claim a PCI (PnP) Adapter resources

We have a Kernel Mode driver currently accessing IO via ISA cards. It would
be much appreciated if someone could indicate which calls need to be made
to search for a PCI (PnP) adaptor and then read its IO / Interrupt
assignments so that the driver can claim its resources. Primarily this is
for W2K but is it the same technique for NT4?

Thanks in advance

Dave Ewins


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

wrote in message news:xxxxx@ntdev…
>
> We have a Kernel Mode driver currently accessing IO via ISA cards. It
would
> be much appreciated if someone could indicate which calls need to be made
> to search for a PCI (PnP) adaptor and then read its IO / Interrupt
> assignments so that the driver can claim its resources. Primarily this is
> for W2K but is it the same technique for NT4?
>

This question amounts to: “How do I write a device driver for Windows 2000?
How do I write a device driver for Windows NT V4.0?”

Because Win2K supports PnP, and NT V4 doesn’t, the design of the two are
fundamentally different.

In NT V4, you search the PCI Bus, calling HalGetBusData(), until you find
your device. You then call HalAssignSlotResources() to get the resources
assigned to your PCI card.

In Win2K, you write a PnP-enabled device driver. You specify your VID, DID,
SubSystem ID, and Rev in an INF file. The PnP Manager calls you at your
AddDevice() entry point to tell you your device was discovered.

There’s enough involved that you could write a whole book about this.
Hmmmm, now THERE an idea.

Peter
OSR


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