floppy: Cleanup floppy irq wait handling.
commit6e529bdae4922f48c0d7eaa31613b7a9230e8f95
authorKevin O'Connor <kevin@koconnor.net>
Sun, 3 Mar 2013 01:30:50 +0000 (2 20:30 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 3 Mar 2013 20:45:01 +0000 (3 15:45 -0500)
tree16433ffab6ddec0483cc273b08a6db299632c54a
parent9ba374ce1d864b7a50f3657e6b06e7b2d1ec2934
floppy: Cleanup floppy irq wait handling.

Rename FRS_TIMEOUT to FRS_IRQ - the flag indicates that an irq has
been received - it isn't directly related to timeouts.

On a timeout event, disable the floppy controller instead of doing a
full reset.  Also, perform the disable directly in floppy_wait_irq().

Always wait for the floppy irq after enabling the controller and after
a recalibrate command.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/biosvar.h
src/floppy.c