diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-07-16 12:22:26 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-07-29 17:36:33 +0200 |
commit | 3e7e180ab3f970a4e5b64b5fafd57c48c98ee560 (patch) | |
tree | 5b41b83e0bc2c2f4264c7071af3993c44559d81b /include/hw/scsi | |
parent | 592c3b289f77ee77d5bff25cb19326cc7f22a532 (diff) | |
download | qemu-3e7e180ab3f970a4e5b64b5fafd57c48c98ee560.zip qemu-3e7e180ab3f970a4e5b64b5fafd57c48c98ee560.tar.gz qemu-3e7e180ab3f970a4e5b64b5fafd57c48c98ee560.tar.bz2 |
scsi-block, scsi-generic: implement parse_cdb
The callback lets the bus provide the direction and transfer count
for passthrough commands, enabling passthrough of vendor-specific
commands.
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/scsi')
-rw-r--r-- | include/hw/scsi/scsi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/scsi/scsi.h b/include/hw/scsi/scsi.h index 4a0b860..a7a28e6 100644 --- a/include/hw/scsi/scsi.h +++ b/include/hw/scsi/scsi.h @@ -250,6 +250,7 @@ void scsi_req_unref(SCSIRequest *req); int scsi_bus_parse_cdb(SCSIDevice *dev, SCSICommand *cmd, uint8_t *buf, void *hba_private); +int scsi_req_parse_cdb(SCSIDevice *dev, SCSICommand *cmd, uint8_t *buf); void scsi_req_build_sense(SCSIRequest *req, SCSISense sense); void scsi_req_print(SCSIRequest *req); void scsi_req_continue(SCSIRequest *req); |