summaryrefslogtreecommitdiffstats
path: root/include/hw/ide
diff options
context:
space:
mode:
authorPaolo Bonzini2018-06-06 21:09:51 +0200
committerJohn Snow2018-06-08 19:36:25 +0200
commitbed9bcfa3275a9cfee82846a9f521c4858a9739a (patch)
tree2a240e83cbbbf0438045e526abee224d0c9a1d9e /include/hw/ide
parentahci: move PIO Setup FIS before transfer, fix it for ATAPI commands (diff)
downloadqemu-bed9bcfa3275a9cfee82846a9f521c4858a9739a.tar.gz
qemu-bed9bcfa3275a9cfee82846a9f521c4858a9739a.tar.xz
qemu-bed9bcfa3275a9cfee82846a9f521c4858a9739a.zip
ide: push end_transfer_func out of start_transfer callback, rename callback
Now that end_transfer_func is a tail call in ahci_start_transfer, formalize the fact that the callback (of which ahci_start_transfer is the sole implementation) takes care of the transfer too: rename it to pio_transfer and, if it is present, call the end_transfer_func as soon as it returns. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20180606190955.20845-4-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'include/hw/ide')
-rw-r--r--include/hw/ide/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/ide/internal.h b/include/hw/ide/internal.h
index 88212f59df..f3de6f9b73 100644
--- a/include/hw/ide/internal.h
+++ b/include/hw/ide/internal.h
@@ -444,7 +444,7 @@ struct IDEState {
struct IDEDMAOps {
DMAStartFunc *start_dma;
- DMAVoidFunc *start_transfer;
+ DMAVoidFunc *pio_transfer;
DMAInt32Func *prepare_buf;
DMAu32Func *commit_buf;
DMAIntFunc *rw_buf;