summaryrefslogtreecommitdiff
path: root/sysemu.h
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-05-14 22:35:06 +0100
committerPaul Brook <paul@codesourcery.com>2009-05-14 22:35:06 +0100
commitaae9460e244c7abe70b72ff374b3aa102bb09691 (patch)
treeaeed206df23f689a13c332ac9831e382a684dd57 /sysemu.h
parent019d6b8ff0d495ded6977f24a4e8fd1c7fec09e0 (diff)
downloadqemu-aae9460e244c7abe70b72ff374b3aa102bb09691.tar.gz
Basic qdev infrastructure.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'sysemu.h')
-rw-r--r--sysemu.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sysemu.h b/sysemu.h
index 25a7c32a72..2ff61946fd 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -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