Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
The offset used here is actually 24 decimal, or the 6th doubleword - mixing up these units is a typical beginner error.
In reality, to get BAR5 the offset should be 0x24 hexadecimal rather than decimal.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
virusest wrote:as far as i can know, your busno = 0x0, devno = 0x1f, func=0x02, reg = 0x06, first, are you sure these registers you specified are correct?
also, abar 5 address offset in pci configuration space for ahci is 0x24, but your reg is 0x06?
oh,I always thought 4 bytes per register.Thank you for your answer !