This really depend on what you mean by “domain.” It’s not a term defined within the PCI specs, or at least not one that I’ve ever run across. (Please educate me if you can find it in there.)
I think that you’re asking about the PCI segment number, which for the audience, defines the scope of a family of embedded, PCIe and/or conventional PCI buses that have a common number space. There can be more than one “root” PCI bus in the system that has a bus number of zero. The segment number distinguishes these from each other.
So, if my reinterpretation above is correct, the number you’re looking for is the upper 24 bits of “bus number” in all the Windows APIs and data structures that have a bus number.
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@Yahoo.com
Sent: Thursday, March 20, 2014 8:00 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Query the PCIe domain number
I have a KMDF driver and for certain reasons, I need the PCIe domain number from the PCIe address. However, when I call WdfDeviceQueryProperty(DevicePropertyLocationInformation), I get the following:
PCI bus 4, device 0, function 0
Is there any way to obtain the domain number as well?
Thanks,
((&->
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
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