summaryrefslogtreecommitdiffstats
path: root/sysemu.h
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2009-06-18 19:57:00 +0900
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-22 10:15:28 -0500
commit9d5e77a22f1b8b502a11aa6288334c2787d8dbc8 (patch)
tree14127df220269130ff58d5cd5479f26835206b6c /sysemu.h
parent30868442a5590991266a34af3f0b728a4a0ee6d0 (diff)
downloadhqemu-9d5e77a22f1b8b502a11aa6288334c2787d8dbc8.zip
hqemu-9d5e77a22f1b8b502a11aa6288334c2787d8dbc8.tar.gz
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 fe24415..403b35e 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 */
OpenPOWER on IntegriCloud