383 |
#define BDRV_TYPE_HD 0 |
#define BDRV_TYPE_HD 0 |
384 |
#define BDRV_TYPE_CDROM 1 |
#define BDRV_TYPE_CDROM 1 |
385 |
#define BDRV_TYPE_FLOPPY 2 |
#define BDRV_TYPE_FLOPPY 2 |
386 |
|
#define BIOS_ATA_TRANSLATION_AUTO 0 |
387 |
|
#define BIOS_ATA_TRANSLATION_NONE 1 |
388 |
|
#define BIOS_ATA_TRANSLATION_LBA 2 |
389 |
|
|
390 |
void bdrv_set_geometry_hint(BlockDriverState *bs, |
void bdrv_set_geometry_hint(BlockDriverState *bs, |
391 |
int cyls, int heads, int secs); |
int cyls, int heads, int secs); |
392 |
void bdrv_set_type_hint(BlockDriverState *bs, int type); |
void bdrv_set_type_hint(BlockDriverState *bs, int type); |
393 |
|
void bdrv_set_translation_hint(BlockDriverState *bs, int translation); |
394 |
void bdrv_get_geometry_hint(BlockDriverState *bs, |
void bdrv_get_geometry_hint(BlockDriverState *bs, |
395 |
int *pcyls, int *pheads, int *psecs); |
int *pcyls, int *pheads, int *psecs); |
396 |
int bdrv_get_type_hint(BlockDriverState *bs); |
int bdrv_get_type_hint(BlockDriverState *bs); |
397 |
|
int bdrv_get_translation_hint(BlockDriverState *bs); |
398 |
int bdrv_is_removable(BlockDriverState *bs); |
int bdrv_is_removable(BlockDriverState *bs); |
399 |
int bdrv_is_read_only(BlockDriverState *bs); |
int bdrv_is_read_only(BlockDriverState *bs); |
400 |
int bdrv_is_inserted(BlockDriverState *bs); |
int bdrv_is_inserted(BlockDriverState *bs); |