Solved

Interfacing with a Serial ATA Hard drive in DOS

Posted on 2003-12-09
3
595 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 500 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use conditional statements 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.

791 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