Re: Need to search and claim a PCI (PnP) Adapter re- sources

Sorry Peter, some joker with the same name as you collaborated with a Top-Gear
presenter called Tony Mason and beat you to it.

:smiley:

Available at all good bookstores… and Amazon!
http://www.amazon.com/exec/obidos/ASIN/1578700582/o/qid=984183799/sr=8-1/ref=aps_s
r_b_1_1/102-8458768-6966539

Regards,

Paul Bunn, UltraBac.com, 425-644-6000
Microsoft MVP - WindowsNT/2000
http://www.ultrabac.com

-----Original Message-----
From: Peter Viscarola [mailto:xxxxx@osr.com]
Sent: Friday, March 09, 2001 3:59 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Need to search and claim a PCI (PnP) Adapter
resources

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.


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