Simple FDC driver

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
Vladaz

Simple FDC driver

Post 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 :-\
Dex4u

Re:Simple FDC driver

Post 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.
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:Simple FDC driver

Post by Pype.Clicker »

Post Reply