fdc: check if media rate is correct before doing any transfer
commit844f65d661fa6d7e5460cc76ccabfe1398849fe7
authorHervé Poussineau <hpoussin@reactos.org>
Mon, 6 Feb 2012 21:29:10 +0000 (6 22:29 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 29 Feb 2012 11:48:46 +0000 (29 12:48 +0100)
tree4836f6e030b1035fb76a9ae6767b8ac109aa1dec
parent09c6d5850fbd2b8abeba927fffff036585a755e0
fdc: check if media rate is correct before doing any transfer

The programmed rate has to be the same as the required rate for the
floppy format ; if that's not the case, the transfer should abort.
This check can be disabled by using the 'check_media_rate' property.

Save media rate value only if media rate check is enabled.

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/fdc.c