diff options
author | Hervé Poussineau <hpoussin@reactos.org> | 2012-02-06 22:29:07 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2012-02-29 12:48:46 +0100 |
commit | f8d3d128576d2b492c4267083f67671b19edb63a (patch) | |
tree | 7325c4fcded8f9ceb6fed3e5681de36838b4dd0b /hw/fdc.c | |
parent | a758f8f415985abc85be1da6d22f0590a74ca23d (diff) | |
download | qemu-f8d3d128576d2b492c4267083f67671b19edb63a.tar.gz qemu-f8d3d128576d2b492c4267083f67671b19edb63a.tar.bz2 qemu-f8d3d128576d2b492c4267083f67671b19edb63a.zip |
block: add a transfer rate for floppy types
Floppies must be read at a specific transfer rate, depending of its own format.
Update floppy description table to include required transfer rate.
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/fdc.c')
-rw-r--r-- | hw/fdc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -172,12 +172,13 @@ static void fd_revalidate(FDrive *drv) { int nb_heads, max_track, last_sect, ro; FDriveType drive; + FDriveRate rate; FLOPPY_DPRINTF("revalidate\n"); if (drv->bs != NULL && bdrv_is_inserted(drv->bs)) { ro = bdrv_is_read_only(drv->bs); bdrv_get_floppy_geometry_hint(drv->bs, &nb_heads, &max_track, - &last_sect, drv->drive, &drive); + &last_sect, drv->drive, &drive, &rate); if (nb_heads != 0 && max_track != 0 && last_sect != 0) { FLOPPY_DPRINTF("User defined disk (%d %d %d)", nb_heads - 1, max_track, last_sect); |