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