SATA and AHCI

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.
Post Reply
BombStrike
Posts: 1
Joined: Sun Jun 29, 2008 3:05 pm

SATA and AHCI

Post by BombStrike »

I've been working for several days, reading the docs and all to code an AHCI driver.
I can actually query the controller, find the port, the speed, if it support 64bits, etc...
But then come the moment where I should send commands to my SATA disk just behind, and there, I don't know how to do... The AHCI doc are speaking of FIS everywhere, but I can't find what are those, how to build them. It seems also I can send ATA commands through the Command Table, but there's no clear explanation about this and how to read the result. So I'd like to know if someone could explain me how to send the IDENTIFY command to the SATA disk and read the result ?
Thanks.
Post Reply