On 3/19/07, Corey Osgood corey_osgood@verizon.net wrote:
With pci_write_config32 (or pci_write_config16), do you send the value to the first or the last register in the set? In other words, if it's a range of 0x50-0x53, where should it be sent to? And if you were looking to set it like this:
0x50 -> 0x11 0x51 -> 0x22 0x52 -> 0x33 0x53 -> 0x44
it should be set as 0x11223344, correct? I'm looking at two different files, and their usage conflicts, I'd like to know which is right.
I'd like to know where that is.
I believe that since the x86 is a little-endian machine, you actually want 0x44332211, for the example above, since in 0x44332211, the LSB will be written "first". I am not near a machine to test this on, however.
It's pretty easy to test, so, as always, the ultimate truth is in what happens when you do it.
I hope to be back to life by monday. I just moved to Livermore, CA and am busy ...
thanks
ron