Not sure about the PCI inquiry thing but wouldn't be surprised
When you read back data from the PCI bus, it returns a type of family and model. Sometimes the models vary by number, but their internal functionality is the same as another. I wrote an app similar to the pci.exe utility above, which polls everything in the system to return all types of system devices. I tried to look for it in my OS source code tonight, but it's not there. I'll have to go back to my old hard drive and see if I can find the source.
I have a book here by Tom Shanley / Don Anderson called PCI System Architecture from August 1999. It was one of the books I used in developing my kernel. It has up through PCI 2.2, and has tons of information in it about the PCI bus. I also have an AGP book, but nothing newer than that, as I stopped development on my kernel in 2002.
-----
I'm wondering if we couldn't scan the Linux driver source code and pick up on some of their mappings and incorporate those. I had actually planned to do that back in 2012 when I wanted to work on GNU's HURD kernel. I knew I couldn't write all of the drivers, so I was going to write tools which scanned Linux source code and derived the ports in use, memory ranges, commands, and timings, so drivers could be constructed and tested fairly quickly through a type of "Driver Wizard" I'd create.
I'm thinking something similar might work for OS/2 ... at the very least to find those family / model combinations which do actually work, and then include the driver automatically with a warning at startup that a fallback driver is being used.
Thank you,
Rick C. Hodgin