df43d49cb8
Include qom/object.h and exec/memory.h instead of exec/ioport.h; exec/ioport.h was almost everywhere required only for those two includes, not for the content of the header itself. Remove block/aio.h, everybody is already including it through another path. With this change, include/hw/hw.h is freed from qemu-common.h. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
24 lines
580 B
C
24 lines
580 B
C
/* Declarations for use by hardware emulation. */
|
|
#ifndef QEMU_HW_H
|
|
#define QEMU_HW_H
|
|
|
|
#ifdef CONFIG_USER_ONLY
|
|
#error Cannot include hw/hw.h from user emulation
|
|
#endif
|
|
|
|
#include "exec/cpu-common.h"
|
|
#include "qom/object.h"
|
|
#include "exec/memory.h"
|
|
#include "hw/irq.h"
|
|
#include "migration/vmstate.h"
|
|
#include "qemu/module.h"
|
|
|
|
typedef void QEMUResetHandler(void *opaque);
|
|
|
|
void qemu_register_reset(QEMUResetHandler *func, void *opaque);
|
|
void qemu_unregister_reset(QEMUResetHandler *func, void *opaque);
|
|
|
|
void QEMU_NORETURN hw_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2);
|
|
|
|
#endif
|