mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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>
This commit is contained in:
parent
30868442a5
commit
9d5e77a22f
4 changed files with 26 additions and 6 deletions
3
sysemu.h
3
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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue