diff options
author | Paolo Bonzini | 2011-08-03 10:49:10 +0200 |
---|---|---|
committer | Anthony Liguori | 2011-08-12 15:27:37 +0200 |
commit | c39ce112b60ffafbaf700853e32bea74cbb2c148 (patch) | |
tree | 057c60e24ca46e5c880fe575fc17620c1dff0ea0 /hw/scsi.h | |
parent | scsi: move request-related callbacks from SCSIDeviceInfo to SCSIReqOps (diff) | |
download | qemu-c39ce112b60ffafbaf700853e32bea74cbb2c148.tar.gz qemu-c39ce112b60ffafbaf700853e32bea74cbb2c148.tar.xz qemu-c39ce112b60ffafbaf700853e32bea74cbb2c148.zip |
scsi: pass cdb already to scsi_req_new
Right now the CDB is not passed to the SCSIBus until scsi_req_enqueue.
Passing it to scsi_req_new will let scsi_req_new dispatch common requests
through different reqops.
Moving the memcpy to scsi_req_new is a hack that will go away as
soon as scsi_req_new will also take care of the parsing.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/scsi.h')
-rw-r--r-- | hw/scsi.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -154,8 +154,8 @@ int scsi_sense_valid(SCSISense sense); SCSIRequest *scsi_req_alloc(SCSIReqOps *reqops, SCSIDevice *d, uint32_t tag, uint32_t lun, void *hba_private); SCSIRequest *scsi_req_new(SCSIDevice *d, uint32_t tag, uint32_t lun, - void *hba_private); -int32_t scsi_req_enqueue(SCSIRequest *req, uint8_t *buf); + uint8_t *buf, void *hba_private); +int32_t scsi_req_enqueue(SCSIRequest *req); void scsi_req_free(SCSIRequest *req); SCSIRequest *scsi_req_ref(SCSIRequest *req); void scsi_req_unref(SCSIRequest *req); |