PCI in Bochs
Posted: Fri Mar 25, 2011 10:49 pm
Alright, in Bochs 2.3.7, I wrote a simple PCI implementation. It gets information about various devices connected to the PCI bus.
After running Linux to get the valid PCI device information I compared it with what my PCIGetDeviceInfo() function is returning.
Everything is valid except for bus 0, card 1, function 1.
It claims that the command register is 1 when it should be 5.
My OS: http://i.imgur.com/UXEA2.png
Linux : http://i.imgur.com/PQxeN.png
It appears to be the only time that my PCIGetDeviceInfo() function refuses to work.
Code (Please, excuse the hackishness of it, in the current state, I know it's painful to look at):
http://pastebin.com/PibQKchW
Any idea what's wrong?
We're at a loss here.
After running Linux to get the valid PCI device information I compared it with what my PCIGetDeviceInfo() function is returning.
Everything is valid except for bus 0, card 1, function 1.
It claims that the command register is 1 when it should be 5.
My OS: http://i.imgur.com/UXEA2.png
Linux : http://i.imgur.com/PQxeN.png
It appears to be the only time that my PCIGetDeviceInfo() function refuses to work.
Code (Please, excuse the hackishness of it, in the current state, I know it's painful to look at):
http://pastebin.com/PibQKchW
Any idea what's wrong?
We're at a loss here.