ATA PIO IDENTIFY return data

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
User avatar
makerimages
Member
Member
Posts: 27
Joined: Sun Dec 28, 2014 11:16 am
Libera.chat IRC: Makerimages
Location: Estonia

ATA PIO IDENTIFY return data

Post by makerimages »

Hi

I've gotten to a point where I have paging enabled, finally. The next step would be to write the disk and filesystem drivers. I've read trough most of the ATA PIO article on the wiki, and I have a question now.. Is there a complete structure for data returned by the IDENTIFY command? What other data, besides the stuff listed here does it return?
Working on SinusOS.
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: ATA PIO IDENTIFY return data

Post by Kevin »

There is a lot of information in there. Just read the section on IDENTIFY in the ACS-3 spec, it has a long table that describes each word in the IDENTIFY data. Starting to read the spec instead of relying only on secondary sources like the wiki is a good idea anyway as soon as you get to non-trivial hardware like IDE.
Developer of tyndur - community OS of Lowlevel (German)
User avatar
makerimages
Member
Member
Posts: 27
Joined: Sun Dec 28, 2014 11:16 am
Libera.chat IRC: Makerimages
Location: Estonia

Re: ATA PIO IDENTIFY return data

Post by makerimages »

K, that table is loong. Is there a drop-in structure for loading this into, or how would anyone efficiently load the 256 words into something useable?
Working on SinusOS.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: ATA PIO IDENTIFY return data

Post by Combuster »

makerimages wrote:or how would anyone efficiently load the 256 words into something useable?
Defining that packed struct as appropriate. It's probably faster than finding one you can reuse without copyright issues.
"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 ]
Post Reply