Out of ignorance, or maybe laziness, a question: how can I use this
GetBusData interface to enumerate all devices on a PCI bus ?
Alberto.
-----Original Message-----
From: Bill McKenzie [mailto:xxxxx@osr.com]
Sent: Wednesday, July 31, 2002 12:31 PM
To: NT Developers Interest List
Subject: [ntdev] Re: How to get to PCI Configuration Space Info in
DriverEntry for WDM
For getting the PCI info you desire from your device:
http://support.microsoft.com/default.aspx?ID=KB;EN-US;Q253232&
As far as using HAL functions for PCI config info, as I understand it, they
do not work correctly, (i.e. the slot info and such that you get back may be
incorrect). I would not use these functions.
–
Bill McKenzie
Windows DDK MVP
OSR - Windows System Software Development, Training, and Consulting
“Fisher, Barry” wrote in message
news:xxxxx@ntdev…
>
> Hi all:
> Been away from WDM for a bit and need some refreshing. Please bear with
me.
> In general…How does one get the pci configuration space information of
> one’s device in DriverEntry. Do you use
> IRP_MN_READ_CONFIG/IRP_MN_WRITE_CONFIG?
> I have seen a sample of code in the DDK that initializes an IRP, uses
> IOGetAttachedDeviceReference (routine takes a DeviceObject as argument to
> obtain a ‘targetObject’) and the issues the irp to this targetObject to
> config info. If I create a DeviceObject in DriverEntry and then make this
> call, will I obtain the correct config space information? Does this method
> work across Win2000, WinXP, and Win98???
>
> Is there any OS supported way to enumerate the pci bus(ala HalGetBusData)
in
> DriverEntry?
>
> Thanks for any information and suggestions.
> -Barry
>
>
>
—
You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to %%email.unsub%%
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.