Re: Enumerate PCI Buses
Posted: Fri Aug 28, 2015 8:22 pm
Sorry, I should have just copy/pasted the text.
I would still get clarification from the instructor of the class. There are two possibilities:
A) You are supposed to write part of an Operating System that communicates with the PCI bus via memory or I/O instructions, or
B) You are supposed to write an application that will run in at least one existing Operating System (Linux or Windows), that asks the OS to provide information about the PCI bus.
There is actually a third option, C) you are supposed to write an application that bypasses the OS and talks directly to the PCI bus, but I think this is highly unlikely, unless this is a class on hacking.
But if I were you, I'd ask which of these is the actual assignment, rather than guess and get it wrong.
By the way, I'm pretty sure Windows isn't going to let a user application have direct access to either the PCI I/O ports or the corresponding memory addresses that you would need. So I think it's a moot point.
I would still get clarification from the instructor of the class. There are two possibilities:
A) You are supposed to write part of an Operating System that communicates with the PCI bus via memory or I/O instructions, or
B) You are supposed to write an application that will run in at least one existing Operating System (Linux or Windows), that asks the OS to provide information about the PCI bus.
There is actually a third option, C) you are supposed to write an application that bypasses the OS and talks directly to the PCI bus, but I think this is highly unlikely, unless this is a class on hacking.
But if I were you, I'd ask which of these is the actual assignment, rather than guess and get it wrong.
By the way, I'm pretty sure Windows isn't going to let a user application have direct access to either the PCI I/O ports or the corresponding memory addresses that you would need. So I think it's a moot point.