diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-09-05 17:57:19 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-09-21 16:14:55 +0200 |
commit | bb729f758195a36db1dd0d5c01ec983e466729eb (patch) | |
tree | 9d5bd751a90928e24166ac8fb6cd847b8ae57776 /hw/scsi.h | |
parent | 12ca76fc48081b3a0ad1a70546abfcf198aedfc4 (diff) | |
download | qemu-bb729f758195a36db1dd0d5c01ec983e466729eb.zip qemu-bb729f758195a36db1dd0d5c01ec983e466729eb.tar.gz qemu-bb729f758195a36db1dd0d5c01ec983e466729eb.tar.bz2 |
scsi: introduce scsi_cdb_length and scsi_data_cdb_length
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi.h')
-rw-r--r-- | hw/scsi.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -218,6 +218,8 @@ extern const struct SCSISense sense_code_WRITE_PROTECTED; #define SENSE_CODE(x) sense_code_ ## x +uint32_t scsi_data_cdb_length(uint8_t *buf); +uint32_t scsi_cdb_length(uint8_t *buf); int scsi_sense_valid(SCSISense sense); int scsi_build_sense(uint8_t *in_buf, int in_len, uint8_t *buf, int len, bool fixed); |