summaryrefslogtreecommitdiffstats
path: root/hw/ide/internal.h
diff options
context:
space:
mode:
authorPaolo Bonzini2014-08-04 23:11:06 +0200
committerStefan Hajnoczi2014-08-15 19:03:12 +0200
commit1374bec0634aac9a460fe3b57bbe8b1aa7a99cb7 (patch)
tree544def307c14f511d60dfcb892bed7a700ced519 /hw/ide/internal.h
parentide: stash aiocb for flushes (diff)
downloadqemu-1374bec0634aac9a460fe3b57bbe8b1aa7a99cb7.tar.gz
qemu-1374bec0634aac9a460fe3b57bbe8b1aa7a99cb7.tar.xz
qemu-1374bec0634aac9a460fe3b57bbe8b1aa7a99cb7.zip
ide: simplify reset callbacks
Drop the unused return value and make the callback optional. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/ide/internal.h')
-rw-r--r--hw/ide/internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/ide/internal.h b/hw/ide/internal.h
index 0567a522f5..6cca46f506 100644
--- a/hw/ide/internal.h
+++ b/hw/ide/internal.h
@@ -320,6 +320,7 @@ typedef enum { IDE_HD, IDE_CD, IDE_CFATA } IDEDriveKind;
typedef void EndTransferFunc(IDEState *);
typedef void DMAStartFunc(IDEDMA *, IDEState *, BlockDriverCompletionFunc *);
+typedef void DMAVoidFunc(IDEDMA *);
typedef int DMAFunc(IDEDMA *);
typedef int DMAIntFunc(IDEDMA *, int);
typedef void DMARestartFunc(void *, int, RunState);
@@ -435,7 +436,7 @@ struct IDEDMAOps {
DMAFunc *set_inactive;
DMAFunc *async_cmd_done;
DMARestartFunc *restart_cb;
- DMAFunc *reset;
+ DMAVoidFunc *reset;
};
struct IDEDMA {