Page 1 of 1

Send FSI to my AHCI controller

Posted: Sun Oct 22, 2023 4:30 am
by Lorenzocc21
Hello everyone I would like to try to send the identify(0xEC) command to the AHCI controller of my SATA Hard Disk, so I armed myself with documentation and explanation on this forum understanding that it was necessary to create a FIS and manipulate the registers of my Controller that are mapped in the memory of my pc to send the message, I would like to write some code but I do not understand if I need to examine the documentation of my AHCI controller or that what's on the forum is good for everyone.
how do I check the registers of my AHCI controller.

Re: Send FSI to my AHCI controller

Posted: Tue Oct 24, 2023 7:15 pm
by Octocontrabass
Lorenzocc21 wrote:I would like to write some code but I do not understand if I need to examine the documentation of my AHCI controller or that what's on the forum is good for everyone.
All AHCI controllers are pretty much the same. (But you should still read the documentation anyway!)
Lorenzocc21 wrote:how do I check the registers of my AHCI controller.
Enumerate PCI to find the AHCI controller, then read the appropriate BAR to find the address of the registers.