diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-02-12 20:43:32 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-02-20 09:33:17 +0000 |
commit | 471ee8e2f752d3ba0d2ce7188c8a2137812018fc (patch) | |
tree | a3f133f4c50866639006035734b119ea8ac13ea6 /block.h | |
parent | f35cb7780cfaeed04e2ff25cb7470fea3933d786 (diff) | |
download | qemu-471ee8e2f752d3ba0d2ce7188c8a2137812018fc.tar.gz qemu-471ee8e2f752d3ba0d2ce7188c8a2137812018fc.tar.bz2 qemu-471ee8e2f752d3ba0d2ce7188c8a2137812018fc.zip |
fdc: move floppy geometry guessing to block.c
Other geometry guessing functions already reside in block.c.
Remove some unused or debugging only fields.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'block.h')
-rw-r--r-- | block.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -166,6 +166,16 @@ void bdrv_set_type_hint(BlockDriverState *bs, int type); void bdrv_set_translation_hint(BlockDriverState *bs, int translation); void bdrv_get_geometry_hint(BlockDriverState *bs, int *pcyls, int *pheads, int *psecs); +typedef enum FDriveType { + FDRIVE_DRV_144 = 0x00, /* 1.44 MB 3"5 drive */ + FDRIVE_DRV_288 = 0x01, /* 2.88 MB 3"5 drive */ + FDRIVE_DRV_120 = 0x02, /* 1.2 MB 5"25 drive */ + FDRIVE_DRV_NONE = 0x03, /* No drive connected */ +} FDriveType; + +void bdrv_get_floppy_geometry_hint(BlockDriverState *bs, int *nb_heads, + int *max_track, int *last_sect, + FDriveType drive_in, FDriveType *drive); int bdrv_get_type_hint(BlockDriverState *bs); int bdrv_get_translation_hint(BlockDriverState *bs); void bdrv_set_on_error(BlockDriverState *bs, BlockErrorAction on_read_error, |