From patchwork Wed Oct 14 11:37:46 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [06/13] ide: add VMSTATE_IDE_BUS and VMSTATE_IDE_DRIVES From: Juan Quintela X-Patchwork-Id: 35947 Message-Id: To: qemu-devel@nongnu.org Date: Wed, 14 Oct 2009 13:37:46 +0200 Signed-off-by: Juan Quintela --- hw/ide/internal.h | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/hw/ide/internal.h b/hw/ide/internal.h index c55fa52..a67e39f 100644 --- a/hw/ide/internal.h +++ b/hw/ide/internal.h @@ -512,6 +512,16 @@ static inline void ide_set_irq(IDEBus *bus) } /* hw/ide/core.c */ +extern const VMStateDescription vmstate_ide_bus; + +#define VMSTATE_IDE_BUS(_field, _state) \ + VMSTATE_STRUCT(_field, _state, 1, vmstate_ide_bus, IDEBus) + +extern const VMStateDescription vmstate_ide_drive; + +#define VMSTATE_IDE_DRIVES(_field, _state) \ + VMSTATE_STRUCT_ARRAY(_field, _state, 2, 3, vmstate_ide_drive, IDEState) + void ide_save(QEMUFile* f, IDEState *s); void ide_load(QEMUFile* f, IDEState *s, int version_id); void idebus_save(QEMUFile* f, IDEBus *bus);