mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
69f72a2221
commit
1374bec063
5 changed files with 6 additions and 13 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue