2007-11-17 20:14:51 +03:00
|
|
|
/* Declarations for use by hardware emulation. */
|
|
|
|
#ifndef QEMU_HW_H
|
|
|
|
#define QEMU_HW_H
|
|
|
|
|
2014-06-27 10:40:04 +04:00
|
|
|
#ifdef CONFIG_USER_ONLY
|
|
|
|
#error Cannot include hw/hw.h from user emulation
|
2009-05-19 19:17:58 +04:00
|
|
|
#endif
|
|
|
|
|
2014-06-27 10:40:04 +04:00
|
|
|
#include "exec/cpu-common.h"
|
2016-03-16 12:24:54 +03:00
|
|
|
#include "qom/object.h"
|
|
|
|
#include "exec/memory.h"
|
2013-02-04 18:40:22 +04:00
|
|
|
#include "hw/irq.h"
|
2012-12-17 21:19:50 +04:00
|
|
|
#include "migration/vmstate.h"
|
2016-03-09 14:19:37 +03:00
|
|
|
#include "qemu/module.h"
|
2008-10-02 23:14:17 +04:00
|
|
|
|
2007-11-17 20:14:51 +03:00
|
|
|
typedef void QEMUResetHandler(void *opaque);
|
|
|
|
|
2009-06-27 11:25:07 +04:00
|
|
|
void qemu_register_reset(QEMUResetHandler *func, void *opaque);
|
2009-07-02 02:19:02 +04:00
|
|
|
void qemu_unregister_reset(QEMUResetHandler *func, void *opaque);
|
2007-11-17 20:14:51 +03:00
|
|
|
|
2016-03-09 14:19:37 +03:00
|
|
|
void QEMU_NORETURN hw_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
|
|
|
|
|
2007-11-17 20:14:51 +03:00
|
|
|
#endif
|