Sorry that I'm writing in this dead topic, but my question probably fits this topic.
I read this tutorial and I think it's very good, but I found function
Code:
wait_floppy_ready(base);
so I thought that it should be probably something like waitFloppyData
Code:
static void waitFloppyReady(){
while(((inb(FLOPPY_PRIMARY_BASE+MAIN_STATUS_REG))&0xd0)!=IDLE);
}
I don't know that my idea is good. I found somewhere (I don't remember where) that IDLE is equals 0x80, but I don't know that it's true. I'm looking for some datasheet saying about this constants.
I have one more problem, with function:
Code:
seek_track(head,cylinder,drive);
I know that I must send command SEEK, but what after that?
I found something like this but it don't using head,cylinder,drive parameters:
Code:
writeFloppyCommand(SEEK_TRACK);
writeFloppyCommand(0);
writeFloppyCommand(track);
Thanks in advance