summaryrefslogtreecommitdiff
path: root/block.h
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-02-12 20:43:32 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-02-20 09:33:17 +0000
commit5bbdbb4676d17e782ae83055bac58e0751b25e4b (patch)
treea3f133f4c50866639006035734b119ea8ac13ea6 /block.h
parent9b13ef9f4c5be62bf405ab4291e090631089707f (diff)
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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/block.h b/block.h
index 19f476887..5d78fc0ed 100644
--- a/block.h
+++ b/block.h
@@ -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,