diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-14 22:35:06 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-14 22:35:06 +0100 |
commit | aae9460e244c7abe70b72ff374b3aa102bb09691 (patch) | |
tree | aeed206df23f689a13c332ac9831e382a684dd57 /sysemu.h | |
parent | 019d6b8ff0d495ded6977f24a4e8fd1c7fec09e0 (diff) |
Basic qdev infrastructure.
Signed-off-by: Paul Brook <paul@codesourcery.com>
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 |