Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Interfacing with a Serial ATA Hard drive in DOS

Posted on 2003-12-09
3
Medium Priority
?
609 Views
Last Modified: 2010-05-18
Hello,

I am trying to interface with a SATA hdd using its controller IO port. I want to send the drive an IDENTIFY command (0xEC) to the hdd command register and then extract the result (such as HDD name, serial no etc). I already have code that interfaces with IDE harddrives and returns the correct information (outputs ID command to port 01F0, Primary IDE channel address).

I can only get a blank response from the SATA controller (base address EC00h in this instance) so I am assuming using this controler is different in how it works. Does anyone know how I can send an IDENTIFY command to the serial ata controllers port and retrieve the info successfully?
According to serial ata documentation the command is the same..
My application is written in C, but the port IO routines are simple asm routines.

If anyone can point me in the right direction on how to interface with serial ata it would be appreciated.


0
Comment
Question by:miket_w
3 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 1500 total points
ID: 9911431
not very familiar with your domain but take a look here and see if it helps
http://www.serialata.org/index.shtml
http://www.seagate.com/support/disc/manuals/sata/cuda7200_sata_pm.pdf
http://www.mail-archive.com/forum@t13.org/msg01038.html

the second link indicates that the command is 0xEC and not 0xEC00 as you have mentioned in the post
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
Suggested Courses

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question