Solved

Interfacing with a Serial ATA Hard drive in DOS

Posted on 2003-12-09
3
598 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops 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.

734 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