diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-03-02 20:30:50 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-03-03 15:45:01 -0500 |
commit | 6e529bdae4922f48c0d7eaa31613b7a9230e8f95 (patch) | |
tree | 16433ffab6ddec0483cc273b08a6db299632c54a /src/biosvar.h | |
parent | 9ba374ce1d864b7a50f3657e6b06e7b2d1ec2934 (diff) | |
download | seabios-6e529bdae4922f48c0d7eaa31613b7a9230e8f95.tar.gz |
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>
Diffstat (limited to 'src/biosvar.h')
-rw-r--r-- | src/biosvar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/biosvar.h b/src/biosvar.h index 520fc3ed..bbb196a8 100644 --- a/src/biosvar.h +++ b/src/biosvar.h @@ -120,7 +120,7 @@ struct bios_data_area_s { } PACKED; // BDA floppy_recalibration_status bitdefs -#define FRS_TIMEOUT (1<<7) +#define FRS_IRQ (1<<7) // BDA rtc_wait_flag bitdefs #define RWS_WAIT_PENDING (1<<0) |