Find Slot Number for a USB host controller

Hello all,

I have several USB host USB controller cards plugged into different PCI
slots in a motherboard, is there a method to determine to which physical
slot number is each host controller plugged in?

Thanks all,
Nestor.

This has been asked on many forum’s before. The problem is that PCI slot
numbers do not relate to anything, and there is no way to map it to a PCI
slot. If you are doing this for a specific system you can install the
cards one at a time and see the PCI slot that shows up for that card. Then
given the mapping of PCI slots to physical slots you can deal with this.

I the above is acceptable look at the device manager to get the slot
numbers, there is a user space call I don’t remember or IoGetDeviceProperty
in the kernel will get you the info.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply

“Nestor Lopez” wrote in message
news:xxxxx@ntdev…
> Hello all,
>
> I have several USB host USB controller cards plugged into different PCI
> slots in a motherboard, is there a method to determine to which physical
> slot number is each host controller plugged in?
>
> Thanks all,
> Nestor.
>
>

There is a device property that you can inquire that will return a physical
position identifier. However, this will ONLY work on ACPI systems, and ONLY
if the ACPI BIOS for the system provides the correct slot identifiers. In
my somewhat limited experience, most ACPI BIOSes don’t fill this value in in
any meaningful way. (I think it is also a dword rather than a string, so
would still require matching against some chart in the BIOS manual in all
probability.)

I don’t recall the property name at the moment since I haven’t used it in a
few years, and I can’t conveniently look it up at the moment.

Loren