Page 1 of 1

HDD status problem

Posted: Mon Apr 23, 2007 5:35 am
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?

Posted: Mon Apr 23, 2007 10:12 am
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

Posted: Tue Apr 24, 2007 1:26 am
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 ?