Find PCI slot form factor from PCI config space

Viewed 23

I am working in C++ on Windows and trying to develop a tool that can identify which PCI slots are in use. I can read PCI config space to find the PCI devices that have slots and which of those slots are in use. I also need to know the form factor of the slots (CEM, M.2, U.2, Oculink). Is there anything in PCI config space that indicates the form factor of a slot?

1 Answers
Related