diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-11-26 15:34:00 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-03 09:41:37 -0600 |
commit | ed3a34a3c8dcae6f46556ae7e2a667e6c16c8daa (patch) | |
tree | 8cd220129db344fef2e540adff3b87d158880e1e /hw/scsi.h | |
parent | 251882b7e4532cb42fca89412bb6670dcec4158f (diff) |
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>
Diffstat (limited to 'hw/scsi.h')
-rw-r--r-- | hw/scsi.h | 2 |
1 files changed, 2 insertions, 0 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 |