mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
scsi: move status to SCSIRequest.
Also add and use the scsi_req_complete() helper function for calling the completion callback. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
251882b7e4
commit
ed3a34a3c8
4 changed files with 27 additions and 15 deletions
|
@ -33,6 +33,7 @@ typedef struct SCSIRequest {
|
|||
SCSIDevice *dev;
|
||||
uint32_t tag;
|
||||
uint32_t lun;
|
||||
uint32_t status;
|
||||
struct {
|
||||
uint8_t buf[SCSI_CMD_BUF_SIZE];
|
||||
int len;
|
||||
|
@ -106,5 +107,6 @@ SCSIRequest *scsi_req_find(SCSIDevice *d, uint32_t tag);
|
|||
void scsi_req_free(SCSIRequest *req);
|
||||
|
||||
int scsi_req_parse(SCSIRequest *req, uint8_t *buf);
|
||||
void scsi_req_complete(SCSIRequest *req);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue