Revision 61a8d649 block.h
b/block.h | ||
---|---|---|
269 | 269 |
void bdrv_set_translation_hint(BlockDriverState *bs, int translation); |
270 | 270 |
void bdrv_get_geometry_hint(BlockDriverState *bs, |
271 | 271 |
int *pcyls, int *pheads, int *psecs); |
272 |
typedef enum FDriveType { |
|
273 |
FDRIVE_DRV_144 = 0x00, /* 1.44 MB 3"5 drive */ |
|
274 |
FDRIVE_DRV_288 = 0x01, /* 2.88 MB 3"5 drive */ |
|
275 |
FDRIVE_DRV_120 = 0x02, /* 1.2 MB 5"25 drive */ |
|
276 |
FDRIVE_DRV_NONE = 0x03, /* No drive connected */ |
|
277 |
} FDriveType; |
|
278 |
|
|
279 |
typedef enum FDriveRate { |
|
280 |
FDRIVE_RATE_500K = 0x00, /* 500 Kbps */ |
|
281 |
FDRIVE_RATE_300K = 0x01, /* 300 Kbps */ |
|
282 |
FDRIVE_RATE_250K = 0x02, /* 250 Kbps */ |
|
283 |
FDRIVE_RATE_1M = 0x03, /* 1 Mbps */ |
|
284 |
} FDriveRate; |
|
285 |
|
|
286 |
void bdrv_get_floppy_geometry_hint(BlockDriverState *bs, int *nb_heads, |
|
287 |
int *max_track, int *last_sect, |
|
288 |
FDriveType drive_in, FDriveType *drive, |
|
289 |
FDriveRate *rate); |
|
290 | 272 |
int bdrv_get_translation_hint(BlockDriverState *bs); |
291 | 273 |
void bdrv_set_on_error(BlockDriverState *bs, BlockErrorAction on_read_error, |
292 | 274 |
BlockErrorAction on_write_error); |
Also available in: Unified diff