summaryrefslogtreecommitdiff
path: root/hw/ide/internal.h
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2010-02-11 18:19:44 -0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-02-19 15:33:13 -0600
commited487bb1d69040b9dac64a4fc076d8dd82b131d6 (patch)
treee5e39787b8d1f0257ae89e9a7313647f542e5f10 /hw/ide/internal.h
parent7b665b668aa92bf0bba696f085dff87539d95529 (diff)
downloadqemu-ed487bb1d69040b9dac64a4fc076d8dd82b131d6.tar.gz
ide save/restore pio/atapi cmd transfer fields and io buffer
Save/restore information necessary to continue in progress PIO/ATAPI CMD transfers. This includes the IO buffer. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ide/internal.h')
-rw-r--r--hw/ide/internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/ide/internal.h b/hw/ide/internal.h
index 9945993655..027029ecec 100644
--- a/hw/ide/internal.h
+++ b/hw/ide/internal.h
@@ -419,6 +419,11 @@ struct IDEState {
uint8_t *data_ptr;
uint8_t *data_end;
uint8_t *io_buffer;
+ /* PIO save/restore */
+ int32_t io_buffer_total_len;
+ int cur_io_buffer_offset;
+ int cur_io_buffer_len;
+ uint8_t end_transfer_fn_idx;
QEMUTimer *sector_write_timer; /* only used for win2k install hack */
uint32_t irq_count; /* counts IRQs when using win2k install hack */
/* CF-ATA extended error */