HDD status problem

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
User avatar
crackers
Member
Member
Posts: 27
Joined: Wed Nov 15, 2006 6:31 am

HDD status problem

Post by crackers »

Hello

I'm tring to get some informations from HDD. I'm able to send IDENTIFY DEVICE command and I'm getting an interrupt. I'm able to read all informations. The problem is that I'm doing it while in status register I've value 0x80 which is supoused to mean drive not ready and I should wait. I'm getting same results under Bochs and real PC? Am I missing something?
xsix
Member
Member
Posts: 59
Joined: Tue Oct 24, 2006 10:52 am

Post by xsix »

hm, i'm about confused about DRDY bit, cause when i read docs, they write that 0 means READY, and 1 - not ready, but when i'm reading variuos source codes, i find them using READY as 1. i would be happy if somebody would say how it is
User avatar
crackers
Member
Member
Posts: 27
Joined: Wed Nov 15, 2006 6:31 am

Post by crackers »

Ok I've used wrong function to show data on screen - insted of showing them as HEX I got in DEC - stupid error :lol:
xsix wrote:hm, i'm about confused about DRDY bit, cause when i read docs, they write that 0 means READY, and 1 - not ready, but when i'm reading variuos source codes, i find them using READY as 1. i would be happy if somebody would say how it is
Well in ata/atapi 6 spec. there is said more or less that 1 - ready, 0 - not ready. What docs are you using ?
Post Reply