IDE DRIVE NUMBER

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
os_ambition

IDE DRIVE NUMBER

Post by os_ambition »

HELLO ,

I am experimenting on my hard drive which is connected to IDE secondary master. My problem is what value should I put in the second line of code below. The code below is part of IDE driver that I was experimenting.

mov dx,1f6h ;Drive and head port
mov al,0a0h ;Drive 0, head 0
out dx,al


Thank you very much in advance
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:IDE DRIVE NUMBER

Post by Pype.Clicker »

what about checking out the T13 document about AT Attachment and read about registers encoding ??



http://www.t13.org/docs2002/d1410r3b.pdf

esp. i suggest you read section 7.7 (Device register) and section 8.34 (read sector(s))...
Post Reply