Page 1 of 1

Simple FDC driver

Posted: Wed Mar 23, 2005 11:25 am
by Vladaz
Hello.
I need help on simple FDC driver.
How can i make simple FDC driver, that could read one sector from floppy? Can someone offer me something, because I have already checked out some of the FDC examples, but they have too many information on the code. I mean they have all other functions, and I just get confused. I need only to read one sector, later I think I will do more. And BTW, I want to do it through ports, because I'm on PMode and I think to use interrupts through VM86 is too slow :-\

Re:Simple FDC driver

Posted: Wed Mar 23, 2005 10:10 pm
by Dex4u
What you want is not possable, to do a simple read one sector using ports needs a number of things set up,
Here is a list of functions, you will need:
FddMotorOff
FddMotorOn
FddReSet
FddSeek
FddRecalibrate
FddReadWrite
WaitTimer
WaitDone ; for floppy irq
FdcSendByteReady
FdcGetByteReady
SetupDmaRead
With out the above functions, your floppy driver will not work, so start small and get the Intel manual and work your way through them, and if you have a problem with any of the functions, post the code and some one will try to help.

Re:Simple FDC driver

Posted: Thu Mar 24, 2005 3:07 am
by Pype.Clicker