diff options
| author | Paolo Bonzini | 2014-07-16 12:22:26 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2014-07-29 17:36:33 +0200 |
| commit | 3e7e180ab3f970a4e5b64b5fafd57c48c98ee560 (patch) | |
| tree | 5b41b83e0bc2c2f4264c7071af3993c44559d81b /include/hw | |
| parent | scsi-block: extract scsi_block_is_passthrough (diff) | |
| download | qemu-3e7e180ab3f970a4e5b64b5fafd57c48c98ee560.tar.gz qemu-3e7e180ab3f970a4e5b64b5fafd57c48c98ee560.tar.xz qemu-3e7e180ab3f970a4e5b64b5fafd57c48c98ee560.zip | |
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')
| -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 4a0b86052f..a7a28e6bbd 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); |
