summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorJuan Quintela2009-10-07 18:51:30 +0200
committerAnthony Liguori2009-10-27 18:28:45 +0100
commitb38436e3a9cb4ce15dcce874fb3854a4e41422ac (patch)
treea5d8f35a5e73f689f66036338afab650292a6261 /hw
parentide: microdrive cycle field is set as uint8_t (diff)
downloadqemu-b38436e3a9cb4ce15dcce874fb3854a4e41422ac.tar.gz
qemu-b38436e3a9cb4ce15dcce874fb3854a4e41422ac.tar.xz
qemu-b38436e3a9cb4ce15dcce874fb3854a4e41422ac.zip
ide: add VMSTATE_IDE_BUS and VMSTATE_IDE_DRIVES
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/ide/internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/ide/internal.h b/hw/ide/internal.h
index c55fa52b3b..a67e39f461 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);