Hi,
I am writing a small application and driver that will display all the
details of the pci devices available on the machine. I am able to get
complete pci config space through halgetbusdata. From the config space
i can only find out the starting address of the mapped memory or port.
How can i get the size of allocated memory or port ?
I want to determine the same for all the pci devices on the machine.
Device manager shows the range of memory and ports for any selected
hardware in the resources tab. Is it possible for any kernel mode
driver to get those details ?
HalAssignSlotResources() requires RegistryPath and DriverObject to get
the CM_RESOURCE_LIST structure. how do i obtain them for any pci
device from my driver ?
Are there any SetupDiXXXX functions ?
Platform : Windows NT and Windows 2000.
Thanks
Regards,
Vijay Chegu
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
Hi,
You can use the Configuration Manager APIs (e.g. CM_Get_First_Log_Conf,
CM_Get_Res_Des_Data, …) in your app to gather such info. The “devcon”
sample in XP DDK demonstrates how to use these APIs.
Thanks
Khalid
This posting is provided “AS IS” with no warranties, and confers no
rights.
-----Original Message-----
From: Vijay K Chegu [mailto:xxxxx@yahoo.com]
Sent: Tuesday, November 27, 2001 11:47 PM
To: NT Developers Interest List
Subject: [ntdev] how to read mapped memory and port size from any pci
device ?
Hi,
I am writing a small application and driver that will display all the
details of the pci devices available on the machine. I am able to get
complete pci config space through halgetbusdata. From the config space
i can only find out the starting address of the mapped memory or port.
How can i get the size of allocated memory or port ?
I want to determine the same for all the pci devices on the machine.
Device manager shows the range of memory and ports for any selected
hardware in the resources tab. Is it possible for any kernel mode
driver to get those details ?
HalAssignSlotResources() requires RegistryPath and DriverObject to get
the CM_RESOURCE_LIST structure. how do i obtain them for any pci
device from my driver ?
Are there any SetupDiXXXX functions ?
Platform : Windows NT and Windows 2000.
Thanks
Regards,
Vijay Chegu
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
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
Hi Khalid,
Thanx a lot.
Seems there is no need to be a device driver to get these information.
From the example it is evident even an application level program can do
that.
I also found the place where in registry this information is maintained.
But trying to get that directly doesnt seem to be possible as the data type
is REG_RESOURCE_LIST and REG_RESOURCE_REQUIREMENTS_LIST
(Control\AllocConfig and Control\FilteredConfigVector)
And we can see it legibly this with regedt32 but not with regedit.
The registy key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI
holds one entry for every pci device on the machine.
Regards,
Vijay Chegu
----- Original Message -----
From: “Khalid Sabri”
To: “NT Developers Interest List”
Sent: Wednesday, November 28, 2001 10:56 PM
Subject: [ntdev] RE: how to read mapped memory and port size from any pci
device ?
Hi,
You can use the Configuration Manager APIs (e.g. CM_Get_First_Log_Conf,
CM_Get_Res_Des_Data, …) in your app to gather such info. The “devcon”
sample in XP DDK demonstrates how to use these APIs.
Thanks
Khalid
This posting is provided “AS IS” with no warranties, and confers no
rights.
-----Original Message-----
From: Vijay K Chegu [mailto:xxxxx@yahoo.com]
Sent: Tuesday, November 27, 2001 11:47 PM
To: NT Developers Interest List
Subject: [ntdev] how to read mapped memory and port size from any pci
device ?
Hi,
I am writing a small application and driver that will display all the
details of the pci devices available on the machine. I am able to get
complete pci config space through halgetbusdata. From the config space
i can only find out the starting address of the mapped memory or port.
How can i get the size of allocated memory or port ?
I want to determine the same for all the pci devices on the machine.
Device manager shows the range of memory and ports for any selected
hardware in the resources tab. Is it possible for any kernel mode
driver to get those details ?
HalAssignSlotResources() requires RegistryPath and DriverObject to get
the CM_RESOURCE_LIST structure. how do i obtain them for any pci
device from my driver ?
Are there any SetupDiXXXX functions ?
Platform : Windows NT and Windows 2000.
Thanks
Regards,
Vijay Chegu
—
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
—
You are currently subscribed to ntdev as: xxxxx@yahoo.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
—
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