OSDev.org

The Place to Start for Operating System Developers
It is currently Fri May 17, 2024 5:06 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: ATA Optional commands
PostPosted: Sun May 27, 2007 1:02 am 
Offline
Member
Member
User avatar

Joined: Sat Nov 25, 2006 3:55 am
Posts: 416
Location: Wisconsin
Is there a way to determine if an optional command is supported on the selected ATA interface? For example, how can I make sure if the Sleep command is supported on my HDD?

I'd appreciate it if somebody could help me with this.

_________________
On the field with sword and shield amidst the din of dying of men's wails. War is waged and the battle will rage until only the righteous prevails.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 27, 2007 2:30 am 
Offline
Member
Member

Joined: Tue Oct 24, 2006 10:52 am
Posts: 59
There is Identify Device command which returns a lot of information (512bytes). There are Power Management bit, so it means that if PM is present, sleep function should work


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 27, 2007 7:07 am 
Offline
Member
Member
User avatar

Joined: Sat Nov 25, 2006 3:55 am
Posts: 416
Location: Wisconsin
xsix,

That wouldn't work with ATA-1 drives, would it?

_________________
On the field with sword and shield amidst the din of dying of men's wails. War is waged and the battle will rage until only the righteous prevails.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 27, 2007 10:20 am 
Offline
Member
Member

Joined: Tue Oct 24, 2006 10:52 am
Posts: 59
i don't know, but it should. Here is the code for implementing this command and getting data back http://www.geocities.com/siliconvalley/2072/atapi.htm . Check out on your old ATA-1 drive, if you don't own one, read, read and one more time, read =)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Google [Bot], rdos and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group