aboutsummaryrefslogtreecommitdiff
path: root/hw/ide/ahci.h
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2011-02-01 15:51:29 +0100
committerKevin Wolf <kwolf@redhat.com>2011-02-07 11:38:35 +0100
commit87e62065bb5e0e544e45e6935e3ac2b053fe446e (patch)
treed7904872907ff0354aea94166ebd13d755fdffa1 /hw/ide/ahci.h
parent7fb6577b130c615e42e1ccf8dad69c27c3eef085 (diff)
downloadqemu-87e62065bb5e0e544e45e6935e3ac2b053fe446e.zip
qemu-87e62065bb5e0e544e45e6935e3ac2b053fe446e.tar.gz
qemu-87e62065bb5e0e544e45e6935e3ac2b053fe446e.tar.bz2
ahci: send init d2h fis on fis enable
The drive sends a d2h init fis on initialization. Usually, the guest doesn't receive fises yet at that point though, so the delivery is deferred. Let's reflect that by sending the init fis on fis receive enablement. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/ide/ahci.h')
-rw-r--r--hw/ide/ahci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ide/ahci.h b/hw/ide/ahci.h
index d65b5e3..b2786d1 100644
--- a/hw/ide/ahci.h
+++ b/hw/ide/ahci.h
@@ -282,6 +282,7 @@ struct AHCIDevice {
int dma_status;
int done_atapi_packet;
int busy_slot;
+ int init_d2h_sent;
BlockDriverCompletionFunc *dma_cb;
AHCICmdHdr *cur_cmd;
NCQTransferState ncq_tfs[AHCI_MAX_CMDS];