mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
ide: place initial state of the current request to IDEBus
This moves more common restarting logic to the core IDE code. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 1424708286-16483-10-git-send-email-jsnow@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
a96cb23629
commit
dc5d0af49a
4 changed files with 16 additions and 12 deletions
|
@ -22,10 +22,7 @@ typedef struct BMDMAState {
|
|||
uint32_t cur_prd_last;
|
||||
uint32_t cur_prd_addr;
|
||||
uint32_t cur_prd_len;
|
||||
uint8_t unit;
|
||||
BlockCompletionFunc *dma_cb;
|
||||
int64_t sector_num;
|
||||
uint32_t nsector;
|
||||
MemoryRegion addr_ioport;
|
||||
MemoryRegion extra_io;
|
||||
qemu_irq irq;
|
||||
|
@ -34,6 +31,8 @@ typedef struct BMDMAState {
|
|||
* Bit 3-6: bus->error_status */
|
||||
uint8_t migration_compat_status;
|
||||
uint8_t migration_retry_unit;
|
||||
int64_t migration_retry_sector_num;
|
||||
uint32_t migration_retry_nsector;
|
||||
|
||||
struct PCIIDEState *pci_dev;
|
||||
} BMDMAState;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue