mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
scsi: split command_complete callback in two
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Cc: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
3944966d95
commit
c6df7102f5
6 changed files with 168 additions and 137 deletions
|
@ -9,12 +9,6 @@
|
|||
|
||||
#define SCSI_CMD_BUF_SIZE 16
|
||||
|
||||
/* scsi-disk.c */
|
||||
enum scsi_reason {
|
||||
SCSI_REASON_DONE, /* Command complete. */
|
||||
SCSI_REASON_DATA /* Transfer complete, more data required. */
|
||||
};
|
||||
|
||||
typedef struct SCSIBus SCSIBus;
|
||||
typedef struct SCSIBusOps SCSIBusOps;
|
||||
typedef struct SCSIDevice SCSIDevice;
|
||||
|
@ -84,7 +78,8 @@ struct SCSIDeviceInfo {
|
|||
};
|
||||
|
||||
struct SCSIBusOps {
|
||||
void (*complete)(SCSIRequest *req, int reason, uint32_t arg);
|
||||
void (*transfer_data)(SCSIRequest *req, uint32_t arg);
|
||||
void (*complete)(SCSIRequest *req, uint32_t arg);
|
||||
void (*cancel)(SCSIRequest *req);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue