Send FSI to my AHCI controller

All about the OSDev Wiki. Discussions about the organization and general structure of articles and how to use the wiki. Request changes here if you don't know how to use the wiki.
Post Reply
Lorenzocc21
Posts: 1
Joined: Sun Oct 22, 2023 4:20 am
Libera.chat IRC: lollo0xC21

Send FSI to my AHCI controller

Post 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.
Octocontrabass
Member
Member
Posts: 5501
Joined: Mon Mar 25, 2013 7:01 pm

Re: Send FSI to my AHCI controller

Post 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.
Post Reply