diff options
Diffstat (limited to 'sysemu.h')
-rw-r--r-- | sysemu.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -132,7 +132,8 @@ extern unsigned int nb_prom_envs; #endif typedef enum { - IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD, IF_VIRTIO, IF_XEN + IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD, IF_VIRTIO, IF_XEN, + IF_COUNT } BlockInterfaceType; typedef enum { @@ -165,6 +166,8 @@ extern void drive_remove(int index); extern const char *drive_get_serial(BlockDriverState *bdrv); extern BlockInterfaceErrorAction drive_get_onerror(BlockDriverState *bdrv); +BlockDriverState *qdev_init_bdrv(DeviceState *dev, BlockInterfaceType type); + struct drive_opt { const char *file; char opt[1024]; @@ -259,4 +262,6 @@ int get_param_value(char *buf, int buf_size, const char *tag, const char *str); int check_params(const char * const *params, const char *str); +void register_devices(void); + #endif |