X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=qemu-common.h;h=fdc367997dce8e7ff23ed6dcfea06846159e6a20;hb=3a2eeac0c9033e30b19d88465c9561f982e9e6d0;hp=28f47918dcc922ac746a4526e0977cc794b62f35;hpb=7b5d76dae31881d3cdb6f748ad4e84ddd7b66f3e;p=qemu diff --git a/qemu-common.h b/qemu-common.h index 28f4791..fdc3679 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -23,6 +23,7 @@ #include #include #include +#include #include "config-host.h" #ifndef O_LARGEFILE @@ -177,7 +178,12 @@ typedef struct PCIBus PCIBus; typedef struct PCIDevice PCIDevice; typedef struct SerialState SerialState; typedef struct IRQState *qemu_irq; -struct pcmcia_card_s; +typedef struct PCMCIACardState PCMCIACardState; +typedef struct MouseTransformInfo MouseTransformInfo; +typedef struct uWireSlave uWireSlave; +typedef struct I2SCodec I2SCodec; +typedef struct DeviceState DeviceState; +typedef struct SSIBus SSIBus; /* CPU save/load. */ void cpu_save(QEMUFile *f, void *opaque); @@ -186,6 +192,19 @@ int cpu_load(QEMUFile *f, void *opaque, int version_id); /* Force QEMU to stop what it's doing and service IO */ void qemu_service_io(void); +/* Force QEMU to process pending events */ +void qemu_notify_event(void); + +/* Unblock cpu */ +void qemu_cpu_kick(void *env); +int qemu_cpu_self(void *env); + +#ifdef CONFIG_USER_ONLY +#define qemu_init_vcpu(env) do { } while (0) +#else +void qemu_init_vcpu(void *env); +#endif + typedef struct QEMUIOVector { struct iovec *iov; int niov; @@ -194,6 +213,7 @@ typedef struct QEMUIOVector { } QEMUIOVector; void qemu_iovec_init(QEMUIOVector *qiov, int alloc_hint); +void qemu_iovec_init_external(QEMUIOVector *qiov, struct iovec *iov, int niov); void qemu_iovec_add(QEMUIOVector *qiov, void *base, size_t len); void qemu_iovec_destroy(QEMUIOVector *qiov); void qemu_iovec_reset(QEMUIOVector *qiov); @@ -203,6 +223,8 @@ void qemu_iovec_from_buffer(QEMUIOVector *qiov, const void *buf, size_t count); struct Monitor; typedef struct Monitor Monitor; +#include "module.h" + #endif /* dyngen-exec.h hack */ #endif