summaryrefslogtreecommitdiffstats
path: root/sysemu.h
diff options
context:
space:
mode:
authorIsaku Yamahata2009-06-18 12:57:00 +0200
committerAnthony Liguori2009-06-22 17:15:28 +0200
commit9d5e77a22f1b8b502a11aa6288334c2787d8dbc8 (patch)
tree14127df220269130ff58d5cd5479f26835206b6c /sysemu.h
parentInstead of writing a zero page, madvise it away (diff)
downloadqemu-9d5e77a22f1b8b502a11aa6288334c2787d8dbc8.tar.gz
qemu-9d5e77a22f1b8b502a11aa6288334c2787d8dbc8.tar.xz
qemu-9d5e77a22f1b8b502a11aa6288334c2787d8dbc8.zip
acpi.c: make qemu_system_device_hot_add piix independent.
introruce piix4_device_hot_add() for piix4 specific code and make qemu_system_device_hot_add() generic. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'sysemu.h')
-rw-r--r--sysemu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysemu.h b/sysemu.h
index fe24415cd7..403b35ed3a 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -194,7 +194,8 @@ extern int drive_add(const char *file, const char *fmt, ...);
extern int drive_init(struct drive_opt *arg, int snapshot, void *machine);
/* acpi */
-void qemu_system_hot_add_init(void);
+typedef void (*qemu_system_device_hot_add_t)(int pcibus, int slot, int state);
+void qemu_system_device_hot_add_register(qemu_system_device_hot_add_t callback);
void qemu_system_device_hot_add(int pcibus, int slot, int state);
/* device-hotplug */