xemu/hw/ide
Paolo Bonzini c71c06d437 ide: commonize io_buffer_index initialization
Resetting the io_buffer_index to 0 is commonized,
with the exception of the case within ide_atapi_cmd_reply,
where we need to reset this index to 0 prior to the
ide_atapi_cmd_reply_end call.

Note that not all calls to ide_atapi_cmd_reply_end
expect the index to be 0, so setting it there is
not appropriate.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1424708286-16483-12-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2015-03-10 14:02:22 +01:00
..
ahci.c ide: replace set_unit callback with more IDEBus state 2015-03-10 14:02:22 +01:00
ahci.h ahci: replace SATA FIS type magic numbers with constants 2014-12-10 10:31:12 +01:00
atapi.c ide: commonize io_buffer_index initialization 2015-03-10 14:02:22 +01:00
cmd646.c ide: introduce ide_register_restart_cb 2015-03-10 14:02:22 +01:00
core.c ide: commonize io_buffer_index initialization 2015-03-10 14:02:22 +01:00
ich.c hw: Convert from BlockDriverState to BlockBackend, mostly 2014-10-20 14:02:25 +02:00
internal.h ide: place initial state of the current request to IDEBus 2015-03-10 14:02:22 +01:00
isa.c ide/isa: Replace unchecked qdev_init() by qdev_init_nofail() 2015-02-24 00:19:05 +01:00
macio.c ide: replace set_unit callback with more IDEBus state 2015-03-10 14:02:22 +01:00
Makefile.objs hw: make all of hw/ide/ configurable via default-configs/ 2013-04-08 18:13:12 +02:00
microdrive.c hmp: Remove "info pcmcia" 2014-10-24 12:19:11 +01:00
mmio.c hw: Convert from BlockDriverState to BlockBackend, mostly 2014-10-20 14:02:25 +02:00
pci.c ide: place initial state of the current request to IDEBus 2015-03-10 14:02:22 +01:00
pci.h ide: place initial state of the current request to IDEBus 2015-03-10 14:02:22 +01:00
piix.c ide: introduce ide_register_restart_cb 2015-03-10 14:02:22 +01:00
qdev.c BlockConf: Call backend functions to detect geometry and blocksizes 2015-03-10 14:02:22 +01:00
via.c ide: introduce ide_register_restart_cb 2015-03-10 14:02:22 +01:00