]> git.proxmox.com Git - mirror_qemu.git/blob - include/hw/hw.h
hw: move CPU state serialization to migration/cpu.h
[mirror_qemu.git] / include / hw / hw.h
1 /* Declarations for use by hardware emulation. */
2 #ifndef QEMU_HW_H
3 #define QEMU_HW_H
4
5
6 #if !defined(CONFIG_USER_ONLY) && !defined(NEED_CPU_H)
7 #include "exec/cpu-common.h"
8 #endif
9
10 #include "exec/ioport.h"
11 #include "hw/irq.h"
12 #include "block/aio.h"
13 #include "migration/vmstate.h"
14 #include "qemu/log.h"
15 #include "qemu/module.h"
16
17 typedef void QEMUResetHandler(void *opaque);
18
19 void qemu_register_reset(QEMUResetHandler *func, void *opaque);
20 void qemu_unregister_reset(QEMUResetHandler *func, void *opaque);
21
22 void QEMU_NORETURN hw_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
23
24 #endif