diff options
author | Alexander Motin <mav@FreeBSD.org> | 2015-09-24 08:04:47 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2015-09-24 08:04:47 +0000 |
commit | a6daea64fd85a0daa449f3d3088861af07485d07 (patch) | |
tree | bf9d01c35aff9aec8186db6b2f22c7f300e125e2 /sys/cam/scsi | |
parent | de988746bed395ce1a4acb64915f2a062a0b1048 (diff) | |
download | src-a6daea64fd85a0daa449f3d3088861af07485d07.tar.gz src-a6daea64fd85a0daa449f3d3088861af07485d07.zip |
Update WRITE ATOMIC(16) support to sbc4r8 draft.
This is only a cosmetic change. We still don't support atomic boundary
field in the CDB, but at least now we do it formally.
Notes
Notes:
svn path=/head/; revision=288166
Diffstat (limited to 'sys/cam/scsi')
-rw-r--r-- | sys/cam/scsi/scsi_all.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_all.h b/sys/cam/scsi/scsi_all.h index e8fd5fe24bf3..daae04097485 100644 --- a/sys/cam/scsi/scsi_all.h +++ b/sys/cam/scsi/scsi_all.h @@ -1283,6 +1283,17 @@ struct scsi_rw_16 u_int8_t control; }; +struct scsi_write_atomic_16 +{ + uint8_t opcode; + uint8_t byte2; + uint8_t addr[8]; + uint8_t boundary[2]; + uint8_t length[2]; + uint8_t group; + uint8_t control; +}; + struct scsi_write_same_10 { uint8_t opcode; @@ -2757,7 +2768,8 @@ struct scsi_vpd_block_limits u_int8_t max_atomic_transfer_length[4]; u_int8_t atomic_alignment[4]; u_int8_t atomic_transfer_length_granularity[4]; - u_int8_t reserved2[8]; + u_int8_t max_atomic_transfer_length_with_atomic_boundary[4]; + u_int8_t max_atomic_boundary_size[4]; }; struct scsi_read_capacity |