Solved

Interfacing with a Serial ATA Hard drive in DOS

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
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…
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 opening and reading files in the C programming language.

708 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now