Page 1 of 1

SATA and AHCI

Posted: Thu Jul 17, 2008 6:21 am
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.