Getting PCIE Config Base Address using WDF calls

In the DDK days I used do:
EnumSystemFirmwareTables(‘ACPI’, ‘GFCM’, pFirmwareTableBuffer, MAX_STRING_LENGTH); and then after lot of juggling used to get the PCIE Config Base Address. I was told in the WDF model I can do all of this in a single call using WdfFdoQueryForInterface() or something very similar. Can some kind soul point me to a short sample program to do thia. I spent lot of time in the MSDN site but could not glean it out.

What are you going to do with the config base address once you get it? the OS owns that resource and there is no way to synchronize your access to it with the OS access to the same resource

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Thursday, March 22, 2012 4:40 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Getting PCIE Config Base Address using WDF calls

In the DDK days I used do:
EnumSystemFirmwareTables(‘ACPI’, ‘GFCM’, pFirmwareTableBuffer, MAX_STRING_LENGTH); and then after lot of juggling used to get the PCIE Config Base Address. I was told in the WDF model I can do all of this in a single call using WdfFdoQueryForInterface() or something very similar. Can some kind soul point me to a short sample program to do thia. I spent lot of time in the MSDN site but could not glean it out.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

I am talking of platform validation environment kind of test program. Just for my company’s internal use. As I said earlier I have it working the old way now I would like do it the more efficient way.

Your way is not inefficient. I don’t think you can get the value from query interface.

d

debt from my phone


From: xxxxx@gmail.com
Sent: 3/22/2012 4:47 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Getting PCIE Config Base Address using WDF calls

I am talking of platform validation environment kind of test program. Just for my company’s internal use. As I said earlier I have it working the old way now I would like do it the more efficient way.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

OK thanks, so my friend was wrong about using the WdfFdoQueryForInterface() or something very similar call to get PCI Config Space Base address. So I shall get back with him and check it out. This case can be deemed as closed. If I do stumble on another way to do it I shall update this query more for academic interest. Thanks a lot Doran.