Hi all,
I have written a CPI driver on Windows 2000. I have written a function to
read PCI config space from device. And i am trying to use
IoGetDeviceProperty function to get bustype, busnumber, device number .
But i am getting all values zero. I am calling this function from AddDevice
routine of my driver.
Can anybody tell me , what is wrong in this procedure and also is there any
other way to read bus number, bustype and device number ?
Thanks and regards,
Anil
>I have written a CPI driver on Windows 2000. I have written a function to read PCI config space from device.
And i am trying to use IoGetDeviceProperty function to get bustype, busnumber, device number .
But i am getting all values zero.
Try calling it from START path up (after completion by the lower driver).
Max
Hi all,
Iam working on WDM driver development of PCI device.
I am not bale to read bus no., device no., Legacy bus type using
IoGetDeviceProperty function.
It always gives all parameters as zero. I am not able to understand the
problem .
whether am i doing wrong by calling this function in AddDevice routine?
Kindly guide me on this problem.
Please consider this mail as my sincere request …
Thansk and regards,
Anil
What is the NT status returned by the routine? Perhaps the buffer you
are sending is too small?
Anil wrote:
Hi all,Iam working on WDM driver development of PCI device.I am not
bale to read bus no., device no., Legacy bus type using
IoGetDeviceProperty function.It always gives all parameters as zero. I
am not able to understand the problem .whether am i doing wrong by
calling this function in AddDevice routine?Kindly guide me on this
problem.Please consider this mail as my sincere request …Thansk and
regards,Anil—
You are currently subscribed to ntdev as: xxxxx@india.hp.com
To unsubscribe send a blank email to %%email.unsub%%
Well, as the bus driver is not required to power up the device until the IRP_MJ_PNP IRP_MN_START_DEVICE IRP is sent, it is likely that this is an invalid operation to perform in AddDevice. I doubt the bus expects this request when you are sending it. Is there a reason you are not doing this in your start handler?
–
Bill McKenzie
Windows DDK MVP
OSR - Windows System Software Development, Training, and Consulting
“Anil” wrote in message news:xxxxx@ntdev…
Hi all,
Iam working on WDM driver development of PCI device.
I am not bale to read bus no., device no., Legacy bus type using IoGetDeviceProperty function.
It always gives all parameters as zero. I am not able to understand the problem .
whether am i doing wrong by calling this function in AddDevice routine?
Kindly guide me on this problem.
Please consider this mail as my sincere request …
Thansk and regards,
Anil