hw.h 579 字节
Newer Older
P
pbrook 已提交
1 2 3 4
/* Declarations for use by hardware emulation.  */
#ifndef QEMU_HW_H
#define QEMU_HW_H

5 6
#ifdef CONFIG_USER_ONLY
#error Cannot include hw/hw.h from user emulation
P
Paul Brook 已提交
7 8
#endif

9
#include "exec/cpu-common.h"
10
#include "exec/ioport.h"
11
#include "hw/irq.h"
12
#include "block/aio.h"
13
#include "migration/vmstate.h"
14
#include "qemu/module.h"
B
blueswir1 已提交
15

P
pbrook 已提交
16 17
typedef void QEMUResetHandler(void *opaque);

18
void qemu_register_reset(QEMUResetHandler *func, void *opaque);
J
Jan Kiszka 已提交
19
void qemu_unregister_reset(QEMUResetHandler *func, void *opaque);
P
pbrook 已提交
20

21 22
void QEMU_NORETURN hw_error(const char *fmt, ...) GCC_FMT_ATTR(1, 2);

P
pbrook 已提交
23
#endif