
some time ago I wrote code for PCI enumeration but now I have the doubt it doesn't find all the devices.
On bochs it finds these 4 devices:
device 0: class 0x6 ; sub class 0x0 ; bus=0 ; device=0 function=0
device 1: class 0x6 ; sub class 0x1 ; bus=0 ; device=1 function=0
device 2: class 0x1 ; sub class 0x1 ; bus=0 ; device=1 function=1
device 3: class 0x6 ; sub class 0x80 ; bus=0 ; device=1 function=3
I tried also on vmware and it finds 42 devices (but 33 of those are PCI to PCI bridges)
In both the emulators I don't get any processor.
I get the same result using the brute force method and the recusrive method.
So here's the question: is this the correct result or I should have found something else?