1 /* Declarations for use by hardware emulation. */ 2 #ifndef QEMU_HW_H 3 #define QEMU_HW_H 4 5 6 #ifdef CONFIG_USER_ONLY 7 #error Cannot include hw/hw.h from user emulation 8 #endif 9 10 #include "exec/cpu-common.h" 11 #include "exec/ioport.h" 12 #include "hw/irq.h" 13 #include "block/aio.h" 14 #include "migration/vmstate.h" 15 #include "qemu/log.h" 16 #include "qemu/module.h" 17 18 typedef void QEMUResetHandler(void *opaque); 19 20 void qemu_register_reset(QEMUResetHandler *func, void *opaque); 21 void qemu_unregister_reset(QEMUResetHandler *func, void *opaque); 22 23 void QEMU_NORETURN hw_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2); 24 25 #endif 26