Proper way to access registers in a PCI configuration space
When you need to access registers in the PCI configuration space, do you simply need to used built-in BIOS functions to read/write DWORDs into the configuration space? For example, if I am trying to use an IDE controller that is on B0:D31:F1 do I proceed to read/write the configuration register using that BDF as the parameters to the BIOS functions? So if I wanted to get the vendor id I would read the first DWORD in a given BDF? Or am I just way off base? EDIT: In the PCI BIOS specification, I have been looking over the definitions of the BIOS functions for reading and writing words into the