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